/* =====================================================
   SATHYAJEEVIYAM - GOAT Level Design System
   Premium Insurance & Financial Planning
   Ultra-Premium Glassmorphism Edition
   ===================================================== */

/* Google Fonts Import - Ultra Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* =====================================================
   CSS VARIABLES - Luxury Design Tokens
   ===================================================== */
:root {
    /* Colors - Black & Gold Luxury */
    --color-bg: #000000;
    --color-gold: #D4AF37;
    --color-gold-light: #E5C158;
    --color-gold-dark: #B8960C;
    --color-gold-shimmer: linear-gradient(135deg, #D4AF37 0%, #F5E6A3 25%, #D4AF37 50%, #B8960C 75%, #D4AF37 100%);
    --color-white: #FFFFFF;
    --color-white-soft: #F5F5F5;
    --color-text: #FFFFFF;
    --color-text-muted: #B0B0B0;
    --color-border: rgba(212, 175, 55, 0.25);
    --color-border-glow: rgba(212, 175, 55, 0.5);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-gold: rgba(212, 175, 55, 0.3);
    --glass-blur: 20px;
    --glass-blur-strong: 40px;

    /* Typography - Premium Fonts */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-elegant: 'Cormorant Garamond', Georgia, serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Transitions - Ultra Smooth */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 800ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 600ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows - Lustrous */
    --shadow-gold: 0 0 30px rgba(212, 175, 55, 0.2);
    --shadow-gold-strong: 0 0 60px rgba(212, 175, 55, 0.35);
    --shadow-gold-glow: 0 0 80px rgba(212, 175, 55, 0.4), 0 0 120px rgba(212, 175, 55, 0.2);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.4);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;

    /* Layout */
    --container-max: 1200px;
    --navbar-height: 90px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    :root {
        --space-8: 1rem;
        --space-12: 1.5rem;
        --space-16: 2rem;
        --space-20: 2.5rem;
        --space-24: 3rem;
        --space-32: 4rem;
        --navbar-height: 70px;
    }
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: var(--navbar-height);
}

/* Accessibility: Focus Visible */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
}

/* Skip link (CSS only, HTML updated separately) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-gold);
    color: var(--color-bg);
    padding: var(--space-4);
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* Ultra Smooth Scrolling */
@supports (scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Subtle background texture */
    background-image:
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(212, 175, 55, 0.02) 0%, transparent 50%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-gold-dark), var(--color-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-light);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    min-height: 44px;
    min-width: 44px;
}

ul,
ol {
    list-style: none;
}

/* =====================================================
   TYPOGRAPHY - Premium Fonts
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
    font-weight: 700;
    font-style: italic;
}

h2 {
    font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl));
    scroll-margin-top: var(--navbar-height);
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }
}

h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
}

h4 {
    font-size: var(--text-xl);
    font-family: var(--font-primary);
    font-weight: 600;
}

p {
    color: var(--color-text-muted);
    font-size: var(--text-base);
    line-height: 1.8;
    font-weight: 300;
}

.text-gold {
    color: var(--color-gold);
    background: var(--color-gold-shimmer);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Elegant Text */
.text-elegant {
    font-family: var(--font-elegant);
    font-weight: 400;
    font-style: italic;
}

