:root {
    --bg-color: #05080E;
    --surface-color: #0E141B;
    --surface-hover: #151D25;

    --primary: #00FF41;
    --primary-glow: rgba(0, 255, 65, 0.3);
    --primary-dark: #00b32c;

    --text-main: #FFFFFF;
    --text-muted: #8A9EAD;

    --border-color: rgba(255, 255, 255, 0.05);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
#pcb-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.8;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Scroll Revel */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

.delay-6 {
    transition-delay: 0.6s;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 8, 14, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.main-logo {
    height: 40px;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover .main-logo {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary-glow);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(5, 8, 14, 0.75), rgba(5, 8, 14, 0.95)), url('assets/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
    z-index: 1;
}

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

/* Glitch Effect WOW */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    left: 4px;
    text-shadow: -2px 0 var(--primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -4px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(74px, 9999px, 83px, 0);
        transform: translate(0);
    }

    10% {
        clip: rect(48px, 9999px, 63px, 0);
        transform: translate(-2px, 2px);
    }

    20% {
        clip: rect(9px, 9999px, 47px, 0);
        transform: translate(2px, -2px);
    }

    30% {
        clip: rect(59px, 9999px, 51px, 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip: rect(2px, 9999px, 34px, 0);
        transform: translate(2px, 2px);
    }

    50% {
        clip: rect(80px, 9999px, 37px, 0);
        transform: translate(-2px, -2px);
    }

    60% {
        clip: rect(4px, 9999px, 99px, 0);
        transform: translate(2px, 0);
    }

    70% {
        clip: rect(11px, 9999px, 9px, 0);
        transform: translate(-2px, 2px);
    }

    80% {
        clip: rect(98px, 9999px, 73px, 0);
        transform: translate(2px, -2px);
    }

    90% {
        clip: rect(12px, 9999px, 44px, 0);
        transform: translate(-2px, 0);
    }

    100% {
        clip: rect(78px, 9999px, 49px, 0);
        transform: translate(0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: translate(0);
    }

    10% {
        clip: rect(50px, 9999px, 20px, 0);
        transform: translate(2px, -2px);
    }

    20% {
        clip: rect(15px, 9999px, 50px, 0);
        transform: translate(-2px, 2px);
    }

    30% {
        clip: rect(80px, 9999px, 70px, 0);
        transform: translate(2px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 30px, 0);
        transform: translate(-2px, -2px);
    }

    50% {
        clip: rect(90px, 9999px, 40px, 0);
        transform: translate(2px, 2px);
    }

    60% {
        clip: rect(20px, 9999px, 80px, 0);
        transform: translate(-2px, 0);
    }

    70% {
        clip: rect(30px, 9999px, 10px, 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip: rect(70px, 9999px, 60px, 0);
        transform: translate(-2px, 2px);
    }

    90% {
        clip: rect(40px, 9999px, 90px, 0);
        transform: translate(2px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 50px, 0);
        transform: translate(0);
    }
}


.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    position: relative;
    display: inline-block;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-color);
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.bounce {
    animation: bounce 2s infinite;
    color: var(--primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Partners Marquee */
.partners-marquee-section {
    background: var(--surface-color);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.marquee-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--surface-color) 0%, transparent 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--surface-color) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
    padding-right: 80px;
    /* same as gap, to match the layout cleanly */
}

.marquee-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    height: 45px;
    max-width: 180px;
    object-fit: contain;
    filter: grayscale(100%) opacity(50%);
    transition: filter 0.3s ease;
    display: block;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(100%);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Stats */
.stats-section {
    padding: 60px 0;
    background: linear-gradient(to right, transparent, rgba(0, 255, 65, 0.03), transparent);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--primary);
    display: inline-block;
    line-height: 1;
}

.stat-plus {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    vertical-align: top;
}

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

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

.lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.accent-quote {
    font-size: 1.4rem;
    font-style: italic;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--primary);
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.05), transparent);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.tag {
    padding: 8px 16px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.tag i {
    color: var(--primary);
}

.tag:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: var(--surface-hover);
}

.pcb-border {
    position: relative;
    padding: 2rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    overflow: hidden;
}

.pcb-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 40%, var(--primary) 50%, transparent 60%);
    z-index: -1;
    animation: borderGlow 4s linear infinite;
    background-size: 200% 200%;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 200%;
    }
}

.infinity-logo-large {
    font-size: 5rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    position: relative;
    font-family: var(--font-heading);
}

.infinity-logo-large::after {
    content: '\f534';
    font-family: 'Font Awesome 6 Free';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    color: var(--primary);
    opacity: 0.1;
    z-index: 0;
}

.circle-path {
    width: 120px;
    height: 120px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--primary-glow), inset 0 0 20px var(--primary-glow);
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Services */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    background: var(--surface-hover);
    border-color: rgba(0, 255, 65, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
    box-shadow: 0 0 15px var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.1);
}

.project-img-container {
    height: 220px;
    background: #111820;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            rgba(0, 255, 65, 0.05) 0px,
            rgba(0, 255, 65, 0.05) 1px,
            transparent 1px,
            transparent 10px);
    opacity: 0.5;
}

.project-placeholder-icon {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.3;
    z-index: 2;
    transition: var(--transition);
}

.project-card:hover .project-placeholder-icon {
    color: var(--primary);
    opacity: 0.8;
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-badge {
    background: rgba(0, 255, 65, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.project-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

.btn-outline {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.btn-outline::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.btn-outline:hover {
    color: var(--primary);
}

.btn-outline:hover::after {
    transform: translateX(5px);
}

/* CTA & Contact */
.cta-section {
    background: radial-gradient(circle at top, rgba(0, 255, 65, 0.05) 0%, transparent 60%);
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    border: none;
}

/* Footer */
footer {
    background: #030509;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-main-logo {
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-text {
        order: 2;
    }

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

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }

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

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .cta-box {
        padding: 2rem;
    }
}