:root {
    --primary: #0a192f;
    --primary-light: #172a45;
    --gold: #d4af37;
    /* More metallic gold */
    --gold-light: #f3e5ab;
    --text-dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-strong: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gold {
    color: var(--gold);
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback */
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.highlight-red {
    color: #e74c3c;
    font-weight: 700;
}

.mt-4 {
    margin-top: 2rem;
}

.max-600 {
    max-width: 600px;
}

.flex-center-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: linear-gradient(135deg, #c5a059 0%, #aa771c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #dcc289 0%, #c5a059 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.5);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header.scrolled {
    background: rgba(10, 25, 47, 0.95);
    color: white;
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 90px;
    /* Reduced by 25% from 120px */
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header.scrolled .logo {
    height: 55px;
    /* Reduced by ~25% from 70px */
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a:not(.btn) {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav a:not(.btn):hover {
    color: var(--gold);
}

.nav a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.header.scrolled .bar {
    background-color: white;
}

.menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--text-dark);
    /* Ensure visibility on open menu */
}

.menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--text-dark);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    font-weight: 600;
}

.mobile-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    text-align: center;
    padding-top: 140px;
    /* Added to clear fixed header */
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
    transform: scale(1.1);
    /* Prevent whitespace on scroll */
}

.hero-bg {
    background-image: linear-gradient(rgba(10, 25, 47, 0.6), rgba(10, 25, 47, 0.4)), url('city_bg.png');
    /* Illuminated City Theme */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 25, 47, 0.3) 0%,
            rgba(10, 25, 47, 0.1) 50%,
            rgba(10, 25, 47, 0.8) 100%);
    /* Improved readability */
    z-index: -1;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.urgent-text {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gold-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.7);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 15px rgba(197, 160, 89, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0);
    }
}

/* Section General */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 4rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 20px auto 0;
}

/* Problem Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.text-content p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: var(--primary-light);
    line-height: 1.8;
}

.card {
    padding: 40px;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.card h3 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Solution Section - Dark */
.dark-bg {
    background-color: var(--primary);
    color: white;
}

.scales-bg {
    background-image: url('documents_bg.png');
    /* Signing Documents Theme */
}

.overlay-strong {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.92);
    z-index: -1;
}

.glass-dark {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.glass-dark:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* About & Stats */
.stats-row {
    display: flex;
    gap: 80px;
    justify-content: center;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
}

/* Footer */
.footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050d18;
}

.footer-content {
    text-align: center;
}

.footer-cta h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: white;
}

.footer-cta p {
    margin-bottom: 2.5rem;
    opacity: 0.7;
    font-size: 1.2rem;
    color: white;
}

.footer-info {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    height: 60px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: 0.3s;
}

.footer-logo:hover {
    opacity: 1;
    filter: grayscale(0);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .grid-2 {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 0;
    }

    .logo {
        height: 80px;
        /* Smaller logic for mobile */
    }

    .header.scrolled .logo {
        height: 60px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: flex;
    }

    .header-container {
        padding: 0 15px;
    }

    .nav {
        gap: 15px;
        justify-content: center;
    }

    /* Hero Mobile */
    .hero-content h1 {
        font-size: 2.5rem;
        padding: 0 10px;
    }

    .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Stats Mobile */
    .stats-row {
        flex-direction: column;
        gap: 40px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .card {
        padding: 25px;
    }
}