/* =============================================
   RESET & ROOT
   ============================================= */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
    --primary: #7C3AED;
    --primary-dark: #6D28D9;
    --primary-light: #EDE9FE;
    --accent: #06B6D4;
    --success: #10B981;
    --dark: #0F0F0F;
    --dark-2: #1A1A2E;
    --text: #111827;
    --text-2: #4B5563;
    --text-3: #9CA3AF;
    --border: #E5E7EB;
    --bg: #FFFFFF;
    --bg-2: #F9FAFB;
    --bg-3: #F3F4F6;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.12);
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --t: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); overflow-x: hidden; line-height: 1.6; }

/* =============================================
   UTILITIES
   ============================================= */
.section-pad { padding: 90px 0; }

.section-header { text-align: center; margin-bottom: 56px; }

.section-label {
    display: inline-block;
    font-size: 11px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
    color: var(--primary); background: var(--primary-light);
    padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px,4vw,40px); font-weight: 700;
    color: var(--text); margin-bottom: 12px; line-height: 1.2;
}

.section-sub { font-size:16px; color:var(--text-2); max-width:520px; margin:0 auto; line-height:1.7; }

.reveal { opacity:0; transform:translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: box-shadow var(--t);
    z-index: 1000;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-link {
    font-size:14px; font-weight:400;
    color: var(--text-2) !important;
    padding: 6px 12px !important;
    border-radius: var(--radius-sm);
    transition: all var(--t);
}
.nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.nav-link.active { color: var(--primary) !important; }

.nav-cta { background: var(--primary) !important; color: white !important; font-weight:500 !important; }
.nav-cta:hover { background: var(--primary-dark) !important; color: white !important; }

.navbar-toggler { border:none; padding:6px; background:none; box-shadow:none !important; }
.toggler-line { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; margin:4px 0; transition:all var(--t); }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(1) { transform:translateY(6px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(2) { opacity:0; }
.navbar-toggler[aria-expanded="true"] .toggler-line:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }

.social-links { display:flex; gap:6px; align-items:center; }
.social-links a {
    width:34px; height:34px; border-radius:50%;
    background: var(--bg-3); border: 1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    color:var(--text-2); font-size:14px; text-decoration:none;
    transition:all var(--t);
}
.social-links a:hover { background:var(--primary); color:white; border-color:var(--primary); transform:translateY(-2px); }

/* =============================================
   HERO
   ============================================= */
.hero {
    background: linear-gradient(160deg,#F5F0FF 0%,#EEF7FF 50%,#EDFFF9 100%);
    padding: 80px 0 90px;
    position: relative; overflow: hidden;
    min-height: 90vh; display: flex; align-items: center;
}
.hero-bg-grid {
    position:absolute; inset:0;
    background-image: linear-gradient(rgba(124,58,237,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(124,58,237,.04) 1px,transparent 1px);
    background-size: 48px 48px; pointer-events:none;
}

.hero-badge {
    display:inline-flex; align-items:center; gap:8px;
    background:white; border:1px solid var(--border); border-radius:20px;
    padding:6px 14px; font-size:13px; color:var(--text-2);
    margin-bottom:20px; box-shadow:var(--shadow);
}
.badge-dot { width:8px; height:8px; border-radius:50%; background:var(--success); animation:pulse 2s ease-in-out infinite; }

@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.4);opacity:.6} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }

.hero-title { font-family:var(--font-display); font-size:clamp(32px,5vw,56px); font-weight:700; line-height:1.15; margin-bottom:18px; }
.hero-name { color:var(--primary); display:block; }
.hero-desc { font-size:16px; color:var(--text-2); line-height:1.7; max-width:500px; margin-bottom:24px; }

.hero-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.htag { font-size:13px; padding:5px 14px; border-radius:20px; border:1px solid var(--border); background:white; color:var(--text-2); transition:all var(--t); }
.htag:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-light); }

.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-bottom:36px; }
.btn-hero-main {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--primary); color:white; text-decoration:none;
    padding:13px 24px; border-radius:var(--radius); font-size:14px; font-weight:500;
    transition:all var(--t); box-shadow:0 4px 20px rgba(124,58,237,.35);
}
.btn-hero-main:hover { background:var(--primary-dark); color:white; transform:translateY(-2px); box-shadow:0 8px 30px rgba(124,58,237,.45); }
.btn-hero-outline {
    display:inline-flex; align-items:center; gap:8px;
    background:white; color:var(--text); text-decoration:none;
    padding:13px 24px; border-radius:var(--radius); font-size:14px; font-weight:500;
    border:1px solid var(--border); transition:all var(--t);
}
.btn-hero-outline:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }

