/* Ziaur Rahman Portfolio — Dark Purple & Navy Blue */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #080b1d;
  --bg-deep: #050714;
  --surface: rgba(19, 22, 49, .78);
  --surface-strong: #141832;
  --surface-soft: #10142b;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --blue: #536dfe;
  --cyan: #68d7ff;
  --text: #f5f5ff;
  --muted: #a6abc8;
  --border: rgba(167, 139, 250, .2);
  --shadow: 0 22px 70px rgba(0, 0, 0, .32);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}
body::selection { background: var(--purple); color: white; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 44px)); margin-inline: auto; }
.section { padding: 108px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(35, 28, 76, .18), rgba(13, 18, 44, .24)); }
h1, h2, h3, .logo { font-family: 'Space Grotesk', sans-serif; letter-spacing: -.035em; line-height: 1.15; }
p { color: var(--muted); }
.gradient-text {
  color: var(--purple-bright);
  background: linear-gradient(100deg, #c4b5fd 5%, #8b5cf6 48%, #68d7ff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.eyebrow, .small-label, .card-number, .project-type, .timeline-category, .project-index {
  color: #b6a4ff; font-size: .72rem; font-weight: 800; letter-spacing: .16em;
}
.section-heading { max-width: 690px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(2.2rem, 5vw, 3.45rem); margin: 13px 0 15px; }
.section-description { max-width: 580px; font-size: 1.02rem; }

/* Background */
.background-effects { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .23; animation: drift 15s ease-in-out infinite alternate; }
.glow-one { width: 460px; height: 460px; top: -170px; left: -140px; background: #6d28d9; }
.glow-two { width: 520px; height: 520px; top: 24%; right: -260px; background: #2439ba; animation-delay: -5s; }
.grid-overlay {
  position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(rgba(155, 145, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(155, 145, 255, .09) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
@keyframes drift { to { transform: translate(45px, 35px) scale(1.08); } }

/* Navigation */
.header { position: sticky; top: 0; z-index: 100; background: rgba(7, 9, 26, .82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(167, 139, 250, .12); }
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -.08em; }
.logo span { color: var(--purple-bright); }
.nav-menu { display: flex; align-items: center; gap: 27px; list-style: none; }
.nav-link { font-size: .86rem; font-weight: 600; color: #b7bad2; transition: color .25s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active { text-shadow: 0 0 18px rgba(167, 139, 250, .55); }
.nav-cta { border: 1px solid rgba(167, 139, 250, .42); border-radius: 999px; padding: 10px 17px; font-size: .85rem; font-weight: 700; background: rgba(139, 92, 246, .1); transition: .25s; }
.nav-cta span { color: var(--cyan); margin-left: 5px; }
.nav-cta:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-2px); }
.menu-toggle { display: none; background: transparent; border: 0; cursor: pointer; }

/* Hero */
.hero { min-height: 680px; display: flex; align-items: center; padding-top: 85px; padding-bottom: 110px; }
.hero-container { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; }
.availability { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(167, 139, 250, .24); background: rgba(25, 24, 59, .65); padding: 8px 13px; border-radius: 999px; font-size: .65rem; letter-spacing: .11em; font-weight: 800; color: #d2c9ff; margin-bottom: 27px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; display: inline-block; border-radius: 50%; background: #a78bfa; box-shadow: 0 0 13px #8b5cf6; }
.hero-content .eyebrow { margin-bottom: 10px; }
.hero h1 { font-size: clamp(3.8rem, 7.2vw, 6.7rem); font-weight: 800; letter-spacing: -.075em; line-height: .98; margin-bottom: 25px; }
.hero-subtitle { color: #e0defa; font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 700; line-height: 1.7; margin-bottom: 18px; }
.separator { color: var(--purple-bright); padding: 0 6px; }
.hero-description { max-width: 560px; font-size: 1.01rem; margin-bottom: 29px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 29px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border-radius: 12px; padding: 13px 19px; font-weight: 800; font-size: .9rem; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { color: #fff; background: linear-gradient(110deg, #7046e8, #536dfe); box-shadow: 0 10px 28px rgba(91, 76, 230, .25); border: 1px solid rgba(197, 181, 253, .25); }
.btn-primary:hover { box-shadow: 0 15px 38px rgba(91, 76, 230, .4); }
.btn-secondary { border: 1px solid rgba(167, 139, 250, .35); background: rgba(20, 24, 50, .72); color: #e6e3ff; }
.btn-secondary:hover { background: rgba(139, 92, 246, .18); }
.social-links { display: flex; gap: 10px; }
.social-links a { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid rgba(167, 139, 250, .24); border-radius: 12px; background: rgba(18, 22, 48, .78); color: #d6d2f8; font-size: .72rem; font-weight: 800; transition: .25s; }
.social-links a:hover { color: #fff; border-color: var(--purple-bright); background: rgba(139, 92, 246, .24); transform: translateY(-4px); }

/* Profile visual */
.hero-visual { min-height: 470px; position: relative; display: grid; place-items: center; }
.photo-card { width: min(360px, 85%); position: relative; z-index: 2; padding: 19px; border-radius: 26px; border: 1px solid rgba(167, 139, 250, .38); background: linear-gradient(145deg, rgba(31, 30, 69, .94), rgba(11, 16, 40, .96)); box-shadow: 0 30px 90px rgba(0, 0, 0, .42), 0 0 55px rgba(107, 70, 220, .13); transform: rotate(1.5deg); }
.photo-card-top { display: flex; align-items: center; gap: 6px; padding-bottom: 18px; }
.window-dot { width: 7px; height: 7px; background: #8062e8; border-radius: 50%; }
.window-dot:nth-child(2) { background: #637bf6; }
.window-dot:nth-child(3) { background: #6ed8ef; }
.photo-label { margin-left: auto; color: #9ea4c7; font: 700 .62rem monospace; letter-spacing: .12em; }
.photo-circle { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 19px; border: 2px solid rgba(167, 139, 250, .55); background: linear-gradient(135deg, #2a2058, #121d45); box-shadow: 0 0 28px rgba(139, 92, 246, .18); }
.photo-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 18px 2px 2px; }
.photo-card-bottom .small-label { font-size: .6rem; }
.photo-card-bottom h3 { font-size: 1.18rem; margin-top: 4px; }
.verified-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #536dfe); font-weight: 800; box-shadow: 0 0 20px rgba(139, 92, 246, .35); }
.photo-orbit { position: absolute; border: 1px solid rgba(167, 139, 250, .23); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; animation: spin 32s linear infinite; border-top-color: rgba(104, 215, 255, .7); }
.orbit-two { width: 490px; height: 490px; border-style: dashed; border-color: rgba(83, 109, 254, .24); animation: spin 45s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.floating-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(167, 139, 250, .32); background: rgba(17, 20, 47, .92); backdrop-filter: blur(14px); border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.floating-top { top: 62px; right: -5px; }
.floating-bottom { bottom: 54px; left: -5px; animation-delay: -2s; }
.floating-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: rgba(139, 92, 246, .2); color: var(--cyan); font-weight: 800; }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: .72rem; letter-spacing: .07em; }
.floating-card small { color: var(--muted); font-size: .67rem; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-decoration { position: absolute; border-radius: 50%; background: var(--purple); filter: blur(1px); opacity: .65; }
.decoration-one { width: 8px; height: 8px; top: 16%; left: 17%; box-shadow: 0 0 22px 5px rgba(139, 92, 246, .35); }
.decoration-two { width: 6px; height: 6px; bottom: 15%; right: 13%; background: var(--cyan); box-shadow: 0 0 20px 5px rgba(104, 215, 255, .3); }
.scroll-indicator { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 11px; color: #8188ad; font-size: .62rem; font-weight: 800; letter-spacing: .15em; white-space: nowrap; }
.scroll-indicator span { width: 23px; height: 34px; border: 1px solid rgba(167, 139, 250, .55); border-radius: 20px; position: relative; }
.scroll-indicator span::after { content: ''; position: absolute; width: 3px; height: 6px; border-radius: 3px; background: var(--cyan); top: 7px; left: 9px; animation: scroll 1.5s infinite; }
@keyframes scroll { to { transform: translateY(10px); opacity: 0; } }

/* Expertise strip */
.expertise-strip { border-block: 1px solid rgba(167, 139, 250, .16); background: rgba(15, 17, 43, .72); }
.expertise-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.expertise-inner span { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: #c4c5e0; }
.expertise-inner i { color: var(--purple-bright); font-style: normal; }

/* Cards and about */
.glass-card { border: 1px solid var(--border); background: linear-gradient(145deg, rgba(24, 27, 60, .88), rgba(13, 18, 43, .85)); box-shadow: 0 16px 45px rgba(0, 0, 0, .15); }
.about-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 22px; }
.about-main { padding: 34px; border-radius: 22px; }
.about-main h3 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin: 19px 0; }
.about-main p + p { margin-top: 13px; }
.about-tags, .skill-tags, .project-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.about-tags { margin-top: 25px; }
.about-tags span, .skill-tags span, .project-tags span { border: 1px solid rgba(167, 139, 250, .22); border-radius: 7px; padding: 6px 10px; background: rgba(139, 92, 246, .09); color: #d2ccf8; font-size: .72rem; font-weight: 600; }
.about-details { display: grid; gap: 13px; }
.detail-card { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 16px; transition: transform .25s, border-color .25s; }
.detail-card:hover { transform: translateX(5px); border-color: rgba(167, 139, 250, .55); }
.detail-icon { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #d9d0ff; background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(83, 109, 254, .2)); font-size: .72rem; font-weight: 800; }
.detail-card .small-label { font-size: .62rem; }
.detail-card h3 { font-size: 1rem; margin: 4px 0; letter-spacing: -.02em; }
.detail-card p:last-child { font-size: .78rem; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.skill-card { padding: 23px; border-radius: 18px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.skill-card:hover, .project-card:hover { transform: translateY(-7px); border-color: rgba(167, 139, 250, .56); box-shadow: 0 22px 55px rgba(0, 0, 0, .26), 0 0 30px rgba(139, 92, 246, .08); }
.skill-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.skill-icon { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid rgba(167, 139, 250, .3); border-radius: 13px; color: #c6b7ff; background: rgba(139, 92, 246, .15); font-family: monospace; font-weight: 800; }
.skill-category { color: #686f9a; font-size: .75rem; font-weight: 800; }
.skill-card h3 { font-size: 1.13rem; margin-bottom: 10px; letter-spacing: -.025em; }
.skill-card p { font-size: .84rem; min-height: 98px; }
.skill-tags { margin-top: 18px; gap: 6px; }
.skill-tags span { font-size: .65rem; padding: 5px 7px; }
.skills-note, .projects-note { margin-top: 24px; text-align: center; font-size: .8rem; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 23px; }
.project-card { overflow: hidden; border-radius: 20px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.project-visual { min-height: 245px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 60%, rgba(117, 75, 230, .25), transparent 55%), linear-gradient(135deg, #111634, #101027); border-bottom: 1px solid rgba(167, 139, 250, .15); }
.project-visual::before { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(167, 139, 250, .2) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .2) 1px, transparent 1px); background-size: 25px 25px; }
.project-index { position: absolute; top: 17px; left: 18px; font-size: .62rem; color: #a9a5d5; }
.terminal-window { width: min(330px, 82%); border: 1px solid rgba(167, 139, 250, .35); border-radius: 12px; background: rgba(5, 8, 24, .94); box-shadow: 0 20px 45px rgba(0, 0, 0, .3); overflow: hidden; position: relative; z-index: 1; }
.terminal-top { display: flex; align-items: center; gap: 5px; padding: 10px 12px; border-bottom: 1px solid rgba(167, 139, 250, .15); color: #858bac; font-size: .65rem; }
.terminal-top i { width: 6px; height: 6px; border-radius: 50%; background: #8b5cf6; }
.terminal-top i:nth-child(2) { background: #536dfe; }
.terminal-top i:nth-child(3) { background: #68d7ff; }
.terminal-top span { margin-left: auto; }
.terminal-body { padding: 19px; font: .78rem/1.9 monospace; }
.terminal-body p:first-child span { color: var(--cyan); }
.terminal-muted { color: #737b9e; }
.terminal-green, .code-green { color: #9be8d0; }
.terminal-cursor { color: var(--purple-bright); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.network-visual { width: 250px; height: 170px; position: relative; z-index: 1; }
.network-node { position: absolute; z-index: 2; width: 57px; height: 57px; display: grid; place-items: center; border: 1px solid rgba(167, 139, 250, .6); border-radius: 16px; background: rgba(27, 28, 73, .95); color: #d8d1ff; font: 800 .72rem monospace; box-shadow: 0 0 24px rgba(139, 92, 246, .16); }
.node-a { left: 0; top: 56px; } .node-b { left: 96px; top: 0; } .node-c { right: 0; top: 56px; } .node-d { left: 96px; bottom: 0; }
.network-line { position: absolute; height: 1px; background: linear-gradient(90deg, var(--purple), var(--cyan)); transform-origin: left; opacity: .8; }
.line-a { width: 115px; top: 65px; left: 48px; transform: rotate(-28deg); }
.line-b { width: 115px; top: 88px; left: 49px; }
.line-c { width: 115px; top: 109px; left: 49px; transform: rotate(28deg); }
.marketing-visual { width: min(330px, 80%); padding: 20px; border: 1px solid rgba(167, 139, 250, .3); border-radius: 14px; background: rgba(7, 11, 30, .8); position: relative; z-index: 1; }
.chart-heading { color: #d7d3f8; font-size: .65rem; letter-spacing: .12em; font-weight: 800; }
.chart-bars { height: 115px; display: flex; align-items: end; gap: 10px; padding-top: 15px; border-bottom: 1px solid rgba(167, 139, 250, .2); }
.chart-bars span { flex: 1; height: var(--bar-height); border-radius: 5px 5px 0 0; background: linear-gradient(180deg, #68d7ff, #8b5cf6 80%); opacity: .85; }
.chart-footer { padding-top: 10px; color: #8289ad; font-size: .59rem; letter-spacing: .1em; }
.code-visual { width: min(330px, 80%); padding: 28px; position: relative; z-index: 1; border: 1px solid rgba(167, 139, 250, .28); border-radius: 14px; background: rgba(7, 11, 30, .88); font: .9rem/2 monospace; color: #c9c7eb; box-shadow: 0 15px 35px rgba(0, 0, 0, .25); }
.code-blue { color: #b5a2ff; } .code-green { color: #8de5c4; } .code-indent { margin-left: 20px; color: #68d7ff; }
.code-glow { position: absolute; width: 90px; height: 90px; right: -35px; bottom: -35px; border-radius: 50%; background: #7046e8; filter: blur(42px); opacity: .45; }
.project-content { padding: 25px; }
.project-type { font-size: .62rem; }
.project-content h3 { font-size: 1.4rem; margin: 9px 0 11px; }
.project-content p { font-size: .88rem; }
.project-tags { margin-top: 17px; }
.project-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 21px; font-size: .83rem; color: #c4b5fd; font-weight: 800; }
.project-link span { transition: transform .2s; }
.project-link:hover { color: var(--cyan); }
.project-link:hover span { transform: translate(3px, -3px); }
.projects-footer { display: flex; justify-content: center; margin-top: 32px; }

/* Experience timeline */
.timeline { max-width: 850px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 13px; bottom: 20px; width: 1px; background: linear-gradient(var(--purple), rgba(104, 215, 255, .15)); }
.timeline-item { position: relative; padding-left: 42px; margin-bottom: 23px; }
.timeline-marker { position: absolute; left: 3px; top: 25px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid #a78bfa; background: var(--bg); box-shadow: 0 0 18px rgba(139, 92, 246, .5); z-index: 1; }
.timeline-card { padding: 27px 30px; border-radius: 18px; }
.timeline-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.timeline-category { font-size: .63rem; }
.timeline-number { color: #626b98; font-size: .75rem; font-weight: 800; }
.timeline-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.timeline-company { color: #c4b5fd; font-size: .85rem; margin-bottom: 13px; }
.timeline-card > p:not(.timeline-company) { font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 22px; }
.contact-main { padding: 36px; border-radius: 22px; }
.contact-main h3 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin: 18px 0; }
.contact-main > p { margin-bottom: 25px; }
.contact-note { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: #b7bad2; font-size: .8rem; }
.contact-details { display: grid; gap: 13px; align-content: start; }
.contact-card { display: flex; align-items: center; gap: 15px; padding: 19px; border-radius: 16px; transition: .25s; min-width: 0; }
a.contact-card:hover { transform: translateX(5px); border-color: rgba(167, 139, 250, .55); }
.contact-icon { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: #d8d0ff; background: rgba(139, 92, 246, .18); font-size: .7rem; font-weight: 800; }
.contact-card div { min-width: 0; flex: 1; }
.contact-card .small-label { display: block; font-size: .61rem; margin-bottom: 4px; }
.contact-card strong { display: block; overflow-wrap: anywhere; font-size: .85rem; }
.contact-arrow { color: var(--cyan); }

/* Final call to action and footer */
.final-cta { padding: 58px 0; background: linear-gradient(105deg, rgba(79, 43, 151, .25), rgba(27, 43, 110, .22)); border-block: 1px solid rgba(167, 139, 250, .17); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.final-cta h2 { margin-top: 12px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.footer { padding: 27px 0; background: rgba(5, 7, 20, .75); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.footer-inner p { font-size: .78rem; text-align: center; }
.back-to-top { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(167, 139, 250, .3); border-radius: 11px; color: #d4c8ff; transition: .2s; }
.back-to-top:hover { background: var(--purple); }

/* Responsive */
@media (max-width: 1000px) {
  .nav-menu { gap: 15px; }
  .hero-container { gap: 25px; }
  .hero h1 { font-size: clamp(3.5rem, 7vw, 5.4rem); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card p { min-height: auto; }
  .orbit-one { width: 370px; height: 370px; }
  .orbit-two { width: 420px; height: 420px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 34px, 560px); }
  .section { padding: 78px 0; }
  .navbar { min-height: 69px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
  .menu-toggle span { width: 23px; height: 2px; border-radius: 2px; background: #e8e3ff; }
  .nav-cta { display: none; }
  .nav-menu { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 18px 24px 23px; background: rgba(8, 11, 29, .98); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-menu.open { display: flex; }
  .nav-menu li a { display: block; padding: 11px 0; }
  .hero { padding-top: 55px; padding-bottom: 88px; min-height: 0; }
  .hero-container { grid-template-columns: 1fr; gap: 40px; }
  .hero-content { text-align: center; }
  .availability { font-size: .57rem; }
  .hero h1 { font-size: clamp(3.7rem, 17vw, 5.5rem); }
  .hero-description { margin-inline: auto; }
  .hero-buttons, .social-links { justify-content: center; }
  .hero-subtitle { font-size: .96rem; }
  .hero-visual { min-height: 410px; }
  .photo-card { width: min(310px, 75%); }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 390px; height: 390px; }
  .floating-top { right: 0; top: 45px; }
  .floating-bottom { left: 0; bottom: 40px; }
  .scroll-indicator { display: none; }
  .expertise-inner { justify-content: center; padding: 20px 0; gap: 12px 17px; }
  .expertise-inner span { font-size: .61rem; }
  .expertise-inner i { font-size: .8rem; }
  .section-heading { margin-bottom: 32px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-main, .contact-main { padding: 25px; }
  .detail-card { padding: 15px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-visual { min-height: 220px; }
  .timeline-item { padding-left: 31px; }
  .timeline-card { padding: 22px; }
  .timeline-top { align-items: flex-start; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; flex-basis: 100%; text-align: left; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 3.4rem; }
  .btn { width: 100%; }
  .hero-buttons { width: 100%; }
  .hero-visual { min-height: 355px; }
  .photo-card { width: 76%; padding: 13px; }
  .orbit-one { width: 285px; height: 285px; }
  .orbit-two { width: 325px; height: 325px; }
  .floating-card { padding: 9px 10px; }
  .floating-icon { width: 30px; height: 30px; }
  .floating-card strong { font-size: .62rem; }
  .floating-card small { font-size: .6rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 21px; }
  .project-content { padding: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}


/* Reference-inspired layout refinements */
:root { --bg:#02091c; --bg-deep:#010617; --purple:#8b16ff; --purple-bright:#bd42ff; --blue:#245cff; --cyan:#00d9ff; --border:rgba(44,94,255,.42); }
body { background: radial-gradient(ellipse at 72% 27%, rgba(32,36,157,.22), transparent 38%), #02091c; }
.background-effects .grid-overlay { opacity:.07; }
.header { background:rgba(2,8,25,.94); border-bottom-color:rgba(46,83,255,.3); }
.navbar { min-height:72px; }
.logo { font-size:2rem; }
.nav-menu { gap:clamp(14px,2.5vw,36px); }
.nav-link { color:#d7e1ff; }
.nav-link.active { color:#c42cff; border-bottom:3px solid #702cff; padding-bottom:12px; }
.nav-cta { border:1px solid transparent; background:linear-gradient(#02091c,#02091c) padding-box,linear-gradient(100deg,#d11cff,#00cfff) border-box; border-radius:999px; padding:9px 20px; }
.hero { min-height:570px; padding:48px 0 62px; border-bottom:1px solid rgba(42,77,255,.3); }
.hero-container { grid-template-columns:1.05fr .95fr; gap:25px; }
.availability { border-color:rgba(34,100,255,.6); background:rgba(3,14,43,.8); margin-bottom:22px; padding:7px 12px; letter-spacing:.05em; }
.status-dot { background:#00f2a1; box-shadow:0 0 12px #00f2a1; }
.hero-content .eyebrow { font-size:1.1rem; letter-spacing:.12em; }
.hero h1 { font-size:clamp(3.5rem,6vw,5.4rem); line-height:.98; margin-bottom:13px; }
.hero-subtitle { color:#f1f3ff; margin-bottom:12px; }
.hero-description { max-width:475px; line-height:1.55; margin-bottom:22px; color:#c7d8ff; }
.btn { border-radius:999px; padding:13px 24px; }
.btn-primary { background:linear-gradient(105deg,#9c00ff,#006dff 70%,#00cfff); box-shadow:0 0 25px rgba(52,55,255,.3); }
.btn-secondary { background:rgba(2,8,26,.78); border-color:#7b39ff; }
.social-links { position:fixed; z-index:99; left:20px; top:22%; display:flex; flex-direction:column; gap:13px; }
.social-links a { width:43px; height:43px; border-radius:50%; background:rgba(2,9,28,.9); border:1px solid #7b2bff; color:#f5f4ff; font-size:1.15rem; box-shadow:0 0 14px rgba(93,39,255,.25); }
.social-links a:nth-child(2) { border-color:#087cff; }
.social-links a:nth-child(3) { border-color:#db29ff; }
.social-links a:nth-child(4) { border-color:#00dca8; color:#00f2ad; }
.social-links a:nth-child(5) { border-color:#5a8aff; }
.social-links a:hover { transform:translateY(-3px) scale(1.06); box-shadow:0 0 20px rgba(106,48,255,.5); }
.hero-visual { min-height:450px; }
.photo-card { width:min(365px,80%); padding:0; border:0; background:transparent; box-shadow:none; transform:none; }
.photo-card-top, .photo-card-bottom { display:none; }
.photo-circle { width:100%; aspect-ratio:1; border-radius:50%; padding:7px; border:4px solid transparent; background:linear-gradient(#050b22,#050b22) padding-box,linear-gradient(135deg,#a300ff,#5138ff,#00d9ff) border-box; box-shadow:0 0 25px #7a16ff,0 0 70px rgba(83,48,255,.45); }
.photo-circle img { border-radius:50%; object-position:center 30%; }
.orbit-one { width:min(410px,94%); height:auto; aspect-ratio:1; border:2px solid rgba(112,45,255,.5); border-top-color:#d52cff; border-right-color:#00cfff; }
.orbit-two { width:min(455px,103%); height:auto; aspect-ratio:1; border-style:solid; border-color:rgba(26,87,255,.25); }
.floating-card { border-color:#583aff; border-radius:12px; background:rgba(3,12,37,.92); }
.floating-top { right:-3px; top:45px; }
.floating-bottom { left:-10px; bottom:38px; }
.expertise-strip { display:none; }
.section { padding:62px 0; }
.section-heading { margin-bottom:28px; }
.section-heading h2 { font-size:clamp(1.8rem,3vw,2.5rem); }
.glass-card, .detail-card, .skill-card, .project-card, .timeline-card, .contact-card { background:rgba(4,13,38,.7); border:1px solid rgba(35,82,255,.38); backdrop-filter:blur(12px); }
.about-grid { gap:20px; }
.about-main { border-radius:16px; }
.detail-card { border-radius:14px; }
.skill-card { border-radius:13px; padding:18px; }
.skill-icon { border:0; background:transparent; color:#8d39ff; font-size:1.45rem; }
.skill-card h3 { color:#f1f4ff; }
.project-visual { background:radial-gradient(circle at 50% 50%,rgba(52,57,255,.25),transparent 60%),#030b23; }
.footer { border-top:1px solid rgba(35,82,255,.25); }
@media (min-width:1000px) { .hero .social-links { left:22px; } }
@media (max-width:760px) {
 .social-links { position:static; flex-direction:row; margin-top:18px; gap:10px; }
 .social-links a { width:38px; height:38px; }
 .hero { padding-top:35px; }
 .hero-container { grid-template-columns:1fr; }
 .hero-visual { min-height:360px; order:-1; }
 .photo-card { width:min(290px,72%); }
 .orbit-one { width:min(325px,88%); }
 .orbit-two { width:min(355px,96%); }
 .floating-top { right:0; top:30px; }
 .floating-bottom { left:0; bottom:20px; }
 .nav-menu { gap:10px; }
}
@media (max-width:520px) { .nav-menu { display:none; } .hero h1 { font-size:3.25rem; } .hero-subtitle { font-size:.95rem; } .container { width:calc(100% - 32px); } }
