/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

a { text-decoration: none; }

/* Background */
.background-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(26,26,26,0.8);
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}
.logo {
  font-size: 32px;
  font-weight: bold;
  font-family: "La Belle Aurore", cursive;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #a0a0a0;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 2px;
  background: #fff;
}
.cv-download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.cv-download-btn:hover { opacity: 0.88; }
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  width: 25px; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 20px;
}
.hero-content {
  text-align: center;
  max-width: 800px;
}
.greeting {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 40px;
  animation: fadeInDown 1s ease;
}
.profile-image {
  width: 300px;
  height: 300px;
  margin: 0 auto 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: fadeInScale 1s ease;
}
.profile-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Typing text */
.animated-text {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 50px;
  min-height: 50px;
}
.static-text { color: #fff; }
.dynamic-text {
  color: #00d4ff;
  font-weight: 600;
  display: inline-block;
  min-width: 200px;
  text-align: left;
  animation: textGlow 2s ease-in-out infinite;
}

/* ── Social Icons ──────────────────────────────────────────── */
.social-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  animation: fadeInUp 1s ease 0.5s backwards;
  flex-wrap: wrap;
}

.social-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--icon-color, #c0c0c0);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  cursor: pointer;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--hover-bg, rgba(255,255,255,0.1));
  box-shadow: 0 6px 22px var(--hover-shadow, rgba(255,255,255,0.2));
  border-color: var(--icon-color, rgba(255,255,255,0.2));
  transform: translateY(-4px);
}

.social-icon svg {
  transition: transform 0.25s;
}
.social-icon:hover svg {
  transform: scale(1.1);
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-section {
  position: relative;
  z-index: 10;
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.quote {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 1s ease;
}
.quote-icon {
  font-size: 80px;
  color: #00d4ff;
  margin-bottom: 20px;
  opacity: 0.3;
}
.quote-text {
  font-size: 28px;
  font-style: italic;
  color: #a0a0a0;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}
.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  animation: fadeInUp 1s ease 0.3s backwards;
}
.illustration-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.illustration-container img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  filter: drop-shadow(0 10px 30px rgba(0,212,255,0.3));
  animation: float 3s ease-in-out infinite;
}
.contact-form-container {
  flex: 1;
  background: rgba(255,255,255,0.05);
  padding: 50px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}
.contact-title {
  font-size: 36px;
  margin-bottom: 30px;
  color: #fff;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group { width: 100%; }
.form-input, .form-textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  transition: all 0.3s;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 20px rgba(0,212,255,0.15);
}
.form-textarea { min-height: 150px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: #a0a0a0; }
.submit-btn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
}
.submit-btn:hover { opacity: 0.88; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(0,212,255,0.5); }
  50%       { text-shadow: 0 0 22px rgba(0,212,255,0.85); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .navbar { padding: 15px 40px; }
  .nav-links { gap: 25px; }
  .contact-container { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 15px 20px; }
  .logo { font-size: 24px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(26,26,26,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0; padding: 20px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links.active { max-height: 400px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; font-size: 18px; }
  .cv-download-btn { font-size: 14px; padding: 10px 18px; }
  .mobile-menu-toggle { display: flex; }
  .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-6px); }

  .greeting { font-size: 32px; margin-bottom: 30px; }
  .profile-image { width: 200px; height: 200px; margin-bottom: 30px; }
  .animated-text { font-size: 24px; margin-bottom: 30px; }
  .social-links { gap: 14px; }
  .social-icon { width: 46px; height: 46px; }
  .contact-section { padding: 60px 20px; }
  .quote-icon { font-size: 60px; }
  .quote-text { font-size: 20px; padding: 0 20px; }
  .contact-container { flex-direction: column; gap: 40px; }
  .illustration-container { order: 2; max-width: 100%; }
  .contact-form-container { order: 1; padding: 30px 25px; }
  .contact-title { font-size: 28px; }
  .illustration-container img { max-height: 350px; }
}

@media (max-width: 480px) {
  .navbar { padding: 12px 15px; }
  .logo { font-size: 20px; }
  .cv-download-btn { font-size: 12px; padding: 8px 14px; gap: 5px; }
  .cv-download-btn svg { width: 16px; height: 16px; }
  .greeting { font-size: 26px; }
  .profile-image { width: 180px; height: 180px; }
  .animated-text { font-size: 20px; }
  .social-links { gap: 12px; }
  .social-icon { width: 42px; height: 42px; border-radius: 10px; }
  .quote-text { font-size: 18px; }
  .contact-form-container { padding: 25px 20px; }
  .contact-title { font-size: 24px; }
  .form-input, .form-textarea { padding: 12px 15px; font-size: 14px; }
  .submit-btn { font-size: 16px; padding: 12px 30px; }
}