/* Global Styles */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --background-dark: #0a0e17;
    --background-darker: #050811;
    --card-bg: #131c2e;
    --card-border: #1e2a4a;
    --text-light: #ffffff;
    --text-gray: #a0aec0;
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --accent-purple: #9b59b6;
    --accent-orange: #e67e22;
    --gradient-primary: linear-gradient(135deg, #007bff, #00c6ff);
    --gradient-secondary: linear-gradient(135deg, #1e3c72, #2a5298);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Import Material Symbols font */
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    /* Remove default background color to see spline */
    background-color: transparent;
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    /* Flex column for sticky footer */
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(30, 42, 74, 0.5);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: var(--box-shadow);
    background-color: rgba(5, 8, 17, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1px;
}

/* Desktop Nav Styles */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.desktop-nav ul li a:hover {
    color: var(--text-light);
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

/* Desktop Nav Button (Contact) */
.desktop-nav ul li a.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-blue);
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--accent-blue);
    transition: all 0.3s ease;
}

.desktop-nav ul li a.btn-primary:hover {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.desktop-nav ul li a.btn-primary::after {
    display: none;
    /* No underline for button */
}

/* Main CTA Button Styles */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--card-border);
    transition: var(--transition);
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: 10px;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--card-border);
}

.dropdown-content a {
    color: var(--text-gray);
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border-bottom: 1px solid rgba(30, 42, 74, 0.3);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
}

.dropbtn::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    vertical-align: middle;
}

/* Hero Section */
.hero {
    /* Add top padding to account for fixed header */
    padding: 200px 0 100px;
    background-color: transparent;
    /* Transparent to show spline */
    position: relative;
    overflow: hidden;
    display: flex;
    /* Flex layout */
    align-items: center;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon {
    font-size: 200px;
    /* Large Icon */
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 30px rgba(0, 123, 255, 0.5));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

.spline-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    /* Hide overflow for logo crop */
}

.spline-background iframe {
    width: 100%;
    height: 120%;
    /* Increase height to push logo off-screen */
    /* Adjust position to crop bottom */
    position: absolute;
    top: -10%;
    left: 0;
    border: none;
}

/* Semi-transparent overlay to make text readable everywhere */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.7);
    /* Dark overlay */
    z-index: -5;
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
    /* Ensure content is above everything */
}

.hero-content {
    flex: 1;
    animation: fadeInUp 1s ease;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Orbitron', sans-serif;
}

.hero-content h2 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease;
}

.main-logo {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    /* Rounded corners */
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: rgba(5, 8, 17, 0.6);
    /* Semi-transparent */
    backdrop-filter: blur(5px);
    position: relative;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-family: 'Orbitron', sans-serif;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    font-family: 'Orbitron', sans-serif;
}

.stat-item p {
    color: var(--text-gray);
    margin: 0;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: rgba(10, 14, 23, 0.6);
    /* Semi-transparent */
    backdrop-filter: blur(5px);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-family: 'Orbitron', sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(52, 152, 219, 0.1));
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--accent-blue);
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
}



/* Contact Section */
.contact {
    padding: 100px 0;
    background: rgba(10, 14, 23, 0.6);
    /* Semi-transparent */
    backdrop-filter: blur(5px);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-family: 'Orbitron', sans-serif;
}

.contact-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-purple);
}

.contact-item .material-symbols-outlined {
    font-size: 2.5rem;
    color: var(--accent-purple);
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.contact-item p {
    margin: 0;
    color: var(--text-gray);
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--card-border);
    box-shadow: var(--box-shadow);
}

.contact-form p {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Privacy Policy Section */
.privacy-policy {
    padding: 180px 0 100px;
    background-color: var(--background-dark);
}

.privacy-policy h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.last-updated {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 50px;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
}

.privacy-section h3 {
    font-size: 1.4rem;
    margin: 20px 0 10px;
    color: var(--text-light);
}

.privacy-section p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.privacy-section ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.privacy-section li {
    margin-bottom: 10px;
    color: var(--text-gray);
    line-height: 1.7;
}

.privacy-section a {
    color: var(--accent-blue);
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: rgba(5, 8, 17, 0.9);
    /* More opaque for footer */
    padding: 50px 0 20px;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-light);
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
}

/* 404 Page Specific Styles */
.hero h2 .highlight {
    font-size: 4rem;
}

