:root {
  --primary: #4361ee;
  --secondary: #3a0ca3;
  --accent: #f72585;
  --light: #f8f9fa;
  --bright-blue: #4cc9f0;
  --bright-pink: #f72585;
  --bright-purple: #7209b7;
}

@font-face {
  font-family: "Satoshi";
  src: url("https://fonts.cdnfonts.com/css/satoshi") format("woff2");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Satoshi", sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  overflow-x: hidden;
}

/* Vibrant 3D Hero */
.hero-vibrant {
  min-height: 700px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0 140px;
}

/* Floating 3D Shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
  animation: float-shape 15s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--bright-blue);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--bright-pink);
  bottom: 10%;
  right: 5%;
  animation-delay: 2s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--bright-purple);
  top: 50%;
  left: 70%;
  animation-delay: 4s;
}

@keyframes float-shape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

/* 3D Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 30px rgba(67, 97, 238, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  z-index: 1;
}

.glass-card:hover {
  transform: perspective(1000px) rotateX(0) rotateY(0) translateZ(30px);
  box-shadow: 0 15px 40px rgba(67, 97, 238, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(67, 97, 238, 0.1) 0%,
    rgba(247, 37, 133, 0.1) 100%
  );
  transform: rotate(45deg);
  animation: shine 6s linear infinite;
  z-index: -1;
}

@keyframes shine {
  0% {
    transform: rotate(45deg) translateY(0);
  }
  100% {
    transform: rotate(45deg) translateY(-100%);
  }
}

/* 3D Floating Elements */
.floating-element {
  position: absolute;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  transform-style: preserve-3d;
  animation: float-element 8s infinite ease-in-out;
  z-index: 0;
}

@keyframes float-element {
  0%,
  100% {
    transform: translateY(0) rotate(0) translateZ(0);
  }
  50% {
    transform: translateY(-30px) rotate(10deg) translateZ(20px);
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, var(--primary), var(--bright-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* 3D Button */
.btn-3d {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 22px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.btn-3d::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: inherit;
  transform: translateZ(-8px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
  opacity: 0.8;
}

.btn-3d:hover {
  transform: translateY(-5px) translateZ(5px);
  box-shadow: 0 10px 25px rgba(67, 97, 238, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.btn-3d:hover::before {
  transform: translateZ(-12px);
  opacity: 0.6;
}

.btn-3d:active {
  transform: translateY(0) translateZ(0);
}

/* Header */
.vibrant-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-item {
  position: relative;
  color: var(--secondary);
  font-weight: 500;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav-item:hover::after {
  width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-circle {
  width: 40px;
  height: 60px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll-bounce 2s infinite;
}

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

/* Additional styles for About section */
.bounce-in {
  animation: bounceIn 1s forwards;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(50px) translateZ(0);
  }
  60% {
    opacity: 1;
    transform: translateY(-20px) translateZ(10px);
  }
  80% {
    transform: translateY(10px) translateZ(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Additional animations for Skills section */
.flip-in {
  opacity: 0;
  transform: perspective(1000px) rotateY(20deg);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.flip-in.visible {
  opacity: 1;
  transform: perspective(1000px) rotateY(0);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-5deg);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Additional animations for Experience section */
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px) translateZ(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(30px) translateZ(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* 3D Project Card Effects */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-preserve-3d {
  transform-style: preserve-3d;
}

.group-hover\:rotate-y-25:hover {
  transform: rotateY(25deg);
}

/* Case Study Modal Animation */
#caseStudyModal {
  transition: opacity 0.3s ease;
}

/* Example contrast fixes */
.text-gray-600 {
  color: #4a5568; /* Darker gray for better contrast */
}

.bg-gray-200 {
  background-color: #e2e8f0; /* Lighter background for better contrast */
}

.testimonial-dot {
  min-width: 24px;
  min-height: 24px;
}

/* Gallery Modal Styles */
#galleryModal {
  transition: opacity 0.3s ease;
}

#galleryModal img {
  transition: opacity 0.3s ease;
}

#galleryModal button {
  transition: background-color 0.2s ease;
}

#imageCounter {
  font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
