/* =============================================
   Portfolio / style.css
   Author  : Al Amin Onik (oNiK)
   Theme   : Dark & Modern
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand */
  --accent        : #9B59E8;
  --accent-dark   : #7c3aed;
  --accent-2      : #E31E24;
  --accent-glow   : rgba(155, 89, 232, 0.28);

  /* Backgrounds */
  --bg            : #0a0a0f;
  --bg-card       : #111118;
  --bg-elevated   : #1a1a24;
  --bg-border     : rgba(255, 255, 255, 0.08);

  /* Text */
  --text          : #e8e8f0;
  --text-muted    : #7878a0;
  --text-faint    : #444460;

  /* Misc */
  --radius        : 12px;
  --radius-lg     : 20px;
  --shadow        : 0 4px 30px rgba(0, 0, 0, 0.5);
  --transition    : 0.25s ease;
  --font-main     : 'Inter', system-ui, sans-serif;
  --font-heading  : 'Space Grotesk', 'Inter', sans-serif;
  --max-width     : 1100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ---------- Loader ---------- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  width: 160px;
  height: auto;
  animation: pulse 1s ease-in-out infinite alternate;
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 99px;
  overflow: hidden;
}

.loader-progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  animation: loadbar 1.3s ease forwards;
}

@keyframes loadbar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes pulse {
  from { opacity: 0.5; transform: scale(0.96); }
  to   { opacity: 1;   transform: scale(1.04); }
}

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: rgba(10, 10, 15, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  flex-shrink: 0;
  margin-right: auto;
}

.nav-logo img { width: auto; height: 54px; object-fit: contain; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
}

.nav-link {
  display: block;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.nav-fifa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 5px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.12);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-fifa-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.fifa-btn-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

@media (max-width: 640px) {
  .nav-fifa-btn span { display: none; }
  .nav-fifa-btn { padding: 0; width: 38px; justify-content: center; }
  .fifa-btn-logo { width: 30px; height: 30px; }
}

.download-vcf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition);
}

.download-vcf-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: background var(--transition);
}

.hamburger:hover { background: var(--bg-elevated); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(155, 89, 232, 0.12);
  color: var(--accent);
  border: 1px solid rgba(155, 89, 232, 0.28);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--bg-border);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  transform: translateY(-2px);
}

/* ---------- Scroll Animations ---------- */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-aos].aos-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- HERO ---------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

/* Decorative background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.glow-1 {
  width: 600px; height: 600px;
  top: -220px; left: -180px;
  background: var(--accent);
}

.glow-2 {
  width: 400px; height: 400px;
  bottom: -120px; right: -120px;
  background: var(--accent-2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(155, 89, 232, 0.1);
  border: 1px solid rgba(155, 89, 232, 0.22);
  border-radius: 99px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-photo-wrap { margin-bottom: 24px; }

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(155, 89, 232, 0.5);
  object-fit: cover;
  box-shadow: 0 0 32px var(--accent-glow);
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--text) 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-wrap { margin-bottom: 20px; }

.hero-title {
  display: inline-block;
  padding: 6px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.hero-bio {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-bio strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.hero-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(255,255,255,0.15);
  transition: all var(--transition);
}

.hero-socials a:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.hero-socials .teams img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-faint);
  font-size: 1rem;
  z-index: 1;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- ABOUT ---------- */
.about-section { background: var(--bg-card); }

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  transition: none;
}

.about-image-wrap:hover img {
  transform: scaleX(-1);
}

.about-image-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 0 40px rgba(155, 89, 232, 0.18),
    0 0 0 1px rgba(155, 89, 232, 0.2);
  pointer-events: none;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-text strong { color: var(--text); }

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}

