/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;700;800&family=Syne:wght@700&display=swap');

:root {
    /* Color Palette - Light Mode (White/Blue Theme from Image) */
    --bg-dark: #ffffff;
    --bg-body: #ffffff;
    /* Updated Light Mode Background */
    --bg-card: #ffffff;
    /* Updated Content Box Inner */
    --primary: #673de6;
    /* Purple - primary buttons and accents */
    --primary-hover: #5432B8;
    /* Darker Purple - hover state */
    --secondary: #629BB6;
    /* Slate Blue */
    --accent: #673de6;
    /* Purple */
    --text-main: #1a1a1a;
    /* Very dark gray for excellent readability */
    --text-muted: #2c4a5a;
    /* Dark blue-gray for secondary text */
    --glass-border: rgba(66, 127, 152, 0.3);
    /* Turquoise tinted borders */
    --glass-bg: #ffffff;
    /* Updated Content Box transparency */
    --nav-bg: #B8F60D;
    /* Green navbar - UNCHANGED */
    --blob-opacity: 1;
    --logo-accent: #68a600; /* Darker, more legible green for light mode */

    /* Spacing */
    --nav-height: 80px;
    --container-padding: 48px;
}





/* Logo - Hidden */
/* Brand Logo Styles */
.brand-logo {
    position: fixed;
    top: 25px;
    left: 48px; /* Aligned with container padding */
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px; /* Match navbar height for perfect alignment */
    z-index: 10002;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}


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

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.text-top-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.word-curious {
    color: var(--text-main);
    font-family: 'Campton', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.word-minds {
    color: var(--logo-accent);
    font-family: 'Campton', 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.1rem;
    margin-top: -4px;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    animation: mindsGlow 3s ease-in-out infinite;
}

@keyframes mindsGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 0px var(--logo-accent));
        opacity: 0.9;
    }
    50% { 
        filter: drop-shadow(0 0 8px var(--logo-accent));
        opacity: 1;
    }
}


/* Specific case for MiNDS as in image */
.word-minds span {
    text-transform: lowercase;
    font-size: 1.8rem;
    vertical-align: middle;
    display: inline-block;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) translateY(-1px); }
}


.word-consultancy {
    color: var(--text-main);
    font-family: 'Campton', 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    margin-top: 2px;
    opacity: 0.9;
}

