/* ===== 3D BLUISH DARK MODE THEME ===== */
:root {
  --bg-primary: #060b18; --bg-secondary: #0a1628; --bg-card: #0e1d33;
  --bg-card-hover: #12233e; --bg-surface: #112a45;
  --border-color: rgba(56, 132, 255, 0.12);
  --border-hover: rgba(56, 132, 255, 0.25);
  --blue-primary: #1a73e8; --blue-secondary: #4285f4; --blue-light: #64b5f6;
  --blue-glow: #2196f3; --cyan-accent: #00bcd4; --cyan-light: #4dd0e1;
  --green-accent: #00e676;
  --text-primary: #f0f4ff; --text-secondary: #b0bec5; --text-muted: #607d8b;
  --gradient-primary: linear-gradient(135deg, #0a1628 0%, #0e1d33 50%, #060b18 100%);
  --gradient-card: linear-gradient(145deg, #0e1d33 0%, #12233e 100%);
  --gradient-accent: linear-gradient(135deg, #1a73e8 0%, #00bcd4 100%);
  --gradient-text: linear-gradient(135deg, #f0f4ff 0%, #64b5f6 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(26, 115, 232, 0.15);
  --shadow-accent: 0 0 30px rgba(0, 188, 212, 0.12);
  --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary); color: var(--text-primary);
  line-height: 1.7; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
.page-wrap-3d { position: relative; z-index: 1; perspective: 1200px; perspective-origin: 50% 30%; }
a:hover { color: var(--cyan-light); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(26, 115, 232, 0.3); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--blue-secondary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-primary); }
#three-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; transition: opacity 0.6s ease; }
#three-bg canvas { display: block; }
#three-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(6,11,24,0.3) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(10,22,40,0.4) 0%, transparent 50%), radial-gradient(ellipse at 40% 80%, rgba(6,11,24,0.3) 0%, transparent 50%), rgba(3,6,16,0.35); pointer-events: none; }
section, .navbar, .footer { transform-style: preserve-3d; }
.enter-3d { opacity: 0; transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.enter-3d.show-3d { opacity: 1; }
.enter-3d[data-3d="left"] { transform: translateX(-60px) rotateY(10deg) scale(0.95); }
.enter-3d[data-3d="left"].show-3d { transform: translateX(0) rotateY(0) scale(1); }
.enter-3d[data-3d="right"] { transform: translateX(60px) rotateY(-10deg) scale(0.95); }
.enter-3d[data-3d="right"].show-3d { transform: translateX(0) rotateY(0) scale(1); }
.enter-3d[data-3d="bottom"] { transform: translateY(50px) translateZ(-30px) scale(0.93); }
.enter-3d[data-3d="bottom"].show-3d { transform: translateY(0) translateZ(0) scale(1); }
.enter-3d[data-3d="front"] { transform: translateZ(60px) scale(0.85); }
.enter-3d[data-3d="front"].show-3d { transform: translateZ(0) scale(1); }
.enter-3d[data-3d="flip"] { transform: rotateX(-15deg) translateY(30px) translateZ(-20px); }
.enter-3d[data-3d="flip"].show-3d { transform: rotateX(0) translateY(0) translateZ(0); }
.stagger-3d > * { opacity: 0; transform: translateY(30px) translateZ(-20px) scale(0.95); transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.stagger-3d.show-3d > * { opacity: 1; transform: translateY(0) translateZ(0) scale(1); }
.stagger-3d.show-3d > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-3d.show-3d > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-3d.show-3d > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-3d.show-3d > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-3d.show-3d > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-3d.show-3d > *:nth-child(6) { transition-delay: 0.3s; }
.card-3d { transform-style: preserve-3d; will-change: transform; transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.card-3d:hover { z-index: 10; }
.card-3d .card-3d-content { transform-style: preserve-3d; transition: transform 0.15s ease; }
.card-3d .card-3d-content > * { transform: translateZ(8px); transition: transform 0.3s ease; }
.card-3d:hover .card-3d-content > * { transform: translateZ(16px); }
.card-3d .card-3d-content > * > * { transform: translateZ(4px); }
.card-glare { pointer-events: none; }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(6, 11, 24, 0.8); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-bottom: 1px solid var(--border-color); transition: all var(--transition); transform-style: preserve-3d; }
.navbar.scrolled { background: rgba(6,11,24,0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 1px 0 rgba(26,115,232,0.05); }
.navbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; height: var(--nav-height); }
.navbar-brand { font-size: 1.35rem; font-weight: 700; display: flex; align-items: center; gap: 10px; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; transform: translateZ(6px); }
.navbar-links { display: flex; gap: 6px; list-style: none; margin: 0; }
.navbar-links a { color: var(--text-secondary); font-size: 0.88rem; font-weight: 500; padding: 8px 18px; border-radius: var(--radius-sm); transition: all var(--transition); transform: translateZ(2px); }
.navbar-links a:hover, .navbar-links a.active { color: var(--text-primary); background: rgba(26,115,232,0.12); transform: translateZ(8px) scale(1.05); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; width: 44px; height: 44px; padding: 0; background: var(--gradient-accent); border: none; border-radius: 12px; align-items: center; justify-content: center; position: relative; z-index: 1001; box-shadow: 0 4px 16px rgba(26,115,232,0.35); transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.menu-toggle:hover { transform: translateY(-2px) translateZ(4px); box-shadow: 0 6px 24px rgba(26,115,232,0.45); }
.menu-toggle span { display: block; width: 20px; height: 2.5px; background: #fff; border-radius: 3px; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); transform-origin: center; }
.menu-toggle.active { background: linear-gradient(135deg, #00bcd4 0%, #1a73e8 100%); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.navbar.menu-open .navbar-brand { opacity: 1; pointer-events: auto; }
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; z-index: 1; }
.hero .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px; background: rgba(26,115,232,0.08); border: 1px solid rgba(26,115,232,0.2); border-radius: 100px; font-size: 0.85rem; color: var(--blue-light); margin-bottom: 28px; transform: translateZ(4px); backdrop-filter: blur(4px); }
.hero-badge .dot { width: 8px; height: 8px; background: var(--green-accent); border-radius: 50%; animation: pulse-dot 2s infinite; box-shadow: 0 0 10px rgba(0,230,118,0.4); }
@keyframes pulse-dot { 50% { opacity: 0.4; transform: scale(1.4); } }
.hero-name { font-size: clamp(2.8rem,5.5vw,4.2rem); font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.05; margin-bottom: 16px; transform: translateZ(8px); }
.hero-title { font-size: clamp(1.3rem,2.5vw,1.7rem); font-weight: 600; margin-bottom: 20px; color: var(--text-secondary); transform: translateZ(4px); }
.hero-title span { color: var(--cyan-light); }
.hero-description { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; margin-bottom: 32px; max-width: 520px; transform: translateZ(2px); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; text-decoration: none; transform-style: preserve-3d; position: relative; }
.btn-primary { background: var(--gradient-accent); color: #fff; box-shadow: 0 4px 20px rgba(26,115,232,0.3); transform: translateZ(6px); }
.btn-primary:hover { transform: translateY(-2px) translateZ(12px); box-shadow: 0 8px 35px rgba(26,115,232,0.45); color: #fff; }
.btn-outline { background: transparent; color: var(--blue-light); border: 2px solid var(--blue-secondary); transform: translateZ(4px); }
.btn-outline:hover { background: rgba(26,115,232,0.08); transform: translateY(-2px) translateZ(10px); color: var(--cyan-light); border-color: var(--cyan-accent); }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.hero-image-wrapper { position: relative; width: 340px; height: 340px; transform-style: preserve-3d; animation: float-3d 6s ease-in-out infinite; }
@keyframes float-3d { 0%,100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); } 25% { transform: translateY(-12px) rotateY(3deg) rotateX(1deg); } 50% { transform: translateY(-4px) rotateY(-1deg) rotateX(-1deg); } 75% { transform: translateY(6px) rotateY(-3deg) rotateX(0deg); } }
.hero-image-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid rgba(26,115,232,0.25); box-shadow: 0 0 60px rgba(26,115,232,0.12), 0 20px 80px rgba(0,0,0,0.3); position: relative; z-index: 1; transform: translateZ(10px); }
.hero-image-wrapper .ring { position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border: 1.5px solid rgba(26,115,232,0.15); border-radius: 50%; animation: spin 20s linear infinite; transform: translateZ(-4px); }
.hero-image-wrapper .ring:nth-child(2) { top: -28px; left: -28px; right: -28px; bottom: -28px; border-color: rgba(0,188,212,0.08); animation-direction: reverse; animation-duration: 30s; transform: translateZ(-8px); }
@keyframes spin { 100% { transform: rotate(360deg); } }
.hero-tech-icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tech-icon { padding: 6px 14px; font-size: 0.78rem; font-weight: 500; background: rgba(26,115,232,0.08); border: 1px solid rgba(26,115,232,0.15); border-radius: 100px; color: var(--text-secondary); transition: all var(--transition); backdrop-filter: blur(4px); transform: translateZ(2px); }
.tech-icon:hover { background: rgba(26,115,232,0.15); color: var(--cyan-light); border-color: rgba(0,188,212,0.3); transform: translateZ(8px) scale(1.08); }
.hero-social { display: flex; gap: 12px; margin-top: 28px; }
.social-link { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(14,29,51,0.8); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 1.2rem; transition: all var(--transition); backdrop-filter: blur(4px); transform: translateZ(4px); }
.social-link:hover { background: var(--gradient-accent); color: #fff; transform: translateY(-3px) translateZ(12px); box-shadow: 0 8px 25px rgba(26,115,232,0.3); }
.section { padding: 100px 0; position: relative; z-index: 1; }
.section .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-alt { background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label { display: inline-flex; align-items: center; gap: 8px; padding: 7px 20px; background: rgba(26,115,232,0.08); backdrop-filter: blur(4px); border-radius: 100px; font-size: 0.85rem; color: var(--blue-light); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; margin-bottom: 18px; border: 1px solid rgba(26,115,232,0.12); transform: translateZ(4px); }
.section-title { font-size: clamp(2rem,4vw,2.8rem); font-weight: 700; margin-bottom: 16px; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.experience-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.experience-left { padding: 40px; background: var(--gradient-card); border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); transform-style: preserve-3d; }
.experience-left:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-hover); }
.experience-years { font-size: clamp(3rem,5vw,4rem); font-weight: 800; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 6px; }
.experience-left > p { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; }
.experience-timeline { position: relative; padding-left: 28px; }
.experience-timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--blue-primary), var(--cyan-accent), transparent); }
.timeline-item { position: relative; padding: 14px 0; transition: all var(--transition); transform: translateZ(2px); }
.timeline-item:hover { padding-left: 8px; transform: translateZ(8px); }
.timeline-item::before { content: ""; position: absolute; left: -34px; top: 18px; width: 10px; height: 10px; background: var(--blue-primary); border-radius: 50%; border: 2px solid var(--bg-primary); box-shadow: 0 0 16px rgba(26,115,232,0.3); }
.timeline-item .company { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.timeline-item .period { font-size: 0.82rem; color: var(--cyan-accent); margin-bottom: 4px; }
.timeline-item .role { font-size: 0.9rem; color: var(--text-muted); }
.experience-right { padding-top: 8px; }
.experience-role-title { font-size: 1.3rem; font-weight: 700; color: var(--cyan-light); margin-bottom: 24px; }
.experience-details { list-style: none; }
.experience-details li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); line-height: 1.7; }
.experience-details li i { color: var(--green-accent); font-size: 1.1rem; margin-top: 3px; flex-shrink: 0; }
.experience-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.skill-tag { padding: 6px 14px; background: rgba(26,115,232,0.08); border: 1px solid rgba(26,115,232,0.15); border-radius: 100px; font-size: 0.82rem; color: var(--text-secondary); transition: all var(--transition); cursor: default; backdrop-filter: blur(4px); }
.skill-tag:hover { background: rgba(26,115,232,0.15); color: var(--cyan-light); transform: translateZ(6px) scale(1.08); }
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.education-card { background: var(--gradient-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 40px 32px; text-align: center; transition: all var(--transition); position: relative; overflow: hidden; transform-style: preserve-3d; cursor: default; }
.education-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-accent); opacity: 0; transition: opacity var(--transition); }
.education-card:hover { transform: translateY(-6px) translateZ(10px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-hover); }
.education-card:hover::before { opacity: 1; }
.education-card .year { display: inline-block; padding: 4px 18px; background: rgba(26,115,232,0.1); border-radius: 100px; font-size: 0.85rem; color: var(--blue-light); margin-bottom: 20px; }
.edu-icon { font-size: 2.2rem; color: var(--blue-light); margin-bottom: 16px; }
.education-card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.education-card p { color: var(--text-muted); font-size: 0.95rem; }
.project-card { background: var(--gradient-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); max-width: 960px; margin: 0 auto; transform-style: preserve-3d; }
.project-card:hover { box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-hover); transform: translateZ(6px); }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; }
.project-image-wrapper { overflow: hidden; position: relative; min-height: 320px; }
.project-image { width: 100%; height: 100%; position: absolute; top: 0; left: 0; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover .project-image { transform: scale(1.05); }
.project-content { padding: 36px; display: flex; flex-direction: column; }
.project-tag { align-self: flex-start; padding: 4px 12px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; background: rgba(0,230,118,0.1); color: var(--green-accent); border-radius: 100px; margin-bottom: 16px; }
.project-content h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; color: var(--text-primary); }
.project-content p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 24px; font-size: 0.95rem; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 24px; background: rgba(6,11,24,0.4); border-radius: var(--radius-sm); padding: 16px; }
.meta-item { padding: 4px 0; }
.meta-item:last-child { grid-column: 1 / -1; }
.meta-item span { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.meta-item p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.project-links { display: flex; gap: 12px; margin-top: auto; }
.project-links .btn { padding: 10px 20px; font-size: 0.85rem; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.skill-category { background: var(--gradient-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 28px 24px; transition: all var(--transition); position: relative; overflow: hidden; transform-style: preserve-3d; cursor: default; }
.skill-category::after { content: ""; position: absolute; top: 0; right: 0; width: 80px; height: 80px; background: radial-gradient(circle, rgba(26,115,232,0.05) 0%, transparent 70%); border-radius: 50%; transform: translate(30%,-30%); }
.skill-category:hover { transform: translateY(-5px) translateZ(10px); box-shadow: var(--shadow-lg), var(--shadow-accent); border-color: var(--border-hover); }
.skill-cat-icon { font-size: 1.5rem; color: var(--blue-primary); margin-bottom: 16px; }
.skill-category h3 { font-size: 1rem; font-weight: 600; color: var(--cyan-light); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; max-width: 800px; margin: 0 auto; }
.contact-card { display: block; background: var(--gradient-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; transition: all var(--transition); text-decoration: none; transform-style: preserve-3d; }
.contact-card:hover { transform: translateY(-5px) translateZ(12px); box-shadow: var(--shadow-lg), var(--shadow-glow); border-color: var(--border-hover); }
.contact-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: rgba(26,115,232,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--blue-light); transition: transform 0.3s ease; }
.contact-card:hover .contact-icon { transform: translateZ(8px) scale(1.1); }
.contact-card h4 { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: 1rem; color: var(--text-primary); }
.footer { padding: 48px 0 32px; border-top: 1px solid var(--border-color); text-align: center; position: relative; z-index: 1; }
.footer-brand { font-size: 1.25rem; font-weight: 700; background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: inline-flex; align-items: center; gap: 8px; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 24px 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--cyan-light); }
.footer-social { display: flex; justify-content: center; gap: 16px; margin-bottom: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(14,29,51,0.6); border: 1px solid var(--border-color); color: var(--text-muted); font-size: 1.1rem; transition: all var(--transition); }
.footer-social a:hover { background: var(--gradient-accent); color: #fff; transform: translateY(-2px) translateZ(6px); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.scroll-top { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 20px rgba(26,115,232,0.3); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--transition); z-index: 999; }
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px) translateZ(8px); box-shadow: 0 8px 30px rgba(26,115,232,0.45); }
/* -- Mobile menu backdrop (not from main.css) -- */
.menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6,11,24,0.92);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.menu-backdrop.show {
  opacity: 1;
  visibility: visible;
}
/* -- UserWay accessibility widget -- */
.uwy { position: fixed !important; bottom: 20px !important; z-index: 99999 !important; }
/* -- Animated gradient border (shimmer) -- */
.animated-border { position: relative; border: 2px solid transparent; background: var(--gradient-card); background-clip: padding-box; }
.animated-border::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: linear-gradient(135deg, #1a73e8, #8844ff, #00bcd4, #1a73e8); background-size: 300% 300%%; animation: border-shimmer 4s ease infinite; z-index: -1; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; -webkit-mask-composite: xor; }
@keyframes border-shimmer { 0%%,100%% { background-position: 0%% 50%%; } 50%% { background-position: 100%% 50%%; } }

/* -- Glass morphism -- */
.glass-card { background: rgba(14, 29, 51, 0.55); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid rgba(255,255,255,0.06); box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.03); }

