/* =========================================
   VARIABLES & SETUP
   ========================================= */
:root {
    --bg-base: #0f172a;      /* Deep slate */
    --bg-surface: rgba(30, 41, 59, 0.4); /* Glass surface */
    --bg-surface-hover: rgba(51, 65, 85, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-accent: #38bdf8;  /* Cyan */
    --text-accent-alt: #818cf8; /* Indigo */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* =========================================
   BACKGROUND BLOBS (Animated gradients)
   ========================================= */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

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

.shape-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--text-accent) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    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); }
}

/* =========================================
   GLASSMORPHISM UTILS
   ========================================= */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--text-accent), var(--text-accent-alt));
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--text-accent), var(--text-accent-alt));
    color: #fff;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-accent);
    border-color: var(--text-accent);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-3px);
}

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

/* =========================================
   NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    transition: transform var(--transition-normal);
}

.glass-nav.hidden {
    transform: translateY(-100%);
}

.glass-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo::after {
    content: '.';
    color: var(--text-accent);
}

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

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-accent);
    transition: width var(--transition-normal);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: 120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.greeting {
    color: var(--text-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero .title {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero .description {
    max-width: 500px;
    font-size: 1.1rem;
}

.cursor {
    animation: blink 1s infinite;
}

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

.profile-card {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.abstract-art {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--text-accent), var(--text-accent-alt));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.skills-list i {
    color: var(--text-accent);
}

.about-image {
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.image-placeholder i {
    font-size: 5rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--text-accent);
    border-radius: 16px;
    z-index: -1;
    transition: transform var(--transition-normal);
}

.about-image-wrapper:hover::after {
    transform: translate(-10px, -10px);
}

/* =========================================
   PROJECTS SECTION
   ========================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-normal), background var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-10px);
    background: var(--bg-surface-hover);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.project-header i.ph-folder-notch-open {
    font-size: 2.5rem;
    color: var(--text-accent);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a i {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.project-links a:hover i {
    color: var(--text-accent);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-description {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   CONTACT & FOOTER
   ========================================= */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-desc {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

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

.social-links a i {
    font-size: 2rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover i {
    color: var(--text-accent);
    transform: translateY(-3px);
}

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

/* =========================================
   ANIMATIONS (Triggered by JS)
   ========================================= */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide for simple mobile by default */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero .title {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 2rem;
    }
    
    .hero .description {
        margin: 0 auto;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .profile-card {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 300px;
        margin: 2rem auto 0;
    }
}
