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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0a0a0a 15%,
    #1a0a2e 30%,
    #16213e 50%,
    #2d1b69 70%,
    #4a0e0e 85%,
    #000000 100%
  );
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Dark Magical Horror Background Elements */
.magical-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #00ffff, #ff6b35, #ffd700);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

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

.mist-layer {
    position: absolute;
    width: 100%;
    height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(45, 27, 105, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(74, 14, 14, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(0, 255, 255, 0.2) 0%,
      transparent 50%
    );
    animation: mist-move 20s ease-in-out infinite;
}

@keyframes mist-move {
  0%,
  100% {
    transform: translateX(0px) translateY(0px);
  }
  33% {
    transform: translateX(-20px) translateY(-10px);
  }
  66% {
    transform: translateX(20px) translateY(10px);
  }
}

.sparkles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffd700;
    border-radius: 50%;
    animation: sparkle 4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* New Dark Magical Horror Elements */
.floating-books {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-book {
    position: absolute;
    width: 40px;
    height: 50px;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    border-radius: 3px;
    animation: book-float 8s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(74, 14, 14, 0.6);
}

.floating-book::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    height: 2px;
    background: #ffd700;
    border-radius: 1px;
}

.floating-book::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 5px;
    right: 5px;
    height: 1px;
    background: #00ffff;
    border-radius: 0.5px;
}

@keyframes book-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-25px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

.flickering-candles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.candle {
    position: absolute;
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, #8b4513, #654321);
    border-radius: 4px;
}

.candle::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 8px;
    background: radial-gradient(circle, #ffd700, #ff6b35, #ff4500);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: candle-flicker 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

@keyframes candle-flicker {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  25% {
    transform: translateX(-50%) scale(1.1) translateX(1px);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) scale(0.9) translateX(-1px);
    opacity: 1;
  }
  75% {
    transform: translateX(-50%) scale(1.05) translateX(0.5px);
    opacity: 0.9;
  }
}

.shadow-figures {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shadow-figure {
    position: absolute;
    width: 60px;
    height: 120px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.8) 0%,
    transparent 70%
  );
    border-radius: 50%;
    animation: shadow-move 15s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes shadow-move {
  0%,
  100% {
    transform: translateX(0px) translateY(0px) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translateX(20px) translateY(-10px) scale(1.1);
    opacity: 0.5;
  }
  66% {
    transform: translateX(-15px) translateY(15px) scale(0.9);
    opacity: 0.2;
  }
}