/* Logo Animation Classes (via JS) */
.brand-logo.is-animating {
    transform: scale(1.05);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Campton', 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Campton', 'Outfit', sans-serif;
    color: var(--text-main);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Liquid Glass Theme */
.glass-panel {
    background: rgba(255, 255, 255, 0.5);
    color: #000000;
    backdrop-filter: blur(30px) saturate(180%) brightness(110%);
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 4px 18px 0 rgba(100, 80, 220, 0.08);
    transition: box-shadow 0.1s ease, border-color 0.1s ease, transform 0.08s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* About, Reviews, & Contact Page Specific - Light Mode Overrides */
body.about-page:not(.dark-theme) .glass-panel:not(.navbar),
body.about-page:not(.dark-theme) .box-4,
body.reviews-page:not(.dark-theme) .glass-panel:not(.navbar),
body.contact-page:not(.dark-theme) .glass-panel:not(.navbar),
body.contact-page:not(.dark-theme) .box-4 {
    background: #ffffff !important;
}








/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(66, 127, 152, 0.2);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}

.btn:not(.btn-primary) {
    background: rgba(228, 235, 241, 0.5);
    /* Glacier tint */
    color: var(--text-main);
}

.btn-explore {
    background: rgba(103, 61, 230, 0.05) !important;
    border: 1px solid rgba(103, 61, 230, 0.2) !important;
    color: var(--primary) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-explore:hover {
    transform: scale(1.1) translateY(-2px);
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(103, 61, 230, 0.4), 0 0 15px rgba(103, 61, 230, 0.2);
    border-color: var(--primary) !important;
}

.btn-explore:active {
    transform: scale(0.95);
}



.header-blur-shield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Maintained 100px height */
    z-index: 900; /* Behind navbar and theme toggle */
    pointer-events: none;
    background: rgba(255, 255, 255, 0.05); /* Glassy tint */
    backdrop-filter: blur(80px) saturate(210%) brightness(1.2);
    -webkit-backdrop-filter: blur(80px) saturate(210%) brightness(1.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Light Mode Specific Header Shadow Overlay */
body:not(.dark-theme) .header-blur-shield {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    opacity: 1;
    height: 120px; /* Slightly deeper shadow for better visibility */
}

/* Navigation & Hamburger */
/* Navigation & Hamburger */
.header-wrapper {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 9999;
    max-width: 95%;
}

.navbar {
    position: relative;
    width: max-content;
    height: 64px;
    padding: 12px 40px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(200%);
    -webkit-backdrop-filter: blur(10px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Campton', 'Outfit', sans-serif;
}

/* Light Mode Navbar Contrast */
body:not(.dark-theme) .navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.navbar.is-shrunk {
    max-width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    border: none;
}



.nav-controls {
    order: 2;
    display: none !important;
}

.nav-menu-container {
    display: flex;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu-container.is-contracted {
    width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
    overflow: hidden;
}

.nav-links {
    order: 1;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
    white-space: nowrap;
}

.nav-search-container {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Search Box - Perfect Circle matching navbar height */
.nav-search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px) saturate(200%);
    -webkit-backdrop-filter: blur(10px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
}

body:not(.dark-theme) .nav-search-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.04);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.nav-search-box:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

body.dark-theme .nav-search-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.nav-search-box.is-expanded {
    width: 450px;
    border-radius: 100px;
    padding: 0 25px;
    justify-content: flex-start;
    border-color: var(--primary);
}

body:not(.dark-theme) .nav-search-box.is-expanded {
    box-shadow: none;
}

.search-icon-main {
    font-size: 1.5rem;
    color: var(--text-main);
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.nav-search-input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    width: 0;
    padding: 0;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    position: absolute;
    border-radius: 0 !important;
}

.nav-search-input:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.nav-search-box.is-expanded .nav-search-input {
    opacity: 1;
    pointer-events: auto;
    width: 100%;
    padding: 0;
    margin-left: 15px;
    margin-right: 40px; /* Space for clear button */
    position: relative;
}

.nav-search-box.is-expanded .search-icon-main {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
}

.search-clear-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    z-index: 5;
}

body.dark-theme .search-clear-btn {
    background: rgba(255, 255, 255, 0.1);
}

.search-clear-btn.is-visible {
    display: flex; /* Show when visible */
    opacity: 0.6;
    pointer-events: auto;
}

.search-clear-btn:hover {
    opacity: 1;
    background: var(--primary);
    color: #ffffff;
}

.nav-link {
    color: var(--text-main);
    /* Changed from rgba(255,255,255,0.9) */
    font-weight: 500;
    padding: 10px 22px; /* Increased from 8px 16px */
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1.05rem; /* Increased from 0.95rem */
    font-family: 'Campton', 'Outfit', sans-serif;
    white-space: nowrap;
    border: 1px solid transparent;
    /* Visible text on desktop */
}

.nav-link i {
    font-size: 1.25rem; /* Increased from 1.1rem */
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    background: rgba(103, 61, 230, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

@keyframes menuPop {
    0% {
        transform: scale(0.85);
        box-shadow: 0 0 0 rgba(103, 61, 230, 0);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 15px 35px rgba(103, 61, 230, 0.7), inset 0 2px 10px rgba(103, 61, 230, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(103, 61, 230, 0.4), inset 0 2px 8px rgba(103, 61, 230, 0.2);
    }
}

.nav-link:active {
    transform: scale(0.92);
}



/* Theme Toggle Button Fix */
.theme-toggle-btn {
    width: 64px !important;
    height: 64px !important;
    background: rgba(103, 61, 230, 0.08) !important;
    border: 1px solid rgba(103, 61, 230, 0.25) !important;
    border-radius: 50% !important;
    color: var(--text-main) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease !important;
    box-shadow: 0 0 15px rgba(103, 61, 230, 0.15), inset 0 0 10px rgba(103, 61, 230, 0.05) !important;
    position: fixed;
    top: 25px;
    right: 48px; /* Aligned with container padding */
    z-index: 10002;
    overflow: hidden;
}

body.modal-open .theme-toggle-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-10px) scale(0.9) !important;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.08) !important;
    background: rgba(103, 61, 230, 0.15) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 5px 20px rgba(103, 61, 230, 0.35), inset 0 0 15px rgba(103, 61, 230, 0.15) !important;
}

.theme-toggle-btn:active {
    transform: scale(0.92) !important;
}

.theme-toggle-btn i {
    font-size: 1.25rem !important;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), filter 0.3s ease !important;
    z-index: 2;
}

.theme-toggle-btn:hover i {
    filter: drop-shadow(0 0 8px var(--primary));
}

/* Glowing background effect on hover */
.theme-toggle-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
    z-index: 1;
}

.theme-toggle-btn:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.25;
}

