/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --bg: #060612;
    --bg-alt: #0b0b1e;
    --surface: #11112a;
    --surface-hover: #18183e;
    --cyan: #00e5ff;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #ff6b35;
    --green: #00ff88;
    --text: #e4e4f0;
    --text-2: #9898b4;
    --text-3: #5c5c78;
    --glass: rgba(255,255,255,0.03);
    --glass-b: rgba(255,255,255,0.06);
    --grad: linear-gradient(135deg, var(--cyan), var(--purple));
    --grad2: linear-gradient(135deg, var(--purple), var(--pink));
    --font: 'Space Grotesk', sans-serif;
    --mono: 'Fira Code', monospace;
    --r: 14px;
    --r-lg: 22px;
    --ease: cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ============================================
   RESET
   ============================================ */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scrollbar-width:thin; scrollbar-color:var(--cyan) var(--bg); }
html::-webkit-scrollbar { width:5px; }
html::-webkit-scrollbar-track { background:var(--bg); }
html::-webkit-scrollbar-thumb { background:var(--cyan); border-radius:3px; }
body { font-family:var(--mono); background:var(--bg); color:var(--text); line-height:1.7; overflow-x:hidden; cursor:none; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
button { cursor:none; border:none; background:none; font-family:inherit; }
::selection { background:var(--cyan); color:var(--bg); }
.container { max-width:1200px; margin:0 auto; padding:0 2rem; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader { position:fixed; inset:0; background:var(--bg); display:flex; align-items:center; justify-content:center; z-index:99999; transition:opacity .6s,visibility .6s; }
.preloader.done { opacity:0; visibility:hidden; pointer-events:none; }
.preloader-inner { text-align:center; }
.preloader-ring { width:50px; height:50px; border:3px solid var(--glass-b); border-top-color:var(--cyan); border-radius:50%; margin:0 auto 1rem; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.preloader-text { font-size:.85rem; color:var(--text-3); letter-spacing:.1em; }

/* ============================================
   CURSOR
   ============================================ */
.cursor-dot { position:fixed; top:0; left:0; width:7px; height:7px; background:var(--cyan); border-radius:50%; pointer-events:none; z-index:99998; transform:translate(-50%,-50%); transition:width .2s,height .2s,background .2s; }
.cursor-dot.hover { width:14px; height:14px; background:var(--purple); }
.cursor-ring { position:fixed; top:0; left:0; width:34px; height:34px; border:1.5px solid rgba(0,229,255,.3); border-radius:50%; pointer-events:none; z-index:99997; transform:translate(-50%,-50%); transition:width .3s,height .3s,border-color .3s; }
.cursor-ring.hover { width:50px; height:50px; border-color:rgba(139,92,246,.4); }

/* ============================================
   CANVAS
   ============================================ */
#bgCanvas { position:fixed; inset:0; z-index:0; pointer-events:none; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar { position:fixed; top:0; left:0; right:0; z-index:1000; padding:1rem 2.5rem; display:flex; align-items:center; justify-content:space-between; background:rgba(6,6,18,.55); backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); border-bottom:1px solid var(--glass-b); transition:padding .3s var(--ease),background .3s; }
.navbar.shrink { padding:.6rem 2.5rem; background:rgba(6,6,18,.92); }
.nav-logo { display:flex; gap:2px; font-family:var(--font); font-size:1.5rem; font-weight:700; }
.logo-k { color:var(--cyan); }
.logo-c { color:var(--purple); }
.logo-r { color:var(--pink); }
.nav-links { display:flex; gap:1.8rem; }
.nav-link { font-size:.78rem; font-weight:500; letter-spacing:.07em; text-transform:uppercase; color:var(--text-2); position:relative; padding:.3rem 0; transition:color .3s; }
.nav-link::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--grad); transition:width .3s; }
.nav-link:hover, .nav-link.active { color:var(--cyan); }
.nav-link:hover::after, .nav-link.active::after { width:100%; }
.nav-toggle { display:none; flex-direction:column; gap:5px; padding:4px; }
.nav-toggle span { width:22px; height:2px; background:var(--text); border-radius:2px; transition:.3s; }
.nav-toggle.on span:nth-child(1) { transform:rotate(45deg) translate(5px,5px); }
.nav-toggle.on span:nth-child(2) { opacity:0; }
.nav-toggle.on span:nth-child(3) { transform:rotate(-45deg) translate(5px,-5px); }

.mobile-nav { position:fixed; inset:0; z-index:999; background:rgba(6,6,18,.97); backdrop-filter:blur(30px); display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:.3s; }
.mobile-nav.open { opacity:1; visibility:visible; }
.mobile-nav-inner { display:flex; flex-direction:column; align-items:center; gap:2rem; }
.mobile-link { font-family:var(--font); font-size:2rem; font-weight:700; color:var(--text-2); transition:color .3s,transform .3s; }
.mobile-link:hover { color:var(--cyan); transform:translateX(10px); }

/* ============================================
   HERO
   ============================================ */
.hero { position:relative; min-height:100vh; display:flex; align-items:center; padding:7rem 2.5rem 3rem; z-index:1; overflow:hidden; }
.hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 10% 50%,rgba(139,92,246,.1) 0%,transparent 55%),radial-gradient(ellipse at 90% 30%,rgba(0,229,255,.07) 0%,transparent 45%); z-index:0; }
.hero-container { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; max-width:1200px; margin:0 auto; width:100%; }
.hero-left { padding-right:1rem; }
.hero-badge { display:inline-flex; align-items:center; gap:.5rem; padding:.4rem 1rem; background:rgba(0,229,255,.07); border:1px solid rgba(0,229,255,.18); border-radius:50px; font-size:.78rem; font-weight:500; color:var(--cyan); margin-bottom:1.2rem; }
.badge-pulse { width:8px; height:8px; background:var(--green); border-radius:50%; animation:pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(0,255,136,.4); } 50% { opacity:.7; box-shadow:0 0 0 8px rgba(0,255,136,0); } }
.hero-hi { font-size:1.1rem; color:var(--text-2); margin-bottom:.3rem; }
.hero-name { font-family:var(--font); font-size:clamp(2.5rem,5.5vw,4.5rem); font-weight:700; line-height:1.08; letter-spacing:-.03em; margin-bottom:.8rem; }
.name-first, .name-last { display:block; color:var(--text); }
.name-mid { display:block; background:var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.hero-role { font-family:var(--mono); font-size:1.1rem; color:var(--cyan); margin-bottom:1rem; min-height:1.6rem; }
.role-prefix { color:var(--text-3); }
.typing-cursor { animation:blink .7s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }
.hero-desc { font-size:.95rem; color:var(--text-2); max-width:500px; margin-bottom:1.8rem; line-height:1.8; }
.hero-buttons { display:flex; gap:1rem; margin-bottom:2rem; flex-wrap:wrap; }
.hero-social { display:flex; gap:.8rem; }
.social-link { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border:1px solid var(--glass-b); border-radius:50%; font-size:1.05rem; color:var(--text-2); transition:.3s; }
.social-link:hover { color:var(--cyan); border-color:var(--cyan); background:rgba(0,229,255,.07); transform:translateY(-3px); }

.hero-right { display:flex; justify-content:center; align-items:center; }
.hero-image-wrapper { position:relative; width:380px; height:450px; }
.hero-image-glow { position:absolute; inset:-6px; background:var(--grad); border-radius:var(--r-lg); z-index:0; opacity:.45; filter:blur(28px); animation:glowAnim 3.5s ease infinite alternate; }
@keyframes glowAnim { 0% { opacity:.35; transform:scale(1); } 100% { opacity:.55; transform:scale(1.04); } }
.hero-image-border { position:absolute; inset:-3px; background:var(--grad); border-radius:calc(var(--r-lg)+3px); z-index:1; opacity:.7; }
.hero-image { position:relative; z-index:2; width:100%; height:100%; object-fit:cover; border-radius:var(--r-lg); }
.hero-image-dots { position:absolute; bottom:-20px; right:-20px; width:80px; height:80px; z-index:3; background-image:radial-gradient(circle,var(--cyan) 1.5px,transparent 1.5px); background-size:12px 12px; opacity:.3; }

.scroll-down { position:absolute; bottom:2rem; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:.4rem; z-index:1; }
.scroll-line { width:1px; height:40px; background:linear-gradient(to bottom,var(--cyan),transparent); animation:scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100% { opacity:1; height:40px; } 50% { opacity:.3; height:20px; } }
.scroll-down span { font-size:.65rem; text-transform:uppercase; letter-spacing:.15em; color:var(--text-3); }

/* ============================================
   BUTTONS
   ============================================ */
.btn { display:inline-flex; align-items:center; gap:.5rem; padding:.8rem 1.7rem; border-radius:50px; font-family:var(--mono); font-size:.82rem; font-weight:600; letter-spacing:.03em; transition:.3s; position:relative; overflow:hidden; }
.btn-primary { background:var(--grad); color:#fff; }
.btn-primary:hover { box-shadow:0 0 28px rgba(0,229,255,.3); transform:translateY(-2px); }
.btn-ghost { border:1.5px solid var(--glass-b); color:var(--text); background:transparent; }
.btn-ghost:hover { border-color:var(--cyan); color:var(--cyan); background:rgba(0,229,255,.04); }

/* ============================================
   SECTIONS
   ============================================ */
.section { position:relative; padding:6rem 0; z-index:1; }
.section-dark { background:var(--bg-alt); }
.section-head { text-align:center; margin-bottom:3.5rem; }
.section-tag { font-family:var(--font); font-size:.82rem; font-weight:700; color:var(--cyan); letter-spacing:.1em; display:block; margin-bottom:.6rem; }
.section-title { font-family:var(--font); font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:700; letter-spacing:-.02em; margin-bottom:.8rem; }
.section-bar { width:50px; height:3px; background:var(--grad); margin:0 auto; border-radius:3px; }
.cert-subtitle { text-align:center; font-size:.88rem; color:var(--text-3); margin:-2rem 0 2.5rem; }

.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease),transform .7s var(--ease); }
.reveal.show { opacity:1; transform:translateY(0); }