.gothic-runes {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.rune {
    position: absolute;
    font-family: 'Uncial Antiqua', cursive;
    font-size: 24px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    animation: rune-glow 6s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes rune-glow {
  0%,
  100% {
    opacity: 0.7;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 30px rgba(0, 255, 255, 0.6);
  }
}

/* Typography */
.magical-text {
    background: linear-gradient(45deg, #00ffff, #ffd700, #ff6b35, #00ffff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: magical-glow 3s ease-in-out infinite;
    font-weight: 700;
}

@keyframes magical-glow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  z-index: 1001;
    transition: all 0.3s ease;
  overflow-x: auto;
  overflow-y: hidden;
}

.nav-container {
  max-width: 1600px;
    margin: 0 auto;
  padding: 1rem 1rem;
    display: flex;
  justify-content: flex-start;
    align-items: center;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 100%;
  gap: 0rem;
}

.nav-logo .magical-text {
    font-size: 1.8rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  margin-left: 45px; /* Bring MAAUZ closer to navigation */
}

.nav-menu {
    display: flex;
    list-style: none;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  max-width: calc(100% - 150px);
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: fit-content;
  display: inline-block;
  background: transparent;
}

.nav-link[href='#why-hire'] {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  min-width: 80px;
  text-align: center;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ffd700);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.nav-link:hover {
    color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.nav-link:hover::before {
  width: 100%;
}

/* Active section highlight */
.nav-link.active {
    color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
  background: rgba(0, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.nav-link.active::before {
    width: 100%;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
  z-index: 1001;
  position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00ffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
  background: radial-gradient(
    circle at center,
    rgba(45, 27, 105, 0.3) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 7.5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
  line-height: 1.1;
    font-family: 'Uncial Antiqua', cursive;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  word-break: break-word;
  hyphens: auto;
  letter-spacing: 0.02em;
}

.hero h2 {
    font-size: 1.5rem;
    color: #f4c400;
    margin-bottom: 2rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
}

.hero p {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 3rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #000000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.button-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 1;
}

.floating-orb {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orb-float 8s ease-in-out infinite;
}

.magical-symbols {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.magical-symbols i {
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: symbol-float 4s ease-in-out infinite;
}

.magical-symbols i:nth-child(2) {
    animation-delay: 2s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.1);
  }
}

@keyframes symbol-float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #00ffff;
    font-size: 2rem;
    animation: scroll-bounce 2s ease-in-out infinite;
    cursor: pointer;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 3rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 3rem;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.45);
}

/* About Section */
.about {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(45, 27, 105, 0.3) 100%
  );
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(0, 255, 255, 0.1),
    transparent 70%
  );
    pointer-events: none;
}

.about-image {
    text-align: center;
    margin-bottom: 2rem;
}

.placeholder-image {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.placeholder-image i {
    font-size: 4rem;
    color: #ffd700;
}

.about-text h3 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-align: center;
}

.about-text p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 105, 0.3) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.skills-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skill-category {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.skill-category h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-family: 'Cinzel', serif;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-item:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.05),
    rgba(255, 215, 0, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item > * {
  position: relative;
  z-index: 2;
}

.skill-name {
  color: #ffffff;
  font-weight: 500;
  min-width: 120px;
  font-size: 0.9rem;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.skill-bar {
  flex: 1;
  height: 12px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ffd700, #00ffff);
  background-size: 200% 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease-in-out;
  position: relative;
  animation: gradient-shift 3s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.skill-percentage {
  color: #00ffff;
  font-weight: 600;
  min-width: 40px;
  text-align: right;
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-orb {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    overflow: hidden;
}

.skill-orb:hover {
    transform: scale(1.1);
    border-color: #00ffff;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.orb-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-orb:hover .orb-glow {
    opacity: 1;
}

.skill-orb i {
    font-size: 3rem;
    color: #ffd700;
    z-index: 2;
    position: relative;
}

.skill-tooltip {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.skill-orb:hover .skill-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -50px;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(74, 14, 14, 0.3) 100%
  );
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    perspective: 1000px;
    height: 400px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(45, 27, 105, 0.9);
}

.project-image {
    margin-bottom: 1.5rem;
}

.placeholder-project {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 2px solid #00ffff;
}

.placeholder-project i {
    font-size: 2rem;
    color: #ffd700;
}

.project-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.project-card p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.project-link {
    color: #f6c700;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 215, 0, 0.55);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.project-link:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffffff;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(74, 14, 14, 0.3) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #000000;
}

.contact-details h3 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.contact-details p {
    color: #cccccc;
}

.contact-form {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.magical-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.magical-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.magical-input:focus + label {
    color: #00ffff;
    transform: translateY(-25px) scale(0.8);
}

.magical-input:not(:placeholder-shown) + label {
    transform: translateY(-25px) scale(0.8);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #cccccc;
    transition: all 0.3s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 0 0.5rem;
}

.magical-input:focus + label,
.magical-input:not(:placeholder-shown) + label {
    top: 0.5rem;
    left: 0.5rem;
    color: #00ffff;
}

textarea.magical-input {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #000000;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo .magical-text {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.3);
}

.footer-text {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.music-toggle:hover {
    border-color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.music-toggle i {
    font-size: 1.5rem;
    color: #00ffff;
}

.toggle-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-toggle:hover .toggle-glow {
    opacity: 1;
}

/* Performance Toggle Button */
.perf-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
  border: 2px solid rgba(0, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.8);
    color: #00ffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1100;
}

.perf-toggle.active {
    border-color: #ffd700;
    color: #ffd700;
}

/* Low Performance Mode - turns off heavy visuals */
.low-perf .magical-image,
.low-perf .magical-video.video-2,
.low-perf .magical-video.video-3,
.low-perf .magical-video.video-4,
.low-perf .floating-book,
.low-perf .flickering-candle,
.low-perf .shadow-figure,
.low-perf .gothic-rune,
.low-perf .particles,
.low-perf .sparkles {
    display: none !important;
}

.low-perf .hero h1 {
  text-shadow: none;
}
.low-perf .hero h2 {
  text-shadow: none;
}
.low-perf .about-card,
.low-perf .contact-form {
    backdrop-filter: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #00ffff, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, #ffd700, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: difference;
    transition: transform 0.2s ease;
}

/* Experience Timeline Section */
.experience {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(45, 27, 105, 0.3) 100%
  );
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #00ffff, #ffd700, #00ffff);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 55%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

.timeline-content {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 40px rgba(0, 255, 255, 0.3);
}

.timeline-date {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    color: #00ffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.timeline-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 30px;
    }
}

/* Mobile First - Hide hamburger on desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  .nav-menu {
    display: flex !important;
  }
}

/* Medium screens - make navbar more compact */
@media (max-width: 1200px) and (min-width: 769px) {
  .nav-menu {
    gap: 0.6rem;
  }
  .nav-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
  .nav-link[href='#why-hire'] {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
    min-width: 75px;
  }
}

/* Large screens - ensure proper spacing */
@media (min-width: 1201px) {
  .nav-menu {
    gap: 1rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  .nav-link[href='#why-hire'] {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    min-width: 90px;
  }
}

/* Extra small screens - ultra compact */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 0.5rem;
  }
  .nav-link {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }
  .nav-link[href='#why-hire'] {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
    min-width: 70px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 100px 1.25rem 1.5rem 1.25rem;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 1.1;
  }
  .hero h2 {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }
  .hero p {
    padding: 1rem;
    margin-bottom: 2rem;
  }
  .floating-orb {
    display: none;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px;
    gap: 8px;
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }

    .nav-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }


  /* Ensure mobile menu links are visible and clickable */
  .nav-menu .nav-link {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto;
    cursor: pointer;
  }

  /* Specifically ensure Home and About are visible */
  .nav-menu .nav-link[href="#hero"],
  .nav-menu .nav-link[href="#about"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
  }

  /* Custom scrollbar for mobile menu */
  .nav-menu::-webkit-scrollbar {
    width: 6px;
  }

  .nav-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
  }

  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
  }

  .nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
  }



  /* Additional responsive improvements for mobile menu */
  @media (max-width: 480px) {
    .nav-menu {
      padding: 15px;
      gap: 6px;
    }
    
    .nav-link {
      font-size: 15px;
      padding: 10px 16px;
    }
    
    .nav-link[href='#why-hire'] {
      font-size: 14px;
      padding: 10px 16px;
    }
  }

  @media (max-width: 360px) {
    .nav-menu {
      padding: 12px;
      gap: 4px;
    }
    
    .nav-link {
      font-size: 14px;
      padding: 8px 14px;
    }
    
    .nav-link[href='#why-hire'] {
      font-size: 13px;
      padding: 8px 14px;
    }
  }


  .nav-container {
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0rem;
  }

  .nav-logo .magical-text {
    font-size: 1.5rem;
    margin-left: 0;
  }

  .nav-link {
    display: block !important;
    padding: 12px 20px;
    margin: 4px 0;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(0, 255, 255, 0.3) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-link:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.6);
    color: #00ffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
  }

  .nav-link.active {
    background: rgba(0, 255, 255, 0.25);
    border-color: rgba(0, 255, 255, 0.8);
    color: #00ffff;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
  }

  .nav-link[href='#why-hire'] {
    font-size: 15px;
    padding: 12px 20px;
  }

    .hamburger {
    display: flex !important;
  }

  .music-control {
    top: 80px;
    right: 20px;
    left: auto;
    z-index: 100;
    pointer-events: auto;
    position: fixed !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-visual {
        display: none;
    }

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

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

    .skill-orb {
        width: 150px;
        height: 150px;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
  .hero {
    padding: 90px 1rem 1.5rem 1rem;
  }
  .hero h1 {
    font-size: clamp(1.8rem, 10vw, 2.6rem);
    line-height: 1.1;
    word-break: break-word;
  }
  .hero h2 {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
  }
  .hero p {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    padding: 1rem;
  }
  .hero-buttons {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .cta-button,
  .secondary-button,
  .hire-button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-card {
        padding: 2rem 1rem;
    }

    .skill-orb {
        width: 120px;
        height: 120px;
    }

    .skill-orb i {
        font-size: 2rem;
    }

  /* Extra small mobile menu adjustments */
  .nav-menu {
    width: 95%;
    max-width: 350px;
    padding: 2rem 1.5rem;
    gap: 1rem;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }

  .nav-link[href='#why-hire'] {
    font-size: 0.9rem;
    padding: 0.7rem 1.3rem;
  }
}

/* Tablet landscape adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.6rem);
  }
  .hero h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  }

}

/* Very large screens/TVs */
@media (min-width: 1600px) {
  .hero h1 {
    font-size: clamp(3.5rem, 5vw, 6rem);
  }
  .hero h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Portfolio Gallery Section */
.portfolio {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 105, 0.3) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

.portfolio-item {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.3);
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-portfolio {
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.placeholder-portfolio i {
    font-size: 2.5rem;
    color: #ffd700;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.portfolio-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Portfolio Hover Effects */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.1),
    rgba(255, 215, 0, 0.1)
  );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Achievements Section */
.achievements {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(74, 14, 14, 0.3) 100%
  );
}

.achievements-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

.achievement-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.1),
    transparent 70%
  );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement-card:hover::before {
    opacity: 1;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #ffd700, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.achievement-icon i {
    font-size: 2.5rem;
    color: #000000;
}

.achievement-card h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.achievement-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.achievement-date {
    color: #00ffff;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Blog Section */
.blog {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(74, 14, 14, 0.3) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

.blog-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.3);
}

.blog-image {
    height: 200px;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-blog {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.placeholder-blog i {
    font-size: 2rem;
    color: #ffd700;
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.blog-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.blog-date {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-category {
    color: #ffd700;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Social Media Hub Section */
.social-hub {
    padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(45, 27, 105, 0.3) 100%
  );
}

.social-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

.social-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 255, 0.1),
    transparent 70%
  );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.3);
}

.social-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.5);
}

