:root {
    --accent: #00a8ff;
    /* Premium Cerulean Blue (Web Dev Accent) */
    --accent-dim: #0088d0;
    /* Darker shade for hover state */
    --cream: #eae5dc;
    /* Warm Off-White / Cream */
    --black: #06080c;
    /* Obsidian Deep Pitch Black */
    --dark: #0e121a;
    /* Dark Gray Base */
    --mid: #141a26;
    /* Mid Gray Base */
    --border: rgba(0, 168, 255, 0.18);
    /* Dim Blue Border */
    --text-mute: rgba(234, 229, 220, 0.45);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    cursor: none;
    /* Custom smooth cursor */
}

/* CUSTOM SMOOTH CURSOR */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 168, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.hover-link .cursor {
    width: 16px;
    height: 16px;
    background: var(--cream);
}

.hover-link .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent);
}

/* Ambient Canvas Grid Background */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

/* NAVBAR & CONTAINER */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(6, 8, 12, 0.95), transparent);
    border-bottom: 1px solid rgba(0, 168, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--cream);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-mute);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.nav-cta {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    padding: 8px 20px;
    transition: background 0.3s, color 0.3s !important;
}

.nav-cta:hover {
    background: var(--accent) !important;
    color: var(--black) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 36px;
    height: 30px;
    padding: 0;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 22px;
    height: 1.5px;
    background-color: var(--cream);
    border-radius: 999px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO SECTION */
#hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 60px 80px;
    z-index: 2;
    position: relative;
}

.hero-tag {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(72px, 9vw, 130px);
    line-height: 0.9;
    letter-spacing: 2px;
    color: var(--cream);
    opacity: 0;
    transform: translateY(20px);
}

.hero-name span {
    color: var(--accent);
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: clamp(50px, 6vw, 90px);
    display: block;
}

.hero-desc {
    margin-top: 32px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-mute);
    max-width: 420px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    margin-top: 48px;
    display: flex;
    gap: 20px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 16px 36px;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    font-weight: 500;
}

.btn-primary:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--text-mute);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.btn-ghost:hover {
    color: var(--cream);
}

.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 60px;
}

.hero-photo-frame {
    width: 360px;
    height: 520px;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: contrast(1.05) saturate(0.88);
    display: block;
}

.photo-border-offset {
    position: absolute;
    top: -18px;
    left: -18px;
    right: -18px;
    bottom: -18px;
    border: 1px solid var(--border);
    pointer-events: none;
    z-index: -1;
}

.hero-scroll {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.hero-scroll span {
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-mute);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

.red-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: var(--border);
    z-index: 1;
}

/* ANIMATE ITEMS IN HERO */
.animate-item {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tag.animate-item {
    animation-delay: 0.2s;
}

.hero-name.animate-item {
    animation-delay: 0.4s;
}

.hero-desc.animate-item {
    animation-delay: 0.6s;
}

.hero-actions.animate-item {
    animation-delay: 0.8s;
}

.hero-photo-frame.animate-item {
    animation: scaleFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

/* TICKER */
.ticker {
    background: var(--accent);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-inner {
    display: inline-flex;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 6px;
    color: var(--black);
    padding: 0 40px;
}

.ticker-dot {
    color: rgba(6, 8, 12, 0.4);
}

/* SECTION BASE */
section {
    padding: 120px 60px;
}

.section-label {
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 6vw, 90px);
    line-height: 0.95;
    letter-spacing: 1px;
    color: var(--cream);
}

/* ABOUT */
#about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    border-top: 1px solid var(--border);
}

.about-text {
    margin-top: 32px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-mute);
    max-width: 480px;
}

.about-stats {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
}

.stat {
    background: var(--black);
    padding: 32px 24px;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 52px;
    color: var(--cream);
    line-height: 1;
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-top: 8px;
}

.about-right {
    display: flex;
    flex-direction: column;
}

.service-item {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-item:hover {
    padding-left: 16px;
}

.service-item:hover .service-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.service-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 2px;
    color: var(--cream);
}

.service-tools {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-mute);
    text-transform: uppercase;
}

.service-arrow {
    color: var(--text-mute);
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

/* TOOLS */
#skills {
    border-top: 1px solid var(--border);
}

.tools-row {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-tag {
    border: 1px solid var(--border);
    padding: 8px 20px;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mute);
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.tool-tag:hover {
    border-color: var(--accent);
    color: var(--cream);
    background-color: rgba(0, 168, 255, 0.05);
}

/* WORK GRID & PLACEHOLDER VISUALS */
#work {
    border-top: 1px solid var(--border);
    padding-top: 120px;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    grid-auto-flow: row;
    align-items: stretch;
}

