:root {
    --primary-teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;
    --navy: #1e293b;
    --navy-light: #334155;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray-medium: #e2e8f0;
    --gray-dark: #64748b;
    --gold: #d4af37;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

/* ============ NAVBAR ============ */
.navbar {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    color: var(--primary-teal);
    margin-right: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-teal) !important;
}

.dropdown-menu {
    background: var(--navy);
    border: none;
    box-shadow: var(--shadow-lg);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--primary-teal);
    color: var(--white);
}

/* ============ HERO SECTION ============ */
.hero-section {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--primary-teal) 100%);
    color: var(--white);
    padding: 200px 0;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease 0.2s both;
    letter-spacing: -1px;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.4s both;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.6s both;
}

.btn-hero {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-hero {
    background: var(--primary-teal);
    color: var(--white);
    border: 2px solid var(--primary-teal);
}

.btn-primary-hero:hover {
    background: var(--teal-dark);
    border-color: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary-hero {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary-hero:hover {
    background: var(--white);
    color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============ CATEGORY BANNER ============ */
.category-banner {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 0;
    margin: 0;
    animation: fadeIn 0.8s ease;
}

.category-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(13, 148, 136, 0.75) 100%);
    z-index: 1;
}

.category-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: slideInDown 0.8s ease;
}

.category-banner h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.category-banner p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.breadcrumb-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 1.5rem;
}

.breadcrumb-nav a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.breadcrumb-nav span {
    color: rgba(255, 255, 255, 0.7);
}

/* ============ SECTIONS ============ */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ============ COUPON CARDS ============ */
.coupon-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
}

.coupon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.coupon-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--gray-medium) 100%);
}

.coupon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.coupon-card:hover .coupon-image img {
    transform: scale(1.1);
}

.coupon-image > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    font-size: 3rem;
    transition: all 0.4s ease;
}

.coupon-card:hover .coupon-image > div {
    filter: brightness(1.1);
}

.coupon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
    color: var(--navy);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.6s ease;
}

.coupon-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.coupon-brand {
    font-size: 0.85rem;
    color: var(--primary-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.coupon-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.coupon-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-medium);
}

.coupon-discount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-teal);
}

.coupon-discount small {
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-coupon {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-coupon:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--primary-teal) 100%);
}

.btn-coupon:active {
    transform: scale(0.98);
}

/* ============ HOVER LIFT EFFECT ============ */
.hover-lift {
    transition: all 0.3s ease;
    border: 1px solid var(--gray-medium);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-teal);
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
    margin-top: 80px;
}

footer h5,
footer h6 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

footer a:hover {
    color: var(--primary-teal);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-teal);
    transform: translateY(-4px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============ UTILITY CLASSES ============ */
.text-teal {
    color: var(--primary-teal);
}

.text-light {
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-md-end {
    text-align: end;
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    .category-banner {
        padding: 60px 0;
    }

    .category-banner h1 {
        font-size: 2rem;
    }

    .category-banner p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .coupon-card {
        margin-bottom: 1rem;
    }

    footer {
        padding: 40px 0 15px;
    }

    footer h5,
    footer h6 {
        margin-bottom: 1rem;
    }

    .text-md-end {
        text-align: start;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .category-banner {
        padding: 40px 0;
    }

    .category-banner h1 {
        font-size: 1.5rem;
    }

    .category-banner p {
        font-size: 0.9rem;
    }

    .breadcrumb-nav {
        font-size: 0.85rem;
    }

    .coupon-image {
        height: 150px;
    }

    .coupon-image > div {
        font-size: 2rem;
    }

    .coupon-title {
        font-size: 1rem;
    }

    .coupon-discount {
        font-size: 1.3rem;
    }

    .btn-coupon {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin: 0.3rem 0;
    }
}

/* ============ SCROLL TO TOP BUTTON ============ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--teal-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
    display: flex;
    animation: slideInUp 0.3s ease;
}