/* =====================================================
   CONTAINER
   ===================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* =====================================================
   NAVBAR - Glassmorphism
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--glass-blur-strong));
    -webkit-backdrop-filter: blur(var(--glass-blur-strong));
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-slow);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-gold);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
    transition: all var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.02);
}

.navbar-brand span {
    background: var(--color-gold-shimmer);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding: var(--space-3) 0;
    transition: all var(--transition-base);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold-shimmer);
    background-size: 200% auto;
    transition: width var(--transition-base);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-link:hover,
.nav-link.active,
.nav-link:focus {
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.nav-link:hover::before,
.nav-link.active::before,
.nav-link:focus::before {
    width: 100%;
}

/* Touch devices - keep hover state */
@media (hover: none) {
    .nav-link:active {
        color: var(--color-gold);
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }

    .nav-link:active::before {
        width: 100%;
    }
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-2);
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(var(--glass-blur-strong));
        -webkit-backdrop-filter: blur(var(--glass-blur-strong));
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 120px 40px;
        gap: var(--space-8);
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.6s;
        border-right: 1px solid var(--color-border);
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .navbar-nav.open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-nav li {
        width: 100%;
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    }

    .navbar-nav.open li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered Entrance */
    .navbar-nav.open li:nth-child(1) { transition-delay: 0.1s; }
    .navbar-nav.open li:nth-child(2) { transition-delay: 0.2s; }
    .navbar-nav.open li:nth-child(3) { transition-delay: 0.3s; }
    .navbar-nav.open li:nth-child(4) { transition-delay: 0.4s; }

    .nav-link {
        font-size: var(--text-2xl);
        font-family: var(--font-display);
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: none;
        padding: 10px 0;
        display: block;
        width: 100%;
        transition: all var(--transition-base);
    }

    .nav-link:active {
        color: var(--color-gold) !important;
        padding-left: 15px;
    }

    .nav-link::before {
        display: none;
    }
}


/* =====================================================
   BUTTONS - Lustrous with Hover Lock
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-10);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slower);
}

.btn:hover::before,
.btn:focus::before,
.btn:active::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-light) 50%, var(--color-gold) 100%);
    background-size: 200% auto;
    color: var(--color-bg);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-gold-strong);
}

/* Touch devices - maintain hover appearance */
@media (hover: none) {
    .btn-primary:active {
        background-position: right center;
        transform: translateY(-3px) scale(1.02);
        box-shadow: var(--shadow-gold-strong);
    }
}

.btn-outline {
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active {
    color: var(--color-bg);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-gold-strong);
}

.btn-outline:hover::after,
.btn-outline:focus::after,
.btn-outline:active::after {
    opacity: 1;
}

@media (hover: none) {
    .btn-outline:active {
        color: var(--color-bg);
        transform: translateY(-3px) scale(1.02);
        box-shadow: var(--shadow-gold-strong);
    }

    .btn-outline:active::after {
        opacity: 1;
    }
}

.btn-large {
    padding: var(--space-6) var(--space-12);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
}

/* =====================================================
   SECTIONS
   ===================================================== */
section {
    padding: var(--space-24) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    max-width: 650px;
    margin: 0 auto;
    font-size: var(--text-lg);
}

.section-label {
    display: inline-block;
    font-family: var(--font-elegant);
    font-size: var(--text-sm);
    font-weight: 500;
    font-style: italic;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--space-4);
    position: relative;
}

.section-label::before,
.section-label::after {
    content: '—';
    margin: 0 var(--space-3);
    opacity: 0.5;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--navbar-height);
    position: relative;
    overflow: hidden;
}

/* Ambient glow */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 30%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 950px;
    padding: 0 var(--space-6);
}

.hero h1 {
    margin-bottom: var(--space-8);
    text-shadow: 0 0 60px rgba(212, 175, 55, 0.2);
}

.hero p {
    font-size: var(--text-xl);
    max-width: 650px;
    margin: 0 auto var(--space-12);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

/* =====================================================
   GLASSMORPHISM CARDS
   ===================================================== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

/* Lustrous shine effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            rgba(212, 175, 55, 0.1),
            rgba(255, 255, 255, 0.05),
            transparent);
    transition: left var(--transition-slower);
}

.card:hover,
.card:focus-within {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-gold);
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-gold), var(--shadow-lift);
}

.card:hover::before {
    left: 150%;
}

/* Touch devices */
@media (hover: none) {
    .card:active {
        background: var(--glass-bg-hover);
        border-color: var(--glass-border-gold);
        transform: translateY(-8px) scale(1.01);
        box-shadow: var(--shadow-gold), var(--shadow-lift);
    }
}

.card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-5);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-gold);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.card h4 {
    margin-bottom: var(--space-3);
    color: var(--color-white);
    transition: color var(--transition-base);
}

