/* Custom Styles */

/* Dark Theme Variables & Gradients */
:root {
  --color-primary-gradient-start: #6366f1;
  --color-primary-gradient-start-rgb: 99, 102, 241;
  --color-primary-gradient-end: #ec4899;
  --color-primary-gradient-end-rgb: 236, 72, 153;

  --color-secondary-gradient-start: #8b5cf6;
  --color-secondary-gradient-start-rgb: 139, 92, 246;
  --color-secondary-gradient-end: #f472b6;
  --color-secondary-gradient-end-rgb: 244, 114, 182;

  --color-bg-dark-primary: #111827;
  --color-bg-dark-secondary: #1f2937;
  --color-bg-dark-tertiary: #374151;

  --color-text-light-primary: #f3f4f6;
  --color-text-light-secondary: #d1d5db;
  --text-gradient: linear-gradient(to right, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  --color-border-dark: #4b5563;

  --shadow-dark-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-dark-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.16);
  --shadow-dark-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-dark-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.14);
  --shadow-accent-hover: 0 10px 15px -3px rgba(var(--color-primary-gradient-start-rgb), 0.25), 0 4px 6px -2px rgba(var(--color-primary-gradient-start-rgb), 0.2);
}

/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  /* background-color: var(--color-bg-dark-primary); */ /* Removed to allow animated-background to be visible */
  color: var(--color-text-light-primary);
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--color-bg-dark-primary), var(--color-bg-dark-secondary));
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(8px);
  animation: float 15s infinite ease-in-out;
}

.bubble-1 {
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.bubble-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--color-secondary-gradient-start), var(--color-primary-gradient-end));
  top: 40%;
  left: 25%;
  animation-delay: 2s;
}

.bubble-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--color-primary-gradient-start), var(--color-secondary-gradient-end));
  top: 70%;
  left: 15%;
  animation-delay: 4s;
}

.bubble-4 {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, var(--color-secondary-gradient-start), var(--color-secondary-gradient-end));
  top: 20%;
  right: 15%;
  animation-delay: 1s;
}

.bubble-5 {
  width: 180px;
  height: 180px;
  background: linear-gradient(45deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  top: 50%;
  right: 10%;
  animation-delay: 3s;
}

.bubble-6 {
  width: 140px;
  height: 140px;
  background: linear-gradient(45deg, var(--color-secondary-gradient-start), var(--color-secondary-gradient-end));
  top: 80%;
  right: 20%;
  animation-delay: 5s;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0);
  }
  33% {
    transform: translateY(-50px) translateX(20px) rotate(10deg);
  }
  66% {
    transform: translateY(20px) translateX(-20px) rotate(-10deg);
  }
  100% {
    transform: translateY(0) translateX(0) rotate(0);
  }
}

/* Text Gradient */
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section Styles */
.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-text-light-primary);
  margin-bottom: 1rem;
}

.section-divider {
  height: 4px;
  width: 60px;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  background: var(--text-gradient);
}

/* Styling for main content sections (About, Skills, Projects, Testimonials, Contact, etc.) */
section {
  padding: 4rem 1rem; /* Adds 64px top/bottom padding, 16px left/right. Adjust as needed. */
  background-color: var(--color-bg-dark-secondary); /* Sets a consistent dark background for these sections. */
  /* Note: Text color for content like paragraphs within these sections
     should be inherited from the 'body' style (var(--color-text-light-primary)),
     ensuring it's light and visible against this dark background.
     Section titles are already styled to be light. */
}

/* Button Styles */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--text-gradient);
  color: white;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-dark-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent-hover);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-bg-dark-tertiary);
  color: var(--color-text-light-primary);
  font-weight: 600;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: var(--shadow-dark-sm);
}

.btn-secondary:hover {
  background-color: var(--color-border-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark-lg);
}

.btn-outline {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--color-primary-gradient-start);
  font-weight: 600;
  border: 2px solid var(--color-primary-gradient-start);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-outline:hover {
  background: var(--text-gradient);
  color: var(--color-text-light-primary) !important;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Navigation Styles */
.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--color-text-light-secondary);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--color-text-light-primary) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;  
  background-color: var(--color-primary-gradient-start);
  transition: width 0.3s ease;
}

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

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text-light-secondary);
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--color-text-light-primary) !important;
}

/* Hero Section Styles */
.hero-image-container {
  position: relative;
  z-index: 10;
}

/* Skills Section Styles */
.skill-progress {
  transition: width 1.5s ease-in-out;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-dark-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-dark-md);
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark-lg);
}

/* Project Section Styles */
.project-card {
  background-color: var(--color-bg-dark-secondary);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-dark-md);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark-xl);
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
  opacity: 1;
}

.project-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(45deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  color: white; /* Assuming icon inside should be white */
  border-radius: 50%;
  transition: all 0.3s ease;
}