/* Hamburger Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 10001;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}



/* Responsive Styles */


/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(228, 235, 241, 0.4);
    /* Glacier tint */
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(66, 127, 152, 0.15);
}





textarea {
    resize: vertical;
    min-height: 120px;
}

/* Background images removed - using solid colors only */

/* Animations */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Box 4 - Special Styling for Both Themes */
.box-4 {
    background: #e6e8ff !important;
    /* Updated Content background */
    color: #000000 !important;
    /* Dark text for contrast */
    border: 1px solid rgba(66, 127, 152, 0.4);
}

.box-4 h3 {
    color: #000000 !important;
    /* Dark text - clearly visible */
}

.box-4 p {
    color: #000000 !important;
    /* Dark blue-gray - clearly visible */
}

.box-4:hover {
    box-shadow: 0 15px 40px rgba(66, 127, 152, 0.4);
    /* Turquoise shadow */
    border-color: var(--primary);
}



/* --- New Layout Utilities --- */

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--nav-height) + 160px);
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.hero-buttons {
    justify-content: center;
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Cards */
.glass-card {
    background: var(--bg-card);
    color: #000000;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
    height: 100%;
    /* Equal height in grid */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: rotate(45deg) translateY(100%);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 10;
}

.glass-card:hover::after {
    transform: rotate(45deg) translateY(-100%);
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 40px rgba(66, 127, 152, 0.35);
    /* Turquoise shadow */
    border-color: var(--primary);
}

/* Infinity Growing Line Effect */
.infinity-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), var(--primary), transparent);
    background-size: 200% 100%;
    animation: infinityLineGrow 3s linear infinite;
    z-index: 10;
}

