:root {
    --bg-dark: #030305;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #7c3aed;
    --accent: #22d3ee;
    --glow: #a78bfa;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

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

html {
    scroll-behavior: smooth;
}

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

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 999;
}

.ambient-light {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: floatLight 10s ease-in-out infinite alternate;
}

@keyframes floatLight {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(-20px, 30px);
    }
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    opacity: 0.3;
    z-index: -2;
    transform: perspective(1000px) rotateX(20deg) scale(1.1);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.15s ease-out;
}

.site-header {
    position: fixed;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.header-pill {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 10px 30px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.logo-img {
    height: 32px;
    filter: drop-shadow(0 0 5px var(--primary));
}

.logo-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    font-size: 1.1rem;
}

.desktop-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-switch {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 20px;
    transition: 0.3s;
}

.lang-switch:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-switch .active {
    color: #fff;
}

.cta-btn {
    background: #fff;
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-btn:hover {
    background: var(--accent);
    transform: scale(1.05);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 30px;
}

.pulse {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(to right, #fff, var(--glow), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 50px;
}

.hero-stats {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 15px 30px;
    border-radius: 12px;
    gap: 30px;
    align-items: center;
    backdrop-filter: blur(5px);
}

.stat-box h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: #fff;
}

.stat-box p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

.brands-section {
    padding: 40px 0;
    background: #000;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 80px;
    animation: scroll 30s linear infinite;
}

.brand-item {
    font-family: var(--font-mono);
    color: #555;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.brand-item i {
    font-size: 1.3rem;
}

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

    100% {
        transform: translateX(-50%);
    }
}
.section-padding {
    padding: 120px 0;
}

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

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

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

.service-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    overflow: hidden;
    transition: 0.4s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1) rotate(-5deg);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 25px;
    transition: 0.4s;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    gap: 10px;
    list-style: none;
    margin-bottom: 30px;
}

.tech-tags li {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.6;
    transition: 0.3s;
}

.service-card:hover .card-footer {
    opacity: 1;
    gap: 15px;
    color: var(--accent);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.cat-card {
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    cursor: none;
}

.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s;
}

.cat-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.cat-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, #000, transparent);
}

.cat-info h3 {
    font-size: 1.1rem;
    color: #fff;
}

.project-card {
    display: flex;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-info {
    flex: 1;
}

.p-num {
    font-family: var(--font-mono);
    font-size: 4rem;
    color: var(--border);
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.p-tags {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.p-tags span {
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.p-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 5px;
    font-weight: 600;
}

.project-visual {
    flex: 1.2;
    background: #08080a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.editor-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.code-editor pre {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.main-footer {
    background-color: #020202;
    border-top: 1px solid var(--border);
    padding-top: 80px;
    margin-top: 50px;
    font-family: var(--font-display);
}

.footer-top {
    padding-bottom: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.brand-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 20px 0;
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo img {
    height: 40px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a,
.footer-col li {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col i {
    color: var(--accent);
    font-size: 0.9rem;
}

.links-col a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.footer-legal a:hover {
    color: var(--accent);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.95);
    width: 95%;
    max-width: 800px;
    height: auto;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
    padding: 1px;
    overflow: hidden;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-border-beam {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 24px;
    overflow: hidden;
}

.modal-border-beam::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 80deg, var(--accent) 100deg, transparent 140deg, transparent 360deg);
    transform: translate(-50%, -50%);
    animation: beam-spin 4s linear infinite;
}

@keyframes beam-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.modal-inner {
    position: relative;
    background: #08080a;
    border-radius: 23px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}

.modal-left {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.modal-visual-icon {
    font-size: 5rem;
    color: #fff;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.5));
    transform: scale(0.8);
    opacity: 0;
    transition: 0.8s ease 0.2s;
}

.modal-visual-text {
    margin-top: 20px;
    font-family: var(--font-mono);
    color: var(--accent);
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease 0.3s;
}

.modal-bg-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
}

.modal-right {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-right h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.6s ease 0.3s;
}

.modal-right p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.6s ease 0.4s;
}

.feature-list {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(20px);
    transition: 0.6s ease 0.45s;
}

.feature-list h4 {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}

.feature-list ul {
    list-style: none;
    padding: 0;
}

.feature-list li {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--primary);
    font-size: 0.8rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease 0.5s;
}

.spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: 0.3s;
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
}

.spec-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.spec-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}

