@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #001A3D;
    --primary-dark: #000F24;
    --primary-light: #E6EDF5;
    --secondary: #D4AF37;
    --secondary-dark: #B8860B;
    --accent: #F59E0B;
    --dark: #0F172A;
    --light: #F8FAFC;
    --gray: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --radius-lg: 24px;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
    --brand-blue: #34558a;
    --brand-green: #bfd244;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Background Shapes */
#bg-effect {
    position: fixed;
    inset: 0;
    z-index: -5;
    background: #F8FAFC;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
    filter: blur(80px);
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Header */
/* User Floating Capsule */
.user-capsule {
    position: fixed;
    top: 0;
    right: 100px;
    background: #FFFFFF;
    padding: 12px 25px;
    border-radius: 0 0 20px 20px;
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 26, 61, 0.1);
    border: 1px solid rgba(0, 26, 61, 0.05);
    border-top: none;
    transition: all 0.3s ease;
    color: var(--primary);
}

.user-capsule:hover {
    padding-top: 18px;
    background: var(--primary);
    color: white;
    box-shadow: 0 15px 35px rgba(0, 26, 61, 0.2);
}

.user-capsule i {
    transition: transform 0.3s ease;
}

.user-capsule:hover i {
    transform: scale(1.2);
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    /* Header to the very top */
    left: 0;
    right: 0;
    z-index: 1000;
    height: 100px;
    /* Increased from 80px */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 26, 61, 0.05);
    transition: all 0.3s;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: absolute;
    /* Relative to header */
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--brand-green);
    z-index: 1001;
    /* Above header background but below dropdown (2000) */
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(191, 210, 68, 0.4);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 15px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 80px !important;
    /* Increased from 80px */
    width: auto;
    display: block;
    transition: transform 0.3s;
}

.logo:hover img {
    transform: scale(1.05);
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: 30px;
    /* Increased from 20px */
    white-space: nowrap;
}

nav ul li a {
    font-size: 15px;
    /* Increased from 14px */
    font-weight: 700;
    /* Bolder */
    color: var(--gray);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

.header-cta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-only-login {
    display: none !important;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    background: #F1F5F9;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #E2E8F0;
}

.header-cta .btn {
    padding: 10px 22px;
    background: var(--brand-green);
    color: var(--primary);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(191, 210, 68, 0.2);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    padding-top: 100px;
    background: linear-gradient(-45deg, var(--primary), #004B8D, #8EAA5E, #A4BC74);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
    color: white;
}

.hero-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/footer-pattern.png") repeat;
    background-size: 300px;
    opacity: 0.35;
    animation: patternSlide 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-wrapper h1,
.hero-wrapper h2 {
    color: white !important;
}

.hero-wrapper p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: rgba(0, 26, 61, 0.05);
    color: var(--primary);
    border-radius: 99px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(0, 26, 61, 0.08);
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-wrapper .slide-badge {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hero-wrapper .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-wrapper .btn-outline:hover {
    background: white;
    color: var(--primary);
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes patternSlide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 300px 300px;
    }
}

.hero-slider {
    width: 100%;
    overflow: hidden !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 6px;
    border-radius: 99px;
    background: var(--primary) !important;
    opacity: 0.2;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    width: 30px;
    opacity: 1 !important;
}

/* Section Headers */
.section-title {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-title h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Grid & Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 26, 61, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 26, 61, 0.03);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 26, 61, 0.1);
    border-color: var(--secondary);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-icon i {
    width: 30px;
    height: 30px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--gold-gradient);
    color: var(--primary);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-brand-blue {
    background: var(--brand-blue);
    color: var(--white);
}

.btn-brand-green {
    background: var(--brand-green);
    color: var(--primary);
}

.btn-brand-blue:hover,
.btn-brand-green:hover {
    filter: brightness(1.1);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Calculator & Forms */
.calc-card {
    background: var(--white);
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0, 26, 61, 0.08);
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 18px 25px;
    border-radius: 16px;
    border: 1.5px solid #E2E8F0;
    font-size: 16px;
    font-weight: 600;
    background: #F8FAFC;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--secondary);
    background: white;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.08);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Wave Animation System */
.wave-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 150px;
    margin-top: -150px;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
    pointer-events: none;
}

.waves {
    width: 100%;
    height: 150px;
    min-height: 150px;
}

.parallax-waves>use {
    animation: move-forever 15s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax-waves>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax-waves>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax-waves>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax-waves>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* Chat Bubbles */
.ai-bubble {
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 20px 20px 20px 0px;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(0, 26, 61, 0.1);
    position: relative;
    max-width: 85%;
    line-height: 1.6;
}

.ai-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 15px 12px;
    border-color: transparent transparent #001A3D transparent;
}

