@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@700;800&family=Fira+Code:wght@400;500&display=swap');

/* MODERN DESIGN SYSTEM & GLOBAL STYLES */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color Palette (HSL) */
    --bg-base: hsl(240, 10%, 4%);        /* Deepest Zinc/Charcoal background */
    --bg-subtle: hsl(240, 10%, 7%);      /* Slightly lighter for sections */
    --bg-card: hsla(240, 10%, 9%, 0.4);   /* Translucent card backing */
    --bg-card-hover: hsla(240, 10%, 14%, 0.6);
    --border: hsla(240, 6%, 20%, 0.45);
    --border-hover: hsla(240, 6%, 35%, 0.6);
    
    --text-primary: hsl(240, 5%, 96%);   /* Off-white */
    --text-secondary: hsl(240, 5%, 72%); /* Slate/Gray */
    --text-muted: hsl(240, 4%, 48%);     /* Deep gray */
    
    --primary: hsl(263, 90%, 65%);       /* Neon Violet-Indigo */
    --primary-glow: hsla(263, 90%, 65%, 0.15);
    --primary-bright: hsl(263, 100%, 75%);
    
    --secondary: hsl(171, 90%, 50%);     /* Electric AI Teal */
    --secondary-glow: hsla(171, 90%, 50%, 0.15);
    
    --accent: hsl(35, 90%, 55%);         /* Amber glow for badges/warnings */
    --accent-glow: hsla(35, 90%, 55%, 0.15);
    --green: hsl(142, 70%, 50%);         /* Bright Success Emerald */
    --green-glow: hsla(142, 70%, 50%, 0.15);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-accent: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Layout Tokens */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* BACKGROUND FLUID MESH GRADIENTS */
.mesh-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.16;
    mix-blend-mode: screen;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
    animation: float-blob-1 25s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 80%);
    animation: float-blob-2 20s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    top: 40%;
    left: 45%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 80%);
    animation: float-blob-3 15s infinite alternate ease-in-out;
}

@keyframes float-blob-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes float-blob-2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-100px, -90px) scale(0.9); }
}
@keyframes float-blob-3 {
    0% { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(80px, -60px) scale(1.2); }
}

/* CURSOR GLOW EFFECT */
.glow-cursor {
    position: fixed;
    pointer-events: none;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, hsla(263, 90%, 65%, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    will-change: left, top;
    transition: opacity 0.3s ease;
}

/* FLOATING HEADER NAVIGATION */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(15, 15, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
}

.nav-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.nav-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), hsl(263, 90%, 55%));
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    transition: var(--transition-smooth);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 5vw 80px;
    position: relative;
    z-index: 2;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.2;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.hero-image {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--primary-glow);
    animation: slow-bounce 6s ease-in-out infinite;
}

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


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 16px 6px 12px;
    margin-bottom: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6.5vw, 5.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 .line1 {
    display: block;
    color: var(--text-primary);
}

