/* ==========================================================================
   FUTURISTIC / CYBERPUNK THEME
   ========================================================================== */

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #888888;
    
    /* Cyber/Neon Palette */
    --cyan: #00f0ff;
    --purple: #b026ff;
    --pink: #ff0055;
    
    /* Layout */
    --nav-height: 80px;
    --glass-bg: rgba(5, 5, 5, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESET & TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default for custom cursor */
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    /* Subtle scanline background */
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--cyan);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-color);
}

.cursor-follower::after {
    content: attr(data-text);
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor.hovered {
    background: transparent;
    box-shadow: none;
}

.cursor-follower.hovered {
    width: 80px;
    height: 80px;
    background: var(--cyan);
    border-color: var(--cyan);
    mix-blend-mode: normal;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.cursor-follower.hovered::after {
    opacity: 1;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-color);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    box-shadow: 0 0 10px var(--cyan);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 2px;
    height: 100%;
    background: var(--purple);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

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

.nav-links a:hover::before {
    transform: scaleY(1);
    box-shadow: 0 0 8px var(--purple);
}

.nav-btn {
    padding: 10px 20px;
    border: 1px solid var(--cyan);
    color: var(--cyan);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.nav-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--cyan);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(100%) contrast(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5,5,5,0.9) 0%, rgba(176, 38, 255, 0.1) 100%);
    mix-blend-mode: multiply;
}

.hero-content {
    max-width: 1200px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 10rem);
    line-height: 0.9;
    margin-bottom: 2rem;
}

.hero-title .line {
    overflow: visible; /* Prevents clipping of the text-shadow glow */
    padding-bottom: 10px;
}

.hero-title .word {
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    /* Avoid 'transition: all' which conflicts with GSAP transforms */
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease, text-shadow 0.3s ease;
}

.hero-title .word.highlight {
    color: var(--text-color);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px var(--cyan);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--cyan);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.hero-subtitle::before {
    content: '>> ';
    color: var(--pink);
    font-weight: 700;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: rotate(90deg);
    transform-origin: right center;
}

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

.mouse {
    width: 30px;
    height: 1px;
    background: var(--text-muted);
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 5px;
    height: 5px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: scrollAnimation 2s infinite ease-in-out;
}

@keyframes scrollAnimation {
    0% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(-20px); opacity: 0; }
}

/* ==========================================================================
   WORK SECTION
   ========================================================================== */
.work-section {
    padding: 150px 5%;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(3rem, 5vw, 6rem);
    margin-bottom: 80px;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-muted);
    position: relative;
    display: inline-block;
    transition: color 0.6s ease-out, text-shadow 0.6s ease-out, -webkit-text-stroke 0.6s ease-out;
}

.section-title.lit-up {
    color: var(--text-color);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 40px var(--cyan), 0 0 60px var(--cyan);
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background: var(--pink);
    box-shadow: 0 0 15px var(--pink);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 50px;
}

.projects-grid .project-card:nth-child(even) {
    margin-top: 100px;
}

.project-card {
    position: relative;
    flex-direction: column;
    display: flex;
    gap: 20px;
}

.project-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 240, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover .project-image {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.project-card:hover .project-image::before {
    opacity: 1;
}



.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5,5,5,0.4);
    transition: opacity 0.5s;
    z-index: 1;
}

.project-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    z-index: 1;
    transition: opacity 0.5s;
}



.project-card:hover .project-overlay {
    opacity: 0;
}

.project-card:hover .project-bg-video {
    filter: brightness(0.85);
}



