@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=JetBrains+Mono:wght@400;500;800&family=Syncopate:wght@400;700&display=swap');

:root {
    --bg-base: #060b14;
    /* Deep tech slate/blue */
    --surface: #0a1120;
    --surface-hover: #111a2f;
    --border: rgba(0, 255, 204, 0.15);
    --border-hover: rgba(0, 255, 204, 0.4);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #00FFCC;
    /* Neon Cyan */
    --accent-glow: rgba(0, 255, 204, 0.5);
    --accent-2: #38bdf8;
    /* Light Sky Blue */

    --font-display: 'Syncopate', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;

    --grid-size: 50px;
    --container: 1280px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg-base);
}

body {
    background-color: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   BACKGROUNDS
   ========================================= */
.tech-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 204, 0.06), transparent 40%);
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-size: var(--grid-size) var(--grid-size);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

.glow-orb {
    position: fixed;
    top: -100px;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.05), transparent 60%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

/* =========================================
   HEADER & NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(6, 11, 20, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* =========================================
   MAIN LAYOUT
   ========================================= */
main {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
    min-height: 100vh;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 2;
}

.sys-status {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(0, 255, 204, 0.2);
    background: rgba(0, 255, 204, 0.05);
    border-radius: 4px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    border-radius: 50%;
    animation: blink 1.5s infinite alternate;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-title .highlight {
    color: var(--accent-2);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 48px;
    max-width: 550px;
    border-left: 2px solid var(--border);
    padding-left: 20px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn:hover {
    color: var(--bg-base);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn:hover::before {
    transform: scaleX(1);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 650px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(1.05);
}

.tech-world-globe {
    width: 80%;
    height: 80%;
    max-width: 480px;
    max-height: 480px;
    background: radial-gradient(circle, rgba(0, 255, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.tech-world-globe object {
    width: 200%;
    height: 100%;
}

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

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   MARQUEE
   ========================================= */
.marquee-wrapper {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(10, 17, 32, 0.5);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee {
    display: inline-flex;
    gap: 40px;
    animation: scroll 25s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.marquee span:nth-child(even) {
    color: var(--accent-2);
}

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

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

/* =========================================
   SERVICES
   ========================================= */
.services {
    padding: 120px 0;
}

.section-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 64px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text);
    white-space: nowrap;
}

.line-separator {
    flex-grow: 1;
    height: 1px;
    background: var(--border);
    position: relative;
}

.section-code {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
}

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

.service-block {
    padding: 40px 32px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-block:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.05);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.block-id {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.block-icon {
    font-family: var(--font-mono);
    color: var(--accent-2);
    font-weight: bold;
}

.service-block h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.service-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 60px 40px 24px;
    max-width: var(--container);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 2px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: right;
}

.footer-nav a {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px dashed var(--border);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

/* Tablet & Smaller (1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 40px;
    }

    .hero {
        gap: 40px;
    }

    .hero-visual {
        max-width: 500px;
    }

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

/* Mobile & Tablet (768px) */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 24px;
        border-bottom: 1px solid var(--accent);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 120px;
        gap: 60px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-desc {
        border-left: none;
        border-top: 2px solid var(--border);
        padding-left: 0;
        padding-top: 20px;
        margin: 0 auto 30px;
        max-width: 500px;
    }

    .hero-visual {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .section-head {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .brand svg {
        height: 32px;
    }

    /* Scale logo down on tiny screens */

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-visual {
        max-width: 300px;
    }

    .tech-world-globe {
        width: 100%;
        height: 100%;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Fix for About Page Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

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

/* FOOTER LOGO EBY61 */
.footer-logo-main {
    font-family: var(--font-sync);
    font-weight: 700;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -2px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.footer-logo-main .sixty-one {
    color: var(--accent);
    font-size: 1.8rem;
    background: rgba(0, 255, 204, 0.1);
    padding: 0 8px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    margin-left: 5px;
}

.footer-logo-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}