/* ============================================
   ABOUT
   ============================================ */
.about-content { display:grid; grid-template-columns:1.5fr 1fr; gap:3rem; align-items:start; }
.about-lead { font-size:.95rem; color:var(--text-2); line-height:1.85; margin-bottom:1.2rem; }
.about-highlights { display:flex; flex-direction:column; gap:.8rem; margin-top:1.5rem; }
.highlight-card { display:flex; align-items:center; gap:1rem; padding:1rem 1.2rem; background:var(--glass); border:1px solid var(--glass-b); border-radius:var(--r); transition:.3s; }
.highlight-card:hover { border-color:rgba(0,229,255,.15); transform:translateX(6px); }
.highlight-icon { width:44px; height:44px; display:flex; align-items:center; justify-content:center; background:rgba(0,229,255,.08); border-radius:10px; font-size:1.1rem; color:var(--cyan); flex-shrink:0; }
.highlight-text strong { display:block; font-size:.88rem; color:var(--text); }
.highlight-text span { font-size:.78rem; color:var(--text-3); }

.about-stats-col { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.stat-box { text-align:center; padding:1.5rem 1rem; background:var(--surface); border:1px solid var(--glass-b); border-radius:var(--r); transition:.3s; }
.stat-box:hover { border-color:rgba(0,229,255,.2); box-shadow:0 8px 30px rgba(0,0,0,.3); }
.stat-num { font-family:var(--font); font-size:2.5rem; font-weight:700; background:var(--grad); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; display:block; }
.stat-lbl { font-size:.72rem; color:var(--text-3); text-transform:uppercase; letter-spacing:.08em; }

/* ============================================
   EDUCATION
   ============================================ */
.edu-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.edu-card { background:var(--surface); border:1px solid var(--glass-b); border-radius:var(--r-lg); padding:2rem; transition:.3s; position:relative; overflow:hidden; }
.edu-card:hover { border-color:rgba(0,229,255,.2); box-shadow:0 12px 40px rgba(0,0,0,.3); transform:translateY(-4px); }
.edu-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--grad); }
.edu-header { display:flex; align-items:center; gap:1rem; margin-bottom:1.2rem; }
.edu-icon-wrap { width:48px; height:48px; display:flex; align-items:center; justify-content:center; background:rgba(0,229,255,.08); border:1px solid rgba(0,229,255,.12); border-radius:12px; font-size:1.2rem; color:var(--cyan); }
.edu-meta { display:flex; flex-direction:column; }
.edu-year { font-size:.78rem; color:var(--cyan); font-weight:600; }
.edu-location { font-size:.72rem; color:var(--text-3); }
.edu-location i { margin-right:.3rem; color:var(--orange); font-size:.65rem; }
.edu-title { font-family:var(--font); font-size:1.2rem; font-weight:700; margin-bottom:.3rem; }
.edu-sub { font-size:.85rem; color:var(--text-2); margin-bottom:1.2rem; }
.edu-score { display:flex; align-items:center; gap:.8rem; }
.score-ring { position:relative; width:64px; height:64px; }
.score-ring svg { width:100%; height:100%; transform:rotate(-90deg); }
.score-bg { fill:none; stroke:rgba(255,255,255,.06); stroke-width:5; }
.score-fill { fill:none; stroke-width:5; stroke-linecap:round; stroke-dasharray:220; stroke-dashoffset:220; transition:stroke-dashoffset 1.5s var(--ease); }
.score-val { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-family:var(--font); font-size:.82rem; font-weight:700; color:var(--cyan); }
.score-label { font-size:.72rem; color:var(--text-3); text-transform:uppercase; letter-spacing:.08em; }