.social-icon i {
    font-size: 2rem;
    color: #000000;
}

.social-card h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.social-card p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-handle {
    color: #00ffff;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

/* Enhanced Hero Section */
.hero-buttons {
    display: flex;
  gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
  align-items: center;
}

.hire-button {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  color: #ffffff;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hire-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  color: #ffffff;
  text-decoration: none;
}

.secondary-button {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.5);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    color: #ffd700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-button:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.secondary-button i {
    font-size: 1rem;
}

/* Enhanced Footer */
.footer-quote {
    margin: 1rem 0;
    text-align: center;
}

/* Welcome Overlay (lightweight, GPU-friendly) */
.welcome-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    z-index: 20000;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.welcome-overlay.active {
    opacity: 1;
    transform: translateY(0);
}

.welcome-card {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    max-width: 360px;
    width: calc(100% - 2rem);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.welcome-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.welcome-sub {
    color: #cccccc;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

.welcome-skip {
    background: linear-gradient(45deg, #00ffff, #ffd700);
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 200ms ease;
}

.welcome-skip:active {
    transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .welcome-overlay {
    transition: none;
  }
  .welcome-skip {
    transition: none;
  }
}

.footer-quote p {
    color: #00ffff;
    font-style: italic;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Enhanced Contact Section */
.contact-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.contact-item h3,
.contact-item p,
.contact-item span,
.contact-item i {
    color: inherit;
}

/* Themed Resume item */
.resume-item {
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.resume-item:link,
.resume-item:visited,
.resume-item:hover,
.resume-item:active {
    color: inherit;
    text-decoration: none !important;
}

.resume-item .contact-icon {
    background: linear-gradient(45deg, #ffd700, #00ffff);
}

.resume-item h3 {
    color: #ffd700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.resume-item p {
    color: #cccccc;
}

.resume-item .download-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0.6rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #00ffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.resume-item .download-badge i {
    font-size: 0.8rem;
}

/* Portfolio Lightbox */
.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
}

.lightbox-content {
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    text-align: center;
    position: relative;
    cursor: default;
}

.close-lightbox {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    color: #ffd700;
    transform: scale(1.2);
}

.lightbox-content h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.lightbox-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.lightbox-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sparkle Effects */
.sparkle-effect {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* Ripple Effects */
.ripple-effect {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* Reading Progress */
.reading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #ffd700);
    transition: width 0.3s ease;
}

/* Enhanced Hover Effects */
.timeline-item:hover .timeline-content {
    background: rgba(0, 0, 0, 0.9);
    border-color: #00ffff;
}

.portfolio-item:hover .placeholder-portfolio {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.achievement-card:hover .achievement-icon {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
}

.social-card:hover .social-handle {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.blog-card:hover .placeholder-blog {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
}

/* Fix for sections not showing */
.experience,
.portfolio,
.achievements,
.blog,
.social-hub {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Enhanced section visibility */
section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Fix timeline positioning */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    z-index: 2;
}

/* Fix portfolio grid */
.portfolio-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

/* Fix achievements grid */
.achievements-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

/* Fix blog grid */
.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

/* Fix social grid */
.social-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem;
    margin-top: 3rem;
    z-index: 1;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 15px;
    padding: 2rem;
    max-width: 400px;
    z-index: 10000;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.message-content {
    text-align: center;
}

.message-content i {
    font-size: 3rem;
    color: #00ff00;
    margin-bottom: 1rem;
    display: block;
}

.message-content h3 {
    color: #00ff00;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.message-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.message-content p:last-child {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: #888888;
    font-style: italic;
}

/* Why Hire Me Section */
.why-hire {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(74, 14, 14, 0.3) 100%
  );
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

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

.why-hire-item {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.why-hire-item:hover {
  transform: translateY(-10px);
  border-color: #00ffff;
  box-shadow: 0 20px 50px rgba(0, 255, 255, 0.3);
}

.why-hire-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #00ffff, #ffd700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.why-hire-icon i {
  font-size: 2rem;
  color: #000000;
}

.why-hire-item h3 {
  color: #ffd700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
}

.why-hire-item p {
  color: #cccccc;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(45, 27, 105, 0.3) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

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

.testimonial-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 4rem;
  color: #ffd700;
  font-family: serif;
  opacity: 0.3;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: #ffd700;
  box-shadow: 0 20px 50px rgba(255, 215, 0, 0.3);
}

.testimonial-content p {
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-info h4 {
  color: #ffd700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-family: 'Cinzel', serif;
}

.author-info span {
  color: #00ffff;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(45, 27, 105, 0.3) 100%
  );
  position: relative;
  z-index: 10;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 100vh;
  overflow-x: hidden;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-item:hover {
  transform: translateX(10px);
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.2);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #00ffff, #ffd700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.contact-icon i {
  font-size: 1.5rem;
  color: #000000;
}

.contact-info h3 {
  color: #ffd700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: 'Cinzel', serif;
}

.contact-info p {
  color: #cccccc;
  font-size: 1rem;
}

.contact-form {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.magical-input {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.magical-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.magical-input::placeholder {
  color: #888888;
}

.magical-textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  min-height: 120px;
  resize: vertical;
  transition: all 0.3s ease;
}

.magical-textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.magical-textarea::placeholder {
  color: #888888;
}

.submit-button {
  background: linear-gradient(45deg, #00ffff, #ffd700);
  color: #000000;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

/* Success/Error Messages */
.success-message,
.error-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid #00ffff;
  border-radius: 20px;
  padding: 2rem;
  z-index: 10000;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
}

.error-message {
  border-color: #ff4500;
  box-shadow: 0 20px 60px rgba(255, 69, 0, 0.3);
}

.message-content h3 {
  color: #00ffff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Cinzel', serif;
}

.error-message .message-content h3 {
  color: #ff4500;
}

.message-content p {
  color: #cccccc;
  margin-bottom: 0;
}

.message-content i {
  font-size: 3rem;
  color: #00ffff;
  margin-bottom: 1rem;
}

.error-message .message-content i {
  color: #ff4500;
}

/* Mobile Responsive for Contact */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .contact {
    padding: 4rem 0;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Magical Music Control */
.music-control {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.music-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #00ffff, #ffd700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  animation: music-pulse 2s ease-in-out infinite;
  pointer-events: auto;
  z-index: 99999;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.music-toggle i {
  font-size: 1.5rem;
  color: #000000;
  z-index: 2;
}

.music-glow {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, #00ffff, #ffd700, #00ffff);
  border-radius: 50%;
  opacity: 0;
  animation: music-glow 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes music-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes music-glow {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.1);
  }
}

.music-hint {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 15px;
  padding: 8px 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.music-control:hover .music-hint {
  opacity: 1;
  transform: translateY(0);
}

.music-hint span {
  color: #00ffff;
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
}

.music-hint small {
  color: #cccccc;
  font-size: 0.7rem;
}

/* Music Control States */
.music-toggle.playing {
  background: linear-gradient(45deg, #ffd700, #00ffff);
  animation: music-playing 1s ease-in-out infinite;
}

.music-toggle.paused {
  background: linear-gradient(45deg, #666666, #999999);
  animation: none;
}

@keyframes music-playing {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(5deg);
  }
  50% {
    transform: scale(1.1) rotate(0deg);
  }
  75% {
    transform: scale(1.05) rotate(-5deg);
  }
}

/* Mobile Responsive for Music Control */
@media (max-width: 768px) {
    .nav-menu{
        z-index: 9999;
    }
    .nav-menu.active{
        z-index: 9999 !important;
    }

    /* Hide music control on mobile */
    .music-control {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Ensure audio element is muted on mobile */
    #backgroundMusic {
        display: none !important;
    }
}

/* Tablet and larger screens - show music control */
@media (min-width: 769px) {
  .music-control {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  #backgroundMusic {
    display: block !important;
  }
}

/* Extra small mobile screens - music control already hidden above */

/* Enhanced section visibility fixes */
.experience,
.portfolio,
.achievements,
.blog,
.social-hub,
.why-hire,
.testimonials,
.contact {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Force display for all sections */
section[id] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Ensure grids are visible */
.grid,
.grid-container {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Portfolio Images with Dark Theme */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
    filter: brightness(0.85) contrast(1.15) saturate(1.05);
}

.portfolio-item:hover .portfolio-img {
    filter: brightness(1) contrast(1.3) saturate(1.2);
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 20px 20px 0 0;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

/* Fallback for missing images */
.portfolio-img:not([src]), 
.portfolio-img[src=''],
.portfolio-img[src*='undefined'] {
    display: none;
}

.portfolio-img:not([src]) + .portfolio-overlay,
.portfolio-img[src=''] + .portfolio-overlay,
.portfolio-img[src*='undefined'] + .portfolio-overlay {
    display: flex;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
}

.portfolio-img:not([src]) ~ .portfolio-overlay i,
.portfolio-img[src=''] ~ .portfolio-overlay i,
.portfolio-img[src*='undefined'] ~ .portfolio-overlay i {
    color: #ffd700;
}

/* Enhanced portfolio item styling */
.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

/* Dark theme image enhancements */
.portfolio-img {
    transition: all 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1) rotate(1deg);
}

/* Magical border effect for images */
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, #00ffff, #ffd700, #00ffff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* Profile Image Styling */
.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
    filter: brightness(0.9) contrast(1.1) saturate(1.05);
}

.profile-img:hover {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.2) saturate(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.5);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent 70%);
    border-radius: 50%;
    animation: profile-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes profile-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Fallback for missing profile image */
.profile-img:not([src]), 
.profile-img[src=''],
.profile-img[src*='undefined'] {
    display: none;
}

.profile-img:not([src]) ~ .profile-glow,
.profile-img[src=''] ~ .profile-glow,
.profile-img[src*='undefined'] ~ .profile-glow {
    display: none;
}

/* Show placeholder when image is missing */
.about-image:has(.profile-img:not([src])),
.about-image:has(.profile-img[src='']),
.about-image:has(.profile-img[src*='undefined']) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image:has(.profile-img:not([src]))::after,
.about-image:has(.profile-img[src=''])::after,
.about-image:has(.profile-img[src*='undefined'])::after {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 4rem;
    color: #ffd700;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

/* Magical Background Elements */
.magical-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Magical Floating Images - Slow Smooth Movement */
.magical-image {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0.7;
    transition: all 2s ease-in-out;
    animation: float-slow 20s ease-in-out infinite;
    pointer-events: auto;
}

.magical-image:hover {
    opacity: 1;
    transform: scale(1.1);
    z-index: 10;
    transition: all 0.5s ease;
}

.floating-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.8) contrast(1.2) saturate(1.1) hue-rotate(10deg);
    transition: all 0.3s ease;
}

.magical-image:hover .floating-img {
    filter: brightness(1) contrast(1.3) saturate(1.2) hue-rotate(0deg);
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent 70%);
    border-radius: 20px;
    animation: image-glow-slow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes image-glow-slow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

/* Slow Floating Animation for Images */
@keyframes float-slow {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-15px) translateX(8px) rotate(1deg); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-25px) translateX(0px) rotate(0deg); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-15px) translateX(-8px) rotate(-1deg); 
        opacity: 0.8;
    }
    100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.7;
    }
}

/* Image Positioning - Fixed Locations with Slow Movement */
.image-1 {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
} /* Moved away from Maauz_vlog.mp4 */
.image-2 {
  top: 35%;
  right: 25%;
  animation-delay: 4s;
}
.image-3 {
  top: 55%;
  left: 15%;
  animation-delay: 8s;
}
.image-4 {
  top: 45%;
  right: 35%;
  animation-delay: 12s;
}
.image-5 {
  top: 75%;
  left: 30%;
  animation-delay: 16s;
}
.image-6 {
  top: 65%;
  right: 20%;
  animation-delay: 20s;
}
.image-7 {
  top: 85%;
  left: 25%;
  animation-delay: 24s;
}
.image-8 {
  top: 65%;
  right: 35%;
  animation-delay: 28s;
} /* Moved up from 95% to empty space below Maauz_vlog.mp4 */
.image-9 {
  top: 20%;
  left: 60%;
  animation-delay: 32s;
} /* Moved away from Maauz_vlog.mp4 */
.image-10 {
  top: 30%;
  right: 55%;
  animation-delay: 36s;
}
.image-11 {
  top: 50%;
  left: 70%;
  animation-delay: 40s;
} /* Moved away from uff2.mp4 */
.image-12 {
  top: 75%;
  right: 40%;
  animation-delay: 44s;
} /* Moved up from 70% to empty space below Maauz_vlog.mp4 */
.image-13 {
  top: 90%;
  left: 65%;
  animation-delay: 48s;
} /* Moved away from uff2.mp4 */

/* Magical Floating Video - Continuous Play with Slow Movement */
.magical-video {
    position: absolute;
    width: 200px;
    height: 150px;
    border-radius: 25px;
    overflow: hidden;
    opacity: 0.8;
    transition: all 2s ease-in-out;
    animation: float-video-slow 25s ease-in-out infinite;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.magical-video:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
    z-index: 10;
    transition: all 0.5s ease;
}

.floating-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    filter: brightness(0.7) contrast(1.3) saturate(1.2) hue-rotate(15deg);
    transition: all 0.3s ease;
    /* attributes are set in HTML/JS */
}

.magical-video:hover .floating-video {
    filter: brightness(0.9) contrast(1.4) saturate(1.3) hue-rotate(0deg);
}

.video-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
    border-radius: 25px;
    animation: video-glow-slow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes video-glow-slow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

/* Slow Floating Animation for Video */
@keyframes float-video-slow {
    0% { 
        transform: translateX(-50%) translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-50%) translateY(-20px) rotate(2deg) scale(1.02); 
        opacity: 0.85;
    }
    50% { 
        transform: translateX(-50%) translateY(-30px) rotate(0deg) scale(1.05); 
        opacity: 0.9;
    }
    75% { 
        transform: translateX(-50%) translateY(-20px) rotate(-2deg) scale(1.02); 
        opacity: 0.85;
    }
    100% { 
        transform: translateX(-50%) translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
}

/* Floating Books - Slow Movement */
.floating-book {
    position: absolute;
    width: 80px;
    height: 100px;
    background: linear-gradient(45deg, #2d1b69, #4a0e0e);
    border-radius: 5px;
    opacity: 0.6;
    animation: float-book-slow 30s ease-in-out infinite;
}

.book-1 {
  top: 20%;
  left: 80%;
  animation-delay: 0s;
}
.book-2 {
  top: 60%;
  left: 85%;
  animation-delay: 10s;
}
.book-3 {
  top: 40%;
  left: 90%;
  animation-delay: 20s;
}

@keyframes float-book-slow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(3deg);
  }
}

/* Flickering Candles - Slow Movement */
.flickering-candle {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(to bottom, #8b4513, #654321);
    border-radius: 10px;
    opacity: 0.8;
    animation: float-candle-slow 25s ease-in-out infinite;
}

.candle-1 {
  top: 15%;
  right: 30%;
  animation-delay: 0s;
}
.candle-2 {
  top: 70%;
  right: 40%;
  animation-delay: 8s;
}
.candle-3 {
  top: 45%;
  right: 60%;
  animation-delay: 16s;
}

@keyframes float-candle-slow {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Shadow Figures - Slow Movement */
.shadow-figure {
    position: absolute;
    width: 60px;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    border-radius: 30px;
    opacity: 0.4;
    animation: shadow-float-slow 40s ease-in-out infinite;
}

.shadow-1 {
  top: 25%;
  left: 25%;
  animation-delay: 0s;
}
.shadow-2 {
  top: 65%;
  left: 35%;
  animation-delay: 13s;
}
.shadow-3 {
  top: 35%;
  left: 75%;
  animation-delay: 26s;
}

@keyframes shadow-float-slow {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.6;
  }
}

/* Gothic Runes - Slow Movement */
.gothic-rune {
    position: absolute;
    font-size: 2rem;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    opacity: 0.6;
    animation: rune-float-slow 35s ease-in-out infinite;
}

.rune-1 {
  top: 10%;
  left: 45%;
  animation-delay: 0s;
}
.rune-2 {
  top: 30%;
  left: 15%;
  animation-delay: 7s;
}
.rune-3 {
  top: 50%;
  left: 85%;
  animation-delay: 14s;
}
.rune-4 {
  top: 70%;
  left: 25%;
  animation-delay: 21s;
}
.rune-5 {
  top: 90%;
  left: 65%;
  animation-delay: 28s;
}

@keyframes rune-float-slow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(90deg);
    opacity: 1;
  }
}

/* Particles and Sparkles */
.particles,
.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating Animation for Images */
@keyframes float-magical {
  0%,
  100% {
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-20px) rotate(2deg) scale(1.05); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-35px) rotate(0deg) scale(1.1); 
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-20px) rotate(-2deg) scale(1.05); 
        opacity: 0.8;
    }
}