.about-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-detail-item i {
  color: var(--accent);
  margin-top: 3px;
  width: 15px;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.about-detail-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.detail-value {
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 500;
}

.about-stats {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- SKILLS ---------- */
.skills-section { background: var(--bg); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-card:hover {
  border-color: rgba(155, 89, 232, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(155, 89, 232, 0.08);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(155, 89, 232, 0.1);
  border: 1px solid rgba(155, 89, 232, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags span {
  padding: 3px 11px;
  background: var(--bg-elevated);
  border-radius: 99px;
  font-size: 0.71rem;
  color: var(--text-muted);
}

/* ---------- EXPERIENCE ---------- */
.experience-section { background: var(--bg-card); }

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 16px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--bg-border);
}

.timeline-item {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-dot {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 16px var(--accent-glow);
  margin-top: 0;
}

.timeline-card {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  flex: 1;
  transition: border-color var(--transition);
}

.timeline-card:hover { border-color: rgba(155, 89, 232, 0.3); }

.placeholder-card { opacity: 0.5; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.timeline-company {
  font-size: 0.84rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-period {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
  padding: 4px 12px;
  background: var(--bg-card);
  border-radius: 99px;
  flex-shrink: 0;
}

.timeline-duties {
  list-style: none;
  margin-bottom: 16px;
}

.timeline-duties li {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 4px 0 4px 18px;
  position: relative;
}

.timeline-duties li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  padding: 3px 11px;
  background: rgba(155, 89, 232, 0.1);
  border: 1px solid rgba(155, 89, 232, 0.2);
  border-radius: 99px;
  font-size: 0.71rem;
  color: var(--accent);
}

/* ---------- PROJECTS ---------- */
.projects-section { background: var(--bg); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.projects-more {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(155, 89, 232, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-icon-img { background: none; border: none; padding: 0; }
.project-icon-img img { width: 52px; height: 52px; object-fit: contain; display: block; }

.project-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(155,89,232,0.18), rgba(227,30,36,0.15));
  border: 1px solid rgba(155, 89, 232, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 20px;
  overflow: hidden;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.project-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tags span {
  padding: 3px 11px;
  background: var(--bg-elevated);
  border-radius: 99px;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.project-link.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.project-link.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* ---------- CONTACT ---------- */
.contact-section { background: var(--bg-card); }

.contact-body {
  max-width: 720px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
  text-align: center;
}

.contact-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: rgba(155, 89, 232, 0.3);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(155, 89, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.contact-card-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.contact-card-value {
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-links-block { margin-bottom: 28px; }

.social-heading {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.facebook  { background: #1877F2; }
.messenger { background: linear-gradient(135deg, #0078FF, #A334FA, #FF5C79); }
.whatsapp  { background: #25D366; }
.teams  { background: none; }
.teams img { width: 100%; height: 100%; object-fit: contain; display: block; }
.github { background: #181717; }
.tiktok { background: #010101; }
.gmail  { background: #EA4335; }
.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.twitter   { background: #000; border: 1px solid #333; }
.youtube   { background: #FF0000; }
.linkedin  { background: #0A66C2; }

.vcard-download-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--bg-border);
  text-align: center;
}

.footer p {
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--bg-border);
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9998;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive — Tablet ---------- */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 40px;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Responsive — Mobile ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--bg-border);
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image-wrap {
    max-width: 240px;
    margin: 0 auto;
  }

  .about-details { grid-template-columns: 1fr; }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-items { grid-template-columns: 1fr; }

  .timeline::before { display: none; }
  .timeline { padding-left: 0; }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .about-stats { flex-wrap: wrap; gap: 20px; }
  .download-vcf-btn span { display: none; }
}

/* =============================================
   THEMES
   ============================================= */

/* =============================================
   THEME: Light & Minimal
   ============================================= */
html[data-theme="light"] {
  --accent      : #6366f1;
  --accent-dark : #4f46e5;
  --accent-2    : #8b5cf6;
  --accent-glow : rgba(99, 102, 241, 0.15);
  --bg          : #f2f2f8;
  --bg-card     : #ffffff;
  --bg-elevated : #e8e8f4;
  --bg-border   : rgba(0, 0, 0, 0.07);
  --text        : #1a1a2e;
  --text-muted  : #55557a;
  --text-faint  : #aaaacc;
  --radius      : 16px;
  --radius-lg   : 24px;
  --shadow      : 0 2px 20px rgba(99,102,241,0.08);
}

html[data-theme="light"] body           { background: #f2f2f8; }
html[data-theme="light"] #loader        { background: #ffffff; }
html[data-theme="glass"] #loader        { background: #0f1a3e; }
html[data-theme="light"] .navbar        { background: rgba(242,242,248,0.85); border-bottom: 1px solid rgba(0,0,0,0.06); }
html[data-theme="light"] .navbar.scrolled { background: rgba(242,242,248,0.97); }
html[data-theme="light"] .nav-links     { background: rgba(242,242,248,0.98); }
html[data-theme="light"] .hero-grid     { background-image: linear-gradient(rgba(0,0,0,0.03) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,0.03) 1px,transparent 1px); background-size: 48px 48px; }
html[data-theme="light"] .hero-glow     { opacity: 0.1; }

/* Light — Cards: soft shadow, no dark borders */
html[data-theme="light"] .skill-card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .contact-card {
  border: none;
  box-shadow: 0 2px 16px rgba(99,102,241,0.07), 0 1px 4px rgba(0,0,0,0.04);
}
html[data-theme="light"] .skill-card:hover,
html[data-theme="light"] .project-card:hover {
  box-shadow: 0 8px 32px rgba(99,102,241,0.15), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-6px);
}
html[data-theme="light"] .timeline-card {
  border: none;
  box-shadow: 0 2px 16px rgba(99,102,241,0.07);
}
html[data-theme="light"] .section-tag { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); }
html[data-theme="light"] .about-section  { background: #ffffff; }
html[data-theme="light"] .experience-section { background: #ffffff; }
html[data-theme="light"] .contact-section    { background: #ffffff; }
html[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #1a1a2e 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =============================================
   THEME: Gradient Purple
   ============================================= */
html[data-theme="purple"] {
  --accent      : #d946ef;
  --accent-dark : #c026d3;
  --accent-2    : #7c3aed;
  --accent-glow : rgba(217, 70, 239, 0.35);
  --bg          : #0d0520;
  --bg-card     : #150a30;
  --bg-elevated : #1f0d40;
  --bg-border   : rgba(217, 70, 239, 0.18);
  --text        : #f5e8ff;
  --text-muted  : #c8a0e8;
  --text-faint  : #7850a8;
  --radius      : 14px;
  --radius-lg   : 22px;
  --shadow      : 0 4px 30px rgba(217,70,239,0.2);
}

html[data-theme="purple"] body {
  background: radial-gradient(ellipse at 20% 0%, #3d0a6e 0%, #0d0520 45%, #1a0040 100%);
  background-attachment: fixed;
}

/* Purple — Cards: gradient border via box-shadow */
html[data-theme="purple"] .skill-card,
html[data-theme="purple"] .project-card,
html[data-theme="purple"] .contact-card {
  border: 1px solid rgba(217,70,239,0.2);
  box-shadow: 0 0 0 0 transparent, inset 0 1px 0 rgba(255,255,255,0.06);
}
html[data-theme="purple"] .skill-card:hover,
html[data-theme="purple"] .project-card:hover {
  border-color: rgba(217,70,239,0.6);
  box-shadow: 0 0 20px rgba(217,70,239,0.25), 0 0 60px rgba(124,58,237,0.1);
  transform: translateY(-5px);
}
html[data-theme="purple"] .timeline-dot {
  box-shadow: 0 0 20px rgba(217,70,239,0.6), 0 0 40px rgba(124,58,237,0.3);
}
html[data-theme="purple"] .section-tag {
  background: rgba(217,70,239,0.12);
  border-color: rgba(217,70,239,0.3);
}
html[data-theme="purple"] .hero-name {
  background: linear-gradient(135deg, #f5e8ff 0%, #d946ef 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="purple"] .hero-title {
  background: linear-gradient(135deg, #d946ef, #7c3aed);
}
html[data-theme="purple"] .stat-num {
  background: linear-gradient(135deg, #d946ef, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="purple"] .about-section,
html[data-theme="purple"] .experience-section,
html[data-theme="purple"] .contact-section { background: rgba(21,10,48,0.6); }

/* =============================================
   THEME: Glassmorphism
   ============================================= */
html[data-theme="glass"] {
  --accent      : #38bdf8;
  --accent-dark : #0ea5e9;
  --accent-2    : #a78bfa;
  --accent-glow : rgba(56, 189, 248, 0.3);
  --bg          : transparent;
  --bg-card     : rgba(255, 255, 255, 0.07);
  --bg-elevated : rgba(255, 255, 255, 0.11);
  --bg-border   : rgba(255, 255, 255, 0.18);
  --text        : #ffffff;
  --text-muted  : rgba(255, 255, 255, 0.6);
  --text-faint  : rgba(255, 255, 255, 0.28);
  --radius      : 16px;
  --radius-lg   : 24px;
  --shadow      : 0 8px 32px rgba(0,0,0,0.4);
}

html[data-theme="glass"] body {
  background: linear-gradient(135deg, #0f1a3e 0%, #1a0f50 25%, #0a2040 55%, #1a0a3a 80%, #0f1830 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

html[data-theme="glass"] .about-section,
html[data-theme="glass"] .skills-section,
html[data-theme="glass"] .experience-section,
html[data-theme="glass"] .projects-section,
html[data-theme="glass"] .contact-section { background: transparent; }

/* Glass — Cards: blur + transparent */
html[data-theme="glass"] .skill-card,
html[data-theme="glass"] .project-card,
html[data-theme="glass"] .timeline-card,
html[data-theme="glass"] .contact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
}
html[data-theme="glass"] .skill-card:hover,
html[data-theme="glass"] .project-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(56,189,248,0.4);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(56,189,248,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
}
html[data-theme="glass"] .about-image-wrap {
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}
html[data-theme="glass"] .navbar {
  background: rgba(15,24,48,0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
html[data-theme="glass"] .navbar.scrolled {
  background: rgba(15,24,48,0.7);
}
html[data-theme="glass"] .nav-links {
  background: rgba(15,24,48,0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
html[data-theme="glass"] .section-tag {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-theme="glass"] .btn-outline {
  background: rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
html[data-theme="glass"] .hero-name {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="glass"] .hero-title {
  background: linear-gradient(135deg, #38bdf8, #a78bfa);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* =============================================
   THEME: Cyberpunk
   ============================================= */
html[data-theme="cyber"] {
  --accent      : #00ff9f;
  --accent-dark : #00cc7a;
  --accent-2    : #ff0054;
  --accent-glow : rgba(0, 255, 159, 0.3);
  --bg          : #050508;
  --bg-card     : #08080e;
  --bg-elevated : #0d0d18;
  --bg-border   : rgba(0, 255, 159, 0.15);
  --text        : #e0ffe8;
  --text-muted  : #4a9060;
  --text-faint  : #1a3025;
  --radius      : 2px;
  --radius-lg   : 4px;
  --shadow      : 0 4px 30px rgba(0,0,0,0.8);
  --font-heading: 'Space Grotesk', monospace;
}

html[data-theme="cyber"] body { background: #050508; }

/* Cyber — scanline overlay */
html[data-theme="cyber"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,159,0.015) 2px, rgba(0,255,159,0.015) 4px);
  pointer-events: none;
  z-index: 9997;
}

html[data-theme="cyber"] .hero-grid {
  background-image:
    linear-gradient(rgba(0,255,159,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,159,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Cyber — Cards: sharp corners, neon border glow */
html[data-theme="cyber"] .skill-card,
html[data-theme="cyber"] .project-card,
html[data-theme="cyber"] .contact-card {
  border: 1px solid rgba(0,255,159,0.2);
  border-radius: 2px;
  box-shadow: 0 0 0 transparent;
  position: relative;
}
html[data-theme="cyber"] .skill-card::before,
html[data-theme="cyber"] .project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 24px; height: 2px;
  background: #00ff9f;
}
html[data-theme="cyber"] .skill-card:hover,
html[data-theme="cyber"] .project-card:hover {
  border-color: #00ff9f;
  box-shadow: 0 0 12px rgba(0,255,159,0.3), 0 0 40px rgba(0,255,159,0.1), inset 0 0 20px rgba(0,255,159,0.03);
  transform: translateY(-3px);
}
html[data-theme="cyber"] .timeline-card {
  border-radius: 2px;
  border-left: 2px solid #00ff9f;
}
html[data-theme="cyber"] .timeline-dot {
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0,255,159,0.8), 0 0 24px rgba(0,255,159,0.4);
}
html[data-theme="cyber"] .section-title {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
html[data-theme="cyber"] .section-tag {
  background: rgba(0,255,159,0.08);
  border-color: rgba(0,255,159,0.35);
  border-radius: 2px;
  letter-spacing: 0.12em;
}
html[data-theme="cyber"] .btn-primary {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 0 12px rgba(0,255,159,0.4);
}
html[data-theme="cyber"] .btn-outline {
  border-radius: 2px;
  border-color: rgba(0,255,159,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
html[data-theme="cyber"] .download-vcf-btn { border-radius: 2px; }
html[data-theme="cyber"] .hero-name {
  background: linear-gradient(135deg, #00ff9f 0%, #00e5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
html[data-theme="cyber"] .hero-title {
  border-radius: 2px;
  background: transparent;
  border: 1px solid #00ff9f;
  color: #00ff9f;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 0 10px rgba(0,255,159,0.3);
}
html[data-theme="cyber"] .hero-badge {
  border-radius: 2px;
  border-color: rgba(0,255,159,0.4);
}
html[data-theme="cyber"] .stat-num {
  background: linear-gradient(135deg, #00ff9f, #00e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[data-theme="cyber"] .navbar {
  border-bottom: 1px solid rgba(0,255,159,0.15);
}
html[data-theme="cyber"] .about-section,
html[data-theme="cyber"] .experience-section,
html[data-theme="cyber"] .contact-section { background: #08080e; }

/* =============================================
   THEME SWITCHER
   ============================================= */
.theme-switcher {
  position: fixed;
  bottom: 32px;
  right: 24px;
  z-index: 8000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}

.theme-toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.theme-toggle-btn:hover { transform: scale(1.1) rotate(20deg); }

.theme-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
  min-width: 148px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.theme-panel.open { display: flex; }

.theme-panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.theme-opts { display: flex; flex-direction: column; gap: 4px; }

.theme-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: left;
  width: 100%;
}

.theme-opt:hover,
.theme-opt.active { border-color: var(--accent); color: var(--text); }

.theme-opt.active { background: rgba(155,89,232,0.08); }

.t-swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.sw-dark   { background: #0a0a0f; border: 1px solid #333; }
.sw-light  { background: #f4f4f9; border: 1px solid #ccc; }
.sw-purple { background: linear-gradient(135deg, #7c3aed, #e040fb); }
.sw-glass  { background: linear-gradient(135deg, #0f1830, #1a1060); }
.sw-cyber  { background: #050508; border: 1px solid #00ff9f; }

/* ---------- Color Palette Customizer ---------- */
.cp-section {
  border-top: 1px solid var(--bg-border);
  padding-top: 10px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex: 1;
}

.cp-item span {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

.cp-item input[type="color"] {
  width: 36px;
  height: 36px;
  border: 2px solid var(--bg-border);
  border-radius: 50%;
  padding: 3px;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition);
}

.cp-item input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.cp-item input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }

.cp-item input[type="color"]:hover {
  border-color: var(--accent);
}

.cp-reset-btn {
  width: 100%;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-family: inherit;
  background: var(--bg-elevated);
  border: 1px solid var(--bg-border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.cp-reset-btn:hover {
  background: var(--bg-border);
  color: var(--text);
  border-color: var(--accent);
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