.card:hover h4 {
    color: var(--color-gold);
}

.card p {
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-8);
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

/* =====================================================
   SERVICE CARDS - Glassmorphism Edition
   ===================================================== */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.03),
            rgba(212, 175, 55, 0.08),
            rgba(255, 255, 255, 0.03),
            transparent);
    transition: left var(--transition-slower);
}

.service-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-gold);
    transform: translateY(-6px);
    box-shadow: var(--shadow-gold), var(--shadow-glass);
}

.service-card:hover::before {
    left: 150%;
}

.service-card-number {
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 700;
    font-style: italic;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.05) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-4);
    transition: all var(--transition-base);
}

.service-card:hover .service-card-number {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.service-card h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-5);
    color: var(--color-white);
    transition: color var(--transition-base);
}

.service-card:hover h3 {
    color: var(--color-gold);
}

.service-card p {
    line-height: 1.9;
}

/* =====================================================
   FEATURES / WHY US - Premium Edition
   ===================================================== */
.feature-item {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-10) 0;
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: var(--text-3xl);
    color: var(--color-gold);
    transition: all var(--transition-base);
}

.feature-item:hover .feature-icon {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: var(--shadow-gold);
}

.feature-content h4 {
    margin-bottom: var(--space-3);
    color: var(--color-white);
    font-size: var(--text-xl);
    transition: color var(--transition-base);
}

.feature-item:hover .feature-content h4 {
    color: var(--color-gold);
}

.feature-content p {
    font-size: var(--text-base);
    line-height: 1.8;
}

/* =====================================================
   CONTACT FORM - Glassmorphism Premium
   ===================================================== */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--navbar-height);
    padding-bottom: var(--space-16);
}

.contact-box {
    width: 100%;
    max-width: 750px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur-strong));
    -webkit-backdrop-filter: blur(var(--glass-blur-strong));
    border: 1px solid var(--glass-border-gold);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glass);
}

@media (max-width: 480px) {
    .contact-box {
        padding: var(--space-8) var(--space-6);
        border-radius: var(--radius-xl);
    }

    .service-card {
        padding: var(--space-8);
    }
}

/* Ambient glow behind form */
.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: rotate-glow 20s linear infinite;
}

@keyframes rotate-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative;
    z-index: 1;
}

.contact-header h2 {
    margin-bottom: var(--space-5);
}

.contact-header p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

.form-group {
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-5);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.form-input:hover,
.form-textarea:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1), 0 0 30px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
    font-weight: 300;
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: var(--space-10);
    }
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: var(--space-10);
    position: relative;
    z-index: 1;
}

.form-submit .btn {
    width: 100%;
    max-width: 350px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    padding: var(--space-10) 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
}

.footer p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    font-weight: 300;
}