.work-item {
    position: relative;
    overflow: hidden;
    background: var(--mid);
    width: 100%;
    height: 320px;
    min-height: 320px;
    grid-column: span 1;
}

.work-item-large {
    grid-column: span 2;
    height: 320px;
    min-height: 320px;
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 8, 12, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    z-index: 5;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--cream);
}

.work-cat {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 4px;
}

.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mid);
    border: 1px solid var(--border);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.work-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%) contrast(1.1) brightness(0.7);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s;
}

.work-item:hover .work-thumb {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1) brightness(0.95);
}

/* CUSTOM VISUAL MOCKUPS */
.wp-visual {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: var(--dark);
    display: flex;
    flex-direction: column;
}

/* Mac Browser Style Mockups */
.mac-header {
    height: 30px;
    background-color: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 15px;
}

.mac-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(234, 229, 220, 0.2);
}

.mac-url {
    font-size: 8px;
    color: var(--text-mute);
    margin-left: 20px;
    letter-spacing: 1px;
}

.mac-content {
    flex-grow: 1;
    padding: 20px;
    display: flex;
}

.mock-grid {
    display: flex;
    gap: 15px;
    width: 100%;
}

.mock-sidebar {
    width: 25%;
    border-right: 1px dashed var(--border);
}

.mock-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-chart {
    height: 60px;
    border: 1px solid var(--border);
    position: relative;
}

.mock-chart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 168, 255, 0.1), transparent);
}

.mock-lines span {
    display: block;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.03);
    margin-bottom: 8px;
}

/* Brand Mockup details */
.design-visual-1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mock-brand-box {
    border: 1px solid var(--border);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-logo-mock {
    font-family: 'DM Serif Display', serif;
    font-size: 56px;
    color: var(--accent);
    line-height: 1;
}

.brand-submock {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--text-mute);
}

/* Video timeline mockups */
.video-visual-1 {
    display: flex;
    justify-content: flex-end;
}

.timeline-visual {
    width: 100%;
    height: 70px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    background-color: var(--mid);
    position: relative;
}

.timeline-tracks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
}

.track {
    height: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.v-track {
    width: 70%;
    background-color: rgba(0, 168, 255, 0.05);
}

.a-track {
    width: 50%;
}

.playhead-visual {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 45%;
    width: 1px;
    background-color: var(--accent);
}

.playhead-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    background-color: var(--accent);
    border-radius: 50%;
}

/* Tech visual dashboard */
.dashboard-mock {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
}

.db-widget {
    height: 100px;
    border: 1px solid var(--border);
    background-color: rgba(0, 168, 255, 0.02);
}

.wp-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 64px;
    color: rgba(0, 168, 255, 0.15);
    line-height: 1;
}

/* CONTACT */
#contact {
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(80px, 18vw, 260px);
    color: rgba(0, 168, 255, 0.03);
    white-space: nowrap;
    letter-spacing: 8px;
    pointer-events: none;
    user-select: none;
}

.contact-inner {
    position: relative;
    z-index: 2;
}

.contact-email {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--cream);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px auto;
    padding: 12px 28px;
    border: 1px solid var(--border);
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.contact-email:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: rgba(0, 168, 255, 0.05);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 48px;
}

.social-link {
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-mute);
    text-decoration: none;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--cream);
}

.contact-avail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 56px;
    padding: 10px 24px;
    border: 1px solid var(--border);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mute);
}

.avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00e676;
    animation: pulse-green 2s infinite;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 4px;
    color: var(--text-mute);
}

.footer-copy {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-mute);
}

.footer-loc {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-mute);
}

/* ANIMATIONS & SCROLL EFFECTS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }

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

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes pulse-green {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(0, 230, 118, 0);
    }
}

/* SCROLL REVEAL (Restored back to 0.8s responsive glide transitions) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* RESPONSIVE LAYOUT */
@media (max-width: 968px) {
    .nav-container {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 67px;
        left: 0;
        width: 100%;
        background: var(--black);
        border-bottom: 1px solid var(--border);
        padding: 24px;
        gap: 20px;
    }

    section {
        padding: 80px 24px;
    }

    #hero {
        grid-template-columns: 1fr;
        padding: 0 24px;
    }

    .hero-right {
        display: none;
    }

    .hero-left {
        padding: 0 0 80px 0;
    }

    .red-line {
        display: none;
    }

    #about {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .work-item,
    .work-item-large {
        grid-column: span 1;
        height: 240px;
        min-height: 240px;
    }

    .work-item-large {
        grid-column: span 2;
        height: 240px;
        min-height: 240px;
    }

    .footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}