.user-bubble {
    background: #F1F5F9;
    color: var(--primary);
    padding: 12px 18px;
    border-radius: 20px 20px 0px 20px;
    font-size: 14px;
    max-width: 80%;
    margin-left: auto;
    font-weight: 600;
    position: relative;
}

.user-bubble::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 12px 15px 0;
    border-color: transparent transparent #F1F5F9 transparent;
}

/* User Testimonials */
.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 26, 61, 0.05);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
    box-shadow: 0 30px 60px rgba(0, 26, 61, 0.1);
}

.testimonial-card .stars {
    display: flex;
    gap: 5px;
}

.testimonial-card .stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.testimonial-card .stars i,
.testimonial-card .stars svg {
    width: 20px;
    height: 20px;
    fill: var(--secondary);
    stroke: var(--secondary);
}

.testimonial-card .comment {
    font-size: 16px;
    color: var(--gray);
    font-style: italic;
    line-height: 1.8;
    flex-grow: 1;
}

.testimonial-card .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f5f5f5;
}

.testimonial-card .user-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.testimonial-card .user-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--primary);
}

.testimonial-card .user-info span {
    font-size: 13px;
    color: var(--gray);
}

/* Social Proof Notification */
.social-proof {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: white;
    padding: 15px 22px;
    border-radius: 22px;
    box-shadow: 0 15px 40px rgba(0, 26, 61, 0.12);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #f0f0f0;
    transform: translateX(-150%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 320px;
}

.social-proof.show {
    transform: translateX(0);
}

.social-proof .icon {
    width: 44px;
    height: 44px;
    background: var(--brand-green);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.social-proof .content p {
    font-size: 13px;
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
    color: var(--primary);
}

.social-proof .content span {
    font-size: 11px;
    color: var(--gray);
    display: block;
    margin-top: 3px;
    font-weight: 500;
}

.social-proof .close-proof {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 16px;
    cursor: pointer;
    color: #cbd5e1;
    line-height: 1;
    transition: color 0.3s;
}

.social-proof .close-proof:hover {
    color: var(--primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 20px;
    background: rgba(0, 26, 61, 0.98);
    backdrop-filter: blur(15px);
    color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10005;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 300px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.cookie-content h4 {
    color: white;
    margin: 0;
    font-size: 15px;
}

.cookie-content p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.4;
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 5px;
    width: 100%;
}

.cookie-actions .btn {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 10px;
}

/* Floating Buttons */
.back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--white);
    color: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 10001;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    border: 2px solid var(--brand-blue);
}

.back-to-top:hover {
    background: var(--brand-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 10001;
    cursor: pointer;
    transition: all 0.3s;
}

/* Footer */
footer {
    position: relative;
    background: #001A3D;
    padding: 100px 0 40px;
    color: white;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/footer-pattern.png") repeat;
    background-size: 400px;
    opacity: 0.10;
    animation: footerDiagonal 120s linear infinite;
    pointer-events: none;
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

@keyframes footerDiagonal {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 600px 600px;
    }
}

.footer-logo img {
    height: 100px;
    width: auto;
    margin-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-links h4 {
    color: white;
    border-bottom: 2px solid var(--secondary);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 25px;
    font-size: 18px;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    background: var(--brand-green);
    color: var(--primary);
    transform: translateY(-5px);
    border-color: var(--brand-green);
    box-shadow: 0 10px 20px rgba(191, 210, 68, 0.2);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
}

.footer-links ul li a::before {
    content: '»';
    position: absolute;
    left: -20px;
    opacity: 0;
    color: var(--secondary);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* WhatsApp Popup */
.wa-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    z-index: 10002;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.wa-popup.show {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

.wa-header {
    background: #075E54;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Helpers */
.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   RESPONSIVE – TABLET (≤991px)
   ======================================== */
@media (max-width: 991px) {

    /* Header & Navigation */
    header {
        height: 70px;
    }

    header .container {
        padding: 0 16px;
    }

    .logo img {
        height: 55px !important;
    }

    /* Hide desktop nav, show burger btn */
    header nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 20px 40px rgba(0, 26, 61, 0.15);
        padding: 20px 16px 30px;
        flex-direction: column;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        z-index: 1500;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    header nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
        align-items: stretch;
        white-space: normal;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        font-size: 16px;
        color: var(--primary);
        border-radius: 12px;
        transition: background 0.2s;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: var(--primary-light);
        color: var(--primary);
    }

    .dropdown {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        padding: 8px 0;
        min-width: auto;
        opacity: 1;
        display: none;
        pointer-events: auto;
        background: var(--primary-light);
        border-radius: 12px;
        margin-top: 5px;
    }

    nav ul li.has-dropdown:focus-within .dropdown,
    nav ul li.has-dropdown.open .dropdown {
        display: flex;
        flex-direction: column;
    }

    .dropdown::before {
        display: none;
    }

    .dropdown li {
        margin: 0 !important;
        display: block !important;
        width: 100%;
    }

    .dropdown li a {
        justify-content: center !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    /* Mobile-only login */
    .mobile-only-login {
        display: block !important;
        margin-top: 10px;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

    .mobile-panel-btn {
        background: var(--brand-green) !important;
        color: var(--primary) !important;
        border-radius: 12px;
        padding: 12px 20px;
        font-weight: 800;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0 auto;
        text-decoration: none;
        width: auto;
    }

    /* Burger button */
    .mobile-menu-btn {
        display: flex !important;
    }

    .desktop-text {
        display: none;
    }

    .wa-btn {
        padding: 10px 12px;
        border-radius: 12px;
    }

    /* Hide desktop user capsule */
    .user-capsule {
        display: none !important;
    }

    /* Layout fixes */
    .hero-wrapper {
        padding-top: 120px !important;
    }

    section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-info {
        grid-column: span 2;
        margin-bottom: 20px;
    }

    .grid-cards {
        grid-template-columns: 1fr 1fr;
    }

    /* HERO SLIDER - Override inline styles for mobile */
    .hero-slider {
        min-height: auto !important;
        padding: 20px 0 80px !important;
    }

    .hero-slider .swiper-slide .container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        text-align: center;
    }

    .slide-content {
        order: 2;
    }

    .slide-image {
        order: 1;
    }

    .slide-image img {
        height: 220px !important;
        border-radius: 20px !important;
    }

    .slide-content h1,
    .slide-content h2 {
        margin-top: 10px;
    }

    .slide-content div {
        justify-content: center;
    }

    .pages-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    aside {
        position: static !important;
    }

    /* Hide wave on mobile */
    .wave-container {
        display: none !important;
    }

    /* CTA Section – compact button */
    #bilgi-merkezi,
    section[style*="padding: 120px"] {
        padding: 60px 0 !important;
    }

    /* CTA box – reduce padding */
    section[style*="padding: 140px"] {
        padding: 50px 0 !important;
    }

    section[style*="padding: 140px"] .container>div {
        border-radius: 28px !important;
        padding: 40px 24px !important;
    }

    section[style*="padding: 140px"] h2 {
        font-size: 26px !important;
        margin-bottom: 16px !important;
    }

    section[style*="padding: 140px"] p {
        font-size: 15px !important;
        margin-bottom: 28px !important;
    }

    /* CTA button – auto width, compact */
    section[style*="padding: 140px"] .btn {
        padding: 14px 28px !important;
        font-size: 15px !important;
        width: auto !important;
        display: inline-flex !important;
    }

    /* AI Assistant section – single column */
    #bilgi-merkezi .container>div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Hide the large AI image on mobile to prevent overflow */
    #bilgi-merkezi .container>div>div:first-child {
        display: none !important;
    }

    /* AI chat card – full width, compact */
    #bilgi-merkezi .card {
        border-radius: 24px !important;
    }

    #ai-chat-window {
        height: 240px !important;
    }

    #bilgi-merkezi [style*="padding: 35px"] {
        padding: 20px !important;
    }
}

/* Footer Animation */


/* Auth Modal */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 26, 61, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    overflow-y: auto;
    padding: 20px;
}

.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-card {
    background: white;
    width: 100%;
    max-width: 520px;
    border-radius: 30px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.4s;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    margin: auto;
}

.auth-modal.show .auth-card {
    transform: translateY(0);
}

.auth-close {
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    color: var(--gray);
}

.auth-tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-tab {
    padding-bottom: 15px;
    cursor: pointer;
    font-weight: 700;
    color: var(--gray);
    position: relative;
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-green);
}

