:root {
    /* Option 3: Editorial Professional Palette */
    --color-primary: #C5A059;
    /* Warm Gold */
    --color-primary-dark: #A67C37;
    --color-secondary: #1B263B;
    /* Deep Navy */
    --color-accent: #E0E1DD;

    /* Premium Dark Theme */
    --color-dark: #0D1B2A;
    --color-bg-light: #1B263B;
    --color-card-bg: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(197, 160, 89, 0.2);

    /* Text Hierarchy */
    --color-text-dark: #FFFFFF;
    --color-text-light: #B0B0B0;
    --color-white: #FFFFFF;
    --color-border: rgba(197, 160, 89, 0.1);

    /* Typography - Sophisticated Pair */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* UI Elements - Refined Depth */
    --border-radius: 8px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(197, 160, 89, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass-blur: blur(10px);

    /* Reveal Animation Utility */
    --reveal-duration: 0.8s;
    --reveal-timing: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes gold-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.shimmer-text {
    background: linear-gradient(90deg, #A67C37 0%, #C5A059 50%, #A67C37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 6s linear infinite;
}

/* Editorial Typography */
.drop-cap::first-letter {
    float: left;
    font-size: 5.5rem;
    line-height: 0.8;
    padding-top: 0.1rem;
    padding-right: 0.75rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

.pull-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    color: var(--color-primary);
    border-left: 2px solid var(--color-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    line-height: 1.4;
}

/* Reveal Utilities */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--reveal-duration) var(--reveal-timing),
        transform var(--reveal-duration) var(--reveal-timing);
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    font-family: var(--font-body);
}

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

.btn-primary:hover {
    background: linear-gradient(90deg, var(--color-primary-dark) 0%, #e5c07b 50%, var(--color-primary-dark) 100%);
    background-size: 200% auto;
    animation: gold-shimmer 2s linear infinite;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    background-color: rgba(197, 160, 89, 0.05);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-premium {
    background: linear-gradient(135deg, var(--primary-color), #f39c12);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.5);
    color: white;
}

.btn-premium i {
    font-size: 0.9rem;
}

.control-plane-card .project-placeholder {
    background: linear-gradient(135deg, #1a1a1a, #2c3e50);
    color: var(--primary-color);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 27, 42, 0.95);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

/* Remove left padding from header container to align logo to left edge */
.main-header .container {
    padding-left: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 0;
    /* Remove left padding to align logo to edge */
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

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

.logo-icon-svg {
    filter: drop-shadow(0 0 5px rgba(197, 160, 89, 0.3));
}

.logo-text {
    display: flex;
    align-items: baseline;
    line-height: 1;
}

.logo-nextgen {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.logo-novus {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--color-primary);
    margin-left: 2px;
}

.logo-ai {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-left: 1px;
    opacity: 0.7;
}

@keyframes shimmer-pulse {

    0%,
    100% {
        opacity: 1;
        r: 3;
    }

    50% {
        opacity: 0.5;
        r: 4;
    }
}

.shimmer-dot {
    animation: shimmer-pulse 3s infinite ease-in-out;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
    white-space: nowrap;
}

.nav-links a {
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 0.75rem;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-white);
    cursor: pointer;
    z-index: 1001;
    /* Ensure it stays above everything */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    background: var(--color-dark);
    overflow: hidden;
    margin-top: 0;
}

.hero-pulse {
    color: var(--color-primary) !important;
    font-weight: 700;
    animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 242, 254, 0.6);
    }
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}

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

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay with slight tech blue tint */
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
    /* Crucial: allow clicks through to hero-content if layout is shifted */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.neural-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--color-primary-dark) 1px, transparent 1px),
        radial-gradient(var(--color-secondary-dark) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--color-text-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 650px;
    color: var(--color-text-dark);
}

.hero-cta-group {
    display: flex;
    gap: var(--spacing-sm);
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--spacing-lg) 0;
    /* Reduced from XL to LG for compactness */
}

.bg-light {
    background-color: var(--color-bg-light);
    /* Dark Grey */
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--color-card-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), var(--shadow-glow);
    background: rgba(255, 255, 255, 0.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    opacity: 0.5;
    pointer-events: none;
}

.icon-wrapper {
    width: 45px;
    /* Reduced from 60px */
    height: 45px;
    background-color: rgba(255, 107, 0, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    transition: var(--transition);
}

.service-card:hover .icon-wrapper {
    background: var(--gradient-primary);
    color: var(--color-dark);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.learn-more {
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more:hover {
    color: var(--color-primary);
    gap: 0.8rem;
}

/* About Section */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-visual-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    /* Reduced from 400px for compactness */
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
    display: block;
    margin: 0 auto;
}

.about-visual-img:hover {
    transform: scale(1.02);
    border-color: var(--color-primary);
}

.sub-heading {
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-xs);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.feature-list i {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    /* Slightly reduced gap */
}

.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    width: 60%;
    margin: 4rem auto;
    opacity: 0.3;
}

.project-card {
    background-color: var(--color-card-bg);
    border-radius: 4px;
    /* Slightly sharper */
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.project-card:hover::after {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background-color: #222;
    background-image: linear-gradient(45deg, #1a1a1a, #2a2a2a);
}

.project-overlay {
    background-color: rgba(10, 10, 10, 0.85);
    /* Darker overlay */
}

.project-content {
    padding: var(--spacing-md);
}

.project-category {
    font-size: 0.8rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.project-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.project-stats {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat .label {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact-item i {
    color: var(--color-primary);
    background: rgba(255, 107, 0, 0.1);
    padding: 10px;
    border-radius: 50%;
}

.contact-item h5 {
    color: var(--color-white);
}

.contact-form-container {
    background-color: var(--color-card-bg);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

.form-control {
    width: 100%;
    padding: 12px;
    background-color: #000;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-white);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.form-control::placeholder {
    color: #555;
}

/* Footer */
footer {
    background-color: #000;
    border-top: 1px solid #222;
    color: var(--color-text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.social-links a:hover {
    color: var(--color-primary) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-light);
        padding: var(--spacing-xl) var(--spacing-md);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        animation: slideIn 0.3s ease forwards;
    }

    @keyframes slideIn {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}