﻿/* === Cool UI Tricks Section === */
.ui-tricks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.ui-trick {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
    .ui-trick:hover {
        transform: translateY(-10px) rotate3d(1, 1, 0, 6deg);
        box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    }

    .ui-trick h3 {
        margin-bottom: 10px;
        font-size: 1.3rem;
        color: #333;
        transition: transform 0.6s ease;
        border-radius: 10px; /* optional: smoother edges */
        position: relative;
    }

/*.demo-box {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}*/

/* Buttons */
.btn-row {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.btn-demo, .btn-source {
  background: #0078ff;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}
.btn-demo.disabled {
  background: #9ca3af;
  cursor: default;
}
.btn-source:hover {
  background: #0056b3;
}


/* ===== Magic Navigation Menu ===== */
.ui-trick {
  text-align: center;
  margin-top: 50px;
}

.ui-trick h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  color: #222;
}


/* 🌙 Magic Navigation Container */
.navigation {
    display: inline-flex;
    /*justify-content: center;*/
    background: #111;
    border-radius: 12px;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

    .navigation li {
        list-style: none;
        margin: 0 15px;
        position: relative;
    }

        .navigation li a {
            text-decoration: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #aaa;
            transition: 0.3s;
            position: relative;
        }

        /* 🔵 Circle background for icon */
        .navigation li .icon {
            font-size: 1.6em;
            transition: 0.4s;
            background: transparent;
            border-radius: 50%;
            width: 55px;
            height: 55px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        /* Circle effect appears only when hovered or active */
        .navigation li:hover .icon,
        .navigation li.active .icon {
            background: var(--clr, #00bcd4);
            color: #111;
            /*box-shadow: 0 0 12px var(--clr, #00bcd4), 0 0 25px var(--clr, #00bcd4);*/
            transform: translateY(-6px) scale(1.1);
            background: radial-gradient(circle at top left, #fff, var(--clr, #00bcd4));
        }

        /* ✨ Icon text animation */
        .navigation li .text {
            font-size: 0.8em;
            opacity: 0;
            transform: translateY(10px);
            transition: 0.3s;
        }

        .navigation li:hover .text,
        .navigation li.active .text {
            opacity: 1;
            transform: translateY(0);
            color: var(--clr, #00bcd4);
        }

    /* Optional smoother interaction */
    .navigation li {
        cursor: pointer;
    }


.navigation {
    display: flex;
    flex-wrap: wrap;
   /* width: 100%;*/
    padding: 10px;
    gap: 10px;
    justify-content: center;
}

    /* Reduce size of icons */
    .navigation li .icon {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
    }

    /* Reduce text size */
    .navigation li .text {
        font-size: 0.7em;
    }

    /* Reduce spacing between items */
    .navigation li {
        margin: 5px;
    }
/* ===== Search Box Container ===== */

.magic-search {
  position: relative;
  width: 55px;
  height: 55px;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: all 0.5s ease;
}

/* Input field (hidden initially) */
.magic-search input {
  position: absolute;
  left: 55px;
  width: 0;
  opacity: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #333;
  font-size: 1em;
  padding: 0 15px;
  transition: all 0.5s ease;
}

/* Search button */
.magic-search .search-btn {
  width: 55px;
  height: 55px;
  border: none;
  outline: none;
  background: #5583f6;
  color: #fff;
  border-radius: 50%;
  font-size: 1.3em;
  cursor: pointer;
  transition: transform 0.5s ease;
}

/* Hover glow */
.magic-search:hover {
  box-shadow: 0 0 15px rgba(85, 131, 246, 0.4);
}

/* Active expanded effect */
.magic-search.active {
  width: 260px;
  background: #fff;
}

.magic-search.active input {
  width: calc(100% - 60px);
  opacity: 1;
}

.magic-search.active .search-btn {
  transform: rotate(-180deg);
}

/* ================================
 Card (Modern UI Style)
================================ */

/* Layout for demo grid */
.card-showcase {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}


.ui-trick.card-demo {
    text-align: center;
}

    .ui-trick.card-demo .demo-box {
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 16px;
        padding: 40px 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    }

/* ====== Main Card ====== */
.p-card {
    position: relative;
    width: 280px;
    height: 380px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

    /* ====== Blue Top Shape ====== */
    .p-card::before {
        content: "";
        position: absolute;
        top: -60%;
        left: 0;
        width: 100%;
        height: 100%;
        background: #004b93;
        transform: skewY(340deg);
        transition: 0.5s ease;
        border-bottom-left-radius: 50%;
        border-bottom-right-radius: 50%;
    }

    .p-card:hover::before {
        top: -90%;
        transform: skewY(390deg);
    }

/* ====== Circle with Logo ====== */
.p-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 0 8px #004b93;
    transition: 0.5s ease;
}

/* Pepsi logo inside circle */
.p-logo {
    width: 100px;
    transition: 0.5s ease;
    opacity: 1;
}

/* ====== Bottle image (hidden initially) ====== */
.p-product {
    position: absolute;
    bottom: 172px;
    left: 77%;
    transform: translateX(-50%) scale(0.7);
    height: 130px;
    opacity: 0;
    transition: 0.6s ease;
    z-index: 3;
}

/* ====== Content (hidden initially) ====== */
.p-content {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
    z-index: 4;
}

/* ====== Hover Effects ====== */
.p-card:hover .p-circle {
    transform: translate(-50%, -200%);
    opacity: 0;
}

.p-card:hover .p-logo {
    opacity: 0;
}

.p-card:hover .p-product {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.p-card:hover .p-content {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Text Styles ====== */
.p-content h2 {
    font-size: 24px;
    color: #004b93;
    margin-bottom: 10px;
}

.p-content p {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.p-content a {
    display: inline-block;
    padding: 8px 18px;
    background: #004b93;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 13px;
}

    .p-content a:hover {
        background: #e31c24;
        box-shadow: 0 0 10px rgba(227, 28, 36, 0.6);
    }


/* 🟥 Coca-Cola Card */
.coke-card {
    position: relative;
    width: 280px;
    height: 380px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: 0.5s;
}

.coke-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(135deg, #e61c23, #b51217);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 50%;
    transition: 0.5s ease;
}

.coke-logo {
    width: 120px;
    transition: 0.4s;
}

.coke-product {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    height: 140px;
    opacity: 0;
    transition: 0.6s ease;
}

.coke-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.coke-card:hover .coke-top {
    height: 25%;
    border-bottom-left-radius: 0;
}

.coke-card:hover .coke-logo {
    opacity: 0;
}

.coke-card:hover .coke-product {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.coke-card:hover .coke-content {
    opacity: 1;
    transform: translateY(0);
}

.coke-content h2 {
    color: #e61c23;
    margin-bottom: 10px;
}

.coke-content p {
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
}

.coke-content a {
    padding: 8px 18px;
    background: #e61c23;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

    .coke-content a:hover {
        background: #b51217;
        box-shadow: 0 0 10px rgba(230,28,35,0.5);
    }

/* ----------------- SPRITE CARD ----------------- */
.sprite-card {
    position: relative;
    width: 280px;
    height: 380px;
    background: #eaffea;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.5s ease;
}

.sprite-bubble {
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #3ac33a, #007f00);
    border-radius: 50%;
    transition: 0.5s ease;
}

.sprite-logo {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    z-index: 2;
    transition: 0.5s ease;
}

.sprite-product {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    height: 140px;
    opacity: 0;
    transition: 0.6s ease;
}

.sprite-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.sprite-card:hover .sprite-bubble {
    top: -60%;
    opacity: 0.4;
}

.sprite-card:hover .sprite-logo {
    opacity: 0;
}

.sprite-card:hover .sprite-product {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.sprite-card:hover .sprite-content {
    opacity: 1;
    transform: translateY(0);
}

.sprite-content h2 {
    color: #007f00;
    margin-bottom: 10px;
}

.sprite-content p {
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
}

.sprite-content a {
    padding: 8px 18px;
    background: #007f00;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
}

    .sprite-content a:hover {
        background: #3ac33a;
        box-shadow: 0 0 10px rgba(0,127,0,0.6);
    }

/* ----------------- MOUNTAIN DEW CARD ----------------- */
.dew-card {
    position: relative;
    width: 280px;
    height: 380px;
    background: linear-gradient(180deg, #f9fff2, #e7ffe0);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.5s ease;
}

.dew-flash {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(60deg, #aefc00, #44aa00);
    transform: rotate(-10deg);
    transition: 0.6s ease;
}

.dew-logo {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    transition: 0.5s ease;
    z-index: 2;
}

.dew-product {
    position: absolute;
    bottom: 198px;
    left: 50%;
    transform: translateX(-50%) scale(0.7);
    height: 140px;
    opacity: 0;
    transition: 0.6s ease;
    z-index: 3;
}

.dew-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.6s ease;
}

.dew-card:hover .dew-flash {
    top: -90%;
    left: -20%;
    opacity: 0.7;
}

.dew-card:hover .dew-logo {
    opacity: 0;
}

.dew-card:hover .dew-product {
    opacity: 1;
    transform: translateX(-50%) scale(1);

}

.dew-card:hover .dew-content {
    opacity: 1;
    transform: translateY(0);
}

.dew-content h2 {
    color: #44aa00;
    margin-bottom: 10px;
}

.dew-content p {
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
}

.dew-content a {
    padding: 8px 18px;
    background: #44aa00;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
}

    .dew-content a:hover {
        background: #aefc00;
        box-shadow: 0 0 10px rgba(68,170,0,0.6);
    }



    /* ==== Base Layout ==== */
.ui-trick.cinematic-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 50px;
  background: radial-gradient(circle at center, #f7f9fb, #e3e7eb);
  perspective: 1000px;
}

/* ==== Common Base Card ==== */
.brand-card {
  position: relative;
  width: 280px;
  height: 400px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.8s ease, box-shadow 0.8s ease;
  transform-style: preserve-3d;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.brand-card:hover {
  transform: scale(1.05) rotateX(8deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

/* ==== Background Animation ==== */
.brand-bg {
  position: absolute;
  inset: 0;
  transition: 0.8s ease;
  z-index: 1;
}

/* ==== Logo and Product ==== */
.brand-logo,
.brand-product {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.8s ease;
  z-index: 2;
}

.brand-logo {
  top: 50%;
  width: 120px;
  transform: translate(-50%, -50%) scale(1);
}

.brand-product {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scale(0.8) translateY(50px);
    height: 140px;
    opacity: 0;
    transition: 0.8s ease;
    bottom: 181px; /* base value */
}

/* ==== Content Section ==== */
.brand-content {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  text-align: left;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
  z-index: 3;
}

.brand-content h2 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.brand-content p {
  font-size: 13px;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 15px;
}

.brand-content a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: 0.4s ease;
}

/* ==== Hover Animation Core ==== */
.brand-card:hover .brand-logo {
  transform: translate(-50%, -180%) scale(0.4);
  opacity: 0;
}

.brand-card:hover .brand-product {
    opacity: 1;
    transform: translateX(-50%) scale(1) translateY(0);
    bottom: 187px;
}

.brand-card:hover .brand-content {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BRAND-SPECIFIC LOOKS ===== */

/* --- Pepsi --- */
.pepsi-card .brand-bg {
  background: linear-gradient(180deg, #004b93, #001f4f);
}
.pepsi-card .brand-content h2 { color: #fff; }
.pepsi-card .brand-content a {
  background: #004b93; color: #fff;
}
.pepsi-card:hover .brand-bg {
  background: radial-gradient(circle at center, #0059c2, #001637);
}

/* --- Coca-Cola --- */
.coke-card .brand-bg {
  background: linear-gradient(160deg, #b51217, #e61c23);
}
.coke-card .brand-content h2 { color: #fff; }
.coke-card .brand-content a {
  background: #fff; color: #e61c23;
}
.coke-card:hover .brand-bg {
  background: radial-gradient(circle at bottom, #ff2b2b, #7a0000);
}
.coke-card .brand-product {
    filter: drop-shadow(0 8px 10px rgba(0,0,0,0.4));
    bottom: 187px;
}

/* --- Sprite --- */
.sprite-card .brand-bg {
  background: linear-gradient(180deg, #00a651, #005f2f);
}
.sprite-card .brand-content h2 { color: #fff; }
.sprite-card .brand-content a {
  background: #fff; color: #00a651;
}
.sprite-card:hover .brand-bg {
  background: radial-gradient(circle, #00d96c, #004d26);
}
.sprite-card .brand-product {
    filter: brightness(1.2);
    bottom: 187px;
}

/* --- Mountain Dew --- */
.dew-card .brand-bg {
  background: linear-gradient(180deg, #9efc00, #3a7f00);
}
.dew-card .brand-content h2 { color: #004400; }
.dew-card .brand-content a {
  background: #004400; color: #aefc00;
}
.dew-card:hover .brand-bg {
  background: radial-gradient(circle at center, #aefc00, #005500);
}
.dew-card .brand-product {
    filter: brightness(1.3) contrast(1.1);
    bottom: 187px;
}