/* Floating Animation for Video */
@keyframes float-video {
  0%,
  100% {
        transform: translateX(-50%) translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    25% { 
        transform: translateX(-50%) translateY(-25px) rotate(3deg) scale(1.05); 
        opacity: 0.9;
    }
    50% { 
        transform: translateX(-50%) translateY(-40px) rotate(0deg) scale(1.1); 
        opacity: 1;
    }
    75% { 
        transform: translateX(-50%) translateY(-25px) rotate(-3deg) scale(1.05); 
        opacity: 0.9;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .magical-image {
        width: 80px;
        height: 80px;
    }
    
    .magical-video {
        width: 150px;
        height: 112px;
    }
    
    .floating-book {
        width: 60px;
        height: 75px;
    }
    
    .gothic-rune {
        font-size: 1.5rem;
    }
}

/* Trim a few background images on very small phones for perf */
@media (max-width: 480px) {
  .magical-image.image-9,
  .magical-image.image-10 {
    display: none;
  }
}

/* Particle and Sparkle Animations */
@keyframes float-particle {
  0%,
  100% {
        transform: translateY(0px) translateX(0px); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-40px) translateX(0px); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-20px) translateX(-10px); 
        opacity: 0.5;
    }
}

@keyframes sparkle-twinkle {
  0%,
  100% {
        transform: scale(1) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: scale(1.2) rotate(90deg); 
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.5) rotate(180deg); 
        opacity: 1;
    }
    75% { 
        transform: scale(1.2) rotate(270deg); 
        opacity: 0.6;
    }
}