@keyframes infinityLineGrow {
    0% {
        background-position: 100% 0;
    }

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






.glass-card i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.glass-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.glass-card p {
    color: inherit;
    line-height: 1.6;
}

/* Special Button Style for transparency */
.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Gradient Text Helper */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

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

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

.dark-icon {
    color: var(--text-main) !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: currentcolor !important;
}

/* Brand Color Typography */
.text-brand {
    color: #B8F60D !important;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

/* Infinite Horizontal Scroll Animation */
.scroll-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.scroll-wrapper {
    display: flex;
    width: max-content;
    animation: infiniteScroll 40s linear infinite;
    will-change: transform;
}

/* Removed hover pause - animation should never stop */

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.scroll-item {
    flex-shrink: 0;
    width: 280px;
    margin: 0 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.scroll-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(66, 127, 152, 0.35);
    /* Turquoise shadow */
}

/* Responsive adjustments for scroll items */


/* ========================================
   SERVICE MODAL STYLES — POPUP WITH ANIMATIONS
   ======================================== */

/* ── Keyframes ── */
@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalBackdropOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalPanelIn {
    0% {
        opacity: 0;
        transform: scale(0.88) translateY(32px);
    }

    60% {
        opacity: 1;
        transform: scale(1.015) translateY(-4px);
    }

    80% {
        transform: scale(0.995) translateY(1px);
    }

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

@keyframes modalPanelOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

@keyframes modalContentFade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

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

/* ── Wrapper: full-screen backdrop ── */
.service-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    /* toggled to flex by JS */
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.service-modal.is-opening,
.service-modal.is-open {
    display: flex;
}

.read-more-btn {
    margin-top: 1rem;
    width: 100%;
}

/* ── Blurred backdrop overlay ── */
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 30, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    /* animation driven by JS-added classes */
}

.service-modal.is-opening .modal-overlay {
    animation: modalBackdropIn 0.35s ease forwards;
}

.service-modal.is-closing .modal-overlay {
    animation: modalBackdropOut 0.3s ease forwards;
}

/* ── Popup panel ── */
.modal-content {
    position: relative;
    width: 100%;
    max-width: 820px;
    max-height: 88vh;
    /* overflow MUST be hidden here so the scrollbar is clipped by border-radius */
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(103, 61, 230, 0.3);
    border-radius: 24px;
    box-shadow:
        0 0 0 2px rgba(103, 61, 230, 0.25),
        0 15px 45px rgba(0, 0, 0, 0.15),
        0 35px 90px rgba(80, 40, 200, 0.3);
    z-index: 10001;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

/* Inner scroll wrapper — actual scroll happens here, fully clipped by parent */
.modal-inner-scroll {
    overflow-y: auto;
    flex: 1;
    max-height: 88vh;
}

.service-modal.is-opening .modal-content {
    animation: modalPanelIn 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.service-modal.is-closing .modal-content {
    animation: modalPanelOut 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

/* Staggered inner content reveal */
.service-modal.is-opening .modal-header {
    animation: modalContentFade 0.45s ease 0.25s both;
}

.service-modal.is-opening .modal-section:nth-child(1) {
    animation: modalContentFade 0.45s ease 0.32s both;
}

.service-modal.is-opening .modal-section:nth-child(2) {
    animation: modalContentFade 0.45s ease 0.40s both;
}

.service-modal.is-opening .modal-section:nth-child(3) {
    animation: modalContentFade 0.45s ease 0.48s both;
}

.service-modal.is-opening .modal-cta {
    animation: modalContentFade 0.45s ease 0.54s both;
}

.service-modal.is-opening .benefit-item:nth-child(1) {
    animation: modalContentFade 0.4s ease 0.52s both;
}

.service-modal.is-opening .benefit-item:nth-child(2) {
    animation: modalContentFade 0.4s ease 0.58s both;
}

.service-modal.is-opening .benefit-item:nth-child(3) {
    animation: modalContentFade 0.4s ease 0.64s both;
}

.service-modal.is-opening .benefit-item:nth-child(4) {
    animation: modalContentFade 0.4s ease 0.70s both;
}

/* Custom Scrollbar — applied on the inner scroll wrapper */
.modal-inner-scroll::-webkit-scrollbar {
    width: 5px;
}

.modal-inner-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.modal-inner-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
    opacity: 0.6;
}

.modal-inner-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ── Close Button ── */
.modal-close {
    position: sticky;
    top: 1.25rem;
    float: right;
    margin: 1.25rem 1.25rem 0 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(103, 61, 230, 0.08);
    border: 1px solid rgba(103, 61, 230, 0.22);
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease, transform 0.15s ease;
    z-index: 10002;
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

/* ── Modal Header ── */
.modal-header {
    text-align: center;
    padding: 2rem 2.5rem 1.75rem;
    border-bottom: 1px solid rgba(103, 61, 230, 0.12);
}

.modal-header i {
    font-size: 3.2rem;
    margin-bottom: 0.9rem;
    display: block;
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Modal Body ── */
.modal-body {
    padding: 2rem 2.5rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-section h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 4px;
    flex-shrink: 0;
}

.modal-section p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-main);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.6rem 1.2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.97rem;
    line-height: 1.6;
    padding: 0.4rem 0;
}

.feature-list i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* ── Infinity Marquee for Benefit Boxes ── */
@keyframes benefitsMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Outer container: clips the scrolling track */
.benefits-grid {
    overflow: hidden;
    position: relative;
    margin-top: 1rem;
    /* Fade edges for a premium look */
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
    mask-image: linear-gradient(to right,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
}

/* Inner track: flex row, duplicated items for seamless loop */
.benefits-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: benefitsMarquee 14s linear infinite;
}

/* Pause on hover */
.benefits-grid:hover .benefits-track {
    animation-play-state: paused;
}

.benefit-item {
    flex-shrink: 0;
    width: 172px;
    text-align: center;
    padding: 1.25rem 1rem;
    background: linear-gradient(135deg, rgba(103, 61, 230, 0.05), rgba(98, 155, 182, 0.07));
    border: 1px solid rgba(103, 61, 230, 0.14);
    border-radius: 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    cursor: default;
}

.benefit-item:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 10px 28px rgba(103, 61, 230, 0.22);
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(103, 61, 230, 0.10), rgba(98, 155, 182, 0.12));
}

.benefit-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
    transition: transform 0.15s ease;
}

.benefit-item:hover i {
    transform: scale(1.2) rotate(-5deg);
}

.benefit-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    font-weight: 600;
}

