* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gold: #d4af37;
  --cyber-blue: #00f5ff;
  --electric-blue: #0080ff;
  --neon-green: #39ff14;
  --deep-black: #000000;
  --rich-gray: #1a1a1a;
  --dark-navy: #0f0f17;
  --silver: #c0c0c0;
  --white: #ffffff;
  --accent-purple: #8e2de2;
  --gradient-dual: linear-gradient(135deg, #d4af37, #00f5ff);
  --gradient-cinema: linear-gradient(135deg, #d4af37, #f4d03f);
  --gradient-cyber: linear-gradient(135deg, #00f5ff, #39ff14);
}

body {
  font-family: "Inter", sans-serif;
  background: var(--deep-black);
  color: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(212, 175, 55, 0.1),
      transparent 50%
    ),
    radial-gradient(circle at 80% 70%, rgba(0, 245, 255, 0.1), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.05), transparent 70%);
}

.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: float-particle 8s ease-in-out infinite;
}

.particle.gold {
  background: var(--primary-gold);
  box-shadow: 0 0 10px var(--primary-gold);
}
.particle.blue {
  background: var(--cyber-blue);
  box-shadow: 0 0 10px var(--cyber-blue);
}
.particle.green {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  top: 60%;
  right: 25%;
  animation-delay: 6s;
}
.particle:nth-child(5) {
  bottom: 20%;
  right: 10%;
  animation-delay: 1s;
}
.particle:nth-child(6) {
  top: 40%;
  left: 30%;
  animation-delay: 3s;
}

@keyframes float-particle {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
    opacity: 1;
  }
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.logo {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--gradient-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--silver);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

nav a:hover,
nav a.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold);
  text-shadow: 0 0 8px var(--primary-gold);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-dual);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 80%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-gold);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  padding-top: calc(3.5rem + 2rem);
}

.profile-container {
  position: relative;
  margin-bottom: 2rem;
}

.profile-pic {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid transparent;
  background: var(--gradient-dual);
  padding: 4px;
  transition: all 0.5s ease;
  animation: profile-glow 3s ease-in-out infinite alternate;
}

.profile-pic img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

@keyframes profile-glow {
  0% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5),
      0 0 40px rgba(0, 245, 255, 0.3);
    transform: scale(1);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5),
      0 0 60px rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
  }
}

.name-container {
  margin-bottom: 1.5rem;
}

#typed-name {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  background: var(--gradient-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--primary-gold);
  margin: 0 auto;
  animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
  0%,
  50% {
    border-right-color: var(--primary-gold);
  }
  51%,
  100% {
    border-right-color: transparent;
  }
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--silver);
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2s both;
}

.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease-out 2.5s both;
}

.tag {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tag.cyber {
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--cyber-blue);
  color: var(--cyber-blue);
}

.tag.cinema {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.tag.cyber:hover {
  background: var(--cyber-blue);
  color: var(--deep-black);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.4);
}

.tag.cinema:hover {
  background: var(--primary-gold);
  color: var(--deep-black);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 3s both;
}

.cta-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cta-btn.primary {
  background: var(--gradient-dual);
  color: var(--deep-black);
}

.cta-btn.secondary {
  background: transparent;
  color: var(--silver);
  border: 2px solid var(--silver);
}

.cta-btn:hover {
  transform: translateY(-3px);
}

.cta-btn.primary:hover {
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.cta-btn.secondary:hover {
  background: var(--silver);
  color: var(--deep-black);
  box-shadow: 0 10px 30px rgba(192, 192, 192, 0.3);
}

/* About Section */
.intro {
  padding: 6rem 2rem;
  background: var(--rich-gray);
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--gradient-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gradient-dual);
  margin: 1rem auto;
  border-radius: 2px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.about-card {
  background: var(--deep-black);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.about-card:hover::before {
  left: 100%;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-gold);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.about-card h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  color: var(--cyber-blue);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--cyber-blue);
}

.about-card.cinema h3 {
  color: var(--primary-gold);
  text-shadow: 0 0 10px var(--primary-gold);
}

.about-card p {
  color: var(--silver);
  line-height: 1.8;
  font-size: 1rem;
}

.stats-highlight {
  display: inline-block;
  background: var(--gradient-dual);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.1em;
}

/* Skills Section */
.skills-section {
  padding: 6rem 2rem;
  background: var(--deep-black);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-item {
  background: var(--rich-gray);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 245, 255, 0.2);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-item:hover {
  transform: translateY(-5px);
  border-color: var(--cyber-blue);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.2);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.skill-item h4 {
  color: var(--primary-gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-item p {
  color: var(--silver);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: var(--deep-black);
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--silver);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  display: inline-block;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--primary-gold);
  border-radius: 50%;
  color: var(--primary-gold);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-gold);
  color: var(--deep-black);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .hero {
    padding: 2rem;
    padding-top: calc(3.5rem + 2rem); /* Mobile header height + 2rem spacing */
    min-height: 100vh;
  }

  nav ul.nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    width: 280px;
    padding: 1rem;
    border-radius: 0 0 15px 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
  }

  nav ul.nav-list.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .profile-pic {
    width: 240px;
    height: 240px;
  }

  .specialty-tags {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .social-links {
    flex-wrap: wrap;
  }
}