/* Enhanced magical effects */
.magical-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ffd700, #00ffff);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magical-image:hover::before {
    opacity: 1;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Video hover effects */
.magical-video::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ffd700, #00ffff, #ffd700);
    border-radius: 28px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magical-video:hover::before {
    opacity: 1;
    animation: video-border-glow 2s ease-in-out infinite;
}

@keyframes video-border-glow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Slow Particle and Sparkle Animations */
@keyframes float-particle-slow {
  0%,
  100% {
        transform: translateY(0px) translateX(0px); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-15px) translateX(8px); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-25px) translateX(0px); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-15px) translateX(-8px); 
        opacity: 0.5;
    }
}

@keyframes sparkle-twinkle-slow {
  0%,
  100% {
        transform: scale(1) rotate(0deg); 
        opacity: 0.3;
    }
    25% { 
        transform: scale(1.1) rotate(45deg); 
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.3) rotate(90deg); 
        opacity: 0.8;
    }
    75% { 
        transform: scale(1.1) rotate(135deg); 
        opacity: 0.5;
    }
}

/* Additional Magical Floating Videos */
.magical-video.video-2 {
    top: 8%; /* Top area - empty space */
    left: 8%; /* Left area - empty space */
    transform: none;
    animation: float-video-slow 30s ease-in-out infinite;
    animation-delay: 5s;
    width: 160px; /* Slightly smaller width */
    height: 240px; /* Increased height for vertical videos */
}

