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

:root {
    --primary-red: #070f83;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --light-text: #ffffff;
    --gray-text: #999;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: white;
    color: var(--light-text);
    overflow-x: hidden;
}


/* ===== NAVBAR ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s;
    background: transparent;
}

.navbar.scrolled {
    background: rgb(99, 178, 231);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgb(0, 110, 255);
    border-bottom: 1px solid rgba(107, 139, 245, 0.716);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding 0.3s;
}

.navbar.scrolled .nav-container {
    padding: 10px 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}


/* FIX: Single definition — large on load, smaller on scroll */

.logo-img {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    height: 60px;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-text {
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    color: blue;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--light-text);
    transition: all 0.3s;
    border-radius: 2px;
}


/* ===== PAGE STRUCTURE ===== */

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.page.active {
    display: block;
    opacity: 1;
}


/* ===== PARALLAX SECTIONS ===== */

.parallax-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 1;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
    background: white;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 110, 255, 0.3);
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.6;
}

.parallax-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: black;
    margin-bottom: 20px;
    font-weight: 900;
}

.parallax-content p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: black;
    line-height: 1.8;
}


/* ===== HOME PAGE — HERO ===== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#tools-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 120px 40px 60px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: 8px;
    /* FIX: Color defined here, not as inline style */
    color: blue;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(162, 192, 236, 0.928));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(0, 40, 241, 0.8));
    }
}

.hero-tagline {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    /* FIX: Color defined here, not as inline style */
    color: black;
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 50px;
    text-transform: uppercase;
}


/* FIX: Hero CTA — color defined in CSS, hover works correctly now */

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: rgb(0, 145, 255);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    cursor: pointer;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: left 0.4s;
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}


/* FIX: hover color now properly overrides base color (no inline !important conflict) */

.hero-cta:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(25, 0, 255, 0.608);
}


/* ===== FEATURES SECTION ===== */

.features-section {
    padding: 10px 40px;
    background: white;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 60, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(33, 57, 243, 0.2);
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(8, 0, 255, 0.736);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(8, 0, 255, 0.736));
}

.feature-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-text {
    color: black;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* ===== CAPABILITIES SECTION ===== */

.capabilities-section {
    padding: 40px 40px 20px 40px;
    background: white;
}

.capabilities-container {
    max-width: 1300px;
    margin: auto;
}

.capability-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.capability-item:nth-child(even) {
    direction: rtl;
}

.capability-item:nth-child(even)>* {
    direction: ltr;
}

.capability-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid rgba(13, 0, 255, 0.651);
    transition: all 0.4s;
}

.capability-image:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(0, 13, 255, 0.341);
}

.capability-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    font-weight: 900;
}

.capability-content p {
    color: black;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.capability-list {
    list-style: none;
    padding: 0;
}

.capability-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: black;
    font-size: 1rem;
}

.capability-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-size: 1.2rem;
}


/* ===== SERVICES SECTION ===== */

.services-section {
    padding: 40px 40px;
    background: white;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: 4px;
    color: var(--primary-red);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--primary-red);
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, rgba(21, 0, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(8, 0, 255, 0.375);
    border-radius: 20px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(8, 0, 255, 0.59);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(0, 145, 255, 0.6));
}

.service-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-red);
}

.service-preview {
    font-size: 1rem;
    color: black;
    line-height: 1.6;
}


/* ===== TESTIMONIALS SECTION ===== */