/* -- Glow hover -- */
.glow-hover { transition: box-shadow 0.4s ease, border-color 0.4s ease; }
.glow-hover:hover { box-shadow: 0 0 40px rgba(26,115,232,0.2), 0 0 80px rgba(26,115,232,0.08), 0 8px 40px rgba(0,0,0,0.4) !important; border-color: rgba(26,115,232,0.3) !important; }

/* -- Floating card -- */
@keyframes float-card { 0%%,100%% { transform: translateY(0); } 50%% { transform: translateY(-6px); } }
.float-card { animation: float-card 5s ease-in-out infinite; }

/* -- Tech icon glow -- */
.tech-icon:hover { box-shadow: 0 0 16px rgba(26,115,232,0.25), inset 0 0 12px rgba(26,115,232,0.06) !important; transform: translateZ(12px) scale(1.1) !important; }

/* -- Social link glow -- */
.social-link:hover { box-shadow: 0 0 28px rgba(26,115,232,0.4), 0 8px 28px rgba(0,0,0,0.3) !important; }

/* -- Section divider -- */
.section-divider { width: 60px; height: 3px; background: var(--gradient-accent); border-radius: 4px; margin: 12px auto 0; box-shadow: 0 0 20px rgba(26,115,232,0.3); }

/* -- Smooth entrance children -- */
.reveal-children > * { opacity: 0; transform: translateY(20px); transition: all 0.5s cubic-bezier(0.22,1,0.36,1); }
.reveal-children.show-3d > * { opacity: 1; transform: translateY(0); }
.reveal-children.show-3d > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-children.show-3d > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-children.show-3d > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-children.show-3d > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-children.show-3d > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-children.show-3d > *:nth-child(6) { transition-delay: 0.4s; }