.google-map-styled {
    border-radius: 30px;
    overflow: hidden;
    background: #f0f4f8;
}

.google-map-styled iframe {
    filter: hue-rotate(150deg) saturate(130%) brightness(1.15) contrast(0.9);
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 100;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: markerFloat 2s ease-in-out infinite;
}

.map-marker img {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.marker-pulse {
    width: 20px;
    height: 10px;
    background: rgba(0, 26, 61, 0.2);
    border-radius: 50%;
    margin-top: 5px;
    animation: markerShadow 2s ease-in-out infinite;
}

@keyframes markerFloat {

    0%,
    100% {
        transform: translate(-50%, -100%);
    }

    50% {
        transform: translate(-50%, -115%);
    }
}

@keyframes markerShadow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(0.6);
        opacity: 0.1;
    }
}

.faq-section {
    background: #F1F5F9 url('../img/ground-texture.png');
    background-attachment: fixed;
    position: relative;
    padding: 100px 0;
}

.faq-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.9) 100%);
    z-index: 0;
}

.faq-section .container {
    position: relative;
    z-index: 1;
}

.top-header-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Range Slider Customization */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #E2E8F0;
    border-radius: 4px;
}

input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    margin-top: -8px;
    box-shadow: 0 4px 10px rgba(0, 26, 61, 0.2);
    border: 3px solid white;
    transition: all 0.2s ease;
}