/* ============================================
   PROJECTS
   ============================================ */
.project-group { margin-bottom:3rem; }
.project-group:last-child { margin-bottom:0; }
.group-title { font-family:var(--font); font-size:1.3rem; font-weight:700; margin-bottom:1.5rem; display:flex; align-items:center; gap:.6rem; }
.group-title i { color:var(--cyan); font-size:1rem; }
.project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(330px,1fr)); gap:1.5rem; perspective:1000px; }
.project-card { cursor:pointer; }
.card-3d { background:var(--surface); border:1px solid var(--glass-b); border-radius:var(--r-lg); overflow:hidden; transform-style:preserve-3d; transition:transform .15s ease-out,box-shadow .3s; will-change:transform; }
.card-3d:hover { box-shadow:0 20px 50px rgba(0,0,0,.4),0 0 20px rgba(0,229,255,.06); }
.card-img { position:relative; height:190px; overflow:hidden; }
.card-img img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.card-3d:hover .card-img img { transform:scale(1.06); }
.card-placeholder { width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.5rem; font-size:2.2rem; color:rgba(255,255,255,.85); }
.card-placeholder span { font-size:.82rem; font-weight:600; }
.ph1 { background:linear-gradient(135deg,#0052d4,#00d4ff); }
.ph2 { background:linear-gradient(135deg,#c0392b,#e74c3c,#f39c12); }
.ph3 { background:linear-gradient(135deg,#6c3ce9,#e91e8c); }
.ph4 { background:linear-gradient(135deg,#ff6b35,#00c853); }
.ph5 { background:linear-gradient(135deg,#0d47a1,#00bfa5); }
.ph6 { background:linear-gradient(135deg,#1b5e20,#4fc3f7); }
.card-hover-overlay { position:absolute; inset:0; background:rgba(6,6,18,.72); display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s; }
.card-3d:hover .card-hover-overlay { opacity:1; }
.card-hover-overlay span { padding:.5rem 1.3rem; border:1px solid var(--cyan); border-radius:50px; font-size:.78rem; font-weight:600; color:var(--cyan); letter-spacing:.05em; }
.card-body { padding:1.3rem; }
.card-body h4 { font-family:var(--font); font-size:1.15rem; font-weight:700; margin-bottom:.4rem; }
.card-body p { font-size:.82rem; color:var(--text-2); line-height:1.6; margin-bottom:.8rem; }
.card-techs { display:flex; flex-wrap:wrap; gap:.35rem; margin-bottom:.8rem; }
.tech-chip { display:inline-flex; align-items:center; gap:.3rem; padding:.2rem .55rem; background:rgba(0,229,255,.05); border:1px solid rgba(0,229,255,.1); border-radius:50px; font-size:.7rem; color:var(--cyan); font-weight:500; }
.tech-chip i { font-size:.75rem; }
.card-links { display:flex; gap:.6rem; }
.clink { width:34px; height:34px; display:flex; align-items:center; justify-content:center; border:1px solid var(--glass-b); border-radius:50%; font-size:.9rem; color:var(--text-2); transition:.3s; }
.clink:hover { color:var(--cyan); border-color:var(--cyan); background:rgba(0,229,255,.07); }

/* ============================================
   CERTIFICATIONS
   ============================================ */
.cert-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:1.5rem; }
.cert-card { background:var(--surface); border:1px solid var(--glass-b); border-radius:var(--r-lg); overflow:hidden; cursor:pointer; transition:.3s; }
.cert-card:hover { border-color:rgba(0,229,255,.2); box-shadow:0 12px 40px rgba(0,0,0,.3); transform:translateY(-6px); }
.cert-img-wrap { height:180px; overflow:hidden; }
.cert-img-wrap img { width:100%; height:100%; object-fit:cover; transition:transform .5s; }
.cert-card:hover .cert-img-wrap img { transform:scale(1.06); }
.cert-info { padding:1.2rem; display:flex; align-items:center; gap:.8rem; }
.cert-icon { width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:rgba(0,229,255,.08); border-radius:10px; font-size:1.1rem; color:var(--cyan); flex-shrink:0; }
.cert-info h4 { font-family:var(--font); font-size:.95rem; font-weight:700; }
.cert-info p { font-size:.75rem; color:var(--text-3); margin-top:.1rem; }

/* ============================================
   SKILLS
   ============================================ */
.skills-container { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:2rem; }
.skill-group { background:var(--surface); border:1px solid var(--glass-b); border-radius:var(--r-lg); padding:2rem; }
.skill-group-title { font-family:var(--font); font-size:1.05rem; font-weight:700; margin-bottom:1.5rem; display:flex; align-items:center; gap:.5rem; }
.skill-group-title i { color:var(--cyan); }
.skill-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:.8rem; }
.skill-card { display:flex; flex-direction:column; align-items:center; gap:.5rem; padding:1rem .5rem; background:var(--glass); border:1px solid var(--glass-b); border-radius:var(--r); transition:.3s; text-align:center; cursor:default; }
.skill-card:hover { border-color:rgba(0,229,255,.2); background:rgba(0,229,255,.04); transform:translateY(-4px); }
.skill-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; background:rgba(0,229,255,.06); border-radius:10px; font-size:1.4rem; color:var(--cyan); }
.skill-card span { font-size:.72rem; font-weight:500; color:var(--text-2); }

/* ============================================
   CONTACT
   ============================================ */
.contact-tagline { text-align:center; font-size:1.05rem; color:var(--text-2); max-width:620px; margin:0 auto 3rem; line-height:1.8; }
.contact-cards-center { display:grid; grid-template-columns:repeat(2,1fr); gap:1.5rem; max-width:700px; margin:0 auto; }
.contact-card { display:flex; align-items:center; gap:1.2rem; padding:1.5rem 1.8rem; background:var(--surface); border:1px solid var(--glass-b); border-radius:var(--r-lg); transition:.35s; position:relative; overflow:hidden; }
.contact-card::before { content:''; position:absolute; top:0; left:0; width:3px; height:100%; background:var(--grad); opacity:0; transition:opacity .3s; }
.contact-card:hover::before { opacity:1; }
.contact-card:hover { border-color:rgba(0,229,255,.2); box-shadow:0 12px 40px rgba(0,0,0,.3); transform:translateY(-5px); }
.cc-icon { width:52px; height:52px; display:flex; align-items:center; justify-content:center; background:rgba(0,229,255,.07); border:1px solid rgba(0,229,255,.12); border-radius:14px; font-size:1.2rem; color:var(--cyan); flex-shrink:0; transition:.3s; }
.contact-card:hover .cc-icon { background:rgba(0,229,255,.14); border-color:rgba(0,229,255,.25); }
.cc-body { display:flex; flex-direction:column; gap:.15rem; min-width:0; }
.cc-label { font-size:.68rem; text-transform:uppercase; letter-spacing:.1em; color:var(--text-3); font-weight:600; }
.cc-value { font-size:.88rem; color:var(--text); font-weight:500; word-break:break-all; }

/* ============================================
   FOOTER
   ============================================ */
.footer { position:relative; z-index:1; padding:2rem 0; border-top:1px solid var(--glass-b); }
.footer-row { display:flex; align-items:center; justify-content:space-between; }
.footer-row p { font-size:.82rem; color:var(--text-3); }
.footer-row strong { color:var(--cyan); }
.footer-socials { display:flex; gap:1rem; }
.footer-socials a { font-size:1.1rem; color:var(--text-3); transition:.3s; }
.footer-socials a:hover { color:var(--cyan); transform:translateY(-2px); }

/* ============================================
   MODALS (PROJECT)
   ============================================ */
.modal-overlay { position:fixed; inset:0; z-index:10000; display:flex; align-items:center; justify-content:center; opacity:0; visibility:hidden; transition:opacity .4s,visibility .4s; }
.modal-overlay.active { opacity:1; visibility:visible; }
.modal-bg { position:absolute; inset:0; background:rgba(0,0,0,.88); backdrop-filter:blur(14px); }
.modal-box { position:relative; width:92%; max-width:840px; max-height:88vh; overflow-y:auto; background:var(--bg-alt); border:1px solid var(--glass-b); border-radius:var(--r-lg); transform:translateY(25px) scale(.96); transition:transform .4s var(--ease); scrollbar-width:thin; scrollbar-color:var(--cyan) transparent; }
.modal-overlay.active .modal-box, .modal-overlay.active .cert-modal-box { transform:translateY(0) scale(1); }
.modal-x { position:absolute; top:1rem; right:1rem; width:40px; height:40px; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.5); border:1px solid var(--glass-b); border-radius:50%; color:var(--text); font-size:1rem; z-index:10; transition:.3s; cursor:pointer; }
.modal-x:hover { background:rgba(255,60,60,.3); border-color:#ff3c3c; }
.modal-img-area { position:relative; width:100%; height:320px; overflow:hidden; }
.modal-img-area img { width:100%; height:100%; object-fit:cover; }
.modal-img-fade { position:absolute; bottom:0; left:0; right:0; height:100px; background:linear-gradient(to top,var(--bg-alt),transparent); }
.modal-content { padding:2rem 2.5rem 2.5rem; }
.modal-content h2 { font-family:var(--font); font-size:1.7rem; font-weight:700; margin-bottom:.8rem; line-height:1.2; }
.modal-content p { font-size:.9rem; color:var(--text-2); line-height:1.8; margin-bottom:1.3rem; }
.modal-techs { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1.3rem; }
.modal-tag { padding:.25rem .7rem; background:rgba(0,229,255,.07); border:1px solid rgba(0,229,255,.14); border-radius:50px; font-size:.76rem; color:var(--cyan); font-weight:500; }
.modal-links { display:flex; gap:.8rem; flex-wrap:wrap; }
.modal-link { display:inline-flex; align-items:center; gap:.4rem; padding:.6rem 1.2rem; border:1px solid var(--glass-b); border-radius:50px; font-size:.8rem; font-weight:600; transition:.3s; }
.modal-link:hover { border-color:var(--cyan); color:var(--cyan); background:rgba(0,229,255,.05); }

/* ============================================
   CERTIFICATE MODAL
   ============================================ */
.cert-modal-box { position:relative; width:92%; max-width:680px; max-height:88vh; overflow-y:auto; background:var(--bg-alt); border:1px solid var(--glass-b); border-radius:var(--r-lg); transform:translateY(25px) scale(.96); transition:transform .4s var(--ease); scrollbar-width:thin; }
.cert-modal-img { width:100%; max-height:400px; overflow:hidden; border-radius:var(--r-lg) var(--r-lg) 0 0; }
.cert-modal-img img { width:100%; height:100%; object-fit:contain; background:#fff; padding:1rem; }
.cert-modal-body { padding:2rem 2.5rem 2.5rem; text-align:center; }
.cert-modal-icon { width:60px; height:60px; margin:0 auto 1rem; display:flex; align-items:center; justify-content:center; background:var(--grad); border-radius:16px; font-size:1.5rem; color:#fff; }
.cert-modal-body h2 { font-family:var(--font); font-size:1.5rem; font-weight:700; margin-bottom:.3rem; }
.cert-modal-issuer { font-size:.88rem; color:var(--cyan); margin-bottom:1rem; font-weight:600; }
.cert-modal-desc { font-size:.9rem; color:var(--text-2); line-height:1.75; margin-bottom:1.5rem; text-align:left; }
.cert-modal-skills { display:flex; flex-wrap:wrap; gap:.4rem; justify-content:center; }
.cert-skill-tag { padding:.25rem .7rem; background:rgba(0,229,255,.06); border:1px solid rgba(0,229,255,.12); border-radius:50px; font-size:.72rem; color:var(--cyan); font-weight:500; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media(max-width:1024px) {
    .hero-container { grid-template-columns:1fr; text-align:center; }
    .hero-left { padding-right:0; order:2; }
    .hero-right { order:1; margin-bottom:1rem; }
    .hero-image-wrapper { width:280px; height:340px; }
    .hero-desc { margin:0 auto 1.8rem; }
    .hero-buttons { justify-content:center; }
    .hero-social { justify-content:center; }
    .about-content { grid-template-columns:1fr; gap:2rem; }
    .about-stats-col { grid-template-columns:repeat(4,1fr); }
    .edu-grid { grid-template-columns:1fr; }
}

@media(max-width:768px) {
    .nav-links { display:none; }
    .nav-toggle { display:flex; }
    .hero { padding:6rem 1.2rem 3rem; }
    .section { padding:4.5rem 0; }
    .container { padding:0 1.2rem; }
    .project-grid { grid-template-columns:1fr; }
    .cert-grid { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); }
    .skills-container { grid-template-columns:1fr; }
    .skill-cards { grid-template-columns:repeat(auto-fill,minmax(80px,1fr)); }
    .about-stats-col { grid-template-columns:repeat(2,1fr); }
    .footer-row { flex-direction:column; gap:1rem; text-align:center; }
    .cursor-dot, .cursor-ring { display:none; }
    body { cursor:auto; }
    button, a { cursor:pointer; }
    .modal-img-area { height:200px; }
    .modal-content { padding:1.5rem; }
    .modal-content h2 { font-size:1.3rem; }
    .cert-modal-img { max-height:280px; }
    .cert-modal-body { padding:1.5rem; }
    .contact-cards-center { grid-template-columns:1fr; }
    .contact-card { padding:1.2rem 1.4rem; }
    .cc-icon { width:44px; height:44px; font-size:1rem; border-radius:11px; }
    .cc-value { font-size:.82rem; }
}

@media(max-width:480px) {
    .hero-name { font-size:2rem; }
    .hero-image-wrapper { width:220px; height:270px; }
    .hero-buttons { flex-direction:column; }
    .btn { width:100%; justify-content:center; }
    .about-stats-col { grid-template-columns:1fr 1fr; }
    .stat-num { font-size:2rem; }
    .cert-grid { grid-template-columns:repeat(2,1fr); }
    .contact-tagline { font-size:.9rem; }
    .contact-card { padding:1rem 1.2rem; gap:1rem; }
}