.benefit-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Modal CTA */
.modal-cta {
    text-align: center;
    margin-top: 2rem;
    padding: 1.75rem 0 0.5rem;
    border-top: 1px solid rgba(103, 61, 230, 0.12);
}

/* Responsive popup */


@keyframes modalSheetIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

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

@keyframes modalSheetOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* ========================================
   SERVICES PAGE — FULL SCREEN LAYOUT + ANIMATIONS
   ======================================== */

/* Services section uses full viewport width */
.services-section {
    padding-top: 130px;
    padding-bottom: 5rem;
    width: 100%;
}

.services-section .container {
    max-width: 1400px;
    padding: 0 3rem;
}

/* Services grid — fills full screen, 3 columns on large, 2 on medium, 1 on mobile */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}





/* ── Scroll-in entrance animation ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.97);
    }

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

.service-card-clickable {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    /* JS will add .show class via IntersectionObserver */
    position: relative;
    overflow: hidden;
    transition:
        box-shadow 0s,
        border-color 0s,
        transform 0.06s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered delay per card (1-9) */
.service-card-clickable:nth-child(1) {
    transition-delay: 0.05s;
}

.service-card-clickable:nth-child(2) {
    transition-delay: 0.12s;
}

.service-card-clickable:nth-child(3) {
    transition-delay: 0.19s;
}

.service-card-clickable:nth-child(4) {
    transition-delay: 0.26s;
}

.service-card-clickable:nth-child(5) {
    transition-delay: 0.33s;
}

.service-card-clickable:nth-child(6) {
    transition-delay: 0.40s;
}

.service-card-clickable:nth-child(7) {
    transition-delay: 0.47s;
}

.service-card-clickable:nth-child(8) {
    transition-delay: 0.54s;
}

.service-card-clickable:nth-child(9) {
    transition-delay: 0.61s;
}

/* When IntersectionObserver adds .show */
.service-card-clickable.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* ── Shimmer crossover on hover ── */
.service-card-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.55) 50%,
            transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.12s ease-out;
    pointer-events: none;
    z-index: 1;
}

.service-card-clickable:hover::before {
    left: 150%;
}