.testimonials-section {
    padding: 10px 40px;
    background: white;
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: linear-gradient(135deg, rgba(0, 51, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(0, 4, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    scroll-snap-align: start;
    transition: all 0.4s;
}

.testimonial-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.testimonial-text {
    color: black;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-red);
}

.testimonial-info h4 {
    color: var(--primary-red);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-info p {
    color: black;
    font-size: 0.9rem;
}


/* ===== ABOUT PAGE ===== */

.about-hero {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(21, 0, 255, 0.1) 50%, transparent 70%), radial-gradient(circle at 20% 50%, rgba(0, 17, 255, 0.2), transparent 60%);
    animation: aboutGlow 8s ease-in-out infinite;
}

@keyframes aboutGlow {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.about-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 10px;
}

.about-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: 6px;
    margin-bottom: 20px;
    background: var(--primary-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: black;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content {
    padding: 0 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 100px;
}

.about-card {
    padding: 50px 40px;
    background: linear-gradient(135deg, rgba(4, 0, 255, 0.296), rgba(0, 255, 255, 0.03));
    border: 2px solid rgba(0, 42, 255, 0.676);
    border-radius: 20px;
    transition: all 0.4s;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(0, 30, 255, 0.3);
}

.about-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.about-card p {
    color: black;
    line-height: 1.8;
    font-size: 1.05rem;
}


/* ===== WORK PAGE ===== */

.work-hero {
    position: relative;
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.work-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient( 0deg, transparent, transparent 2px, rgba(255, 0, 0, 0.03) 2px, rgba(255, 0, 0, 0.03) 4px);
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

.work-hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    letter-spacing: 6px;
    text-align: center;
    background: var(--primary-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 10;
}

.work-content {
    padding: 0 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid rgba(4, 0, 255, 0.3);
    color: rgb(75, 106, 227);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: 'Exo 2', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 5px 20px rgba(17, 0, 255, 0.597);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(13, 0, 255, 0.926);
    transition: all 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 60px rgba(33, 40, 244, 0.4);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

.project-category {
    font-size: 0.85rem;
    color: rgb(61, 114, 227);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 10px;
}

.project-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* ===== CONTACT PAGE ===== */

.contact-section {
    padding: 150px 40px 100px;
    min-height: 100vh;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 30px;
    background: var(--primary-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-info p {
    font-size: 1.1rem;
    color: black;
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--primary-red);
    border: 1px solid rgba(34, 0, 255, 0.2);
    border-radius: 10px;
    transition: all 0.3s;
}

.contact-item-icon {
    font-size: 1.5rem;
}

.contact-item-content h3 {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.contact-item-content p {
    color: rgb(224, 211, 211);
    margin: 0;
    font-size: 1rem;
}

.contact-form {
    background: linear-gradient(135deg, rgba(0, 30, 255, 0.05), rgba(0, 255, 255, 0.03));
    padding: 50px;
    border-radius: 20px;
    border: 2px solid rgba(13, 0, 255, 0.2);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: black;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(43, 0, 255, 0.3);
    color: black;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-family: 'Exo 2', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(8, 0, 255, 0.3);
}

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

.submit-btn {
    width: 100%;
    padding: 18px;
    background: transparent;
    border: 2px solid var(--primary-red);
    color: blue;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

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

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:hover {
    color: white;
    box-shadow: 0 10px 30px rgba(69, 98, 240, 0.5);
}


/* ===== FOOTER ===== */

.footer {
    background: rgb(0, 0, 134);
    border-top: 2px solid rgba(59, 44, 232, 0.3);
    padding: 80px 40px 30px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-section p {
    color: rgba(195, 182, 182, 0.908);
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(195, 182, 182, 0.908);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #000000;
    border-color: #fdfbfb;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(25, 0, 255, 0.2);
    text-align: center;
}

.footer-bottom p {
    color: rgba(56, 145, 248, 0.949);
    font-size: 0.9rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 105px;
    width: auto;
}

.footer-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: white;
}


/* ===== MODAL ===== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 3px solid var(--primary-red);
    border-radius: 20px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 90px rgba(49, 67, 233, 0.5);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(64, 0, 255, 0.3);
    border: 2px solid var(--primary-red);
    color: #fff;
    font-size: 28px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.close-btn:hover {
    background: var(--primary-red);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 5;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.modal-body {
    padding: 40px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-description {
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    border: 2px solid rgba(38, 0, 255, 0.3);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-red);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 20px;
    text-align: center;
}


/* ===== ARTICLE MODAL ===== */

.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    overflow: auto;
}

.article-modal.active {
    display: block;
}

.article-container {
    max-width: 900px;
    margin: 80px auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    position: relative;
}

.article-hero {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.article-body {
    padding: 40px;
}

.article-body h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    margin-bottom: 15px;
    color: #070f83;
}

.article-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
}


/* FIX: article-text now uses innerHTML so paragraphs render correctly */

.article-text {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

.article-text p {
    margin-bottom: 1.2em;
}

.article-share {
    margin-top: 40px;
}

.article-share a {
    display: inline-block;
    background: #0077b5;
    color: white;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
}


/* ===== INVESTOR SECTION ===== */

.investor-section {
    padding: 140px 40px;
    background: rgb(99, 178, 231);
    color: white;
}

.investor-container {
    max-width: 1200px;
    margin: auto;
}

.investor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.investor-title {
    font-size: 18px;
    letter-spacing: 3px;
    color: #5c6cff;
    margin-bottom: 20px;
}

.investor-headline {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
}

.investor-description {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 18px;
    line-height: 1.7;
}

.investor-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.investor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.35s ease;
}

.investor-card:hover {
    transform: translateY(-6px);
    border-color: #3300ff;
}

.investor-card h4 {
    margin-bottom: 10px;
    color: white;
}

.investor-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.investor-button {
    margin-top: 30px;
    display: inline-block;
    background: #0059ff6f;
    padding: 16px 36px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.investor-button:hover {
    background: #008fd691;
    transform: translateY(-2px);
}


/* ===== INSIGHTS PAGE ===== */

.insights-section {
    padding: 80px 5%;
    background: #f8f9fa;
    min-height: 60vh;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.insight-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    contain: content;
}

.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.insight-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.insight-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #1a3cff;
    margin-bottom: 0.6rem;
}

.insight-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.insight-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.insight-meta {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.8rem;
    color: #888;
}

.insight-read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a3cff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.insight-card:hover .insight-read-more {
    text-decoration: underline;
}


/* ===== STATS SECTION (HOME) ===== */

.stats-section-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px 30px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(0, 110, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stats-section-home .stat-item {
    text-align: center;
}

.stats-section-home .stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a3cff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stats-section-home .stat-plus,
.stats-section-home .stat-suffix {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #1a3cff, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats-section-home .stat-label {
    font-size: 1rem;
    color: #665;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-top: 10px;
}


/* ===== SCROLL REVEAL ANIMATIONS ===== */

.reveal {
    opacity: 0;
    transform: translateY(200px);
    transition: all 0.5s ease;
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: all 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(150px);
    transition: all 1s ease;
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.services-grid .service-card,
.capabilities-container .capability-item,
.projects-grid .project-card {
    opacity: 0;
    transform: translateY(80px);
    transition: all 0.8s ease;
}

.services-grid.active .service-card,
.capabilities-container.active .capability-item,
.projects-grid.active .project-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card:nth-child(1) {
    transition-delay: .1s;
}

.service-card:nth-child(2) {
    transition-delay: .2s;
}

.service-card:nth-child(3) {
    transition-delay: .3s;
}

.service-card:nth-child(4) {
    transition-delay: .4s;
}

.service-card:nth-child(5) {
    transition-delay: .5s;
}

.service-card:nth-child(6) {
    transition-delay: .6s;
}


/* ===== SCROLLBAR ===== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 5px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}


/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .capability-item {
        grid-template-columns: 1fr;
    }
    .capability-item:nth-child(even) {
        direction: ltr;
    }
}

@media (max-width: 900px) {
    .investor-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .investor-right {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgb(80, 170, 249);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s;
        border-left: 1px solid rgba(34, 0, 255, 0.2);
    }
    .nav-menu.active {
        right: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    .services-grid,
    .projects-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .project-card {
        height: 400px;
    }
    .contact-form {
        padding: 30px 20px;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .testimonial-card {
        min-width: 280px;
    }
    .stats-section-home {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 20px;
    }
    .stats-section-home .stat-number,
    .stats-section-home .stat-plus,
    .stats-section-home .stat-suffix {
        font-size: 3rem;
    }
    .insight-card {
        transform: none !important;
        transition: box-shadow 0.2s ease !important;
    }
    .insight-card:hover {
        transform: none !important;
    }
    .insight-image {
        height: 180px;
    }
    .parallax-section {
        height: 300px;
    }
    .parallax-content {
        padding-top: 80px;
        font-size: 14px;
    }
    .hero-title {
        font-size: 32px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.service-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}