/* ========= Reset & Base ========= */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg);
    color: var(--foreground);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    line-height: 1.6;
}

:root{
    /* Colors (light theme) */
    --bg: #f7f9fc;
    --surface: #ffffff;
    --foreground: #0f172a;          /* slate-900 */
    --muted-foreground: #64748b;     /* slate-500 */
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.06), 0 1px 2px rgba(2, 6, 23, 0.04);

    /* Primary gradient */
    --primary: #32c6ff;
    --primary-2: #5b5bf1;

    /* Radii & sizing */
    --radius: 14px;
    --radius-sm: 10px;
    --container: 1180px;
}

/* Container */
.container{ max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

/* Sections */
.section { padding: 80px 0; }
.section-muted { background: rgba(15,23,42,.035); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-subtle{ background: linear-gradient(180deg, rgba(49,196,255,.06), rgba(91,91,241,.04)); }

/* Page content spacing to respect sticky navbar */
.page-content{ padding-top: 0px; }

/* ========= Typography ========= */
h1, h2, h3, .brand{
    font-family: Sora, Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: -0.02em;
}
h1, .hero-title{
    font-weight: 700;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
    margin: 14px 0 10px;
    background: linear-gradient(180deg, #2ea3ff 0%, #5868ff 45%, #4b3df0 90%);
    -webkit-background-clip: text;
    background-clip: text; color: transparent;
}
.section-title{ font-weight: 700; font-size: clamp(28px, 3.6vw, 36px); margin: 0 0 8px; }
.section-head{ text-align: center; margin-bottom: 28px; }
.section-subtitle{ color: var(--muted-foreground); max-width: 760px; margin: 0 auto; }
.section-subtitle.strong{ color: var(--foreground); font-weight: 600; }
.center{ text-align: center; }
.text-center{ text-align: center; }

/* Small badge */
.badge{
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; padding: 6px 10px; border-radius: 999px;
    background: rgba(59,130,246,.08); color: #0ea5e9;
    border: 1px solid rgba(59,130,246,.15);
}
.badge .icon{ width: 16px; height: 16px; }

/* ========= Navigation ========= */
.site-nav{
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: saturate(140%) blur(10px);
    background: rgba(255,255,255,.75);
    border-bottom: 1px solid var(--border);
}
.nav-inner{ height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand{ font-weight: 700; font-size: 20px; color: var(--foreground); text-decoration: none; transition: color .2s ease; }
.brand:hover{ color: #2563eb; }
.nav-links{ list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-link{ text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted-foreground); transition: color .2s ease; }
.nav-link:hover{ color: #2563eb; }
.nav-link.is-active{ color: #2563eb; }

/* ========= Buttons ========= */
.btn{
    --btn-pad-y: 12px; --btn-pad-x: 16px; --btn-radius: 12px;
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px; text-decoration: none;
    border-radius: var(--btn-radius);
    padding: var(--btn-pad-y) var(--btn-pad-x);
    transition: transform .05s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn .icon{ width: 18px; height: 18px; }
.btn-ghost{ color: var(--foreground); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover{ background: rgba(2,6,23,0.05); border-color: var(--border); }
.btn-primary{
    color: #fff; border: 0;
    background-image: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover{ filter: brightness(1.03); transform: translateY(-1px); }
.btn-outline{
    color: var(--foreground); border: 1px solid var(--border); background: rgba(255,255,255,.6);
}
.btn-outline:hover{ background: rgba(2,6,23,0.05); }
.btn-outline-white{
    color: #fff; border: 1px solid rgba(255,255,255,.35); background: transparent;
}
.btn-outline-white:hover{ background: rgba(255,255,255,.12); }
.w-full{ width: 100%; }

/* ========= Footer ========= */
.site-footer{ margin-top: 0px; background: rgba(15, 23, 42, 0.035); border-top: 1px solid var(--border); }
.footer-top{ padding: 32px 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.footer-title{ margin: 0 0 6px 0; font-size: 18px; }
.muted{ color: var(--muted-foreground); }
.footer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-bottom{ border-top: 1px solid var(--border); text-align: center; color: var(--muted-foreground); font-size: 13px; padding: 20px 0 26px; }

/* ========= Hero ========= */
.hero{ padding-top: 72px; }
.hero-inner{ text-align: center; }
.hero-subtitle{
    color: var(--muted-foreground);
    max-width: 900px; margin: 14px auto 0;
    font-size: clamp(16px, 1.6vw, 20px);
}
.hero-actions{ display: flex; gap: 12px; justify-content: center; align-items: center; margin: 24px 0 32px; flex-wrap: wrap; }

/* KPI grid */
.kpi-grid{ display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; max-width: 720px; margin: 0 auto; }
.kpi{ text-align: center; }
.kpi .metric{ font-size: clamp(24px, 3.8vw, 34px); font-weight: 800; color: #2ea3ff; }
.kpi .label{ font-weight: 600; margin-top: 2px; }
.kpi .hint{ font-size: 12px; color: var(--muted-foreground); }

/* ========= Cards & helpers ========= */
.card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-padded{ padding: 28px; }
.card-title{ font-weight: 700; margin: 10px 0; }
.shadow-soft{ box-shadow: var(--shadow); }
.rounded-lg{ border-radius: var(--radius); }
.rounded-md{ border-radius: var(--radius-sm); }
.hover-float{ transition: transform .25s ease, box-shadow .25s ease; }
.hover-float:hover{ transform: translateY(-3px); box-shadow: 0 16px 40px rgba(2,6,23,.10); }

/* Icon box used on skills cards */
.icon-box{
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 16px;
    display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,99,235,.25);
}
.icon-lg{ width: 32px; height: 32px; }
.gradient-accent{
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

/* Chips */
.chip-row{ display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.chip{
    display: inline-flex; align-items: center; padding: 6px 10px;
    font-size: 12px; border-radius: 999px; background: rgba(2,6,23,.04);
    border: 1px solid var(--border);
}
.chip.small{ padding: 4px 8px; font-size: 11px; }

/* Tech cards */
.tech-card{ padding: 16px; text-align: center; }
.tech-name{ font-weight: 600; margin-bottom: 4px; }
.tech-cat{ color: #2ea3ff; font-size: 12px; margin-bottom: 2px; }
.tech-exp{ font-size: 12px; color: var(--muted-foreground); }

/* Project cards */
.project-card{ overflow: hidden; display: flex; flex-direction: column; }
.project-media{
    height: 180px; background: linear-gradient(180deg, #eaf7ff, #eef1ff);
    border-bottom: 1px solid var(--border); position: relative;
}
.label-featured{
    position: absolute; top: 12px; left: 12px;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; font-size: 12px; border-radius: 999px;
    background: #ffb020; color: #2b1d00;
    box-shadow: 0 6px 14px rgba(255,176,32,.35);
}
.project-body{ padding: 18px; display: grid; gap: 10px; }
.stack-row{ display: flex; gap: 8px; flex-wrap: wrap; }
.project-title{ font-weight: 700; margin: 4px 0; }
.project-list{ margin: 0; padding-left: 18px; color: var(--muted-foreground); }
.project-list li{ margin: 2px 0; }

/* Process */
.process-card .step{
    width: 44px; height: 44px; border-radius: 999px; margin: 0 auto 10px;
    display: grid; place-items: center; font-weight: 800;
    color: white; background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

/* CTA */
.gradient-tech{ background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.cta-card{ padding: 40px 24px; border: 0; color: #fff; }
.cta-title{ margin: 0 0 8px 0; font-size: clamp(26px, 3.6vw, 36px); color: #fff; }
.cta-subtitle{ color: rgba(255,255,255,.9); max-width: 720px; margin: 0 auto 22px; }
.cta-actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ========= Grids ========= */
.gap-16{ gap: 16px; } .gap-24{ gap: 24px; } .mb-24{ margin-bottom: 24px; } .mb-32{ margin-bottom: 32px; } .mb-40{ margin-bottom: 40px; }
.grid-3{ display: grid; grid-template-columns: 1fr; }
.grid-4{ display: grid; grid-template-columns: 1fr 1fr; }

/* ========= Responsive ========= */
@media (min-width: 640px){
    .kpi-grid{ grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 780px){
    .nav-links{ gap: 18px; }
    .grid-3{ grid-template-columns: repeat(3, 1fr); }
    .grid-4{ grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px){
    .nav-inner{ height: 60px; }
    .nav-links{ display: none; }
    .page-content{ padding-top: 68px; }
    .hide-sm{ display: none; }
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.lang-option {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.lang-option:hover {
    background: rgba(2, 6, 23, 0.05);
    color: var(--foreground);
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}

/* Socials – icon sizes/brands */
.icon-box.sm {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 24px rgba(2,6,23,.10);
}
.icon-md { width: 24px; height: 24px; color: #fff; }

/* brand backgrounds (solid, readable) */
.brand-linkedin { background: #2563eb; }
.brand-github   { background: #111827; }
.brand-mail     { background: #dc2626; }
.brand-globe    { background: #16a34a; }

/* polish the card layout a bit */
.social-card h3.card-title { margin: 0 0 2px; }
.social-card .muted { color: var(--muted-foreground); }

/* Socials cards */
.social-card {
    transition: background 0.25s ease, border-color 0.25s ease;
}

.social-card:hover {
    background: rgba(59,130,246,0.04); /* subtle highlight */
    border-color: rgba(59,130,246,0.2);
}

/* Icon grows smoothly */
.social-card .icon-box.sm {
    transition: transform 0.3s ease;
}
.social-card:hover .icon-box.sm {
    transform: scale(1.2);
}

/* Visit link lights up */
.social-card .visit-link {
    color: var(--muted-foreground);
    font-weight: 600;
    transition: color 0.3s ease;
}
.social-card:hover .visit-link {
    color: #2563eb; /* brand blue */
    text-decoration: underline;
}

/* Contact — Availability icons */
.avail-list { display: grid; gap: 12px; }
.avail-list li { display: flex; align-items: center; gap: 10px; }

.avail-list .icon {
    width: 18px;   /* same as your global .icon size */
    height: 18px;  /* keep them small */
    color: var(--muted-foreground);
    flex: 0 0 18px;
}
