:root {
    --bg: #0B0F16;
    --surface: #161B22;
    --text: #F0F6FC;
    --muted: #8B949E;
    --primary: #00D1E0;
    /* Primary Teal */
    --secondary: #0097B0;
    /* Secondary Teal/Blue */
    --accent-pink: #DF1698;
    /* Accent Magenta */
    --accent-lime: #B8DA38;
    /* Accent Lime */
    --accent-mint: #00C6A6;
    /* Support Mint */
    --deep-teal: #055765;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Base & Floating States */
.navbar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
    padding: 1.5rem 0;
}

.navbar--scrolled {
    margin-top: 15px;
    padding: 0.6rem 0;
    width: 90%;
    max-width: 1100px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    background: rgba(11, 15, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.navbar--scrolled .navbar-inner {
    padding: 0 1.5rem;
}

.navbar .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar--scrolled .navbar-brand .site-logo {
    height: 32px;
}

@media (max-width: 991.98px) {
    .navbar--scrolled {
        margin-top: 10px;
        max-width: 95%;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar {
        transition: none !important;
    }
}

/* Gradients & Backgrounds */
.hero-gradient {
    background: radial-gradient(circle at top right, var(--deep-teal), var(--bg));
    color: var(--text);
    padding: 120px 0 160px 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-gradient::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg);
    clip-path: ellipse(60% 50% at 50% 100%);
}

.bg-surface {
    background-color: var(--surface);
}

.bg-dark-section {
    background-color: #000000;
}

/* Components */
.card {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 209, 224, 0.1);
    border-color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: var(--bg);
}

.btn-primary:hover {
    filter: brightness(1.1);
    color: var(--bg);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-light:hover {
    background: var(--primary);
    color: var(--bg);
}

/* Text & Accents */
.text-primary {
    color: var(--primary) !important;
}

.text-pink {
    color: var(--accent-pink) !important;
}

.text-lime {
    color: var(--accent-lime) !important;
}

.text-mint {
    color: var(--accent-mint) !important;
}

.accent-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-top: 15px;
    border-radius: 2px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-weight: 800;
    margin-bottom: 50px;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(15px);
    background: rgba(11, 15, 22, 0.85);
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text) !important;
}

.navbar-brand span {
    color: var(--primary);
}

.site-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-link {
    color: var(--text) !important;
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary) !important;
}

/* Timeline */
.timeline::after {
    background-color: var(--primary);
}

.timeline-item::after {
    background-color: var(--bg);
    border: 4px solid var(--primary);
}

/* Portfolio Hover */
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 22, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Hero Premium Animations */
.hero-visual-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: heroFadeUp 0.7s ease-out forwards;
}

.hero-logo-visual {
    width: 100%;
    height: auto;
    max-width: 450px;
    filter: drop-shadow(0 0 15px rgba(0, 209, 224, 0.2));
    animation: heroFloat 5s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
    z-index: 2;
}

.pixel-drift {
    position: absolute;
    background: var(--primary);
    opacity: 0.4;
    border-radius: 2px;
    z-index: 1;
    animation: pixelDrift 4s ease-in-out infinite;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(0, 209, 224, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(0, 209, 224, 0.4));
    }
}

@keyframes pixelDrift {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(4px, -6px);
        opacity: 0.6;
    }
}

/* Scroll Type Section */
#scroll-type-section {
    padding: 100px 0;
    background-color: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scroll-type-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.type-line {
    font-size: 8rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin: 0;
    min-height: 1.1em;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Inter', sans-serif;
}

/* Responsive Typography */
@media (max-width: 1199.98px) {
    .type-line {
        font-size: 6rem;
    }
}

@media (max-width: 991.98px) {
    .type-line {
        font-size: 5rem;
    }

    #scroll-type-section {
        padding: 100px 0;
    }
}

@media (max-width: 767.98px) {
    .type-line {
        font-size: 3.5rem;
    }
}

@media (max-width: 575.98px) {
    .type-line {
        font-size: 2.5rem;
    }
}

/* Logo Marquee */
.marquee-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.logo-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 80px;
    align-items: center;
    padding: 20px 0;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-item {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.marquee-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(1) brightness(2) contrast(0.5);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: scale(1.1);
}

.marquee-item:hover img {
    filter: grayscale(0) brightness(1) contrast(1);
    opacity: 1;
}

.logo-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 40px));
    }
}

/* Reduced Motion handling */
@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-marquee {
        mask-image: none;
    }
}

/* Text Marquee Ribbons */
.text-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 60px 0;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.text-marquee-track {
    display: flex;
    gap: 40px;
}

.marquee-text {
    font-size: 5rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0.4;
    letter-spacing: 0.1em;
    padding-right: 40px;
    flex-shrink: 0;
}

.text-marquee-rtl .text-marquee-track {
    animation: marqueeRTL 40s linear infinite;
}

.text-marquee-ltr .text-marquee-track {
    animation: marqueeLTR 40s linear infinite;
}

@keyframes marqueeRTL {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marqueeLTR {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 991.98px) {
    .marquee-text {
        font-size: 3rem;
    }

    .text-marquee-wrapper {
        padding: 40px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .text-marquee-track {
        animation: none !important;
        justify-content: center;
        width: 100%;
    }

    .marquee-text:nth-child(n+2) {
        display: none;
    }
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .hero-gradient {
        padding: 160px 0 80px;
        text-align: center;
    }

    .hero-visual-container {
        max-width: 300px;
        margin-bottom: 40px;
    }

    .hero-logo-visual {
        max-width: 250px;
        /* 30% reduction from 450px */
    }

    .d-flex.flex-wrap.gap-3 {
        justify-content: center;
    }
}

/* Footer Panel Design */
.footer-section {
    padding: 80px 0;
    background-color: var(--bg);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.footer-panel {
    background-color: var(--surface);
    border-radius: 40px;
    padding: 80px;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    width: calc(100% - 32px);
    /* Margin for mobile */
    margin-left: auto;
    margin-right: auto;
}

.footer-headline {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.btn-footer-cta {
    background-color: var(--primary);
    color: var(--bg);
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    border: none;
    text-decoration: none;
}

.btn-footer-cta:hover {
    background-color: #FFFFFF;
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 209, 224, 0.3);
}

.footer-col-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
}

.contact-email {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

.contact-email:hover {
    color: var(--primary);
}

.footer-statement-wrapper {
    margin-top: 100px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-statement {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.footer-bottom-row {
    font-size: 0.85rem;
    color: var(--muted);
}

.footer-legal-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #FFFFFF;
}

@media (max-width: 991.98px) {
    .footer-panel {
        padding: 40px;
        border-radius: 30px;
    }

    .footer-headline {
        font-size: 2.5rem;
    }

    .contact-email {
        font-size: 1.5rem;
    }

    .footer-statement-wrapper {
        margin-top: 60px;
    }
}