/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #13111a;
    --bg-card: #1e1b2e;
    --bg-card-hover: #262339;
    --text-primary: #f0ecf9;
    --text-secondary: #b3aec8;
    --text-muted: #6e6889;
    --accent: #b07cff;
    --accent-light: #c9a0ff;
    --accent-pink: #e879a8;
    --accent-magenta: #d946a8;
    --gradient-1: linear-gradient(135deg, #b07cff 0%, #8b5cf6 35%, #d946a8 70%, #e879a8 100%);
    --gradient-2: linear-gradient(135deg, #b07cff 0%, #d946a8 100%);
    --border: rgba(176, 124, 255, 0.1);
    --glass: rgba(176, 124, 255, 0.04);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) var(--bg); }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ===== CURSOR ===== */
.cursor-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 10000; mix-blend-mode: difference; }
.cursor-ring { width: 40px; height: 40px; border: 1.5px solid var(--accent); border-radius: 50%; position: fixed; pointer-events: none; z-index: 10000; mix-blend-mode: difference; transition: width 0.3s, height 0.3s; }
.cursor-ring.hover { width: 60px; height: 60px; }

/* ===== NOISE & CANVAS ===== */
#three-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; background: var(--gradient-1); z-index: 10001; }

/* ===== NAV ===== */
.nav { position: fixed; top: 0; left: 0; width: 100%; padding: 20px 48px; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.4s var(--ease); }
.nav.scrolled { padding: 14px 48px; backdrop-filter: blur(20px); background: rgba(19,17,26,0.88); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--font-heading); font-size: 28px; font-weight: 700; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; margin-right: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 11px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1.5px; background: var(--gradient-2); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

/* ===== LANG SWITCH ===== */
.lang-switch { display: flex; align-items: center; background: var(--glass); border: 1px solid var(--border); border-radius: 24px; padding: 3px; gap: 2px; }
.lang-btn { background: none; border: none; color: var(--text-muted); font-family: var(--font-heading); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; cursor: pointer; transition: all 0.3s; letter-spacing: 0.5px; }
.lang-btn.active { background: var(--gradient-2); color: #fff; }
.lang-btn:hover:not(.active) { color: var(--text-primary); }

/* ===== HAMBURGER & MOBILE ===== */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text-primary); transition: all 0.3s; display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(19,17,26,0.97); backdrop-filter: blur(30px); z-index: 999; flex-direction: column; justify-content: center; align-items: center; gap: 24px; opacity: 0; transition: opacity 0.4s; }
.mobile-menu.active { display: flex; opacity: 1; }
.mobile-menu a { color: var(--text-primary); text-decoration: none; font-family: var(--font-heading); font-size: 24px; font-weight: 600; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu .lang-switch { margin-top: 20px; }

/* ===== HERO ===== */
.hero { position: relative; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 24px; z-index: 1; overflow: hidden; }
.hero-content { text-align: center; max-width: 900px; width: 100%; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(36px, 6.5vw, 80px); font-weight: 700; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; opacity: 0; transform: translateY(40px); animation: fadeUp 1s var(--ease) 0.2s forwards; }
.gradient-text { background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(14px, 1.6vw, 17px); color: var(--text-secondary); font-weight: 300; line-height: 1.7; max-width: 600px; margin: 0 auto 36px; opacity: 0; transform: translateY(30px); animation: fadeUp 1s var(--ease) 0.4s forwards; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; opacity: 0; transform: translateY(30px); animation: fadeUp 1s var(--ease) 0.6s forwards; }
.btn-primary { padding: 14px 30px; background: var(--gradient-1); color: #fff; border: none; border-radius: 30px; font-family: var(--font-heading); font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(176,124,255,0.35); }
.btn-primary .btn-3d { font-weight: 800; font-size: 15px; }
.btn-secondary { padding: 14px 30px; background: transparent; color: var(--text-primary); border: 1px solid var(--border); border-radius: 30px; font-family: var(--font-heading); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards; }
.hero-scroll-icon { font-size: 16px; color: var(--accent); animation: scrollBounce 2s ease infinite; }
.hero-scroll span { font-size: 11px; color: var(--text-secondary); letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }
.scroll-line { width: 1.5px; height: 44px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollDown 2s infinite; }

@keyframes scrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes scrollDown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 50.01% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== SECTIONS ===== */
section { position: relative; z-index: 1; padding: 100px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.section-label i { font-size: 20px; }
.section-title { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 40px; }

.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== MARQUEE ===== */
.text-marquee { position: relative; z-index: 1; overflow: hidden; padding: 32px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent); mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent); }
.text-marquee-inner { display: flex; gap: 48px; animation: marquee 35s linear infinite; width: max-content; }
.text-marquee-inner span { font-family: var(--font-heading); font-size: clamp(28px, 4.5vw, 56px); font-weight: 700; color: transparent; -webkit-text-stroke: 1px rgba(176,124,255,0.25); letter-spacing: -2px; white-space: nowrap; transition: all 0.4s; }
.text-marquee-inner span:hover { -webkit-text-stroke-color: var(--accent); text-shadow: 0 0 40px rgba(176,124,255,0.3); }
.text-marquee-inner .filled { color: var(--accent-light); -webkit-text-stroke: 0; opacity: 0.65; }
.text-marquee-inner .filled:hover { opacity: 1; color: var(--accent); text-shadow: 0 0 30px rgba(176,124,255,0.4); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.about-left { display: flex; flex-direction: column; gap: 14px; }
.about-left-info { display: flex; flex-direction: column; gap: 14px; }
.about-image-wrap { position: relative; width: 100%; }
.about-image-wrap::before { content: ''; position: absolute; top: -10px; left: -10px; right: 10px; bottom: 10px; border: 1px solid rgba(176,124,255,0.2); border-radius: 18px; }
.about-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 18px; display: block; }
.about-quote { margin-bottom: 28px; }
.about-name-card { padding: 14px 16px; background: rgba(30,27,46,0.92); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 14px; display: flex; align-items: center; gap: 12px; }
.card-icon { width: 42px; height: 42px; background: var(--gradient-1); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; flex-shrink: 0; }
.about-name-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
.about-name-card p { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; padding: 14px 6px; background: var(--glass); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; }
.stat:hover { border-color: rgba(176,124,255,0.3); transform: translateY(-2px); }
.stat-number { font-family: var(--font-heading); font-size: 26px; font-weight: 700; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; font-size: 14.5px; }
.about-roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.role-tag { padding: 6px 14px; background: var(--glass); border: 1px solid var(--border); border-radius: 20px; font-size: 12px; color: var(--text-secondary); transition: all 0.3s; display: inline-flex; align-items: center; gap: 6px; }
.role-tag i { font-size: 10px; color: var(--accent); }
.role-tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(176,124,255,0.06); }

