/* CSS Variables */
:root {
    --primary-color: #ffffff;
    --secondary-color: #6C63FF;
    --accent-color: #4A43D9;
    --dark-accent: #3A35B8;
    --bg-dark: #0F0F1A;
    --bg-darker: #090913;
    --bg-card: #1A1A2E;
    --text-light: #B8B8D0;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-dark);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden; /* Critical for mobile to prevent side-scroll */
    font-family: 'Exo 2', sans-serif;
    width: 100%;
}

/* --- PARTICLE BACKGROUND --- */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-dark);
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

section {
    padding: 100px 0;
}

p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.btn:hover {
    background: var(--dark-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
    font-family: 'Exo 2', sans-serif;
}

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

/* Active Page State */
.nav-links a.active-page {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}
.nav-links a.active-page::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    z-index: 1001;
    cursor: pointer;
}

/* Mobile Sidebar - Core Logic */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 40px 40px;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 999;
        border-left: 1px solid rgba(108, 99, 255, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(15px);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 998;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open main {
        filter: blur(15px);
        pointer-events: none;
    }

    body.menu-open header {
        filter: none;
        z-index: 1001;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh; /* Changed from height to min-height for mobile */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: transparent;
    padding-top: 80px; /* Space for fixed header */
}

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

/* Typewriter Cursor */
.cursor-blink {
    animation: blink 1s infinite;
    color: var(--secondary-color);
    font-weight: 100;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    min-height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 1s forwards 0.7s;
}

.hero .btn {
    opacity: 0;
    animation: fadeInUp 1s forwards 0.9s;
}

.rectangles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    overflow: hidden;
    opacity: 0.3;
    pointer-events: none;
}

.rectangle {
    position: absolute;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.3);
    transform-style: preserve-3d;
    animation: float 20s infinite ease-in-out;
    border-radius: 8px;
    opacity: 0.4;
}

.rectangle:nth-child(1) { width: 320px; height: 220px; top: 15%; left: 8%; animation-delay: 0s; transform: rotateX(45deg) rotateY(15deg); }
.rectangle:nth-child(2) { width: 280px; height: 180px; top: 55%; left: 75%; animation-delay: -4s; transform: rotateX(60deg) rotateY(-25deg); }
.rectangle:nth-child(3) { width: 380px; height: 200px; top: 25%; left: 45%; animation-delay: -8s; transform: rotateX(30deg) rotateY(40deg); }

/* Sections Common Styles */
.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.section-title i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* Approach & Features */
.approach-container { display: flex; flex-direction: column; gap: 40px; }
.approach-row { display: flex; gap: 30px; align-items: stretch; }

.approach-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.approach-card:hover {
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-5px);
}
.approach-card.visible { opacity: 1; transform: translateY(0); }
.approach-card.large { flex: 3; }
.approach-card.small { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.approach-card h3 i { color: var(--secondary-color); font-size: 1.8rem; }

/* Features Grid (Cybersecurity) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 35px 30px;
    border: 1px solid rgba(108, 99, 255, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--secondary-color);
    color: white;
}
.feature-card h3 { font-size: 1.3rem; margin-bottom: 15px; font-family: 'Orbitron', sans-serif; }

/* Services Showcase */
.services-showcase { display: flex; flex-direction: column; gap: 60px; }

.service-feature {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(15, 15, 26, 0.9));
    border-radius: 20px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}
.service-feature.visible { opacity: 1; transform: translateY(0); }
.service-feature:nth-child(even) { flex-direction: row-reverse; }
.service-feature:hover { border-color: rgba(108, 99, 255, 0.5); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }

.service-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.service-visual-icon {
    font-size: 120px;
    color: var(--secondary-color);
    filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.5));
    transition: var(--transition);
}
.service-feature:hover .service-visual-icon { filter: drop-shadow(0 0 30px rgba(108, 99, 255, 0.8)); }

.service-content { flex: 1; position: relative; z-index: 2; }
.service-content h3 { font-size: 2.2rem; margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.service-content h3 i { color: var(--secondary-color); font-size: 2.5rem; }
.service-stats { display: flex; gap: 30px; margin-top: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--secondary-color); font-family: 'Orbitron', sans-serif; display: block; }
.stat-label { font-size: 0.9rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; }

/* Service List */
.service-list { list-style: none; margin-top: 20px; }
.service-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--text-light); }
.service-list li i { color: var(--secondary-color); }

/* About & Contact */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text, .about-image, .contact-info, .contact-form {
    opacity: 0;
    transition: var(--transition);
}
.about-text.visible, .about-image.visible, .contact-info.visible, .contact-form.visible {
    opacity: 1;
    transform: translateX(0);
}
.about-text { transform: translateX(-50px); }
.about-image { transform: translateX(50px); }
.about-image img { width: 100%; border-radius: 12px; box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); }

.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info { transform: translateX(-50px); }
.contact-form { transform: translateX(50px); }
.contact-item { display: flex; align-items: center; margin-bottom: 25px; }
.contact-icon { font-size: 24px; color: var(--secondary-color); margin-right: 15px; width: 40px; text-align: center; }

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Exo 2', sans-serif;
    margin-bottom: 25px;
}
.form-control:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 10px rgba(108, 99, 255, 0.2); }
textarea.form-control { min-height: 150px; resize: vertical; }

