﻿/* ==========================================================================
   Base & Resets
   ========================================================================== */
   :root {
    --bg-color: #050505;
    --text-primary: #f2f2f2;
    --text-sec: #a0a0a0;
    --accent: #f4430d;     /* Original accent color kept, but more subtle */
    --accent-glow: #ff5722;
    --border-color: #222;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --container-width: 1550px;
    --font-cursive: 'Dancing Script', cursive;
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    /* Subtle noise/texture for that modern "portfolio" grain */
    background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.03), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(244, 67, 13, 0.03), transparent 40%);
    background-attachment: fixed;
}

::selection {
    background-color: var(--accent);
    color: #fff;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utility */
.uppercase-small {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: var(--text-sec);
}

.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-sec); }
.gradient-text {
    background: linear-gradient(90deg, #fff, var(--text-sec));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-center { text-align: center; }

/* Structural Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }

.pt-5 { padding-top: 4rem; }
.pb-3 { padding-bottom: 2rem; }

.w-full { width: 100%; }
.w-1\/3 { width: 33.333%; }
.w-2\/3 { width: 66.666%; }
.max-w-sm { max-width: 450px; }

.border-b { border-bottom: 1px solid var(--border-color); }
.border-t { border-top: 1px solid var(--border-color); }
.border-dark { border-color: var(--border-color); }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 1rem; }

.grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
}

.align-start { align-items: flex-start; }

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, transform 0.1s ease-out;
    z-index: 9999;
    mix-blend-mode: difference;
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.6);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sec);
    position: relative;
}

.nav-links a:hover { color: #fff; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: #fff;
    transition: width var(--transition-fast);
}
.nav-links a:hover::after { width: 100%; }

.resume-btn a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.resume-btn a:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Mobile Nav Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 65%;
    max-width: 320px;
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    height: 100vh;
    background: var(--bg-color);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active { right: 0; }

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-content a {
    font-size: 2rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-nav.active .mobile-nav-content a {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger transition delays for mobile links */
.mobile-nav-content a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-content a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-content a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-content a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-content a:nth-child(5) { transition-delay: 0.3s; }

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 5%;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 120px;
    position: relative;
}

.hero-top-text {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hero-top-text::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: var(--border-color);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-sec);
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: clamp(2rem, 5vw, 4rem);
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    flex-wrap: wrap;
}

.stat-item h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-sec);
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.stat-desc {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: var(--text-sec);
}
.scroll-down i {
    font-size: 1.2rem;
}

.bounce {
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}
.section-label::before {
    content: '';
    width: 10px;
    height: 10px;
    min-width: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.section-heading {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
}

.sticky-text, .sticky-container {
    position: sticky;
    top: 120px;
}

.profile-img {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: 4rem;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}
.profile-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-text p {
    font-size: 1.1rem;
    color: var(--text-sec);
}
.about-text strong {
    color: #fff;
    font-weight: 500;
}

.philosophy { margin-top: 3rem; }
.phil-item {
    padding-left: 2rem;
    position: relative;
}
.phil-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}
.phil-num {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.phil-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.phil-item p {
    font-size: 0.95rem;
}

.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    white-space: nowrap;
}
.social-btn:hover {
    border-color: #fff;
    background-color: #fff;
    color: #000;
}

/* ==========================================================================
   Timeline / Experience / Education
   ========================================================================== */
.timeline {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.grid-2-timeline {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
    transition: background-color var(--transition-fast);
}
.grid-2-timeline:first-child { border-top: 1px solid var(--border-color); }
.grid-2-timeline:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-sec);
    margin-bottom: 0.5rem;
}
.timeline-company {
    font-size: 1rem;
    font-weight: 500;
}

.role-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.role-loc {
    font-size: 0.95rem;
    font-weight: 400;
}
.timeline-content p {
    color: var(--text-sec);
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: rgba(255,255,255,0.03);
    color: var(--text-sec);
}

/* ==========================================================================
   Skills / Tech Stack
   ========================================================================== */
.skill-row {
    display: flex;
    align-items: center;
    transition: padding-left var(--transition-fast);
}
.skill-row:hover {
    padding-left: 1rem;
    background-color: rgba(255, 255, 255, 0.02);
}

.skill-items {
    font-size: 1rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.py-2 { padding-top: 1.5rem; padding-bottom: 1.5rem; }


/* ==========================================================================
   Contact / Footer
   ========================================================================== */
.contact-section {
    padding-top: 80px;
    padding-bottom: 40px;
}
.huge-email {
    display: inline-block;
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 0.2em;
}
.huge-email::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-slow);
}
.huge-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.huge-email i { font-size: 0.8em; opacity: 0.5; transition: opacity var(--transition-fast); }
.huge-email:hover i { opacity: 1; }

.footer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
}

.outline-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1.5rem;
    text-align: center;
}

.footer-links a { position: relative; }
.hover-accent:hover { color: #fff; }


/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .grid-2-timeline { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: 1.5rem 0; }
    .sticky-text, .sticky-container { position: static; margin-bottom: 1rem; }
    
    .hidden-mobile { display: none !important; }
    .visible-mobile { display: block; }
    
    .skill-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .skill-cat, .skill-items { width: 100%; }
    .skill-items { font-size: 0.95rem; }
    .mt-mobile-2 { margin-top: 1rem; }

    .about-image { margin-top: 2rem !important; }
    .profile-img { margin: 0 auto; max-width: 100%; }

    .scroll-down {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 3rem;
    }
}

@media (max-width: 600px) {
    .container { padding: 0 24px !important; width: 100%; box-sizing: border-box; }
    .section { padding: 60px 0; }
    
    .hero { 
        min-height: auto; 
        padding-top: 110px; 
        padding-bottom: 40px; 
    }
    .hero-title { 
        font-size: clamp(1.8rem, 8vw, 2.5rem); 
        line-height: 1.2; 
        margin-bottom: 1.25rem; 
    }
    .hero-subtitle { 
        font-size: 0.95rem; 
        margin-bottom: 2rem; 
    }
    
    .hero-stats { 
        display: grid; 
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
        gap: 1.25rem; 
    }
    .stat-item h2 { font-size: 1.6rem; margin-bottom: 0.2rem; }
    .stat-item p { font-size: 0.65rem; }
    
    .section-heading { font-size: clamp(1.4rem, 7vw, 1.8rem); line-height: 1.25; }
    .profile-img { width: 100%; height: auto; max-width: 100%; margin: 0 auto; border-radius: 8px; object-fit: contain; }
    .about-text p { font-size: 0.95rem; }
    
    .social-links { gap: 0.5rem; justify-content: flex-start; }
    .social-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    
    .role-title { font-size: 1.25rem; }
    .role-loc { font-size: 0.9rem; }
    .timeline-date { font-size: 0.8rem; }
    
    .contact-section { padding-top: 60px; padding-bottom: 40px; }
    .huge-email { 
        font-size: clamp(1.2rem, 6vw, 2rem); 
        word-break: break-all;
        overflow-wrap: anywhere;
    }
    .footer-title { font-size: 1.6rem; }
    
    .mobile-col { flex-direction: column; gap: 1.5rem; align-items: flex-start; text-align: left; }
    .footer-links { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; }
}

/* Utilities */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}













.cursive-text { font-family: var(--font-cursive); }
.logo a { font-family: var(--font-cursive); font-size: 2.5rem; letter-spacing: 0; }
.hero-subtitle .cursive-text { font-size: 1.5em; color: var(--accent); }