/* ===== EXPERIENCE ===== */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: linear-gradient(to bottom, var(--accent), var(--accent-pink), transparent); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item::before { content: ''; position: absolute; left: -40px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px rgba(176,124,255,0.5); }
.timeline-company { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.timeline-company i { font-size: 12px; }
.timeline-role { font-family: var(--font-heading); font-size: 20px; font-weight: 600; letter-spacing: -0.5px; margin-bottom: 4px; }
.timeline-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.timeline-date i { font-size: 10px; }
.timeline-desc { color: var(--text-secondary); font-size: 13.5px; line-height: 1.7; margin-bottom: 10px; }
.timeline-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.timeline-skill { padding: 4px 11px; background: var(--glass); border: 1px solid var(--border); border-radius: 14px; font-size: 11px; color: var(--text-muted); }

/* ===== SKILLS ===== */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.skill-card { padding: 26px; background: var(--glass); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.skill-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-1); opacity: 0; transition: opacity 0.4s; }
.skill-card:hover { border-color: rgba(176,124,255,0.3); transform: translateY(-4px); }
.skill-card:hover::before { opacity: 0.04; }
.skill-icon { font-size: 24px; margin-bottom: 12px; color: var(--accent); display: block; }
.skill-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.skill-list li { padding: 5px 12px; background: rgba(176,124,255,0.08); border: 1px solid rgba(176,124,255,0.12); border-radius: 12px; font-size: 11.5px; color: var(--text-secondary); }

/* ===== 3D SHOWCASE ===== */
.viewers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.viewer-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: all 0.3s; }
.viewer-card:hover { border-color: rgba(176,124,255,0.3); }

/* Viewer Stage */
.viewer-stage { position: relative; width: 100%; height: 400px; }
.viewer-stage model-viewer { width: 100%; height: 100%; display: block; --poster-color: transparent; opacity: 0; transition: opacity 0.5s ease; }
.viewer-stage model-viewer.loaded { opacity: 1; }

/* Preloader */
.viewer-preloader { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 2; transition: opacity 0.4s ease, visibility 0.4s ease; }
.viewer-preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-spinner { width: 36px; height: 36px; border: 3px solid rgba(176,124,255,0.15); border-top-color: var(--accent); border-radius: 50%; animation: spinLoader 0.8s linear infinite; }
.viewer-preloader span { font-size: 12px; color: var(--text-muted); letter-spacing: 1px; }
@keyframes spinLoader { to { transform: rotate(360deg); } }