.footer span {
    background: var(--color-gold-shimmer);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

/* =====================================================
   ANIMATIONS - Ultra Smooth
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 {
    animation-delay: 0.15s;
}

.animate-delay-2 {
    animation-delay: 0.3s;
}

.animate-delay-3 {
    animation-delay: 0.45s;
}

.animate-delay-4 {
    animation-delay: 0.6s;
}

.animate-delay-5 {
    animation-delay: 0.75s;
}

/* Initial hidden state for animated elements */
[data-animate] {
    opacity: 0;
}

/* Fallback if animations are disabled or fail */
@media (prefers-reduced-motion: reduce) {
    [class*="animate-"] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
}

/* Ensure visibility on small screens if Intersection Observer fails */
.no-js [class*="animate-"] {
    opacity: 1;
}

/* =====================================================
   FLOATING PARTICLES (Background Effect)
   ===================================================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mt-16 {
    margin-top: var(--space-16);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-16 {
    margin-bottom: var(--space-16);
}

/* Cursor glow effect for premium feel */
.cursor-glow {
    position: fixed;
    pointer-events: none;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* [REPLACED BY BOTTOM CONSOLIDATION] */


/* =====================================================
   FINAL CONSOLIDATED RESPONSIVE ARCHITECTURE
   ===================================================== */

/* Desktop Mode (Hide Mobile Content) */
@media (min-width: 769px) {
    .services-mobile {
        display: none !important;
    }

    .services-desktop {
        display: block !important;
    }
}

/* Mobile Mode (Complete Remake View) */
@media (max-width: 768px) {

    /* Hide desktop version */
    .services-desktop {
        display: none !important;
    }

    /* Show remade mobile version */
    .services-mobile {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        padding: 10px 15px !important;
        perspective: 1000px !important;
        /* Enable 3D space for children */
    }

    .mobile-service-card {
        background: rgba(18, 18, 18, 0.8) !important;
        /* Glass Base */
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(212, 175, 55, 0.3) !important;
        border-radius: 16px !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        text-decoration: none !important;
        position: relative !important;
        z-index: 10 !important;
        overflow: hidden !important;

        /* Premium Reveal Initial State */
        opacity: 0 !important;
        transform: translateY(40px) rotateX(10deg) !important;
        transition:
            opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important,
            transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) !important,
            background 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important,
            box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important,
            border-color 0.3s ease !important;
    }

    /* Premium Numbers Positioning */
    .mobile-service-number {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        font-family: var(--font-display) !important;
        font-size: 5rem !important;
        font-weight: 900 !important;
        font-style: italic !important;
        color: rgba(212, 175, 55, 0.08) !important;
        z-index: -1 !important;
        pointer-events: none !important;
        transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) !important;
        line-height: 1 !important;
    }

    /* Animation trigger when parent is revealed */
    .services-mobile.animate-fadeInUp .mobile-service-card {
        opacity: 1 !important;
        transform: translateY(0) rotateX(0deg) !important;
    }

    /* Premium Touch Interaction (Elite Polish) */
    .mobile-service-card:active {
        background: rgba(212, 175, 55, 0.12) !important;
        transform: scale(0.97) translateY(-5px) perspective(1000px) rotateX(5deg) !important;
        border-color: rgba(212, 175, 55, 0.8) !important;
        box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2) !important;
    }

    .mobile-service-card:active .mobile-card-icon {
        transform: scale(1.1) rotate(10deg) !important;
        color: #FFFFFF !important;
    }

    .mobile-service-card:active .mobile-service-number {
        transform: scale(1.2) translateX(-10px) !important;
        color: rgba(212, 175, 55, 0.15) !important;
    }

    /* Staggered Delays (Premium Cascade) */
    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(1) {
        transition-delay: 0.1s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(2) {
        transition-delay: 0.2s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(3) {
        transition-delay: 0.3s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(4) {
        transition-delay: 0.4s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(5) {
        transition-delay: 0.5s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(6) {
        transition-delay: 0.6s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(7) {
        transition-delay: 0.7s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(8) {
        transition-delay: 0.8s !important;
    }

    .services-mobile.animate-fadeInUp .mobile-service-card:nth-child(9) {
        transition-delay: 0.9s !important;
    }

    /* Shimmer Border Light */
    .mobile-service-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: -150%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        animation: mobile-shimmer 6s infinite linear;
        pointer-events: none;
    }

    .mobile-card-header {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        margin-bottom: 12px !important;
    }

    .mobile-card-icon {
        font-size: 24px !important;
        color: #D4AF37 !important;
    }

    .mobile-service-card h3 {
        color: #D4AF37 !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    .mobile-service-card p {
        color: #FFFFFF !important;
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        opacity: 0.9 !important;
    }

    .mobile-card-cta {
        margin-top: 15px !important;
        color: #D4AF37 !important;
        font-weight: 600 !important;
        font-size: 0.8rem !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }

    /* Allow animations and reveals to function on mobile */
    #services-preview,
    #services-list,
    .container {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
        padding: 20px 10px !important;
    }
}

/* Base Reveal Persistence (Desktop & Mobile) */
[data-animate].animate-fadeInUp,
[data-reveal].revealed {
    opacity: 1 !important;
    transform: none !important;
}

/* Premium Mobile Keyframes */
@keyframes mobile-shimmer {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}