.hero-stats { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.hstat { display:flex; flex-direction:column; }
.hstat-num { font-family:var(--font-display); font-size:28px; font-weight:700; color:var(--primary); line-height:1; }
.hstat-lbl { font-size:12px; color:var(--text-3); margin-top:3px; }
.hstat-div { width:1px; height:40px; background:var(--border); }

/* Hero photo */
.hero-photo-wrap { position:relative; display:flex; justify-content:center; align-items:center; padding:30px; }
.hero-photo-ring { position:absolute; width:380px; height:380px; border-radius:50%; border:2px dashed rgba(124,58,237,.2); animation:spin 20s linear infinite; }
.hero-photo {
    width:300px; height:300px; border-radius:50%;
    object-fit:cover; object-position:center top;
    border:5px solid white; box-shadow:var(--shadow-md);
    position:relative; z-index:1; animation:float 4s ease-in-out infinite;
}
.hero-photo-card {
    position:absolute; background:white; border-radius:var(--radius);
    padding:10px 14px; font-size:12px; font-weight:500;
    box-shadow:var(--shadow-md); display:flex; align-items:center; gap:6px;
    z-index:2; border:1px solid var(--border); white-space:nowrap;
}
.hero-photo-card i { color:var(--primary); }
.card-webdev { top:-5%; left:-5%; animation:float 3s ease-in-out infinite; }
.card-flutter { top:10%; right:-5%; animation:float 3.5s ease-in-out infinite; }
.card-iot { bottom:5%; left:0%; animation:float 4.5s ease-in-out infinite reverse; }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio { background:var(--bg); }
.portfolio-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:24px; }
.pcard { border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); background:var(--bg); cursor:pointer; transition:all var(--t); }
.pcard:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:rgba(124,58,237,.2); }
.pcard-thumb { height:200px; position:relative; overflow:hidden; }
.pcard-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform var(--t); }
.pcard:hover .pcard-thumb img { transform:scale(1.05); }
.pcard-overlay { position:absolute; inset:0; background:rgba(124,58,237,.85); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity var(--t); }
.pcard-overlay span { color:white; font-size:14px; font-weight:500; display:flex; align-items:center; gap:6px; }
.pcard:hover .pcard-overlay { opacity:1; }
.pcard-body { padding:18px; }
.pcard-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.ptag { font-size:11px; padding:3px 10px; border-radius:20px; background:var(--primary-light); color:var(--primary); font-weight:500; }
.pcard-title { font-family:var(--font-display); font-size:16px; font-weight:600; color:var(--text); margin-bottom:6px; }
.pcard-desc { font-size:13px; color:var(--text-2); line-height:1.6; margin:0; }

/* =============================================
   SKILLS
   ============================================= */
.skills-section { background:var(--bg-2); }
.skills-wrap { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:24px; }
.skill-group { background:var(--bg); border-radius:var(--radius-lg); padding:24px; border:1px solid var(--border); }
.skill-group-title { font-family:var(--font-display); font-size:14px; font-weight:600; margin-bottom:18px; display:flex; align-items:center; gap:8px; }
.skill-group-title i { color:var(--primary); }
.skill-list { display:flex; flex-direction:column; gap:14px; }
.skill-meta { display:flex; justify-content:space-between; font-size:13px; color:var(--text-2); margin-bottom:6px; }
.skill-meta span:last-child { color:var(--primary); font-weight:500; }
.skill-bar { height:5px; background:var(--bg-3); border-radius:3px; overflow:hidden; }
.skill-fill { height:100%; background:linear-gradient(90deg,var(--primary),var(--accent)); border-radius:3px; width:0; transition:width 1.2s cubic-bezier(.4,0,.2,1); }

/* =============================================
   EXPERIENCE
   ============================================= */
.experience { background:var(--bg); }

.exp-list { display:flex; flex-direction:column; gap:0; }

.exp-item {
    display:flex; gap:24px;
    padding-bottom:48px; position:relative;
}
.exp-item:last-child { padding-bottom:0; }

.exp-left { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }

