:root {
    --bg-color: #050508;
    --text-color: #ffffff;
    --text-muted: #8892b0;
    --accent-1: #8a2be2; /* Purple neon */
    --accent-2: #00d2ff; /* Blue neon */
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

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

body, html {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: auto; /* Handled by GSAP or native smooth disabled for custom */
}

/* Custom Cursor */
body {
    cursor: none;
}

a, button, input, textarea, .interactive-text span {
    cursor: none;
}

.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--accent-2);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: exclusion;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.1s ease-out, width 0.3s, height 0.3s;
}

.cursor.active {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 1);
    mix-blend-mode: difference;
}

.cursor-follower.active {
    opacity: 0;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-mono);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-2);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    perspective: 1000px;
}

.hero-subtitle-wrapper {
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-family: var(--font-mono);
    color: var(--accent-2);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transform: translateY(100%);
}

.hero-title {
    font-size: clamp(4rem, 10vw, 10rem);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.interactive-text span.char {
    display: inline-block;
    transition: transform 0.4s var(--ease-out-expo), color 0.4s var(--ease-out-expo), text-shadow 0.4s var(--ease-out-expo);
    position: relative;
    will-change: transform;
}

.interactive-text span.char:hover {
    color: var(--accent-2);
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.8), 0 0 40px rgba(138, 43, 226, 0.6);
    transform: scale(1.1) translateY(-10px) rotate(5deg);
    z-index: 2;
}

/* Button Styles */
.btn {
    position: relative;
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--bg-color);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    overflow: hidden;
    background: transparent;
}

.primary-btn .btn-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    z-index: -1;
    transition: transform 0.5s ease;
}

.primary-btn .btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.primary-btn:hover .btn-background {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Sections */
section {
    padding: 10rem 0;
    position: relative;
    z-index: 1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    line-height: 1.2;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.profile-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(138,43,226,0.4) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(30px);
}

.profile-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.profile-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #4ade80;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-card:nth-child(even) {
    grid-template-columns: 1fr 1.5fr;
}

.project-card:nth-child(even) .project-image-container {
    order: 2;
}

.project-card:nth-child(even) .project-info {
    order: 1;
}

.project-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease-out-expo);
}

.preview-1 { background-image: linear-gradient(45deg, #1A1A2E, #16213E); }
.preview-2 { background-image: linear-gradient(45deg, #0F2027, #203A43, #2C5364); }
.preview-3 { background-image: linear-gradient(45deg, #2b1055, #7597de); }

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.view-project {
    padding: 1rem 2rem;
    border: 1px solid white;
    border-radius: 30px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.5s var(--ease-out-expo);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

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

.project-card:hover .view-project {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.3s, border-color 0.3s;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-1);
    color: var(--accent-2);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-2);
}

.timeline-content .date {
    display: block;
    color: var(--accent-1);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.input-group {
    position: relative;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1.2rem;
    resize: vertical;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
}

.input-group label {
    position: absolute;
    left: 0;
    top: 1.5rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    pointer-events: none;
    transition: 0.3s ease all;
}

.input-group input:focus ~ label, .input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label, .input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--accent-2);
}

.input-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.4s ease;
}

.input-group input:focus ~ .input-bg, .input-group textarea:focus ~ .input-bg {
    width: 100%;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 2rem;
}

/* Footer */
.footer {
    margin-top: 10rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
}

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

/* Responsive */
@media (max-width: 768px) {
    .about-grid, .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}