/* Navigation Arrows & Slider */
.viewer-slider { padding: 12px 16px 16px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.viewer-arrow { width: 34px; height: 34px; border-radius: 50%; background: rgba(30,27,46,0.8); border: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; flex-shrink: 0; }
.viewer-arrow:hover { background: rgba(176,124,255,0.15); border-color: var(--accent); color: var(--accent); transform: scale(1.08); }

/* AR Button */
.viewer-ar-btn { position: absolute; bottom: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; background: rgba(19,17,26,0.6); backdrop-filter: blur(8px); border: 1px solid rgba(176,124,255,0.15); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; transition: all 0.3s; padding: 7px; }
.viewer-ar-btn img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0.9); }
.viewer-ar-btn:hover { background: rgba(176,124,255,0.15); border-color: var(--accent); transform: scale(1.08); }

/* Viewer Info — overlay top-left */
.viewer-info { position: absolute; top: 16px; left: 16px; z-index: 3; padding: 10px 14px; background: rgba(19,17,26,0.7); backdrop-filter: blur(10px); border-radius: 10px; border: 1px solid rgba(176,124,255,0.12); max-width: 70%; }
.viewer-info h3 { font-family: var(--font-heading); font-size: 13px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-info p { font-size: 11px; color: var(--text-muted); }

/* Slider Thumbnails */
.viewer-slider-track { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 0; flex: 1; min-width: 0; }
.viewer-slider-track::-webkit-scrollbar { display: none; }
.viewer-thumb { flex-shrink: 0; width: 64px; height: 64px; border-radius: 12px; background: rgba(30,27,46,0.8); border: 2px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; position: relative; overflow: hidden; }
.viewer-thumb:hover { border-color: rgba(176,124,255,0.4); }
.viewer-thumb.active { border-color: var(--accent); box-shadow: 0 0 12px rgba(176,124,255,0.25); }
.viewer-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.viewer-thumb span { font-size: 10px; color: var(--text-muted); text-align: center; padding: 4px; line-height: 1.2; font-weight: 500; }
.viewer-thumb.active span { color: var(--accent); }

/* ===== CERTIFICATIONS ===== */
.cert-marquee-wrapper { overflow: hidden; margin-bottom: 20px; -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.cert-marquee { display: flex; gap: 16px; animation: marquee 40s linear infinite; width: max-content; }
.cert-marquee:hover { animation-play-state: paused; }
.cert-card { flex-shrink: 0; width: 300px; padding: 20px; background: rgba(30,27,46,0.7); border: 1px solid rgba(176,124,255,0.18); border-radius: 16px; transition: all 0.3s; backdrop-filter: blur(8px); }
.cert-card:hover { border-color: rgba(176,124,255,0.45); background: rgba(30,27,46,0.9); }
.cert-issuer { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cert-issuer i { font-size: 12px; }
.cert-name { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; color: var(--text-primary); }
.cert-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.cert-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cert-skill-tag { padding: 5px 12px; background: rgba(176,124,255,0.12); border: 1px solid rgba(176,124,255,0.2); border-radius: 10px; font-size: 11px; color: var(--accent-light); font-weight: 500; }
.cert-see-all { text-align: center; margin-top: 36px; }
.cert-see-all a { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: var(--glass); border: 1px solid var(--border); border-radius: 30px; text-decoration: none; color: var(--text-secondary); font-size: 15px; font-weight: 600; font-family: var(--font-heading); transition: all 0.3s; }
.cert-see-all a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); background: rgba(176,124,255,0.06); }

/* ===== CERTS MODAL ===== */
.certs-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(19,17,26,0.96); backdrop-filter: blur(24px); z-index: 9998; overflow-y: auto; padding: 80px 24px 40px; }
.certs-modal.active { display: block; }
.certs-modal-close { position: fixed; top: 24px; right: 24px; width: 48px; height: 48px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 50%; color: var(--text-primary); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; z-index: 9999; }
.certs-modal-close:hover { border-color: var(--accent); color: var(--accent); }
.certs-modal-inner { max-width: 900px; margin: 0 auto; }
.certs-modal-inner h2 { font-family: var(--font-heading); font-size: 32px; font-weight: 700; margin-bottom: 32px; letter-spacing: -1px; }
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.certs-grid .cert-card { width: 100%; }