/* Testimonials Slider */
.testimonials-slider { position: relative; overflow: hidden; padding: 20px 0 60px; }
.testimonials-track { display: flex; transition: transform 0.5s ease-in-out; gap: 30px; }
.testimonial-slide {
    min-width: 100%;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
@media (min-width: 768px) { .testimonial-slide { min-width: calc(50% - 15px); } }
@media (min-width: 1024px) { .testimonial-slide { min-width: calc(33.333% - 20px); } }
.testimonial-slide:hover { border-color: var(--secondary-color); transform: translateY(-5px); }
.testimonial-text { font-style: italic; margin-bottom: 25px; font-size: 1rem; color: var(--text-light); }
.testimonial-author { display: flex; align-items: center; gap: 15px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.author-avatar { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)); display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; }
.author-info h4 { margin-bottom: 2px; font-size: 1rem; font-family: 'Orbitron', sans-serif; }
.author-info p { font-size: 0.8rem; margin-bottom: 0; }

.slider-controls { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.slider-btn { background: transparent; border: 1px solid var(--secondary-color); color: var(--secondary-color); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: var(--transition); }
.slider-btn:hover { background: var(--secondary-color); color: white; }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: none; cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--secondary-color); transform: scale(1.2); }

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    box-shadow: 0 0 15px var(--secondary-color);
    mix-blend-mode: difference;
}
.custom-cursor.expand { width: 50px; height: 50px; background-color: rgba(108, 99, 255, 0.3); border-color: transparent; }

/* --- HERO GRID UPGRADE --- */
.hero .container.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* Visual Polish for Text Area */
.badge-container {
    margin-bottom: 20px;
}
.status-badge {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid var(--secondary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.btn-outline:hover {
    border-color: var(--secondary-color);
    background: rgba(108, 99, 255, 0.1);
}

/* Neural Core Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
    width: 100%;
}

.neural-core {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-icon {
    font-size: 80px;
    color: white;
    z-index: 10;
    text-shadow: 0 0 20px var(--secondary-color);
    animation: pulseIcon 3s infinite ease-in-out;
}

.core-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.2) 0%, transparent 70%);
    z-index: 1;
}

/* Rotating Rings */
.core-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    animation: spin 10s infinite linear;
    opacity: 0.7;
}

.ring-2 {
    width: 75%;
    height: 75%;
    border-left: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    animation: spin-reverse 7s infinite linear;
    opacity: 0.5;
}

.ring-3 {
    width: 130%;
    height: 130%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    animation: spin 20s infinite linear;
}

/* Bottom Stats Strip */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: rgba(15, 15, 26, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    z-index: 5;
}

.stat-box {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: white;
    text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}
@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* --- TECHNOLOGY PAGE EXPANSION --- */
.tech-section {
    padding: 100px 0;
    position: relative;
}

.tech-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.tech-row.reverse .about-text { order: 2; }
.tech-row.reverse .about-image { order: 1; }

.tech-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-stat-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(108, 99, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.tech-stat-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
    background: rgba(26, 26, 46, 0.9);
}

.tech-stat-card h4 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- FOOTER & SOCIAL ICONS --- */
footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050508 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 100px;
    padding-bottom: 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Newsletter Input */
.newsletter-form {
    margin-top: 20px;
}
.newsletter-input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    margin-bottom: 15px;
    font-family: 'Exo 2', sans-serif;
}
.newsletter-input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* Social Icons 2x2 Grid Fix */
.social-links {
    display: grid !important;
    grid-template-columns: 45px 45px !important;
    grid-template-rows: 45px 45px;
    gap: 15px;
    margin-top: 25px;
    justify-content: start;
}

.social-links a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.footer-legal a {
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer-legal a:hover { color: white; }

/* Responsive Styles - REFINED FOR MOBILE */
@media (max-width: 992px) {
    .hero .container.hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 120px;
    }
    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    .hero-visual {
        order: 2;
        height: 300px;
    }
    .cta-group {
        justify-content: center;
    }
    .hero-stats {
        gap: 30px;
        height: auto;
        padding: 20px 0;
        flex-wrap: wrap;
    }
    .stat-value {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .tech-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tech-row.reverse .about-image { order: -1; }
    .about-content, .contact-content { grid-template-columns: 1fr; }
    .about-image, .contact-form { order: -1; }
    .hero h1 { font-size: 2.8rem; }
    .approach-row { flex-direction: column; }
    
    /* Force services to stack correctly */
    .service-feature, 
    .service-feature:nth-child(even) { 
        flex-direction: column !important; 
        padding: 40px 20px; 
        text-align: center;
    }
    .service-content h3 { justify-content: center; }
    .service-stats { justify-content: center; flex-wrap: wrap;}
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .hero h1 { font-size: 2.2rem; min-height: auto; }
    .hero p { font-size: 1rem; }
    
    .section-title { margin-bottom: 50px; font-size: 1.5rem; flex-direction: column; gap: 10px; }
    .section-title i { font-size: 2.5rem; margin-bottom: 10px; }
    
    .custom-cursor { display: none; }
    * { cursor: auto; }
    
    /* Stats strip mobile fix */
    .hero-stats {
        position: relative;
        background: var(--bg-card);
        gap: 20px;
    }
    .stat-divider { display: none; }
    .stat-box { width: 45%; margin-bottom: 10px; }
    
    /* Tech Specs Bar fix */
    .tech-specs-bar {
        margin-top: 0;
        padding: 30px 0;
    }
    .specs-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .spec-item { 
        border: none !important; 
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    .spec-item:last-child { border-bottom: none !important; }

    /* Neural Core size adjustment */
    .neural-core { width: 200px; height: 200px; }
    .core-icon { font-size: 50px; }
    
    /* Buttons full width on mobile */
    .cta-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .social-links {
        justify-content: center !important;
        grid-template-columns: repeat(4, 45px) !important;
        grid-template-rows: 45px !important;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-legal { justify-content: center; }
    
    .container { width: 94%; }
    
    /* Fix service visual size on small screens */
    .service-visual-icon { font-size: 80px; }
    .service-stats { gap: 15px; }
    .stat-number { font-size: 1.8rem; }
}