@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-base: #09090b;
    --color-primary: #ffffff;
    --color-secondary: #a1a1aa;
    --color-accent: #27272a;
    --text-main: #ffffff;
    --text-muted: #8b8b93;
    
    --card-bg: rgba(24, 24, 27, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover-bg: rgba(39, 39, 42, 0.6);
    --card-hover-border: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --nav-height: 90px;
}

/* ==========================================================================
   2. GLOBAL RESETS & TYPOGRAPHY
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 10%, rgba(0,0,0,0) 80%);
    z-index: -2;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

p { color: var(--text-muted); font-weight: 400; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2rem) 5% 4rem 5%;
    min-height: calc(100vh - 150px);
}

/* ==========================================================================
   3. AMBIENT BACKGROUND
   ========================================================================== */
.ambient-background {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15; 
    animation: float 20s infinite alternate ease-in-out;
    transform-origin: center;
}

.glow.cyan { background: #ffffff; width: 40vw; height: 40vw; top: -10%; left: 10%; animation-duration: 25s; }
.glow.purple { background: #a1a1aa; width: 45vw; height: 45vw; bottom: -10%; right: 0%; animation-duration: 22s; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.05); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

/* ==========================================================================
   4. NAVIGATION
   ========================================================================== */
nav {
    position: fixed;
    top: 0; width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.4rem; color: #fff; }

.nav-links { display: flex; gap: 1rem; align-items: center; }

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
}

.nav-links a:hover { color: var(--text-main); }
.nav-links a.active { background: #ffffff; color: #000000; }

.nav-right { display: flex; align-items: center; gap: 1rem; }
.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: #fff; }

/* ==========================================================================
   5. BUTTONS & UTILITIES
   ========================================================================== */
.gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn-pill, .btn-pill-outline {
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-pill { background: #ffffff; color: #000000; border: none; }
.btn-pill:hover { background: #d4d4d8; transform: scale(1.02); }

.btn-pill-outline { background: transparent; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); }
.btn-pill-outline:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.05); }

.minimal-card {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}
.minimal-card:hover { border-color: rgba(255, 255, 255, 0.1); }

.status-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 1.2rem; background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px; font-size: 0.8rem; font-weight: 600;
    color: #fff; margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 1px;
}
.status-dot { width: 10px; height: 10px; background-color: #fff; border-radius: 50%; box-shadow: 0 0 10px rgba(255,255,255,0.8); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); } 70% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   6. PAGE-SPECIFIC COMPONENTS
   ========================================================================== */
/* Hero */
.hero { min-height: calc(100vh - var(--nav-height) - 4rem); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.hero .subtitle { font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 2rem; }
.hero .desc { font-size: 1.15rem; max-width: 600px; color: #a1a1aa; margin-bottom: 3rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* Stats & Sections */
.stats-grid-minimal { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; margin-bottom: 8rem; }
.stat-card-minimal { background: #121214; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 3rem 2rem; transition: var(--transition-smooth); }
.stat-card-minimal h2 { font-size: 3.5rem; color: #ffffff; margin-bottom: 0.5rem; }
.stat-card-minimal p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); font-weight: 600; }

.minimal-section-header { margin-bottom: 3rem; }
.minimal-section-header span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); display: block; margin-bottom: 1rem; font-weight: 600; }
.minimal-section-header h2 { font-size: 3.5rem; color: #ffffff; letter-spacing: -0.02em; }

/* Showreel Carousel */
.showreel-carousel-wrapper { position: relative; width: 100%; overflow: hidden; margin-bottom: 8rem; }
.showreel-track { display: flex; gap: 2rem; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }
.showreel-card { background: #121214; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; flex: 0 0 calc(50% - 1rem); min-width: 350px; transition: var(--transition-smooth);}
.showreel-card:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateY(-5px); }
.showreel-image-placeholder { height: 250px; background: linear-gradient(135deg, #18181b 0%, #09090b 100%); border-bottom: 1px solid rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; }
.showreel-image-placeholder h3 { font-size: 2rem; color: rgba(255,255,255,0.8); letter-spacing: -1px; }
.showreel-content { padding: 2rem; }
.showreel-content .project-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 0.8rem; display: block; }
.showreel-content h4 { font-size: 1.5rem; margin-bottom: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tech-tag { font-size: 0.7rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 100px; padding: 0.4rem 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.carousel-controls { display: flex; gap: 1rem; }
.carousel-btn { background: transparent; border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-smooth); }
.carousel-btn:hover { background: #ffffff; color: #000000; }
.carousel-btn svg { width: 22px; height: 22px; }

/* Call to Action Box */
.cta-box { border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 6rem 3rem; text-align: center; background: linear-gradient(180deg, #121214 0%, #09090b 100%); margin-top: 4rem; }
.cta-box h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
.cta-box p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem auto; line-height: 1.8; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* About Page */
.about-hero { display: flex; justify-content: space-between; align-items: center; gap: 4rem; margin-bottom: 6rem; }
.about-hero .hero-left { flex: 1.5; }
.about-hero .hero-right { flex: 1; }
.overline { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted); display: block; margin-bottom: 1rem; font-weight: 600; }
.huge-text { font-size: clamp(3rem, 7vw, 6.5rem); line-height: 1.1; letter-spacing: -0.04em; }
.about-centered-section { text-align: center; display: flex; flex-direction: column; align-items: center; }
.about-centered-section h2 { font-size: 3.5rem; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.about-centered-section .large-desc { font-size: 1.5rem; max-width: 700px; color: #d4d4d8; line-height: 1.6; margin-bottom: 4rem; }
.build-card { text-align: left; width: 100%; max-width: 900px; }
.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
.build-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; letter-spacing: 1px; color: #fff; text-transform: uppercase; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.skill-list { display: flex; flex-direction: column; gap: 1.5rem; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.6rem; font-size: 0.85rem; font-weight: 600; color: #d4d4d8; }
.skill-bar { width: 100%; height: 4px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.skill-fill { height: 100%; background: #a1a1aa; border-radius: 4px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; padding: 3rem; }
.value-item h4 { font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px; }

/* Projects Page */
.filter-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 4rem; width: 100%; }
.search-box { position: relative; width: 100%; max-width: 450px; }
.search-box input { width: 100%; padding: 1rem 1rem 1rem 3.5rem; border-radius: 100px; background: rgba(20, 20, 25, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-main); font-family: inherit; font-size: 0.95rem; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: var(--transition-smooth); outline: none; }
.search-box input:focus { border-color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px #fff; }
.search-box svg { position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); stroke: var(--text-muted); width: 20px; height: 20px; transition: stroke 0.3s ease; pointer-events: none; }
.search-box input:focus + svg { stroke: #fff; }
.project-filters { display: inline-flex; background: rgba(20, 20, 25, 0.5); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 100px; padding: 0.5rem; gap: 0.5rem; backdrop-filter: blur(20px); flex-wrap: wrap; justify-content: center; }
.filter-btn { background: transparent; border: none; color: #94a3b8; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0.75rem 1.5rem; border-radius: 100px; cursor: pointer; display: flex; align-items: center; gap: 0.6rem; transition: var(--transition-smooth); }
.filter-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.filter-btn.active { background: #ffffff; color: #000000; }
.filter-count { background: rgba(255, 255, 255, 0.1); border-radius: 50%; width: 24px; height: 24px; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; font-weight: 800; color: inherit; transition: background 0.3s; }
.filter-btn.active .filter-count { background: rgba(0, 0, 0, 0.2); }
.project-item { transition: opacity 0.4s ease, transform 0.4s ease; }
.project-item.hide { display: none !important; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; }
.projects-grid .showreel-card { min-width: 100%; flex: 1;}
.badge { display: inline-block; font-size: 0.7rem; padding: 0.3rem 0.8rem; border-radius: 100px; border: 1px solid rgba(255,255,255,0.2); margin-right: 0.5rem; margin-bottom: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Reviews Page */
.reviews-grid-premium { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 4rem; }
.review-card-premium { background: #121214; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 3rem 2.5rem; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition-smooth); }
.review-card-premium:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateY(-5px); }
.review-card-premium::before { content: '“'; position: absolute; top: -30px; right: 20px; font-size: 12rem; font-family: var(--font-heading); color: rgba(255, 255, 255, 0.02); line-height: 1; pointer-events: none; transition: var(--transition-smooth); }
.review-card-premium:hover::before { color: rgba(255, 255, 255, 0.04); transform: scale(1.05); }
.review-stars { color: #ffffff; font-size: 1.2rem; letter-spacing: 4px; margin-bottom: 2rem; position: relative; z-index: 1; }
.review-text { font-size: 1.1rem; font-style: italic; margin-bottom: 3rem; flex-grow: 1; color: #d4d4d8; line-height: 1.8; position: relative; z-index: 1; }
.reviewer-info { display: flex; align-items: center; gap: 1.2rem; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1.5rem; position: relative; z-index: 1; }
.reviewer-avatar-mono { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg, #27272a 0%, #09090b 100%); border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; color: #fff; }
.reviewer-details h5 { font-size: 1.05rem; margin: 0; color: var(--text-main); letter-spacing: 0.5px; }
.reviewer-details p { font-size: 0.75rem; margin: 0.2rem 0 0 0; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { display: flex; align-items: center; gap: 1.8rem; padding: 1.8rem 2.5rem; font-size: 1.25rem; font-weight: 700; background: #121214; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; transition: var(--transition-smooth); }
.contact-card:hover { border-color: rgba(255, 255, 255, 0.15); background: #18181b; transform: translateY(-4px); }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 55px; height: 55px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); transition: var(--transition-smooth); color: #ffffff; }
.contact-card:hover .contact-icon { background: #ffffff; color: #000000; transform: scale(1.1) rotate(5deg); }
.contact-form-wrapper { background: #121214; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 3rem; transition: var(--transition-smooth); }
.contact-form-wrapper:hover { border-color: rgba(255, 255, 255, 0.1); }
.contact-form { display: flex; flex-direction: column; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.8rem; }
.form-group label { font-size: 0.85rem; color: #a1a1aa; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group textarea { width: 100%; padding: 1.2rem; border-radius: 12px; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-main); font-family: inherit; font-size: 1.05rem; transition: var(--transition-smooth); outline: none; }
.form-group input:focus, .form-group textarea:focus { border-color: #ffffff; background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px #ffffff; }
.form-group textarea { resize: vertical; min-height: 180px; }

/* Footer */
footer { text-align: center; padding: 4rem 5%; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: auto; position: relative; z-index: 10; }
footer p { font-size: 0.9rem; color: #52525b; text-transform: uppercase; letter-spacing: 2px; }

/* ==========================================================================
   7. CUSTOM CROSSHAIR
   ========================================================================== */
@media (pointer: fine) {
    * { cursor: none !important; }
    .cursor-dot { width: 6px; height: 6px; background-color: #ffffff; position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 9999; pointer-events: none; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
    .cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.3); position: fixed; top: 0; left: 0; border-radius: 50%; z-index: 9998; pointer-events: none; transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
    .cursor-outline::before, .cursor-outline::after { content: ''; position: absolute; background: #ffffff; transition: all 0.3s ease; opacity: 0.4; }
    .cursor-outline::before { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
    .cursor-outline::after { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
    .cursor-outline.hovering { width: 60px; height: 60px; background-color: rgba(255, 255, 255, 0.05); border-color: #ffffff; }
    .cursor-outline.hovering::before { left: -10px; right: -10px; background: #ffffff; opacity: 1; }
    .cursor-outline.hovering::after { top: -10px; bottom: -10px; background: #ffffff; opacity: 1;}
}
@media (pointer: coarse) { .cursor-dot, .cursor-outline { display: none !important; } }

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .about-hero { flex-direction: column; text-align: left; gap: 2rem; }
    .build-grid, .skills-grid, .values-grid, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links { position: fixed; top: var(--nav-height); left: 0; width: 100%; background: rgba(9, 9, 11, 0.98); backdrop-filter: blur(30px); flex-direction: column; align-items: center; padding: 3rem 0; gap: 1.5rem; transform: translateY(-150%); transition: transform 0.4s ease; border-bottom: 1px solid rgba(255,255,255,0.05); z-index: 99; }
    .nav-links.nav-active { transform: translateY(0); }
    .nav-right .btn-pill { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .hero p.desc { font-size: 1.05rem; }
    .showreel-card { flex: 0 0 100%; min-width: 100%; }
    .minimal-section-header { flex-direction: column; align-items: flex-start !important; gap: 1.5rem; }
}