.project-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-info h3 {
    font-size: 2rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.project-card:hover .project-info h3 {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.project-info span {
    font-size: 0.9rem;
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: monospace;
}

/* ==========================================================================
   REELS & SHORTS SECTION
   ========================================================================== */
.reels-section {
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.reels-section .container {
    padding: 0 5%;
}

.title-accent {
    color: var(--pink);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 15px var(--pink);
}

.reels-subtitle {
    font-size: 0.9rem;
    color: var(--pink);
    letter-spacing: 4px;
    font-family: monospace;
    margin-top: -60px;
    margin-bottom: 60px;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 40px;
}

.slider-track {
    display: flex;
    gap: 30px;
    padding: 0 5%;
    cursor: grab;
    user-select: none;
    transition: none;
    width: max-content;
}

.slider-track.dragging {
    cursor: grabbing;
}

.reel-card {
    flex: 0 0 auto;
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.reel-card:hover {
    transform: translateY(-8px);
}

/* Portrait (9:16) ratio for short-form content */
.reel-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    border: 1px solid var(--glass-border);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.reel-card:hover .reel-video-wrapper {
    border-color: rgba(255, 0, 85, 0.5);
    box-shadow: 0 10px 40px rgba(255, 0, 85, 0.15);
}

.reel-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5,5,5,0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 1;
}

.reel-tag {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pink);
    font-family: monospace;
    border: 1px solid rgba(255, 0, 85, 0.4);
    padding: 4px 10px;
    background: rgba(255, 0, 85, 0.08);
}

.reel-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    transition: color 0.3s;
}

.reel-card:hover .reel-title {
    color: var(--pink);
}

/* Slider Arrow Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(5,5,5,0.8);
    border: 1px solid var(--pink);
    color: var(--pink);
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 10;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.slider-btn:hover {
    background: var(--pink);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.slider-prev { left: 2%; }
.slider-next { right: 2%; }

/* Fade edges */
.slider-wrapper::before,
.slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}

.slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 150px 5%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Background aesthetic elements */
.about-section::before {
    content: 'SYSTEM_READY //';
    position: absolute;
    top: 50%;
    left: -5%;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    transform: translateY(-50%) rotate(-90deg);
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text {
    max-width: 600px;
}

.about-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    padding: 10px 20px;
    border: 1px solid rgba(176, 38, 255, 0.3);
    color: var(--text-color);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    background: rgba(176, 38, 255, 0.05);
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.skill-tag:hover {
    background: rgba(176, 38, 255, 0.2);
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
    transform: translateY(-2px);
}

.about-image {
    position: relative;
}

.about-image .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    clip-path: polygon(0 40px, 40px 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
    overflow: hidden;
}

.about-image .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.3) sepia(20%) hue-rotate(180deg);
    transition: filter 0.5s ease;
}

.about-image:hover .image-wrapper img {
    filter: grayscale(0%) contrast(1.1);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    z-index: -1;
    pointer-events: none;
}

.about-image::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 2px solid var(--pink);
    border-left: 2px solid var(--pink);
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 150px 5% 50px;
    text-align: center;
    position: relative;
}

.contact-content {
    margin-bottom: 150px;
}

.big-text {
    font-size: clamp(4rem, 8vw, 12rem);
    line-height: 0.9;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.big-text .highlight {
    color: transparent;
    -webkit-text-stroke: 1px var(--cyan);
    transition: all 0.3s;
}

.contact-content:hover .big-text .highlight {
    color: var(--cyan);
    -webkit-text-stroke: 0;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.primary-btn {
    display: inline-block;
    padding: 20px 40px;
    background: var(--cyan);
    color: var(--bg-color);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 900;
    transition: all 0.3s ease;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    margin-bottom: 40px;
}

.primary-btn:hover {
    background: var(--text-color);
    box-shadow: 0 0 30px var(--cyan);
    color: var(--bg-color);
}

.contact-email .email-link {
    font-size: clamp(1rem, 2vw, 2rem);
}

.email-link {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pink);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.email-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    box-shadow: 0 0 10px var(--pink);
}

.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--purple);
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .projects-grid {
        gap: 50px 30px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid .project-card:nth-child(even) {
        margin-top: 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* simple mobile version: hide nav links */
    }
    
    .cursor, .cursor-follower {
        display: none; /* disable custom cursor on mobile */
    }
    
    * {
        cursor: auto;
    }
}