.exp-logo-wrap {
    width:64px; height:64px; border-radius:var(--radius);
    background:var(--bg-2); border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden; position:relative; z-index:1; flex-shrink:0;
}
.exp-logo { width:100%; height:100%; object-fit:contain; padding:8px; }
.exp-logo-fallback {
    font-family:var(--font-display); font-size:18px; font-weight:700;
    color:var(--primary); position:absolute;
}
.exp-logo-wrap:has(.exp-logo[style*="display:none"]) .exp-logo-fallback { display:flex; }
.exp-logo-wrap .exp-logo-fallback { display:none; }

.exp-vline { flex:1; width:2px; background:var(--border); margin-top:12px; min-height:40px; }
.exp-item:last-child .exp-vline { display:none; }

.exp-right { flex:1; min-width:0; }

.exp-header {
    display:flex; justify-content:space-between; align-items:flex-start;
    gap:12px; margin-bottom:14px; flex-wrap:wrap;
}
.exp-role { font-family:var(--font-display); font-size:18px; font-weight:700; color:var(--text); margin-bottom:4px; }
.exp-company { font-size:14px; color:var(--primary); font-weight:500; margin:0; }
.exp-period-wrap { display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex-shrink:0; }
.exp-period { font-size:13px; color:var(--text-2); font-weight:500; white-space:nowrap; }
.exp-type {
    font-size:11px; padding:3px 10px; border-radius:20px;
    background:var(--primary-light); color:var(--primary); font-weight:500;
}

.exp-desc { font-size:14px; color:var(--text-2); line-height:1.7; margin-bottom:14px; }

.exp-points { padding-left:18px; margin-bottom:16px; }
.exp-points li { font-size:14px; color:var(--text-2); line-height:1.7; margin-bottom:4px; }

.exp-tags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:20px; }
.etag { font-size:11px; padding:4px 12px; border-radius:20px; background:var(--bg-3); color:var(--text-2); border:1px solid var(--border); }

.exp-photos { display:flex; gap:12px; flex-wrap:wrap; }
.exp-photo-item {
    border-radius:var(--radius); overflow:hidden;
    border:1px solid var(--border); flex:1; min-width:160px; max-width:260px;
}
.exp-photo-item img { width:100%; height:160px; object-fit:cover; display:block; transition:transform var(--t); }
.exp-photo-item:hover img { transform:scale(1.03); }

/* =============================================
   EDUCATION
   ============================================= */
.education { background:var(--bg-2); }
.edu-timeline { max-width:700px; margin:0 auto; display:flex; flex-direction:column; position:relative; }
.edu-timeline::before { content:''; position:absolute; left:32px; top:16px; bottom:16px; width:2px; background:linear-gradient(to bottom,var(--primary),var(--accent)); opacity:.3; }
.edu-item { display:flex; gap:24px; align-items:flex-start; padding-bottom:36px; }
.edu-item:last-child { padding-bottom:0; }
.edu-icon { width:64px; height:64px; border-radius:50%; background:var(--primary); color:white; font-family:var(--font-display); font-size:13px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 4px 16px rgba(124,58,237,.3); position:relative; z-index:1; }
.edu-card { background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px 24px; flex:1; transition:all var(--t); }
.edu-card:hover { box-shadow:var(--shadow); border-color:rgba(124,58,237,.2); }
.edu-period { font-size:12px; font-weight:500; color:var(--primary); letter-spacing:.5px; margin-bottom:6px; }
.edu-school { font-family:var(--font-display); font-size:17px; font-weight:600; margin-bottom:6px; }
.edu-degree { font-size:14px; color:var(--text-2); margin-bottom:12px; line-height:1.5; }
.edu-abbr { color:var(--text-3); font-size:13px; }
.edu-gpa { display:inline-flex; align-items:center; gap:6px; background:var(--primary-light); color:var(--primary); padding:5px 12px; border-radius:20px; font-size:13px; font-weight:500; }
.edu-gpa i { font-size:10px; color:#F59E0B; }

/* =============================================
   CERTIFICATION
   ============================================= */
.certification { background:var(--bg); }

/* Featured — full width landscape */
.cert-featured {
    position:relative; border-radius:var(--radius-lg); overflow:hidden;
    margin-bottom:40px; border:1px solid var(--border);
    box-shadow:var(--shadow);
}
.cert-featured img { width:100%; max-height:320px; object-fit:cover; display:block; }
.cert-featured-label {
    position:absolute; bottom:0; left:0; right:0;
    padding:14px 20px;
    background:linear-gradient(to top,rgba(0,0,0,.6),transparent);
    color:white; font-size:14px; font-weight:500;
}

/* Row label */
.cert-row-label {
    font-family:var(--font-display); font-size:13px; font-weight:600;
    color:var(--text-2); text-transform:uppercase; letter-spacing:1px;
    margin-bottom:12px; margin-top:32px;
    display:flex; align-items:center; gap:10px;
}
.cert-row-label::after { content:''; flex:1; height:1px; background:var(--border); }

/* Pair — 2 certs side by side (handles portrait) */
.cert-pair {
    display:grid; grid-template-columns:1fr 1fr; gap:16px;
    margin-bottom:8px;
}
.cert-pair-item { border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); background:var(--bg-2); }
.cert-pair-item img { width:100%; height:auto; display:block; transition:transform var(--t); }
.cert-pair-item:hover img { transform:scale(1.02); }

