/* Layout Specific Styles */

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Solid Height */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    contain: layout style;
    /* Performance optimization */
    will-change: background-color, height;
}

header.scrolled {
    height: 80px;
    background: #ffffff;
    /* Solid White */
    backdrop-filter: none;
    /* No transparency or blur */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Start as White */
    transition: var(--transition-smooth);
    will-change: filter;
    /* Prevent flickering during state change */
}

header.scrolled .logo-img {
    filter: none;
    /* Original Red/Color on scroll */
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 32px;
    align-items: center;
    transition: var(--transition-smooth);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    /* Start as white to match logo */
    border-radius: 3px;
    transition: var(--transition-smooth);
    will-change: background-color;
}

header.scrolled .mobile-menu-btn span,
.mobile-menu-btn.active span {
    background-color: hsl(var(--color-text-bright));
    /* Turn dark on scroll or when active */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        /* Solid White */
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    nav ul.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    nav ul li a {
        color: hsl(var(--color-text-bright)) !important;
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    /* White text at top */
    transition: var(--transition-smooth);
}

header.scrolled nav a {
    color: hsl(var(--color-text-bright));
    /* Clear Dark/Black for menu */
}

nav a:hover,
header.scrolled nav a:hover {
    color: var(--color-primary);
    /* Red on hover always */
}

header.scrolled nav a:hover {
    color: hsl(var(--color-text-bright));
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
    color: #fff;
    perspective: 1000px;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 0 20px;
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
        padding-bottom: 60px;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1120px;
    /* 1200px - 80px (padding 40px * 2) */
    width: 100%;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title span {
    background: var(--grad-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* Services Grid */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: hsl(var(--color-text-muted));
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    padding: 50px 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: block;
}

@media (max-width: 768px) {
    .service-card {
        padding: 30px 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: hsl(var(--color-primary));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
    color: hsl(var(--color-primary));
    min-height: 48px;
    /* Fallback height */
    min-width: 48px;
    /* Fallback width */
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5px;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.service-card p {
    color: hsl(var(--color-text-muted));
}

/* Stats Section */
.stats-section {
    padding: 100px 5%;
    background: hsl(var(--color-bg-light));
    border-radius: var(--radius-lg);
    margin-bottom: 120px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--grad-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    color: hsl(var(--color-text-muted));
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        text-align: center;
    }

    .contact-info h2 {
        font-size: 2.2rem;
    }

    .info-list {
        align-items: center;
    }
}

.contact-info h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact-info h2 span {
    color: hsl(var(--color-primary));
}

.info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: hsl(var(--color-text-muted));
}

/* Contact Form Basic Styles */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    color: hsl(var(--color-text-bright));
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.contact-form {
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 480px) {
    .contact-form {
        padding: 25px 20px;
    }
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

/* Footer Reset and Redesign */
.footer {
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #fcfcfc;
    margin-top: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Row 1: Slogan */
.footer-slogan {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

/* Row 2: Brand & Policy Links */
.footer-middle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-brand h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
}

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

.footer-policy-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

/* Row 3: Company Details & Copyright */
.footer-bottom-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-company-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
}

.footer-company-info span {
    position: relative;
}

.footer-company-info span:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: 0.85rem;
    color: hsl(var(--color-text-muted));
    margin-top: 5px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .footer-middle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-policy-links {
        gap: 15px;
    }

    .footer-slogan {
        font-size: 1.6rem;
    }
}