.hero h1 .line2 {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary) 60%, hsl(263, 100%, 75%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.25em;
    position: relative;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-fill {
    background: linear-gradient(135deg, var(--primary), hsl(263, 90%, 55%));
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* STATS */
.hero-stats {
    display: flex;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: fit-content;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.stat {
    padding: 1.4rem 2.2rem;
    text-align: center;
    background: rgba(15, 15, 18, 0.5);
    transition: var(--transition-fast);
}

.stat:hover {
    background: rgba(255, 255, 255, 0.02);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* SECTION COMMONS */
section {
    padding: 8rem 5vw;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.s-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.s-label::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--secondary);
}

.s-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 3.5rem;
}

/* SPOTLIGHT CARDS & HOVER EFFECTS */
.spotlight-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.spotlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.2px; /* Border thickness */
    background: radial-gradient(
        300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        hsla(263, 90%, 65%, 0.3) 0%,
        transparent 80%
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.spotlight-card:hover {
    background: var(--bg-card-hover);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.spotlight-card:hover::before {
    opacity: 1;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.about-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
}

.chip {
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.info-list {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-glow);
    border: 1px solid hsla(263, 90%, 65%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--primary-bright);
}

.info-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 2px;
}

.info-val {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.info-val a {
    color: var(--primary-bright);
    text-decoration: none;
    transition: var(--transition-fast);
}

.info-val a:hover {
    color: var(--text-primary);
}

/* EXPERIENCE SECTION (TIMELINE) */
.timeline {
    position: relative;
    padding-left: 20px;
}

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

.tl-item {
    position: relative;
    padding-bottom: 3.5rem;
    padding-left: 25px;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-dot {
    position: absolute;
    left: -25px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2;
    transition: var(--transition-smooth);
}

.tl-item:hover .tl-dot {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 0 15px var(--secondary-glow);
    transform: scale(1.2);
}

.tl-period {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.tl-role {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 2px;
}

.tl-co {
    font-size: 0.9rem;
    color: var(--primary-bright);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.tl-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tl-bullets li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 20px;
    position: relative;
}

.tl-bullets li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* SKILLS SECTION (BENTO GRID) */
.skills-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.skill-card {
    padding: 1.8rem;
}

.skill-cat {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-cat::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary-glow);
}

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

.stag {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.stag:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--text-muted);
}

/* PROJECTS SECTION */
.projects-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.projects-header .s-title {
    margin-bottom: 0;
}

/* Filter controls */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Proj Grid */
.proj-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    transition: var(--transition-smooth);
}

.proj-card {
    padding: 2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.proj-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, hsla(263, 90%, 65%, 0.06) 0%, var(--bg-card) 60%);
    border: 1px solid hsla(263, 90%, 65%, 0.25);
}

.proj-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.proj-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-glow);
    border: 1px solid hsla(263, 90%, 65%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: var(--primary-bright);
}

.proj-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary);
    background: var(--secondary-glow);
    border: 1px solid hsla(171, 90%, 50%, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
}

.proj-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.proj-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.proj-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.proj-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.ptag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-bright);
    transition: var(--transition-fast);
}

.proj-card:hover .proj-link {
    gap: 10px;
    color: var(--text-primary);
}

/* Animations for project filtering */
.proj-item {
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.proj-item.hide {
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

/* CONTACT SECTION */
.contact-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    backdrop-filter: blur(10px);
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.clinks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clink {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-fast);
}

.clink:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary);
    transform: translateX(4px);
}

.clink-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--primary-glow);
    border: 1px solid hsla(263, 90%, 65%, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--primary-bright);
}

.clink-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cform {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    position: relative;
    width: 100%;
}

.cform input,
.cform textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition-fast);
}

.cform textarea {
    resize: vertical;
    min-height: 140px;
}

/* Floating Label Mechanics */
.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}

.form-group.textarea label {
    top: 24px;
}

.cform input:focus ~ label,
.cform input:not(:placeholder-shown) ~ label,
.cform textarea:focus ~ label,
.cform textarea:not(:placeholder-shown) ~ label {
    top: 0;
    left: 12px;
    font-size: 0.72rem;
    color: var(--primary-bright);
    background: var(--bg-base);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.cform input:focus,
.cform textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.cform .btn {
    align-self: flex-start;
    padding: 14px 28px;
}

/* TOAST SUCCESS MESSAGES */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 15, 18, 0.85);
    border: 1px solid var(--green);
    box-shadow: 0 10px 35px -10px rgba(0, 0, 0, 0.8), 0 0 15px var(--green-glow);
    padding: 14px 22px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 0.88rem;
}

.toast-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* REVEAL ON SCROLL ELEMENTS */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 5vw;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* RESPONSIVE DESIGN MEDIA QUERIES */
@media (max-width: 992px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-image-wrapper {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 2.5rem;
    }
}


@media (max-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }
    
    .hero {
        padding: 120px 1.5rem 60px;
    }
    
    header {
        top: 10px;
        width: 95%;
    }
    
    nav {
        padding: 8px 16px;
    }
    
    .nav-links {
        display: none; /* Hide link bar, mobile would use burger or just rely on sections */
    }
    
    .proj-grid {
        grid-template-columns: 1fr;
    }
    
    .proj-card.featured {
        grid-column: span 1;
    }
    
    .skills-bento {
        grid-template-columns: 1fr;
    }
    
    .skill-card[style*="span 2"] {
        grid-column: span 1 !important;
    }
    
    .hero-stats {
        width: 100%;
        flex-direction: column;
    }
    
    .stat {
        padding: 1rem;
    }
}

/* TYPING CURSOR */
.hero h1 .line2::after {
    content: "|";
    display: inline-block;
    margin-left: 4px;
    color: var(--secondary);
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    from, to { color: transparent }
    50% { color: var(--secondary) }
}