@media (max-width: 968px) {
.hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
.hero-description { margin: 0 auto 32px; }
.hero-actions { justify-content: center; }
.hero-social { justify-content: center; }
.hero-image-wrapper { width: 260px; height: 260px; }
.experience-grid { grid-template-columns: 1fr; gap: 40px; }
.project-grid { grid-template-columns: 1fr; }
.project-image-wrapper { min-height: 240px; }
.navbar-links { display: none; }
.menu-toggle { display: flex; }
.navbar-links.open { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(6,11,24,0.92); padding: 100px 24px 40px; overflow-y: auto; animation: menuFadeIn 0.35s cubic-bezier(0.4,0,0.2,1) both; height: 100dvh; }
@keyframes menuFadeIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
.navbar-links.open a { font-size: 1.15rem; padding: 14px 48px; border-radius: var(--radius-md); text-align: center; min-width: 200px; transition: all 0.25s ease; color: var(--text-secondary); }
.navbar-links.open a:hover, .navbar-links.open a.active { color: var(--text-primary); background: rgba(26,115,232,0.15); transform: scale(1.05); }
.card-3d { transform: none !important; }
.card-3d .card-3d-content > * { transform: none !important; }
.card-3d:hover .card-3d-content > * { transform: none !important; }
.enter-3d[data-3d] { transform: translateY(20px) !important; opacity: 0; }
.enter-3d[data-3d].show-3d { transform: translateY(0) !important; opacity: 1; }
}
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; filter: blur(12px); opacity: 0; transition: opacity 0.3s ease; z-index: -1; }
.btn:hover::after { opacity: 0.5; }
@media (max-width: 576px) {
.section { padding: 60px 0; }
.hero { padding: 100px 0 60px; }
.hero-image-wrapper { width: 220px; height: 220px; }
.hero-actions { flex-direction: column; align-items: center; }
.project-content { padding: 24px; }
.project-meta { grid-template-columns: 1fr; }
.project-links { flex-direction: column; }
.project-links .btn { width: 100%; justify-content: center; }
.scroll-top { bottom: 20px; right: 20px; width: 42px; height: 42px; font-size: 1rem; }
.navbar-links.open a { font-size: 1.05rem; padding: 12px 36px; min-width: 160px; }
}