.error-section {
    text-align: center;
    padding: 50px 0;
}

.error-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.error-section p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Glowing effect for interactive elements */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-content,
    .tony-content,
    .contact-content {
        flex-direction: column;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive Spline Background */
@media (max-width: 768px) {
    .spline-background iframe {
        height: 130%;
        /* Taller on mobile to ensure crop */
        top: -15%;
        /* Scale up content to make it more visible on small screens */
        transform: scale(1.2);
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    /* Above header */
    padding: 10px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(15px);
    z-index: 2000;
    /* Top most */
    transition: var(--transition);
    display: flex;
    justify-content: flex-end;
    /* Menu panel on right */
}

/* When active, slide in */
.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-container {
    width: 80%;
    max-width: 400px;
    height: 100%;
    background: var(--card-bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid var(--card-border);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.mobile-menu-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.close-menu-btn:hover {
    color: var(--accent-blue);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.mobile-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent-blue);
    padding-left: 10px;
}

.btn-primary-mobile {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
}

.btn-primary-mobile:hover {
    color: white;
    /* Keep white */
    padding-left: 20px !important;
    /* Override hover padding */
    transform: translateY(-3px);
}

/* Mobile Dropdown (Accordion) */
.mobile-dropdown-item {
    cursor: pointer;
}

.mobile-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}

.mobile-dropdown-content {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
    /* Hidden by default */
    border-left: 2px solid var(--accent-blue);
}

.mobile-dropdown-content.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.mobile-dropdown-content li a {
    font-size: 1rem;
    color: var(--text-gray);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        /* Override default gap */
    }

    .desktop-nav {
        display: none;
        /* Hide desktop nav */
    }

    .mobile-menu-btn {
        display: block;
        /* Show burger */
    }


    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

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

    .dropdown-content {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        margin-top: 10px;
        width: 100%;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .services,
    .about,
    .tony-stark,
    .contact,
    .privacy-policy {
        padding: 60px 0;
    }

    .services h2,
    .about h2,
    .tony-stark h2,
    .contact h2,
    .privacy-policy h1 {
        font-size: 2rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .tech-item {
        width: 100px;
        height: 100px;
    }
}

/* LGS Page Specific Styles */
.lgs-hero {
    padding: 180px 0 80px;
    background: radial-gradient(circle at top right, rgba(0, 123, 255, 0.1) 0%, rgba(10, 14, 23, 1) 70%);
}

.lgs-hero .hero-image img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.lgs-features {
    padding: 100px 0;
    background-color: #0d1117;
}

.lgs-features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.lgs-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.lgs-features .feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: var(--box-shadow);
}

.lgs-features .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lgs-features .feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.lgs-features .feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.lgs-features .feature-card p {
    color: var(--text-gray);
}

.lgs-subjects {
    padding: 100px 0;
    background-color: var(--background-dark);
}

.lgs-subjects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.lgs-subjects .subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.lgs-subjects .subject-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    transition: transform 0.3s ease;
    border: 1px solid var(--card-border);
    box-shadow: var(--box-shadow);
}

.lgs-subjects .subject-card:hover {
    transform: scale(1.05);
}

.lgs-subjects .subject-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-blue);
}

.lgs-subjects .subject-card p {
    color: var(--text-gray);
}

.lgs-download {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(19, 91, 236, 0.2) 0%, rgba(16, 22, 34, 1) 100%);
    text-align: center;
}

.lgs-download h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.lgs-download p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lgs-download .btn-large {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Error Section (404) */
.error-section {
    flex: 1;
    /* Take remaining vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    /* Account for fixed header */
    padding-bottom: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.error-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.error-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    /* Slightly smaller for better fit */
    margin-bottom: 20px;
    z-index: 1;
    position: relative;
    line-height: 1.2;
}

.error-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-gray);
    z-index: 1;
    position: relative;
    max-width: 500px;
}

/* Footer position fix */
footer {
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
    /* Prevent footer from shrinking */
}

@media (max-width: 768px) {
    .error-section .container {
        flex-direction: column-reverse;
        /* Image on top on mobile? No, preserve order usually or stack */
        text-align: center;
        gap: 30px;
    }

    .error-section {
        padding-top: 100px;
    }

    .error-section h2 {
        font-size: 2.5rem;
    }
}