@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #9d00ff;
    --secondary: #00e5ff;
    --tertiary: #ff0055;
    --bg-dark: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
    /* Premium Smooth Easing */
    --bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* ... existing code ... */

/* Advanced Scroll Reveal */
.reveal-text {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s var(--easing);
    will-change: transform, opacity;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger Effects */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Cinematic Image Reveal */
.reveal-img {
    opacity: 0;
    transform: scale(1.2);
    clip-path: inset(0 100% 0 0);
    transition: all 1.2s var(--easing);
}

.reveal-img.visible {
    opacity: 1;
    transform: scale(1);
    clip-path: inset(0 0 0 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Smooth Scroll Container */
html.has-scroll-smooth {
    overflow: hidden;
    position: fixed;
    height: 100%;
    width: 100%;
}

body {
    /* ... existing body styles ... */
    overscroll-behavior: none;
}

#smooth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through if needed, but usually wrapper holds content so this might be tricky. Actually wrapper contains content so pointer-events: auto on content */
}

#smooth-content {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
    will-change: transform;
    pointer-events: auto;
    /* Re-enable pointer events */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    /* Professional Background Image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
}


/* Background Canvas */
canvas#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.2s var(--easing);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.6s var(--easing), width 0.3s, height 0.3s;
}

/* Menu Toggle (Floating) */
.menu-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    mix-blend-mode: difference;
}

.hamburger {
    width: 40px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    transition: transform 0.5s var(--easing), width 0.5s var(--easing);
}

.hamburger span:nth-child(2) {
    width: 70%;
    align-self: flex-end;
}

.menu-toggle:hover .hamburger span:nth-child(1) {
    transform: translateY(5px);
}

.menu-toggle:hover .hamburger span:nth-child(2) {
    transform: translateY(-5px);
    width: 100%;
}

.menu-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* 3D Perspective Grid */
.perspective-grid {
    position: fixed;
    bottom: -30%;
    left: -50%;
    width: 200%;
    height: 100vh;
    background-image:
        linear-gradient(rgba(157, 0, 255, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(157, 0, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(300px) rotateX(60deg) translateY(0);
    transform-origin: bottom center;
    opacity: 0.05;
    animation: gridAnimation 10s linear infinite;
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 60%);
    mask-image: linear-gradient(to top, black 0%, transparent 60%);
}

@keyframes gridAnimation {
    0% {
        transform: perspective(300px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(300px) rotateX(60deg) translateY(50px);
    }
}

/* Fullscreen Nav Overlay */
/* Professional Side Drawer Menu */
.nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    pointer-events: all;
    opacity: 1;
}

/* Dim Background */
.nav-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    right: 100%;
    width: 200vw;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-overlay.active::before {
    opacity: 1;
    pointer-events: auto;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 2rem;
    width: 100%;
    text-align: left;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.3s var(--easing);
    opacity: 0;
    transform: translateX(50px);
    -webkit-text-stroke: 0px;
}

.nav-link::before {
    content: '';
    display: block;
    width: 0px;
    height: 2px;
    background: var(--primary);
    margin-right: 0px;
    transition: all 0.3s ease;
}

.nav-overlay.active .nav-link {
    opacity: 1;
    transform: translateX(0);
}

.nav-link:hover {
    color: white;
    transform: translateX(10px);
}

.nav-link:hover::before {
    width: 30px;
    margin-right: 15px;
}

/* Staggered Animations */
.nav-overlay.active .nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.nav-overlay.active .nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

.nav-overlay.active .nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-overlay.active .nav-link:nth-child(4) {
    transition-delay: 0.4s;
}

.nav-overlay.active .nav-link:nth-child(5) {
    transition-delay: 0.5s;
}

.nav-decoration {
    display: none;
}

/* General Layout */
.container {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
}

section {
    min-height: 100vh;
    padding: 8rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content-wrapper {
    z-index: 2;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5.5vw;
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optional: Filter to blend beach image with dark theme */
    filter: grayscale(100%) contrast(1.1) brightness(0.9);
    transition: filter 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
    filter: grayscale(0%) contrast(1);
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark), transparent 80%);
    pointer-events: none;
}

.hero-title .line {
    display: block;
    opacity: 0;
    /* JS reveal */
}

.text-gradient {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.role-scroller span {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
}

.scroll-down-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid white;
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 4px;
    background: white;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
    }
}

/* Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s var(--easing);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-stroke {
    -webkit-text-stroke: 1px white;
    color: transparent;
}

.about-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 3rem;
}

.stats-grid {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Code Block Visual */
/* Code Block Visual */
.code-block {
    background: rgba(10, 10, 10, 0.95);
    padding: 2.5rem;
    border-radius: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: #a9b7c6;
    border: 1px solid rgba(157, 0, 255, 0.3);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.15);
    transform-style: preserve-3d;
    min-width: 320px;
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.const {
    color: #cc7832;
    font-weight: bold;
}

.var {
    color: #a9b7c6;
}

.string {
    color: #6a8759;
}

.num {
    color: #6897bb;
}

.indent {
    margin-left: 1.5rem;
}


/* Profile Card */
.profile-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.profile-img-container {
    height: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--easing);
}

.profile-card:hover .profile-img {
    transform: scale(1.1);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.profile-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    margin-top: -3rem;
    /* Overlap image */
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
    color: white;
}

.profile-role {
    color: var(--secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.p-stat {
    display: flex;
    flex-direction: column;
}

.p-stat .num {
    font-size: 1.5rem;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.p-stat .label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
}

/* Services Section */
.services-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}


.service-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    border-radius: 15px;
    transition: transform 0.1s linear, background 0.4s var(--easing), border-color 0.4s var(--easing);
    min-height: 400px;
    /* Increased height for image */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Changed from flex-end */
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

.service-img-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%) contrast(1.2);
}

.service-card:hover .service-img {
    transform: scale(1.1);
    filter: grayscale(0%) contrast(1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 10, 0.9));
}

.card-inner {
    padding: 2rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.service-index {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    z-index: 3;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Better visibility over img */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.service-tags {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.service-tags li {
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

/* Portfolio Hover Effects */
.projects-list {
    margin-top: 4rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
}

.project-item:hover {
    padding-left: 2rem;
    border-color: white;
}

.project-item:hover .project-info h3 {
    color: var(--secondary);
}

.project-info h3 {
    font-size: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    margin: 0.5rem 0;
    transition: color 0.3s;
}

.project-cat {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.project-visual {
    width: 280px;
    height: 160px;
    position: relative;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(2deg) translateY(0);
}

.project-item:hover .project-visual {
    opacity: 1;
    transform: rotate(0deg) scale(1.05) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--secondary);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-img {
    transform: scale(1.1);
}

/* Remove Abstract Shapes */
.abstract-shape,
.shape-1,
.shape-2,
.shape-3 {
    display: none;
}

.project-link {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.project-link:hover {
    background: white;
    color: black;
}

/* Contact */
.big-text {
    font-size: 10vw;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2rem;
}

.email-link {
    font-size: 2vw;
    text-decoration: none;
    margin-bottom: 4rem;
    display: block;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.minimal-footer {
    position: absolute;
    bottom: 2rem;
    color: #444;
    font-size: 0.8rem;
}

ul {
    list-style-type: none;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3rem;
    }

    .about-grid,
    .services-track {
        grid-template-columns: 1fr;
    }

    .project-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .project-visual {
        display: none;
    }

    .nav-link {
        font-size: 2.5rem;
    }

    .big-text {
        font-size: 4rem;
    }

    .email-link {
        font-size: 1rem;
    }
}