/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

/* ====== ROOT COLORS ====== */
:root {
  --bg-main: #0f0f1a;
  --bg-card: #16162a;
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --text-main: #ffffff;
  --text-muted: #b3b3c6;
}

/* ====== BODY ====== */
body {
  background: linear-gradient(180deg, #0f0f1a, #0b0b14);
  color: var(--text-main);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

/* ====== LANGUAGE TOGGLE ====== */
.lang-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.lang-toggle button {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--primary);
  padding: 6px 12px;
  margin-left: 5px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle button:hover {
  background: var(--primary);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 100vh;
  text-align: center;
}

/* Cinematic background */
.hero-bg {
  position: relative;
  background: url("../assets/bmi.jpeg") center / cover no-repeat;
  overflow: hidden;
}

/* Blurred animated background layer */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(6px);
  transform: scale(1.1);
  z-index: 1;
  animation: heroZoom 30s ease-in-out infinite alternate;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 20, 0.85),
    rgba(10, 10, 20, 0.95)
  );
  z-index: 2;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* fade-in */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-content.show {
  opacity: 1;
  transform: translateY(0);
}

/* Profile image */
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 20px;
  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.4),
    0 20px 40px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 15px;
}

.hero p {
  max-width: 600px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* CTA */
.cta a {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

/* ===== Secondary CTA (Download CV) ===== */

.cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cta-secondary:hover {
  background: var(--primary);
  color: #fff;
}


/* =========================================================
   SECTIONS
   ========================================================= */

section {
  padding: 80px 20px;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* About */
.about {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Skills */
.skills {
  background: #0b0b14;
}

.skills-grid {
  max-width: 900px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.skills-grid div {
  background: var(--bg-card);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-grid div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.25);
}

/* Experience */
.experience {
  max-width: 900px;
  margin: 0 auto;
}

.timeline {
  margin-top: 40px;
}

.timeline-item {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.timeline-item span,
.timeline-item p {
  color: var(--text-muted);
}

/* Certifications */
.certifications {
  background: #0b0b14;
}

.cert-grid {
  max-width: 1000px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.cert-card {
  background: var(--bg-card);
  padding: 25px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.25);
  border-color: var(--primary);
}

.cert-card.highlight {
  background: linear-gradient(180deg, #16162a, #1b1b35);
}

.cert-card span {
  font-size: 0.9rem;
  color: var(--primary);
}

/* Contact */
.contact {
  background: linear-gradient(180deg, #141428, #101022);
  text-align: center;
  padding: 40px 20px; /* 👈 compact height */
}

.contact h2 {
  margin-bottom: 20px;
}

.contact p {
  margin-bottom: 8px; /* 👈 tighter vertical spacing */
  font-size: 0.95rem;
}

.contact a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact a:hover {
  text-decoration: underline;
}


/* =========================================================
   MODAL (Animated)
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  height: 90%;
  background: #000;
  border-radius: 12px;
  position: relative;

  transform: scale(0.96);
  opacity: 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =========================================================
   SCROLL ANIMATIONS
   ========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes heroZoom {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1.18);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.hidden {
  display: none !important;
}

/* ===== Contact Quick Buttons (Icons + Tooltip) ===== */

.contact-toggle {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--text-main);
  transition: transform 0.25s ease;
}

/* 🎯 Micro-bounce animation */
.contact-btn:hover svg {
  animation: iconBounce 0.4s ease;
}

/* Tooltip */
.contact-btn .tooltip {
  position: absolute;
  right: 48px;
  background: #1b1b35;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-btn:hover .tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Hover state */
.contact-btn:hover {
  background: var(--primary);
}

.contact-btn:hover svg {
  fill: #fff;
}

/* Bounce keyframes */
@keyframes iconBounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