/* ===== EDUCATION ===== */
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.edu-card { padding: 28px; background: var(--glass); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
.edu-card::after { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gradient-1); }
.edu-card:hover { border-color: rgba(176,124,255,0.3); transform: translateY(-4px); }
.edu-icon { font-size: 24px; color: var(--accent); margin-bottom: 12px; }
.edu-school { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.edu-dept { font-size: 13px; color: var(--accent); margin-bottom: 6px; }
.edu-date { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.edu-date i { font-size: 10px; }

/* ===== CONTACT ===== */
.contact-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-title { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px; }
.contact-subtitle { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 40px; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.contact-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; background: var(--glass); border: 1px solid var(--border); border-radius: 30px; text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: all 0.3s; }
.contact-link:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.contact-link i { font-size: 15px; }

/* ===== FOOTER ===== */
footer { position: relative; z-index: 1; text-align: center; padding: 40px 24px; border-top: 1px solid var(--border); display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
footer p { font-size: 14px; color: var(--text-secondary); font-weight: 500; letter-spacing: 0.3px; }
.footer-heart { color: var(--accent-pink); font-size: 14px; animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.magnetic { position: relative; display: inline-block; }

/* ===== RESPONSIVE ===== */

/* --- Tablet landscape & small desktop --- */
@media (max-width: 1024px) {
    .nav { padding: 16px 24px; }
    section { padding: 80px 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-left { flex-direction: row; align-items: stretch; gap: 24px; max-width: 100%; }
    .about-image-wrap { width: 200px; flex-shrink: 0; }
    .about-img { aspect-ratio: 3/4; }
    .about-left-info { display: flex; flex-direction: column; gap: 14px; flex: 1; justify-content: center; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .viewers-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
    .edu-grid { grid-template-columns: 1fr; gap: 16px; }
    .section-title { margin-bottom: 32px; }
}

/* --- Tablet portrait --- */
@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
    .nav { padding: 14px 20px; }
    .nav.scrolled { padding: 10px 20px; }
    .nav-links { display: none; }
    .nav-right .lang-switch:not(.mobile-lang) { display: none; }
    .hamburger { display: flex; }
    section { padding: 64px 20px; }
    .hero { padding: 0 20px; }
    .section-label { font-size: 12px; letter-spacing: 2.5px; margin-bottom: 16px; }
    .section-label i { font-size: 16px; }
    .section-title { margin-bottom: 28px; font-size: clamp(24px, 4.5vw, 40px); }
    .about-left { flex-direction: row; gap: 18px; }
    .about-image-wrap { width: 160px; flex-shrink: 0; }
    .about-image-wrap::before { top: -6px; left: -6px; right: 6px; bottom: 6px; }
    .about-name-card { padding: 12px 14px; }
    .about-name-card h3 { font-size: 15px; }
    .about-name-card p { font-size: 11px; }
    .card-icon { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
    .about-stats { gap: 8px; }
    .stat { padding: 12px 6px; border-radius: 10px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 9px; }
    .about-quote { font-size: clamp(22px, 4.5vw, 32px) !important; margin-bottom: 20px; }
    .about-text p { font-size: 13.5px; line-height: 1.7; margin-bottom: 12px; }
    .about-roles { gap: 6px; margin-top: 16px; }
    .role-tag { padding: 5px 12px; font-size: 11px; }
    .timeline { padding-left: 24px; }
    .timeline-item { padding-bottom: 36px; }
    .timeline-item::before { left: -28px; width: 7px; height: 7px; }
    .timeline-role { font-size: 17px; }
    .timeline-desc { font-size: 13px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .skill-card { padding: 20px; }
    .viewer-stage { height: 320px; }
    .viewer-info { padding: 14px 18px; }
    .viewer-info h3 { font-size: 14px; }
    .viewer-arrow { width: 32px; height: 32px; font-size: 11px; }
    .viewer-thumb { width: 44px; height: 44px; }
    .viewer-thumb span { font-size: 8px; }
    .cert-card { width: 260px; padding: 16px; }
    .certs-grid { grid-template-columns: repeat(2, 1fr); }
    .edu-card { padding: 22px; }
    .contact-title { font-size: clamp(28px, 5vw, 44px); }
    .contact-subtitle { font-size: 14px; margin-bottom: 32px; }
    .contact-links { flex-direction: column; align-items: center; gap: 10px; }
    .contact-link { width: 100%; max-width: 320px; justify-content: center; }
    .text-marquee-inner span { font-size: clamp(24px, 5vw, 40px); }
    footer { padding: 28px 20px; }
    footer p { font-size: 13px; }
}

/* --- Mobile --- */
@media (max-width: 480px) {
    section { padding: 48px 16px; }
    .hero { padding: 0 16px; }
    .nav { padding: 12px 16px; }
    .nav.scrolled { padding: 10px 16px; }
    .hero h1 { font-size: clamp(28px, 8vw, 40px); letter-spacing: -1px; margin-bottom: 16px; }
    .hero-subtitle { font-size: 13px; line-height: 1.6; margin-bottom: 28px; }
    .hero-cta { flex-direction: column; align-items: center; gap: 10px; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 260px; justify-content: center; font-size: 13px; padding: 13px 24px; }
    .section-title { font-size: clamp(22px, 5.5vw, 32px); margin-bottom: 24px; }
    .about-left { gap: 14px; }
    .about-image-wrap { width: 120px; }
    .about-name-card { padding: 10px 12px; gap: 10px; border-radius: 12px; }
    .about-name-card h3 { font-size: 13px; }
    .about-name-card p { font-size: 10px; }
    .card-icon { width: 32px; height: 32px; font-size: 13px; border-radius: 8px; }
    .stat-number { font-size: 18px; }
    .stat { padding: 10px 4px; border-radius: 8px; }
    .stat-label { font-size: 9px; }
    .about-quote { font-size: clamp(20px, 5vw, 28px) !important; }
    .about-text p { font-size: 13px; margin-bottom: 10px; }
    .role-tag { padding: 4px 10px; font-size: 10.5px; }
    .skills-grid { grid-template-columns: 1fr; gap: 12px; }
    .skill-card { padding: 18px; }
    .skill-card h3 { font-size: 15px; }
    .skill-list li { font-size: 11px; padding: 4px 10px; }
    .timeline-role { font-size: 16px; }
    .timeline-company { font-size: 12px; letter-spacing: 1.5px; }
    .timeline-desc { font-size: 12.5px; }
    .timeline-skill { font-size: 10px; padding: 3px 9px; }
    .timeline-item { padding-bottom: 32px; }
    .cert-card { width: 240px; padding: 14px; }
    .cert-name { font-size: 13px; }
    .cert-issuer { font-size: 10px; }
    .certs-grid { grid-template-columns: 1fr; }
    .viewer-stage { height: 280px; }
    .viewer-info { padding: 12px 16px; }
    .viewer-info h3 { font-size: 13px; }
    .viewer-arrow { width: 30px; height: 30px; font-size: 11px; }
    .viewer-slider { padding: 10px 12px 14px; }
    .viewer-thumb { width: 40px; height: 40px; border-radius: 8px; }
    .viewer-thumb span { font-size: 7.5px; }
    .edu-card { padding: 18px; }
    .edu-school { font-size: 16px; }
    .edu-dept { font-size: 12px; }
    .edu-icon { font-size: 20px; margin-bottom: 8px; }
    .contact-title { font-size: clamp(24px, 6vw, 36px); letter-spacing: -1px; margin-bottom: 14px; }
    .contact-subtitle { font-size: 13px; margin-bottom: 28px; }
    .contact-link { font-size: 13px; padding: 12px 20px; max-width: 280px; }
    footer { padding: 24px 16px; gap: 4px; }
    footer p { font-size: 12px; }
    .footer-heart { font-size: 12px; }
}

/* --- Small mobile --- */
@media (max-width: 360px) {
    section { padding: 40px 14px; }
    .nav { padding: 10px 14px; }
    .hero h1 { font-size: 24px; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 12px; }
    .nav-logo { font-size: 18px; }
    .about-left { gap: 10px; }
    .about-image-wrap { width: 100px; }
    .about-name-card { padding: 8px 10px; gap: 8px; }
    .about-name-card h3 { font-size: 12px; }
    .about-name-card p { font-size: 9px; }
    .card-icon { width: 28px; height: 28px; font-size: 11px; }
    .stat-number { font-size: 16px; }
    .stat-label { font-size: 8px; }
    .stat { padding: 8px 2px; }
    .section-title { font-size: clamp(20px, 5vw, 26px); }
    .about-quote { font-size: 19px !important; }
    .role-tag { padding: 4px 8px; font-size: 10px; }
    .cert-card { width: 220px; padding: 12px; }
    .timeline-role { font-size: 14px; }
    .skill-card { padding: 16px; }
    .viewer-stage { height: 220px; }
    .viewer-arrow { width: 26px; height: 26px; font-size: 10px; }
    .viewer-thumb { width: 36px; height: 36px; }
    .viewer-slider { padding: 8px 10px 12px; }
    .contact-title { font-size: 22px; }
    .btn-primary, .btn-secondary { max-width: 220px; font-size: 12px; padding: 11px 20px; }
}