.magical-video.video-3 {
    top: 75%; /* Moved up from 85% to ensure full visibility */
    left: 8%; /* Left area - empty space */
    transform: none;
    animation: float-video-slow 35s ease-in-out infinite;
    animation-delay: 10s;
    width: 160px; /* Slightly smaller width */
    height: 240px; /* Increased height for vertical videos */
}

.magical-video.video-4 {
    top: 45%; /* Middle area - empty space */
    left: 82%; /* Right area - empty space */
    transform: none;
    animation: float-video-slow 40s ease-in-out infinite;
    animation-delay: 15s;
    width: 160px; /* Slightly smaller width */
    height: 240px; /* Increased height for vertical videos */
}

/* Enhanced video positioning for all videos */
.magical-video {
    position: absolute;
    width: 180px;
    height: 135px;
    border-radius: 25px;
    overflow: hidden;
    opacity: 0.8;
    transition: all 2s ease-in-out;
    animation: float-video-slow 25s ease-in-out infinite;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: auto;
}

.magical-video:hover {
    opacity: 1;
    transform: scale(1.15);
    z-index: 10;
    transition: all 0.5s ease;
}

/* Video hover effects for additional videos */
.magical-video.video-2:hover {
    transform: scale(1.15);
}

.magical-video.video-3:hover {
    transform: scale(1.15);
}

