:root {
    --bg-color: #050505;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent: #6366f1;
    --accent-secondary: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Hide default cursor on desktop to prioritize custom cursor */
@media (min-width: 769px) {
    *, *::before, *::after {
        cursor: none !important;
    }
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    animation: drift 20s infinite alternate linear;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -20%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.1); }
}

/* Custom Cursor Glow */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border 0.2s, box-shadow 0.2s;
}

#cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.glass-panel.interactive:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px -12px rgba(99, 102, 241, 0.2);
}

.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: white;
    box-shadow: 0 10px 20px -10px var(--accent);
}

.btn-primary:hover {
    box-shadow: 0 15px 30px -10px var(--accent);
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-primary-small {
    padding: 0.6rem 1.4rem;
    background: var(--text-main);
    color: var(--bg-color);
    font-size: 0.9rem;
    font-weight: 600;
}
.btn-primary-small:hover {
    background: var(--accent);
    color: white;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 50px;
    z-index: 100;
}

.logo {
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -1px;
}
.logo span { color: var(--accent); }

.glass-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.glass-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.glass-nav a:hover:not(.btn-primary-small) {
    color: var(--text-main);
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0;
}

/* Hero */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
}

/* Typewriter */
.typewriter-wrapper {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1rem;
    height: 40px; 
    display: flex;
    align-items: center;
}

.typewriter-text {
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    color: var(--text-main);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Floating Composition */
.floating-composition {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.float-card {
    position: absolute;
    width: 200px;
    padding: 2rem 1rem;
    border-radius: 24px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: var(--transition);
}

.float-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.float-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.3;
}

.card-1 {
    top: 0;
    left: 20%;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}
.card-1 i { color: var(--accent); }

.card-2 {
    bottom: 50px;
    left: 0;
    z-index: 2;
    animation: float 8s ease-in-out infinite 1s;
    background: rgba(99, 102, 241, 0.03);
}
.card-2 i { color: var(--accent-secondary); }

.card-3 {
    bottom: 80px;
    right: 0;
    z-index: 1;
    animation: float 7s ease-in-out infinite 2s;
    background: rgba(6, 182, 212, 0.03);
}
.card-3 i { color: #8b5cf6; } 

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: var(--transition);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

.arrow { display: flex; flex-direction: column; align-items: center;}
.arrow span {
    display: block;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    margin: -3px;
    animation: arrow-anim 2s infinite;
}

.arrow span:nth-child(2) { animation-delay: -0.2s; }
.arrow span:nth-child(3) { animation-delay: -0.4s; }

@keyframes arrow-anim {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 2rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
}

.highlight {
    color: var(--text-main);
    font-weight: 600;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Section Headers */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
    border-radius: 4px;
}

.section-header.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.about-text p {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.about-text em {
    color: var(--text-main);
    font-style: normal;
    font-weight: 600;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.stat-box h3 {
    font-family: var(--font-heading);
    font-size: 4rem;
    background: linear-gradient(to right, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-box span {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}

/* Skills Section */
.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin-top: 1rem;
    line-height: 1.7;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.skill-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    flex: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: auto;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Contact */
.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 3rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.contact-box h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px var(--accent);
    border-color: var(--accent);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    z-index: 101;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .glass-nav {
        padding: 1rem 1.5rem;
    }

    .glass-nav ul {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 2rem;
        z-index: 99;
        margin: 0;
    }

    .glass-nav ul.active {
        right: 0;
    }

    .glass-nav ul li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .glass-nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .glass-nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
    .glass-nav ul.active li:nth-child(2) { transition-delay: 0.2s; }
    .glass-nav ul.active li:nth-child(3) { transition-delay: 0.3s; }

    .glass-nav a:not(.btn-primary-small) {
        font-size: 1.5rem;
    }
    
    .btn-primary-small {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 120px;
        min-height: auto;
        justify-content: flex-start;
    }
    
    .hero-content { 
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .badge {
        margin-bottom: 1rem;
    }
    
    .typewriter-wrapper {
        font-size: 1.1rem;
        height: auto;
        min-height: 30px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    
    .floating-composition {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 1rem auto 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    
    .float-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 0.5rem;
        animation: float-mobile 6s ease-in-out infinite;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }

    @keyframes float-mobile {
        0% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
        100% { transform: translateY(0px); }
    }
    
    .card-1 { 
        grid-column: 1 / -1; 
        max-width: 260px; 
        margin: 0 auto;
        animation-delay: 0s; 
    }
    .card-2 { animation-delay: 1s; }
    .card-3 { animation-delay: 2s; }
    
    .float-card i {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }

    .float-card h3 {
        font-size: 0.95rem;
    }
    
    .scroll-indicator {
        display: none; 
    }

    .cta-group { 
        justify-content: center; 
        flex-wrap: wrap;
    }
    
    .about-grid { 
        grid-template-columns: 1fr; 
    }
    
    .about-stats { 
        flex-direction: row; 
        flex-wrap: wrap; 
    }
    
    .stat-box { 
        flex: 1; 
        min-width: 120px; 
        text-align: center; 
        align-items: center; 
    }
    
    h1 { 
        font-size: clamp(2.5rem, 10vw, 3.5rem); 
    }
    
    #cursor-glow, #cursor-dot { 
        display: none; 
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }

    .skill-card i {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .skill-card h3 {
        font-size: 1.05rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .contact-box {
        padding: 3rem 1.5rem;
    }
    
    .contact-box h2 {
        font-size: 2.2rem;
    }
}