/* Masonry row — 3 landscape certs with caption */
.cert-masonry {
    display:grid; grid-template-columns:repeat(3,1fr); gap:16px;
    margin-bottom:8px;
}
.cert-masonry-item {
    border-radius:var(--radius); overflow:hidden;
    border:1px solid var(--border); background:var(--bg-2);
    position:relative; cursor:pointer;
}
.cert-masonry-item img { width:100%; height:160px; object-fit:cover; display:block; transition:transform var(--t); }
.cert-masonry-item:hover img { transform:scale(1.03); }
.cert-caption {
    display:block; padding:8px 12px;
    font-size:12px; color:var(--text-2); font-weight:500;
    background:var(--bg); border-top:1px solid var(--border);
}

/* Soft skills horizontal scroll strip */
.cert-strip-wrap {
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:8px;
    scrollbar-width:thin;
    scrollbar-color:var(--border) transparent;
}
.cert-strip-wrap::-webkit-scrollbar { height:4px; }
.cert-strip-wrap::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }
.cert-strip {
    display:flex; gap:14px;
    width:max-content;
}
.cert-strip-item {
    width:200px; flex-shrink:0;
    border-radius:var(--radius); overflow:hidden;
    border:1px solid var(--border);
}
.cert-strip-item img { width:100%; height:140px; object-fit:cover; display:block; transition:transform var(--t); }
.cert-strip-item:hover img { transform:scale(1.03); }

/* =============================================
   ACTIVITY GALLERY
   ============================================= */
.activity { background:var(--bg-2); }

/* Filter buttons */
.gallery-filters {
    display:flex; flex-wrap:wrap; gap:10px;
    justify-content:center; margin-bottom:32px;
}
.gfilter {
    padding:8px 20px; border-radius:20px;
    border:1px solid var(--border); background:var(--bg);
    font-size:13px; font-weight:500; color:var(--text-2);
    cursor:pointer; transition:all var(--t);
}
.gfilter:hover, .gfilter.active {
    background:var(--primary); color:white; border-color:var(--primary);
}

/* CSS Grid masonry */
.gallery-grid {
    columns: 4; column-gap:14px;
}

.gcard {
    break-inside:avoid; margin-bottom:14px;
    border-radius:var(--radius); overflow:hidden;
    border:1px solid var(--border); position:relative;
    cursor:pointer; display:block;
    transition:all var(--t);
}
.gcard img { width:100%; height:auto; display:block; transition:transform var(--t); }
.gcard.tall img { aspect-ratio:3/4; object-fit:cover; }
.gcard.wide img { aspect-ratio:16/9; object-fit:cover; }
.gcard:not(.tall):not(.wide) img { aspect-ratio:4/3; object-fit:cover; }

.gcard:hover { box-shadow:var(--shadow-md); transform:translateY(-3px); }
.gcard:hover img { transform:scale(1.04); }

.gcard-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to top,rgba(0,0,0,.7) 0%,transparent 60%);
    display:flex; flex-direction:column; justify-content:flex-end;
    padding:14px; opacity:0; transition:opacity var(--t);
}
.gcard:hover .gcard-overlay { opacity:1; }
.gcard-caption { color:white; font-size:13px; font-weight:500; line-height:1.3; }
.gcard-cat {
    font-size:10px; padding:2px 8px; border-radius:10px;
    background:var(--primary); color:white; font-weight:500;
    align-self:flex-start; margin-top:4px;
}

/* Placeholder when image fails */
.gcard.img-error { background:var(--bg-3); min-height:150px; }
.gcard.img-error img { display:none; }

/* Hidden by filter */
.gcard.hidden { display:none; }