.modal.active .modal-visual-icon {
    transform: scale(1);
    opacity: 1;
}

.modal.active .modal-visual-text {
    transform: translateY(0);
    opacity: 1;
}

.modal.active .modal-right h2 {
    transform: translateX(0);
    opacity: 1;
}

.modal.active .modal-right p {
    transform: translateX(0);
    opacity: 1;
}

.modal.active .feature-list {
    transform: translateX(0);
    opacity: 1;
}

.modal.active .specs-grid {
    transform: translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #555;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .header-pill {
        width: 90%;
        justify-content: space-between;
        padding: 10px 20px;
    }

    .desktop-nav {
        display: none;
    }

    .project-card,
    .project-card.reverse {
        flex-direction: column;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .brand-col p {
        margin: 20px auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-col li {
        justify-content: center;
    }

    .modal-inner {
        grid-template-columns: 1fr;
    }

    .modal-left {
        min-height: 150px;
        padding: 20px;
    }

    .modal-visual-icon {
        font-size: 3rem;
    }

    .modal-right {
        padding: 30px 20px;
    }

    .modal {
        width: 90%;
    }
}
.loader-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #030305;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.87, 0, 0.13, 1);
}

.loader-content {
    width: 300px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.loader-logo-wrap {
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
}
.loader-img {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--primary));
}
@keyframes pulseLogo {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 20px var(--accent)); }
}

.loader-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    font-family: var(--font-mono);
}
.loader-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
}
.loader-system {
    font-size: 0.7rem;
    color: var(--accent);
    opacity: 0.7;
    letter-spacing: 1px;
    margin-top: 5px;
}


.progress-container {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
}
.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: width 0.1s linear;
}

.loader-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.blink {
    color: var(--primary);
    animation: blinker 1s linear infinite;
}
@keyframes blinker { 50% { opacity: 0; } }


.scanlines {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
}

body.loaded .loader-container {
    transform: translateY(-100%);
}

body.loaded #hero .hero-content {
    animation: heroReveal 1s ease-out 0.5s forwards;
    opacity: 0;
}
@keyframes heroReveal {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.ambient-light {
    width: 100%;
    height: 50vh;
    left: 0;
    top: 0;
    opacity: 0.4;
}

@media (max-width: 992px) {
    .site-header {
        top: 15px;
        padding: 0 10px;
    }

    .header-pill {
        width: 100%;
        padding: 10px 15px;
        gap: 10px;
        justify-content: space-between;
    }

    .desktop-nav {
        display: none;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-img {
        height: 28px;
    }

    .header-actions {
        gap: 10px;
    }

    .cta-btn span {
        display: none;
    }
    .cta-btn {
        padding: 8px 12px;
        border-radius: 8px;
    }
    
    .lang-switch {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .hero-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-stats {
        flex-direction: row; 
        padding: 10px 15px;
        gap: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .stat-box h3 { font-size: 1.2rem; }
    .stat-box p { font-size: 0.7rem; }
}

@media (max-width: 768px) {
    .services-grid, 
    .category-grid, 
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .project-card, 
    .project-card.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .project-info {
        text-align: left;
    }

    .project-visual {
        width: 100%;
        padding: 15px;
    }
    
    .p-num { font-size: 3rem; }
}

@media (max-width: 768px) {
    .brand-item {
        font-size: 0.9rem;
    }
    .brand-item i {
        font-size: 1.1rem;
    }
    .marquee-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding-top: 40px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .brand-col p {
        margin: 20px auto;
    }
    
    .footer-col li {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .modal {
        width: 95%;
        top: 50%;
        transform: translate(-50%, -50%);
        max-height: 85vh;
        overflow-y: auto;
        border-radius: 16px;
    }

    .modal-inner {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .modal-left {
        min-height: 120px;
        padding: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .modal-visual-icon {
        font-size: 3rem;
    }

    .modal-right {
        padding: 25px 20px;
    }

    .modal-right h2 {
        font-size: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr; 
        gap: 10px;
    }
}
/* ─── Active nav link ─── */
.nav-link.active {
    color: #fff;
}

/* ─── Contact links in footer ─── */
.contact-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-col a:hover {
    color: var(--accent);
}