.project-btn:hover {
  background: linear-gradient(45deg, var(--color-primary-gradient-end), var(--color-primary-gradient-start));
  transform: scale(1.1);
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(var(--color-primary-gradient-start-rgb), 0.2);
  color: var(--color-primary-gradient-start);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}


/* Testimonial Section Styles */
.testimonial-slider {
  overflow: hidden;
}

.testimonial-track {
  width: 100%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(45deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  color: var(--color-text-light-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(var(--color-primary-gradient-start-rgb), 0.3);
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--color-bg-dark-secondary);
  color: var(--color-text-light-primary);
  border: 1px solid var(--color-border-dark);
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: var(--color-text-light-secondary);
  opacity: 0.7;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary-gradient-start);
  box-shadow: 0 0 0 3px rgba(var(--color-secondary-gradient-start-rgb), 0.25);
}

/* === Dark Theme Content Adjustments === */

/* General text color overrides for content within sections */
section p,
section li,
section .text-gray-600,
section .text-gray-700 {
  color: var(--color-text-light-secondary) !important; /* Override Tailwind's dark grays */
}

section h3,
section h4 {
  color: var(--color-text-light-primary) !important; /* Ensure headings are light */
}

/* Specific heading color overrides if they used Tailwind theme colors */
section h3[class*="text-purple-"], section h3[class*="text-pink-"],
section h4[class*="text-purple-"], section h4[class*="text-pink-"],
section h4[class*="text-purple-700"] /* For skill card titles */
{
  color: var(--color-text-light-primary) !important;
}

/* Hero section paragraph */
#home p.text-gray-700 {
  color: var(--color-text-light-secondary) !important;
}

/* Ensure Hero Section (#home) is transparent to show animated background */
#home {
  background-color: transparent !important;
}

/* About Section - Service Cards (were light gradient) */
#about .bg-gradient-to-br[class*="from-purple-50"] {
  background: var(--color-bg-dark-tertiary);
  box-shadow: var(--shadow-dark-md);
}
#about .bg-gradient-to-br[class*="from-purple-50"] .text-pink-500 { /* Icon color */
  color: var(--color-primary-gradient-end) !important;
}

/* Skills Section - Progress Bar Background (was bg-gray-200) */
#skills .bg-gray-200 {
  background-color: var(--color-bg-dark-tertiary) !important;
}
/* Skill names and percentages */
#skills .flex.justify-between span {
  color: var(--color-text-light-primary);
}

.skill-card .text-pink-500 { /* Icon color */
  color: var(--color-primary-gradient-end) !important;
}

/* Project Section - Card Content Text */
.project-card h3[class*="text-purple-"] {
  color: var(--color-primary-gradient-start) !important;
}
.project-card h3[class*="text-pink-"] {
  color: var(--color-primary-gradient-end) !important;
}
/* .project-card p is covered by general 'section p' */

/* Testimonials Section - Individual Testimonial Cards (were bg-white) */
#testimonials .testimonial-slide > div[class*="bg-white"] {
  background-color: var(--color-bg-dark-tertiary) !important;
  box-shadow: var(--shadow-dark-md);
}
#testimonials .testimonial-slide > div[class*="bg-white"] .text-yellow-400 {
  color: #facc15 !important; /* Keep star color */
}

/* Testimonials Section - Slider Controls (arrows were bg-white, text-purple-600) */
.testimonial-prev,
.testimonial-next {
  background-color: var(--color-bg-dark-tertiary) !important;
  box-shadow: var(--shadow-dark-sm);
}
.testimonial-prev svg,
.testimonial-next svg {
  color: var(--color-text-light-primary) !important;
}

/* Testimonials Section - Slider Dots (were bg-gray-300 or bg-purple-600) */
.testimonial-dots button[class*="bg-gray-300"] {
  background-color: var(--color-bg-dark-tertiary) !important;
}
.testimonial-dots button[class*="bg-purple-600"] {
  background-color: var(--color-primary-gradient-start) !important;
}

/* Contact Section - Info Box and Form Background (were light gradient) */
#contact div[class*="bg-gradient-to-br"][class*="from-purple-50"], /* Info box */
#contact form[class*="bg-gradient-to-br"][class*="from-purple-50"] /* Form */
{
  background: var(--color-bg-dark-secondary) !important;
  box-shadow: var(--shadow-dark-md);
}
/* Text within these contact boxes/form */
#contact div[class*="bg-gradient-to-br"] .text-pink-500, /* Icons in contact info */
#contact form[class*="bg-gradient-to-br"] .text-pink-500  /* Just in case */
{
  color: var(--color-primary-gradient-end) !important;
}
/* Form labels (text-gray-700) */
section form label {
    color: var(--color-text-light-primary) !important;
}
/* .form-input is already styled for dark theme. */