.magical-video.video-4:hover {
    transform: scale(1.15);
}

/* Ensure videos don't overlap with images */
.magical-video.video-2,
.magical-video.video-3,
.magical-video.video-4 {
    z-index: 10; /* Higher z-index than images */
}

.magical-image {
    z-index: 5; /* Lower z-index than videos */
}

/* Responsive adjustments for videos */
@media (max-width: 768px) {
    .magical-video.video-2,
    .magical-video.video-3,
    .magical-video.video-4 {
        width: 120px;
        height: 180px;
    }
}

/* Video styling for vertical videos */
.magical-video.video-2 .floating-video,
.magical-video.video-3 .floating-video,
.magical-video.video-4 .floating-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintains aspect ratio */
    border-radius: 25px;
    filter: brightness(0.7) contrast(1.3) saturate(1.2) hue-rotate(15deg);
    transition: all 0.3s ease;
}

.magical-video.video-2:hover .floating-video,
.magical-video.video-3:hover .floating-video,
.magical-video.video-4:hover .floating-video {
    filter: brightness(0.9) contrast(1.4) saturate(1.3) hue-rotate(0deg);
}

/* Enhanced video glow for vertical videos */
.magical-video.video-2 .video-glow,
.magical-video.video-3 .video-glow,
.magical-video.video-4 .video-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
    border-radius: 25px;
    animation: video-glow-slow 8s ease-in-out infinite;
    pointer-events: none;
}