/* Lightbox */
.lightbox {
    display:none; position:fixed; inset:0; z-index:3000;
    background:rgba(0,0,0,.92);
    align-items:center; justify-content:center;
    padding:20px;
}
.lightbox.open { display:flex; }
.lightbox-inner { max-width:900px; width:100%; text-align:center; }
.lightbox-inner img { max-width:100%; max-height:80vh; border-radius:var(--radius); object-fit:contain; }
.lightbox-caption { color:#D1D5DB; font-size:14px; margin-top:12px; }
.lightbox-close {
    position:fixed; top:20px; right:24px;
    background:rgba(255,255,255,.1); border:none;
    width:44px; height:44px; border-radius:50%;
    color:white; font-size:22px; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background var(--t);
}
.lightbox-close:hover { background:rgba(255,255,255,.2); }
.lightbox-nav {
    position:fixed; top:50%; transform:translateY(-50%);
    background:rgba(255,255,255,.1); border:none;
    width:48px; height:48px; border-radius:50%;
    color:white; font-size:16px; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background var(--t);
}
.lightbox-nav:hover { background:rgba(255,255,255,.2); }
.lightbox-nav.prev { left:20px; }
.lightbox-nav.next { right:20px; }

/* =============================================
   CONTACT
   ============================================= */
.contact { background:var(--dark-2); }
.contact .section-label { background:rgba(124,58,237,.2); color:#A78BFA; }
.contact .section-title { color:white; }
.contact .section-sub { color:#94A3B8; }

.contact-card {
    background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.1);
    border-radius:24px; padding:40px; max-width:900px; margin:0 auto;
}
.contact-info { display:flex; flex-direction:column; gap:18px; }
.contact-item { display:flex; align-items:center; gap:14px; }
.cicon { width:42px; height:42px; border-radius:10px; background:rgba(124,58,237,.2); display:flex; align-items:center; justify-content:center; color:#A78BFA; font-size:16px; flex-shrink:0; }
.citem-label { font-size:11px; color:#64748B; text-transform:uppercase; letter-spacing:.5px; margin-bottom:2px; }
.citem-val { font-size:14px; color:#E2E8F0; word-break:break-all; }
.contact-tagline { font-family:var(--font-display); font-size:20px; font-weight:600; color:white; margin-bottom:24px; line-height:1.4; }

.btn-wa {
    display:inline-flex; align-items:center; justify-content:center; gap:10px;
    background:var(--primary); color:white; text-decoration:none;
    padding:14px 28px; border-radius:50px; font-size:15px; font-weight:500;
    transition:all var(--t); box-shadow:0 6px 24px rgba(124,58,237,.4);
    margin-bottom:24px; width:100%;
}
.btn-wa:hover { background:var(--primary-dark); color:white; transform:translateY(-2px); box-shadow:0 10px 32px rgba(124,58,237,.5); }
.contact-social { display:flex; justify-content:center; gap:10px; }
.contact-social a {
    width:40px; height:40px; border-radius:50%;
    background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12);
    color:#94A3B8; display:flex; align-items:center; justify-content:center;
    text-decoration:none; font-size:15px; transition:all var(--t);
}
.contact-social a:hover { background:var(--primary); border-color:var(--primary); color:white; transform:translateY(-2px); }

/* =============================================
   FOOTER
   ============================================= */
footer { background:var(--dark); padding:24px 0; border-top:1px solid rgba(255,255,255,.05); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer-copy { font-size:13px; color:#6B7280; margin:0; }
.footer-social { display:flex; gap:8px; }
.footer-social a { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.05); color:#6B7280; display:flex; align-items:center; justify-content:center; text-decoration:none; font-size:13px; transition:all var(--t); }
.footer-social a:hover { background:var(--primary); color:white; }

/* =============================================
   MODALS
   ============================================= */
.modal { display:none; position:fixed; inset:0; z-index:2000; background:rgba(0,0,0,.65); backdrop-filter:blur(4px); align-items:center; justify-content:center; padding:16px; }
.modal.show { display:flex; }
.modal-content { background:var(--bg); border-radius:20px; width:100%; max-width:620px; max-height:88vh; overflow-y:auto; animation:modalIn .3s cubic-bezier(.4,0,.2,1); }
@keyframes modalIn { from{opacity:0;transform:scale(.95) translateY(20px)} to{opacity:1;transform:scale(1) translateY(0)} }
.modal-content::-webkit-scrollbar { width:4px; }
.modal-content::-webkit-scrollbar-thumb { background:var(--border); border-radius:2px; }
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; padding:24px 24px 16px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--bg); z-index:1; }
.modal-header h2 { font-family:var(--font-display); font-size:18px; font-weight:700; margin:0; padding-right:12px; line-height:1.3; }
.modal-close { background:var(--bg-3); border:none; width:32px; height:32px; border-radius:50%; font-size:18px; color:var(--text-2); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all var(--t); line-height:1; }
.modal-close:hover { background:var(--border); }
.modal-body { padding:20px 24px 24px; }
.modal-role-badge { display:inline-flex; align-items:center; gap:6px; background:var(--primary-light); color:var(--primary); font-size:12px; font-weight:500; padding:5px 12px; border-radius:20px; margin-bottom:16px; }
.modal-section-label { font-size:12px; font-weight:500; color:var(--text-3); text-transform:uppercase; letter-spacing:.5px; margin-bottom:8px; margin-top:16px; }
.modal-body img { width:100%; border-radius:var(--radius); margin-bottom:4px; border:1px solid var(--border); object-fit:cover; max-height:280px; }
.modal-body h3 { font-family:var(--font-display); font-size:15px; font-weight:600; color:var(--text); margin:18px 0 8px; }
.modal-body p { font-size:14px; color:var(--text-2); line-height:1.7; margin-bottom:0; }
.modal-list { padding-left:18px; margin:0; }
.modal-list li { font-size:14px; color:var(--text-2); line-height:1.7; margin-bottom:4px; }
.tech-stack { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.tech-badge { background:var(--primary-light); color:var(--primary); font-size:12px; font-weight:500; padding:4px 12px; border-radius:20px; }
.modal-link { margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
.modal-link a { display:inline-flex; align-items:center; gap:8px; background:var(--text); color:white; text-decoration:none; padding:10px 20px; border-radius:var(--radius); font-size:13px; font-weight:500; transition:all var(--t); }
.modal-link a:hover { background:var(--primary); color:white; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width:1200px) {
    .gallery-grid { columns:3; }
}

@media (max-width:991px) {
    .hero { min-height:auto; padding:60px 0 70px; }
    .hero-photo-wrap { padding:20px; }
    .hero-photo { width:220px; height:220px; }
    .hero-photo-ring { width:280px; height:280px; }
    .card-webdev { top:-5%; left:-15px; }
    .card-flutter { top:5%; right:-15px; }
    .card-iot { bottom:0; left:-5px; }
    .navbar-collapse { background:var(--bg); border-top:1px solid var(--border); padding:16px 0; margin-top:10px; }
    .nav-link { padding:10px 0 !important; }
    .gallery-grid { columns:2; }
    .footer-inner { flex-direction:column; text-align:center; }
    .footer-social { justify-content:center; }
}

@media (max-width:767px) {
    .section-pad { padding:60px 0; }
    .section-header { margin-bottom:36px; }
    .hero { padding:48px 0 56px; }
    .hero-title { font-size:30px; }
    .hero-actions { flex-direction:column; }
    .btn-hero-main, .btn-hero-outline { justify-content:center; width:100%; }
    .hero-stats { gap:16px; }
    .hstat-num { font-size:24px; }
    .hero-photo { width:180px; height:180px; }
    .hero-photo-ring { width:230px; height:230px; }
    .hero-photo-card { font-size:11px; padding:8px 10px; }
    .card-webdev { top:-5%; left:-10px; }
    .card-flutter { top:5%; right:-10px; }
    .card-iot { bottom:0; left:-5px; }
    .portfolio-grid { grid-template-columns:1fr; }
    .skills-wrap { grid-template-columns:1fr; }
    .edu-timeline::before { left:24px; }
    .edu-icon { width:48px; height:48px; font-size:11px; }
    .exp-item { flex-direction:column; gap:16px; }
    .exp-left { flex-direction:row; align-items:center; gap:14px; }
    .exp-vline { display:none; }
    .cert-masonry { grid-template-columns:1fr 1fr; }
    .gallery-grid { columns:2; }
    .contact-card { padding:24px 16px; }
    .contact-tagline { font-size:17px; }
}

@media (max-width:480px) {
    .cert-pair { grid-template-columns:1fr; }
    .cert-masonry { grid-template-columns:1fr; }
    .gallery-grid { columns:1; }
    .exp-header { flex-direction:column; }
    .exp-period-wrap { align-items:flex-start; }
}