/* ===== CSS RESET & GLOBAL VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  /* Color Palette - Slate & Gold Theme */
  --primary-color: #C9A961;
  --primary-dark: #B8860B;
  --primary-light: #D4BC7A;
  --primary-glow: rgba(201, 169, 97, 0.25);
  --bg-dark: #0D0D0D;
  --bg-darker: #181818;
  --card-bg: #1A1A1A;
  --card-hover: #242424;
  --text-light: #E8E8E8;
  --text-gray: #A0A0A0;
  --text-gold: #C9A961;
  
  /* Effects & Layout */
  --shadow-md: 0 4px 20px rgba(201, 169, 97, 0.15);
  --shadow-lg: 0 8px 30px rgba(201, 169, 97, 0.2);
  --border-radius: 12px;
}

html {
  scroll-behavior: smooth;
}

/* ===== BASE STYLES ===== */
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
}

/* ===== HEADER SECTION ===== */
.header {
  min-height: 100vh;
  width: 100%;
  background-image: 
    linear-gradient(135deg, rgba(18, 18, 18, 0.85) 0%, rgba(30, 30, 30, 1.2) 100%),
    url(../images/WhatsApp\ Image\ 2025-10-13\ at\ 13.35.17_88382ef8.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
}

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  padding: 1.5rem 6%;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo i {
  color: var(--primary-color);
  font-size: 2.8rem;
  transition: all 0.4s ease;
  text-shadow: 0 0 20px var(--primary-glow);
}

.logo:hover {
  color: var(--primary-color);
  transform: scale(1.03);
  text-shadow: 0 0 20px var(--primary-glow);
}

.logo:hover i {
  transform: rotate(360deg) scale(1.15);
  text-shadow: 0 0 30px var(--primary-color);
}

.nav-links ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  background: rgba(201, 169, 97, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: calc(100vh - 100px);
  padding: 0 6%;
  gap: 3rem;
  transform: translateY(-10%);
}

.hero-text {
  max-width: 550px;
}

.main-heading {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-glow);
  line-height: 1.2;
}

.typewriter-container {
  height: 60px;
  margin-bottom: 1rem;
  position: relative;
}

.rotating-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-glow);
  height: 50px;
  position: relative;
}

.sub-heading {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.highlight-text {
  color: var(--primary-color);
  font-weight: 600;
  font-style: italic;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-resume {
  background: var(--primary-color);
  color: var(--bg-dark);
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.25);
}

.btn-resume:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.35);
}

.btn-talk {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-talk:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

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

/* ===== HERO VISUAL ELEMENTS - COMPLEX ICON ANIMATION ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 500px;
  transform: translateY(-5%);
}

.icon-animation-container {
  position: relative;
  width: 500px;
  height: 500px;
}

/* Central Hub */
.central-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
}

.hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(201, 169, 97, 0.5);
  z-index: 10;
  animation: hubPulse 3s ease-in-out infinite;
}

.hub-core i {
  font-size: 2.5rem;
  color: var(--bg-dark);
  animation: codeRotate 8s linear infinite;
}

.hub-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
}

.ring-1 {
  width: 100px;
  height: 100px;
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-2 {
  width: 140px;
  height: 140px;
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.ring-3 {
  width: 180px;
  height: 180px;
  animation: ringPulse 3s ease-in-out infinite 1s;
}

/* Orbiting Tech Icons */
.orbit-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--card-bg);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(201, 169, 97, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.orbit-icon i {
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.orbit-icon:hover {
  transform: scale(1.2);
  background: var(--primary-color);
  box-shadow: 0 8px 30px rgba(201, 169, 97, 0.5);
}

.orbit-icon:hover i {
  color: var(--bg-dark);
  transform: rotateY(360deg);
}

/* Tooltip */
.orbit-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--bg-dark);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.orbit-icon:hover::before {
  opacity: 1;
}

/* Icon Positions with Magnetic Bounce */
.orbit-1 {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: magneticBounce1 8s ease-in-out infinite;
}

.orbit-2 {
  top: 20%;
  right: 15%;
  animation: magneticBounce2 8s ease-in-out infinite 1s;
}

.orbit-3 {
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  animation: magneticBounce3 8s ease-in-out infinite 2s;
}

.orbit-4 {
  bottom: 20%;
  right: 15%;
  animation: magneticBounce4 8s ease-in-out infinite 3s;
}

.orbit-5 {
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  animation: magneticBounce5 8s ease-in-out infinite 4s;
}

.orbit-6 {
  bottom: 20%;
  left: 15%;
  animation: magneticBounce6 8s ease-in-out infinite 5s;
}

.orbit-7 {
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  animation: magneticBounce7 8s ease-in-out infinite 6s;
}

.orbit-8 {
  top: 20%;
  left: 15%;
  animation: magneticBounce8 8s ease-in-out infinite 7s;
}

/* Floating Particles */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle-1 {
  top: 15%;
  left: 25%;
  animation-delay: 0s;
}

.particle-2 {
  top: 30%;
  right: 20%;
  animation-delay: 1s;
}

.particle-3 {
  bottom: 25%;
  right: 30%;
  animation-delay: 2s;
}

.particle-4 {
  bottom: 15%;
  left: 20%;
  animation-delay: 3s;
}

.particle-5 {
  top: 45%;
  left: 10%;
  animation-delay: 4s;
}

.particle-6 {
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

/* Connection Lines */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
}

.line {
  stroke: var(--primary-color);
  stroke-width: 1;
  stroke-dasharray: 5, 5;
  animation: linePulse 3s ease-in-out infinite;
}

.line-1 { animation-delay: 0s; }
.line-2 { animation-delay: 0.5s; }
.line-3 { animation-delay: 1s; }
.line-4 { animation-delay: 1.5s; }

/* ===== ANIMATIONS ===== */
/* Magnetic Bounce Animations - Each icon moves toward center and bounces back */
@keyframes magneticBounce1 {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  25% {
    transform: translate(-50%, 40px);
  }
  50% {
    transform: translate(-50%, 20px);
  }
  75% {
    transform: translate(-50%, 30px);
  }
}

@keyframes magneticBounce2 {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-50px, 40px);
  }
  50% {
    transform: translate(-25px, 20px);
  }
  75% {
    transform: translate(-35px, 30px);
  }
}