/* Main video should also be above images */
.magical-video:not(.video-2):not(.video-3):not(.video-4) {
    z-index: 12; /* Highest z-index for main video */
}

/* Music Player System */
.music-player {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 25px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    z-index: 1000;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.music-player:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.music-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.music-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
}

.music-toggle.playing {
    background: linear-gradient(45deg, #ffd700, #00ffff);
    animation: music-pulse 2s ease-in-out infinite;
}

.music-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 255, 0.3),
    rgba(255, 215, 0, 0.3)
  );
    z-index: -1;
    animation: music-glow 3s ease-in-out infinite;
}

@keyframes music-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes music-glow {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.music-info {
    text-align: center;
    width: 100%;
}

.track-name {
    color: #00ffff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.track-progress {
    width: 100%;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ffd700);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.volume-control i {
    color: #ffd700;
    font-size: 1rem;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: linear-gradient(45deg, #00ffff, #ffd700);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.track-changer {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
}

.track-changer:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: scale(1.1);
}

/* Responsive Music Player */
@media (max-width: 768px) {
    .music-player {
        bottom: 1rem;
        right: 1rem;
        min-width: 250px;
        padding: 1rem;
    }
    
    .music-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Interactive Cursor System */
.custom-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: #00ffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.cursor-trail {
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.6);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.cursor-glow {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3), transparent 70%);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0.7;
}

/* Cursor hover effects */
.custom-cursor.hover .cursor-dot {
    width: 16px;
    height: 16px;
    background: #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

.custom-cursor.hover .cursor-trail {
    width: 30px;
    height: 30px;
    background: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}

.custom-cursor.hover .cursor-glow {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent 70%);
    opacity: 1;
}

/* Cursor click effects */
.custom-cursor.clicking .cursor-dot {
    transform: translate(-50%, -50%) scale(0.5);
    background: #ff4500;
}

.custom-cursor.clicking .cursor-trail {
    transform: translate(-50%, -50%) scale(1.5);
    background: rgba(255, 69, 0, 0.8);
}

/* Cursor effects container */
.cursor-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Cursor trail particles */
.cursor-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    pointer-events: none;
    animation: cursor-particle 1s ease-out forwards;
}

@keyframes cursor-particle {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Hide default cursor on interactive elements */
.nav-link:hover,
.cta-button:hover,
.secondary-button:hover,
.portfolio-item:hover,
.achievement-card:hover,
.social-card:hover,
.blog-card:hover,
.music-toggle:hover,
.track-changer:hover {
    cursor: none;
}

/* Responsive cursor */
@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }
}

/* Portfolio Lightbox System */
.portfolio-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 20000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.lightbox-content {
    background: rgba(0, 0, 0, 0.98);
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 25px;
    padding: 2rem;
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    animation: lightbox-appear 0.5s ease-out;
}

@keyframes lightbox-appear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 69, 0, 0.8);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 69, 0, 1);
    transform: scale(1.1);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 10;
}

.lightbox-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.8);
    border: none;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 255, 255, 1);
    transform: scale(1.1);
}

.lightbox-nav.prev {
    left: 1rem;
}

.lightbox-nav.next {
    right: 1rem;
}

.lightbox-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    max-height: 80vh;
    overflow: hidden;
}

.lightbox-image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox-zoom-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.zoom-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.8);
    border: none;
    color: #000;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background: rgba(255, 215, 0, 1);
    transform: scale(1.1);
}

.lightbox-info {
    flex: 1;
    max-width: 300px;
    color: white;
}

.lightbox-title {
    font-size: 1.8rem;
    color: #00ffff;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.lightbox-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #cccccc;
}

.lightbox-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.lightbox-tags .tag {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.lightbox-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #888888;
}

.lightbox-date,
.lightbox-category {
    padding: 0.3rem 0.8rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 1rem;
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-main {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lightbox-info {
        max-width: 100%;
    }
    
    .lightbox-navigation {
        padding: 0 0.5rem;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Hide music player if accidentally placed inside magical background */
.magical-background .music-player {
	display: none !important;
	pointer-events: none !important;
}

/* Reduce background intensity on mobile for performance */
@media (max-width: 768px) {
	/* soften overall glows */
  .hero h1 {
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.35);
  }
  .hero h2 {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
	.image-glow,
  .video-glow {
    opacity: 0.35;
  }
  .magical-image {
    opacity: 0.6;
  }
  .gothic-rune {
    opacity: 0.45;
  }
	/* slow animations to save battery */
  .magical-image {
    animation-duration: 28s;
  }
  .magical-video {
    animation-duration: 32s;
  }
	/* fewer blurs for perf */
  .navbar {
    backdrop-filter: none;
  }
  .about-card,
  .contact-form {
    backdrop-filter: none;
  }
}

