/* ========================================
   Cortec Systems - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --secondary-cyan: #38bdf8;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    --gradient-blue: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-cyan) 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ========================================
   Splash/Loading Screen
   ======================================== */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.splash-logo {
    width: 120px;
    height: 132px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-cyan) 100%);
    -webkit-mask: url('../media/logo/logo_c_only.png') center/contain no-repeat;
    mask: url('../media/logo/logo_c_only.png') center/contain no-repeat;
    animation: splashPulse 2s ease-in-out infinite, splashFloat 3s ease-in-out infinite;
}

.splash-text {
    margin-top: 1.5rem;
    opacity: 0;
    animation: splashFadeIn 0.8s ease forwards 0.3s;
}

.splash-name {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    color: var(--white);
    margin-left: 0.15em; /* Compensate for letter-spacing offset */
}

.splash-tagline {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--gray-400);
    margin-top: 0.25rem;
    margin-left: 0.25em; /* Compensate for letter-spacing offset */
}

.splash-loader {
    width: 200px;
    height: 3px;
    background: var(--gray-800);
    border-radius: 3px;
    margin: 2rem auto 0;
    overflow: hidden;
    opacity: 0;
    animation: splashFadeIn 0.8s ease forwards 0.6s;
}

.splash-loader-bar {
    width: 0;
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 3px;
    animation: splashLoading 2s ease-out forwards 0.8s;
}

@keyframes splashPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(37, 99, 235, 0.6));
    }
}

@keyframes splashFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splashLoading {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-dark {
    background-color: var(--gray-900);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-dark .section-tag {
    color: var(--secondary-cyan);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-dark .section-title {
    color: var(--white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-description {
    color: var(--gray-400);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark);
}

.btn-full {
    width: 100%;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    height: 65px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-300);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-cyan);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-cyan);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(15, 23, 42, 0.7) 100%
    );
}

.hero-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero-title-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
}

.hero-word {
    display: block;
    position: relative;
    overflow: hidden;
}

.hero-word-text {
    display: inline-block;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.hero-word:nth-child(1) .hero-word-text {
    color: var(--white);
}

.hero-word:nth-child(2) .hero-word-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-word:nth-child(3) .hero-word-text {
    color: var(--white);
}

.hero-word::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-blue);
    display: none;
}

.hero-word:nth-child(3)::after {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray-300);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-logo {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.hero-logo-gradient {
    width: 135px;
    height: 149px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-cyan) 100%);
    -webkit-mask: url('../media/logo/logo_c_only.png') center/contain no-repeat;
    mask: url('../media/logo/logo_c_only.png') center/contain no-repeat;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--gray-400);
    border-bottom: 2px solid var(--gray-400);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(10px);
    }
    60% {
        transform: rotate(45deg) translateY(5px);
    }
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background: var(--dark);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--primary-blue-light);
    display: inline;
}

.stat-suffix {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-blue-light);
}

.stat-label {
    display: block;
    font-size: 0.9375rem;
    color: var(--gray-400);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   About Section
   ======================================== */
.about {
    background: var(--dark-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.about-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.about-feature p {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.about-image-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary-cyan);
    border-radius: 16px;
    z-index: -1;
}

/* Override section colors for About */
.about .section-tag {
    color: var(--secondary-cyan);
}

.about .section-title {
    color: var(--white);
}

/* ========================================
   Services Section
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--gray-800);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.service-content p {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-blue-light);
    border-radius: 50%;
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    background: var(--dark);
}

.projects .section-tag {
    color: var(--secondary-cyan);
}

.projects .section-title {
    color: var(--white);
}

.projects .section-description {
    color: var(--gray-400);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.project-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.5) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-content {
    color: var(--white);
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-cyan);
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-content p {
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* ========================================
   Team Section
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.team-card {
    text-align: center;
}

.team-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gray-700);
    transition: var(--transition);
}

.team-card:hover .team-image {
    border-color: var(--primary-blue);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--dark-light);
}

.contact .section-tag {
    color: var(--secondary-cyan);
}

.contact .section-title {
    color: var(--white);
}

.contact .section-description {
    color: var(--gray-400);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-locations {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.location-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--gray-800);
    border-radius: 16px;
    border: 1px solid var(--gray-700);
}

.location-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.location-icon svg {
    width: 24px;
    height: 24px;
}

.location-details h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.location-details > p {
    font-size: 0.875rem;
    color: var(--secondary-cyan);
    font-weight: 500;
    margin-bottom: 1rem;
}

.location-details address {
    font-style: normal;
    font-size: 0.9375rem;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.location-phone {
    font-weight: 600;
    color: var(--white);
}

.location-phone:hover {
    color: var(--secondary-cyan);
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--primary-blue);
    border-radius: 12px;
    color: var(--white);
}

.contact-email svg {
    width: 24px;
    height: 24px;
}

.contact-email a {
    font-size: 1.125rem;
    font-weight: 600;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form-container {
    background: var(--gray-800);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--gray-700);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-300);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-600);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--white);
    transition: var(--transition-fast);
    background: var(--gray-700);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group select {
    color: var(--gray-300);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-cyan);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot anti-spam field - hidden from humans */
.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Human verification checkbox */
.form-checkbox {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--gray-400);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-cyan);
    cursor: pointer;
}

.checkbox-label:hover {
    color: var(--gray-300);
}

.contact-form .btn {
    grid-column: span 2;
    margin-top: 0.5rem;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    font-size: 0.9375rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

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

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

    .project-card-large {
        grid-column: span 2;
        grid-row: span 1;
        height: 400px;
    }

    .project-card:not(.project-card-large) {
        height: 250px;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    /* Mobile Navigation */
    .nav {
        position: fixed;
        top: 90px;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.125rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-image {
        width: 140px;
        height: 140px;
    }

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

    .project-card-large {
        grid-column: span 1;
        height: 300px;
    }

    .project-overlay {
        opacity: 1;
    }

    .project-content {
        transform: translateY(0);
    }

    /* Contact Form */
    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .contact-form .btn {
        grid-column: span 1;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: none;
    }

    .footer-logo {
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .location-card {
        flex-direction: column;
        text-align: center;
        background: var(--gray-800);
    }

    .location-icon {
        margin: 0 auto;
    }

    .contact-form-container {
        padding: 1.5rem;
    }
}