@keyframes magneticBounce3 {
  0%, 100% {
    transform: translate(0, -50%);
  }
  25% {
    transform: translate(-60px, -50%);
  }
  50% {
    transform: translate(-30px, -50%);
  }
  75% {
    transform: translate(-45px, -50%);
  }
}

@keyframes magneticBounce4 {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-50px, -40px);
  }
  50% {
    transform: translate(-25px, -20px);
  }
  75% {
    transform: translate(-35px, -30px);
  }
}

@keyframes magneticBounce5 {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  25% {
    transform: translate(-50%, -40px);
  }
  50% {
    transform: translate(-50%, -20px);
  }
  75% {
    transform: translate(-50%, -30px);
  }
}

@keyframes magneticBounce6 {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(50px, -40px);
  }
  50% {
    transform: translate(25px, -20px);
  }
  75% {
    transform: translate(35px, -30px);
  }
}

@keyframes magneticBounce7 {
  0%, 100% {
    transform: translate(0, -50%);
  }
  25% {
    transform: translate(60px, -50%);
  }
  50% {
    transform: translate(30px, -50%);
  }
  75% {
    transform: translate(45px, -50%);
  }
}

@keyframes magneticBounce8 {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(50px, 40px);
  }
  50% {
    transform: translate(25px, 20px);
  }
  75% {
    transform: translate(35px, 30px);
  }
}

@keyframes hubPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 40px rgba(201, 169, 97, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 60px rgba(201, 169, 97, 0.6);
  }
}

@keyframes codeRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes ringPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.6;
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0);
    opacity: 0.6;
  }
  25% {
    transform: translate(20px, -30px);
    opacity: 0.8;
  }
  50% {
    transform: translate(-15px, -50px);
    opacity: 0.4;
  }
  75% {
    transform: translate(-30px, -20px);
    opacity: 0.7;
  }
}

@keyframes linePulse {
  0%, 100% {
    opacity: 0.2;
    stroke-dashoffset: 0;
  }
  50% {
    opacity: 0.5;
    stroke-dashoffset: 10;
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text {
  animation: slideInLeft 1s ease-out forwards;
}

.hero-visual {
  animation: slideInRight 1s ease-out 0.5s forwards;
  opacity: 0;
}

/* ===== ROTATING TEXT ANIMATION ===== */
.typewriter-container {
  height: 70px;
  margin-bottom: 1rem;
  position: relative;
}

.rotating-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-shadow: 0 0 30px var(--primary-glow);
  height: 60px;
  position: relative;
}

.rotating-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  animation: rotateText 12s infinite;
}

.rotating-text:nth-child(1) { animation-delay: 0s; }
.rotating-text:nth-child(2) { animation-delay: 3s; }
.rotating-text:nth-child(3) { animation-delay: 6s; }
.rotating-text:nth-child(4) { animation-delay: 9s; }

@keyframes rotateText {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  8% {
    opacity: 1;
    transform: translateY(0);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  33% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ===== CONTACT NAVIGATION STYLE ===== */
.nav-contact {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 30px;
  align-items: center;
}

.nav-contact:hover {
  box-shadow: 0 0 20px var(--primary-glow);
  transition: all 0.4s ease;
}

.nav-contact i {
  font-size: 0.9em;
  transition: transform 0.5s ease;
}

.nav-contact:hover i {
  transform: translateX(4px);
}

nav .fa-bars, nav .fa-xmark {
  display: none;
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 20px var(--primary-glow);
  }
  50% {
    text-shadow: 0 0 30px var(--primary-glow), 0 0 40px var(--primary-glow);
  }
}