input[type=range]:active::-webkit-slider-thumb {
    transform: scale(1.2);
    background: var(--secondary);
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #E2E8F0;
    border-radius: 4px;
}

input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 26, 61, 0.2);
}

/* Modern Swiper Pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 0 6px !important;
    border: 2px solid transparent;
}

.swiper-pagination-bullet-active {
    width: 32px !important;
    border-radius: 10px !important;
    background: var(--brand-green) !important;
    box-shadow: 0 0 15px rgba(191, 210, 68, 0.5);
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    transform: scale(1.2);
}

/* Context Aware Swiper Pagination */
.hero-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
}

.testimonials-slider .swiper-pagination-bullet {
    background: rgba(0, 26, 61, 0.1) !important;
}

.testimonials-slider .swiper-pagination-bullet-active {
    background: var(--primary) !important;
    box-shadow: 0 0 15px rgba(0, 26, 61, 0.15);
}

/* Dropdown Navigation */
nav ul li.has-dropdown {
    position: relative;
}

nav ul li.has-dropdown>a {
    display: flex;
    align-items: center;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    width: auto;
    min-width: 350px;
    background: white;
    box-shadow: 0 30px 70px rgba(0, 26, 61, 0.18);
    border-radius: 24px;
    padding: 18px 25px;
    opacity: 0;
    display: none;
    /* Changed from visibility: hidden */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 26, 61, 0.05);
    z-index: 2000;
    justify-content: center;
    gap: 20px;
    pointer-events: none;
}

nav ul li.has-dropdown:hover .dropdown {
    opacity: 1;
    display: flex;
    /* Changed from visibility: visible */
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.dropdown li {
    margin: 0 !important;
    display: inline-block !important;
}

.dropdown li a {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    font-size: 15px !important;
    color: var(--primary) !important;
    transition: all 0.3s;
    font-weight: 700 !important;
    border-radius: 12px;
}

.dropdown li a:hover {
    background: var(--primary-light);
    color: var(--primary) !important;
    padding-left: 15px !important;
}

.share-btn-premium {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
    border: 1px solid rgba(0, 26, 61, 0.05);
}

.share-btn-premium:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 26, 61, 0.15);
}

/* Blog & Dictionary Styles */
.blog-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary);
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Knowledge Hub Grid System */
.knowledge-hub-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.blog-inner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 991px) {
    .knowledge-hub-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .blog-inner-grid {
        grid-template-columns: 1fr;
    }
}

/* Dictionary List */
.sozluk-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 50px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.sozluk-nav::-webkit-scrollbar {
    height: 4px;
}

.sozluk-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

.sozluk-letter {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    color: var(--primary);
    border: 1px solid var(--border);
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

.sozluk-letter.active,
.sozluk-letter:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.term-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.term-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.term-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

/* Global Mobile Fixes */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-slider .swiper-slide .container {
        gap: 40px;
    }
}

/* ========================================
   RESPONSIVE – MOBILE (≤768px)
   ======================================== */