/* ── Creative Icon Styles & Animations ── */
@keyframes continuousFloat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.service-card-clickable i.dark-icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    /* Modern squircle */
    background: linear-gradient(135deg, rgba(103, 61, 230, 0.08), rgba(98, 155, 182, 0.15)) !important;
    color: var(--primary) !important;
    -webkit-text-fill-color: var(--primary) !important;
    font-size: 2rem !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04), inset 0 2px 5px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(103, 61, 230, 0.15);
    transition: all 0s !important;
    /* Instant transition */
    animation: continuousFloat 3s ease-in-out infinite;
}

/* ── Instant Glow on Hover ── */
@keyframes iconShake {
    0% {
        transform: scale(1.1) translateY(-5px) rotate(-3deg);
    }

    100% {
        transform: scale(1.1) translateY(-5px) rotate(3deg);
    }
}

.service-card-clickable:hover i.dark-icon {
    background: linear-gradient(135deg, var(--primary), #8a63e8) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow:
        0 0 25px 6px rgba(103, 61, 230, 0.5),
        inset 0 0 12px rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    animation: iconShake 0.35s ease-in-out infinite alternate !important;
}

/* ── Card lift + neon glow on hover ── */
.service-card-clickable:hover {
    transform: translateY(-12px) scale(1.025);
    border-color: rgba(103, 61, 230, 0.6);
    box-shadow:
        0 0 0 1px rgba(103, 61, 230, 0.3),
        0 0 20px 5px rgba(103, 61, 230, 0.25),
        0 0 45px 12px rgba(80, 40, 200, 0.12),
        0 20px 45px rgba(100, 60, 220, 0.22);
}

/* ── Click pop ── */
@keyframes cardPop {
    0% {
        transform: translateY(-12px) scale(1.025);
    }

    35% {
        transform: translateY(-4px) scale(1.07);
    }

    65% {
        transform: translateY(-8px) scale(0.97);
    }

    85% {
        transform: translateY(-10px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.service-card-clickable:active {
    animation: cardPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-color: rgba(80, 200, 255, 0.8);
    box-shadow:
        0 0 0 2px rgba(80, 200, 255, 0.5),
        0 0 24px 6px rgba(80, 200, 255, 0.35),
        0 0 55px 15px rgba(60, 160, 255, 0.18);
}

/* ── Read More button animate on hover ── */
.service-card-clickable .read-more-btn {
    transition: background 0.15s ease, transform 0.15s ease, letter-spacing 0.15s ease;
    position: relative;
    z-index: 2;
}

.service-card-clickable:hover .read-more-btn {
    transform: translateY(-2px);
    letter-spacing: 0.5px;
}

.learn-more-hint {
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.15s ease;
}

.service-card-clickable:hover .learn-more-hint {
    transform: translateX(5px);
}

/* Responsive Modal Styles */


/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* --- Microsoft-style Tips and Tricks Card Content --- */

.card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-card);
    /* Using updated card background */
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}



.block-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.block-feature--xs {
    font-size: 0.9rem;
}

.block-feature__badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge--size-s .ocr-icon {
    width: 24px;
    height: 24px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ocr-img img {
    width: 100%;
    height: auto;
    display: block;
}

.block-feature__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex-grow: 1;
}

.block-feature__title h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.block-feature__paragraph {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.block-slim {
    margin-top: 8px;
    width: 100%;
}

.action.d-contents {
    display: contents;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.9rem;
}

.link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.btn--icon-only.btn--sm {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(66, 127, 152, 0.1);
}

.glyph-prepend::before {
    content: "\f04b";
    /* FontAwesome Play Icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.8rem;
}



/* Curious Minds Consultancy Card - Light Mode Only */
.consultancy-card {
    background: #E6E9EF;
    /* Light mode background */
    box-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.6),
        -20px -20px 40px #FFFFFF,
        20px 20px 40px #D3DBE6;
    border: none;
    /* Remove default border if needed or keep for consistency? Assuming remove based on pure neumorphism */
}

/* Ensure text color is correct for light mode */
.consultancy-card h3,
.consultancy-card p {
    color: var(--text-main);
}

.consultancy-card h3 {
    color: #1a1a1a;
}

.consultancy-card p {
    color: #2c4a5a;
}

/* Dark Mode Override - Reset to Glass Panel defaults or keep specific if needed */
/* The user said "css is given only for light mode", so we let dark mode inherit .glass-panel styles */
/* However, we need to unset the specific light mode properties in dark mode so it doesn't look broken */

/* ========================================
   CONTACT FORM UPGRADE STYLES
   ======================================== */

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Custom Select Dropdown */
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(228, 235, 241, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23673de6' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(66, 127, 152, 0.15);
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-main);
}

.checkbox-item:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin: 0;
    cursor: pointer;
    padding: 0;
    /* Reset default padding */
    border-radius: 4px;
}

/* Responsive adjustments */


/* ========================================
   COMPACT FORM LAYOUT STYLES
   ======================================== */

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* Compact Grid Override */
.checkbox-grid.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.checkbox-grid.compact-grid .checkbox-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

/* Mobile Responsive for Rows */


/* ========================================
   SUCCESS MODAL (CONTACT PAGE)
   ======================================== */
.success-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.success-modal.is-open {
    display: flex;
}

.success-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 30, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    animation: modalBackdropIn 0.35s ease forwards;
}

