@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary-color: #00f3ff;
  --secondary-color: #bc13fe;
  --bg-dark: #0a0a0a;
  --bg-card-dark: #121212;
  --text-main: #e0e0e0;
  --text-muted: #a0a0a0;

  /* Light Mode Variables */
  --bg-light: #f0f2f5;
  --bg-card-light: #ffffff;
  --text-main-light: #1a1a1a;
  --text-muted-light: #4a4a4a;
}

/* Animation Utilities */
.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Base Styles */
body {
  font-family: "Outfit", sans-serif;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
}

/* Neon Effects */
.neon-text {
  text-shadow:
    0 0 10px rgba(0, 243, 255, 0.7),
    0 0 20px rgba(0, 243, 255, 0.5),
    0 0 30px rgba(0, 243, 255, 0.3);
}

.neon-border {
  box-shadow:
    0 0 10px rgba(0, 243, 255, 0.5),
    inset 0 0 5px rgba(0, 243, 255, 0.1);
  border: 1px solid rgba(0, 243, 255, 0.3);
}

.neon-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.neon-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: -1;
  transition: width 0.3s ease;
}

.neon-btn:hover::before {
  width: 100%;
}

.neon-btn:hover {
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
  transform: translateY(-2px);
  border-color: transparent;
}

/* Glassmorphism */
    .glass-card {
      background: rgba(255, 255, 255, 0.03);
      -webkit-backdrop-filter: blur(10px);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.05);
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Light Mode Overrides */
body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-main-light);
    
    /* Adjust primary/secondary for better contrast on light mode */
    --primary-color: #0099a1;
    --secondary-color: #9d00d6;
}

body.light-mode .glass-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .section-title {
  color: var(--text-main-light);
}

body.light-mode .text-gray-400 {
    color: var(--text-muted-light);
}

body.light-mode .text-gray-300 {
    color: #666666;
}

body.light-mode .text-gray-500 {
    color: #888888;
}

/* Light Mode Overrides for Tailwind Classes */
body.light-mode .text-white {
    color: #1a1a1a !important;
}

body.light-mode .neon-text {
  text-shadow: none !important;
}

body.light-mode #typed-text {
  color: var(--primary-color) !important;
  font-weight: 700;
}

body.light-mode .neon-btn {
  color: var(--text-main-light);
}

body.light-mode .neon-btn:hover {
  color: white !important;
}

/* Light Mode Inputs */
body.light-mode input,
body.light-mode textarea {
    background-color: rgba(255, 255, 255, 0.8) !important;
    color: #1a1a1a !important;
    border-color: #d1d5db !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(0, 153, 161, 0.2) !important;
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
  animation: pulse 10s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.2;
  }
}

/* Project Card Styles */
.project-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(0, 243, 255, 0.2);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px -10px rgba(0, 243, 255, 0.4);
  border-color: var(--primary-color);
}

/* Light Mode Overrides for Project Card */
body.light-mode .project-card {
  border: 2px solid rgba(0, 153, 161, 0.2);
}

body.light-mode .project-card:hover {
  box-shadow: 0 10px 30px -10px rgba(0, 153, 161, 0.4);
  border-color: var(--primary-color);
}

.project-image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-image-container::after {
  opacity: 1;
}



/* Contact Input Focus */
.input-focus-effect:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

/* Carousel Styles */

/* Base Styles for Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    /* Remove overflow hidden from container to allow arrows to extend if needed */
    overflow: hidden; 
}

/* Ensure images cover the area */
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.carousel-item.active {
    opacity: 1;
    z-index: 10;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0; /* Hidden by default */
}

.carousel-container:hover .carousel-btn {
    opacity: 1; /* Show on hover */
}

.carousel-btn:hover {
    background: rgba(0, 243, 255, 0.8); /* Primary color */
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Lightbox Modal Helper */
#image-modal.modal-active {
    opacity: 1;
    pointer-events: auto;
}

#image-modal.modal-active #modal-img {
    transform: scale(1);
}