@media (max-width: 768px) {
    .hero-wrapper {
        min-height: auto !important;
        padding-top: 70px !important;
    }

    .hero-slider {
        min-height: auto !important;
        padding-bottom: 60px !important;
    }

    .swiper-pagination {
        bottom: 20px !important;
    }

    section {
        padding: 50px 0 !important;
    }

    .section-title {
        margin-bottom: 30px !important;
    }

    .section-title h1,
    .section-title h2 {
        font-size: 28px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-info {
        grid-column: span 1;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .faq-search-box {
        flex-direction: column;
        border-radius: 20px;
        padding: 15px;
    }

    .faq-search-box button {
        width: 100%;
    }

    article img {
        height: 200px !important;
    }

    .calc-card {
        padding: 25px;
        border-radius: 24px;
    }

    .card {
        padding: 25px;
    }

    .knowledge-hub-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .blog-inner-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer bottom row stack */
    .footer-bottom {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }

    .footer__sanatizi-copyright {
        justify-content: center;
    }

    /* Cookie banner mobile */
    .cookie-banner {
        max-width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }

    /* Calculator section (home) – single column */
    #quick-calc .container>div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    #quick-calc [style*="font-size: 32px"] {
        font-size: 22px !important;
    }

    #quick-calc [style*="font-size: 48px"] {
        font-size: 26px !important;
    }

    #quick-calc [style*="font-size: 20px"] {
        font-size: 15px !important;
    }

    #quick-calc [style*="font-size: 42px"] {
        font-size: 32px !important;
    }

    /* AI assistant – quick questions stack vertically */
    #quick-asks-container,
    #dynamic-questions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    #dynamic-questions button,
    #quick-asks-container button:not(#refresh-questions) {
        width: 100% !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    #refresh-questions {
        align-self: center;
    }

    /* BES Hesaplama page – single column card */
    .card[style*="padding: 60px"] {
        padding: 24px !important;
        border-radius: 20px !important;
    }

    .card[style*="padding: 60px"]>div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-bottom: 30px !important;
    }

    /* Hesaplama page CTA button compact */
    .card[style*="padding: 60px"] .btn {
        padding: 14px 28px !important;
        font-size: 16px !important;
        width: 100% !important;
    }

    /* Projeksiyon result font */
    .card[style*="padding: 60px"] #res_total {
        font-size: 28px !important;
    }

    /* Blog Featured Post - Single Column */
    .reveal>div[style*="border-radius: 30px"][style*="grid-template-columns"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .reveal>div[style*="border-radius: 30px"]>div[style*="min-height: 420px"] {
        min-height: 250px !important;
    }

    .reveal>div[style*="border-radius: 30px"]>div[style*="padding: 60px 50px"] {
        padding: 30px 20px !important;
    }

    /* Contact Form - Single Column */
    .card form>div[style*="grid-template-columns"],
    .auth-card form>div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .card[style*="padding: 50px"],
    .auth-card {
        padding: 24px !important;
    }
}

/* ========================================
   RESPONSIVE – SMALL PHONE (≤480px) — iPhone 12 Pro = 390px
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Hero slider */
    .hero-slider .slide-content h1,
    .hero-slider .slide-content h2 {
        font-size: 26px !important;
        line-height: 1.2;
    }

    .slide-content p {
        font-size: 14px !important;
    }

    .slide-image img {
        height: 200px !important;
    }

    /* Buttons stacked */
    .slide-content div {
        flex-direction: column;
        gap: 10px;
    }

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

    /* Cards */
    .card {
        padding: 20px;
        border-radius: 16px;
    }

    .grid-cards {
        gap: 16px;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 20px;
    }

    /* FAQ */
    .faq-section {
        padding: 50px 0;
    }

    /* Section title */
    .section-title h1,
    .section-title h2 {
        font-size: 24px !important;
    }

    .section-title p {
        font-size: 14px;
    }

    /* Blog card */
    .blog-card-content {
        padding: 20px;
    }

    .blog-card-title {
        font-size: 17px;
    }

    /* Footer */
    .footer-logo img {
        height: 70px;
    }

    .footer-links h4 {
        font-size: 15px;
    }

    .footer-links ul li {
        margin-bottom: 10px;
    }

    footer {
        padding: 60px 0 30px;
    }

    /* Back to top btn position */
    .back-to-top {
        right: 16px;
        bottom: 90px;
        width: 48px;
        height: 48px;
    }

    /* WhatsApp float */
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}

/* Term Tooltip Styling */
.term-tooltip-trigger {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline dotted var(--secondary);
    text-underline-offset: 4px;
    cursor: help;
    position: relative;
    transition: all 0.3s;
    display: inline-block;
}

.term-tooltip-trigger:hover {
    color: var(--secondary);
    background: rgba(212, 175, 55, 0.05);
}

.term-tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    width: 250px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 26, 61, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    pointer-events: none;
}

.term-tooltip-trigger::before {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.term-tooltip-trigger:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.term-tooltip-trigger:hover::before {
    opacity: 1;
    visibility: visible;
}