.success-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border: 1px solid rgba(103, 61, 230, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow:
        0 0 0 2px rgba(103, 61, 230, 0.25),
        0 15px 45px rgba(0, 0, 0, 0.15),
        0 35px 90px rgba(80, 40, 200, 0.3);
    animation: modalPanelIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    z-index: 1;
}

.success-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(103, 61, 230, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: successIconPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.success-modal-content h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.success-modal-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.2);
    }

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

/* Submit Button Hover Animation */
.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(103, 61, 230, 0.3);
}

.submit-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 5px 10px rgba(103, 61, 230, 0.2);
}

/* ========================================
   MODERN FOOTER
   ======================================== */
.modern-footer {
    background: linear-gradient(to bottom right, #0f172a, #1e293b);
    color: #e2e8f0;
    padding: 0;
    /* Handled by container padding for tighter control */
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-footer .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
    gap: 48px;
    align-items: flex-start;
    /* Ensure all columns start on the same horizontal baseline */
    padding-bottom: 3rem;
}

.footer-brand h2 {
    color: #ffffff;
    font-size: 1.8rem;
    /* Slightly reduced for better balance */
    margin-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    font-style: italic;
}

.footer-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 30px;
}

.modern-footer h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-top: 0;
    /* Force exact Y-axis alignment */
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.footer-links ul,
.footer-contact ul,
.footer-focus ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li,
.footer-focus li {
    margin-bottom: 14px;
    /* Tightened link spacing */
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact a {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact i {
    width: 16px;
    margin-top: 4px;
    color: var(--secondary);
}

.footer-bottom {
    background: #0b1120;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: #64748b;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}





/* Profile Icon Pop Animation */
.profile-icon-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-icon {
    font-size: 4rem;
    color: var(--primary);
    background: rgba(103, 61, 230, 0.1);
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(103, 61, 230, 0.2);
}

.animate-pop {
    animation: profilePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: scale(0);
}

@keyframes profilePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    80% {
        transform: scale(0.95);
    }

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

/* Custom Button Pulse Animation */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(103, 61, 230, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(103, 61, 230, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(103, 61, 230, 0);
    }
}

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

/* Contact form hover pop effect */
.contact-page .glass-panel:not(.navbar) {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
}

.contact-page .glass-panel:not(.navbar):hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(66, 127, 152, 0.25);
}

/* --- Footer Responsive Refinement --- */
@media (max-width: 992px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .modern-footer .container {
        padding: 60px 2rem;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-brand h2 {
        font-size: 1.6rem;
    }

    .footer-btn {
        width: 100%;
    }
}