:root {
    --bg-color: #050508;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b8;
    --accent-primary: #7e22ce;
    --accent-secondary: #0ea5e9;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Glassmorphism utility */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(126, 34, 206, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #fff;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 10;
}

.subtitle {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1.glitch {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(126, 34, 206, 0.4);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-primary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 86px, 0); }
    5% { clip: rect(62px, 9999px, 14px, 0); }
    10% { clip: rect(4px, 9999px, 31px, 0); }
    15% { clip: rect(80px, 9999px, 12px, 0); }
    20% { clip: rect(32px, 9999px, 80px, 0); }
    25% { clip: rect(70px, 9999px, 64px, 0); }
    30% { clip: rect(2px, 9999px, 20px, 0); }
    35% { clip: rect(51px, 9999px, 89px, 0); }
    40% { clip: rect(87px, 9999px, 68px, 0); }
    45% { clip: rect(10px, 9999px, 82px, 0); }
    50% { clip: rect(39px, 9999px, 12px, 0); }
    55% { clip: rect(98px, 9999px, 10px, 0); }
    60% { clip: rect(29px, 9999px, 91px, 0); }
    65% { clip: rect(62px, 9999px, 51px, 0); }
    70% { clip: rect(16px, 9999px, 88px, 0); }
    75% { clip: rect(84px, 9999px, 7px, 0); }
    80% { clip: rect(40px, 9999px, 49px, 0); }
    85% { clip: rect(20px, 9999px, 30px, 0); }
    90% { clip: rect(96px, 9999px, 15px, 0); }
    95% { clip: rect(56px, 9999px, 81px, 0); }
    100% { clip: rect(11px, 9999px, 54px, 0); }
}

.role {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(126, 34, 206, 0.4);
    border: none;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    transition: all 0.4s ease;
    z-index: -1;
}

.primary-btn:hover::before {
    left: 0;
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--accent-secondary);
    margin-left: 1rem;
}

.secondary-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

.btn i {
    margin-left: 8px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    margin-bottom: 0.5rem;
}

.mouse::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 2px;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 16px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Typography for sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-main);
}

.section-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--accent-secondary);
    position: relative;
}

.section-title span::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-primary);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card {
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.about-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: -10px 15px 30px rgba(126, 34, 206, 0.2);
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(126,34,206,0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e1e2f, #2a2a40);
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: var(--accent-primary);
    border: 3px solid var(--accent-secondary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
}

.card-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.card-info span {
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.project-img {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(5,5,8,0.9));
}

.placeholder-1 { background: linear-gradient(135deg, #2b083d, #0b071a); }
.placeholder-2 { background: linear-gradient(135deg, #0f1c3f, #050514); }
.placeholder-3 { background: linear-gradient(135deg, #3d1b08, #1a0b07); }

.project-img i { z-index: 2; color: var(--accent-secondary); }

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.genre {
    color: var(--accent-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-btn {
    text-align: center;
    padding: 0.8rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--accent-secondary);
    font-size: 0.9rem;
}

.project-btn:hover {
    background: var(--accent-secondary);
    color: #fff;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2.5rem;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(126, 34, 206, 0.4);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.1), transparent);
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: white;
    background: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(126, 34, 206, 0.4);
}

.contact-form {
    padding: 3rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.1);
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 968px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    h1.glitch {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 0;
        background-color: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        gap: 3rem;
    }
    
    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }
    
    h1.glitch {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .secondary-btn {
        margin-left: 0;
    }
}
