:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --accent: #ff00c8;
    --bg-dark: #020202; /* Deeper black for luxury feel */
    --bg-card: rgba(255, 255, 255, 0.02);
    --text-white: #ffffff;
    --text-gray: #a1a1aa;
    --highlight: #00f2ff;
    --nav-height: 90px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, .logo, .section-title {
    font-family: 'Space Grotesk', sans-serif;
}

.btn, .nav-links, .full-name, .skill-tag, .stat-item h3 {
    font-family: 'Satoshi', sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
}

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

.glass-card, section, .hero-text, .project-card {
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Background Elements */
#particle-canvas, #three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.ambient-light {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.light-1 {
    top: -10%;
    left: -10%;
    background: var(--primary);
}

.light-2 {
    bottom: -10%;
    right: -10%;
    background: var(--secondary);
}

/* Aurora Blobs */
.aurora-blobs {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: moveBlob 20s infinite alternate;
}

.blob-1 { top: -10%; left: -10%; background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%); }
.blob-2 { bottom: -10%; right: -10%; background: radial-gradient(circle, rgba(0, 242, 255, 0.15) 0%, transparent 70%); animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; background: radial-gradient(circle, rgba(255, 0, 200, 0.1) 0%, transparent 70%); animation-delay: -10s; }

@keyframes moveBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Loading Screen */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-content .highlight {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: loading 2s infinite ease;
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    height: 70px;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-white);
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    margin-left: 30px;
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.highlight {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: var(--transition);
}

.mobile-nav.active {
    transform: translateX(0);
}

.close-mobile {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-links a {
    font-size: 2rem;
    text-decoration: none;
    color: var(--text-white);
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.greeting {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.name {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
    background: linear-gradient(
        90deg, 
        #fff 0%, 
        var(--primary) 25%, 
        var(--secondary) 50%, 
        var(--primary) 75%, 
        #fff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
}

@keyframes shine {
    to { background-position: 200% center; }
}

.full-name {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes floatTagline {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; text-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
    50% { opacity: 1; text-shadow: 0 0 25px rgba(0, 242, 255, 0.6); }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.8;
    background: linear-gradient(135deg, #a1a1aa 30%, #fff 50%, #a1a1aa 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
    font-weight: 400;
}

.hero-status {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.build-line {
    margin-top: 40px;
    font-size: 0.85rem;
    color: var(--primary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.8;
}

.typewriter-container {
    height: 40px;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4), 0 0 60px rgba(0, 242, 255, 0.2);
    background: #fff;
}

.btn-secondary {
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--text-white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 20px rgba(112, 0, 255, 0.2);
}

/* Avatar Visual */
.avatar-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.avatar-ring {
    position: absolute;
    inset: 0;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-fallback {
    position: absolute;
    inset: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(5, 5, 5, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    backdrop-filter: blur(5px);
    animation: float 4s ease-in-out infinite;
}

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

.icon-1 { top: 0; right: 0; }
.icon-2 { bottom: 20%; left: -10%; animation-delay: 1s; }
.icon-3 { bottom: 0; right: 20%; animation-delay: 2s; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    position: relative;
}

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

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

/* Sections Common */
section {
    padding: 120px 0; /* Balanced premium spacing */
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 80px;
    font-family: 'Space Grotesk', sans-serif;
    text-align: left;
    letter-spacing: -0.02em;
}

.section-title .highlight {
    margin-right: 10px;
    opacity: 0.5;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 40px;
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.glass-card:hover {
    border-color: rgba(0, 242, 255, 0.5);
    background: rgba(255, 255, 255, 0.04);
}

/* About Section */
.about-card {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.category-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.project-image {
    height: 240px; /* More balanced visual height */
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tags span {
    padding: 4px 12px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    font-size: 0.8rem;
    border-radius: 4px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.btn-small {
    padding: 8px 20px;
    background: var(--primary);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-small.outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-white);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 20px;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
}

/* Contact */
.contact-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    margin-bottom: 40px;
    color: var(--text-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

/* Exploring & Philosophy */
.exploring-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.exploring-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    padding: 15px;
    background: rgba(255,255,255,0.01);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.philosophy-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-text, .vision-text {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 300; /* Thinner secondary text */
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

/* Footer */
footer {
    padding: 100px 0 50px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-signature {
    font-size: 1.4rem;
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

/* Animations */
.reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .name {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }

    section { padding: 60px 0; }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
        gap: 40px;
    }

    .hero-text {
        align-items: center;
        width: 100%;
    }

    .name { font-size: clamp(2.5rem, 12vw, 4rem); }
    .full-name { font-size: 0.85rem; line-height: 1.4; }
    .hero-desc { font-size: 0.9rem; margin-bottom: 30px; }
    
    .hero-buttons { 
        flex-direction: column; 
        width: 100%; 
        gap: 15px;
    }
    
    .btn { width: 100%; text-align: center; }

    .hero-status { justify-content: center; font-size: 0.8rem; }
    .build-line { font-size: 0.7rem; letter-spacing: 0.05em; }

    .glass-card { 
        padding: 25px; 
        backdrop-filter: blur(10px);
        width: 100%;
    }
    
    .aurora-blobs, .ambient-light { display: none; }

    .project-image { height: 200px; }
    .section-title { margin-bottom: 30px; font-size: 1.8rem; }
    
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .stats { gap: 20px; }
    .stat-item h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .name { font-size: 2.2rem; }
    .hero-desc { font-size: 0.85rem; }
    .btn { padding: 14px 24px; font-size: 0.9rem; }
}
