/* Additional styles for the portfolio */

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* Hover effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

/* Portfolio filter active state */
.filter-btn.active {
  background-color: var(--primary-color, #2563eb);
  color: white;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-color, #f9fafb);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color, #2563eb);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color, #8b5cf6);
}

/* Custom Cursor Styles */
body { /* Hide the default cursor */
}

/* Container for all cursor elements */
.cursor-container {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none; /* Ensure the cursor doesn't interfere with clicks */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.1s ease-out;
  will-change: transform; /* Optimize for animations */
}

/* Small center dot */
.cursor-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Middle circle */
.cursor-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--primary-color);
  background-color: rgba(96, 165, 250, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: pulse 2s infinite;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

/* Outer circle */
.cursor-circle-outer {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border: 1px solid var(--primary-color);
  background-color: rgba(96, 165, 250, 0.05);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: pulse-reverse 3s infinite;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

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

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

/* Hover states for different elements */
.cursor-dot.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: var(--secondary-color);
}

.cursor-circle.hover {
  width: 40px;
  height: 40px;
  border-color: var(--secondary-color);
  background-color: rgba(167, 139, 250, 0.1);
}

.cursor-circle-outer.hover {
  width: 70px;
  height: 70px;
  border-color: var(--secondary-color);
  background-color: rgba(167, 139, 250, 0.05);
}

/* Special hover effects for hero section elements */
.cursor-dot.hero-hover {
  transform: translate(-50%, -50%) scale(2);
  background-color: var(--primary-color);
  opacity: 0.8;
}

.cursor-circle.hero-hover {
  width: 50px;
  height: 50px;
  border-color: var(--primary-color);
  background-color: rgba(96, 165, 250, 0.15);
  transform: translate(-50%, -50%) scale(1.1);
}

.cursor-circle-outer.hero-hover {
  width: 80px;
  height: 80px;
  border-color: var(--primary-color);
  background-color: rgba(96, 165, 250, 0.05);
  transform: translate(-50%, -50%) scale(1.2);
}

/* Modern card styles */
.card-modern {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card, 0 0 25px rgba(0, 0, 0, 0.04));
  transition: all 0.3s ease;
}

.card-modern:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Modern Floating Grid Skills Showcase */
.skill-card {
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Glow effects for skill cards */
.shadow-glow-primary {
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.3), 0 0 15px rgba(96, 165, 250, 0.2);
}

.shadow-glow-secondary {
  box-shadow: 0 0 25px rgba(167, 139, 250, 0.3), 0 0 15px rgba(167, 139, 250, 0.2);
}

.shadow-glow-accent {
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.3), 0 0 15px rgba(251, 191, 36, 0.2);
}

.shadow-glow-tertiary {
  box-shadow: 0 0 25px rgba(52, 211, 153, 0.3), 0 0 15px rgba(52, 211, 153, 0.2);
}

/* Grid layout animations */
.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid-rows-12 {
  grid-template-rows: repeat(12, minmax(0, 1fr));
}

/* Floating animation for badge */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Slow pulse animations for background elements */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@keyframes pulse-slow-reverse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1.1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 8s ease-in-out infinite;
}

.animate-pulse-slow-reverse {
  animation: pulse-slow-reverse 8s ease-in-out infinite;
}

/* Subtle parallax effect on hover */
.skill-card:hover .skill-icon-container {
  transform: translateZ(20px);
}

.skill-card:hover h3 {
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Blur utilities */
.blur-3xl {
  --tw-blur: blur(64px);
  filter: var(--tw-blur);
}

.blur-xl {
  --tw-blur: blur(24px);
  filter: var(--tw-blur);
}

.blur-md {
  --tw-blur: blur(12px);
  filter: var(--tw-blur);
}

/* Enhanced Button Hover Effects */
.btn-primary {
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Button gradient animation utilities */
.bg-size-200 {
  background-size: 200% 100%;
}

.bg-pos-0 {
  background-position: 0% 0%;
}

.bg-pos-100 {
  background-position: 100% 0%;
}

/* Animated particles for buttons */
.particle-1 {
  top: 20%;
  left: 10%;
  animation: float-particle 3s infinite ease-in-out;
}

.particle-2 {
  bottom: 20%;
  right: 10%;
  animation: float-particle 4s infinite ease-in-out;
}

.particle-3 {
  top: 50%;
  right: 20%;
  animation: float-particle 5s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(5px, -5px);
  }
}

/* Portfolio item hover effects */
.portfolio-item {
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

/* Theme variables */
:root {
  /* Dark theme by default */
  --primary-color: #60a5fa; /* Brighter blue for dark mode */
  --secondary-color: #a78bfa; /* Vibrant purple */
  --accent-color: #fbbf24; /* Vibrant amber */
  --tertiary-color: #34d399; /* Teal accent for variety */
  --text-color: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --bg-color: #0f172a; /* Deep blue-black */
  --bg-secondary: #1e293b; /* Slightly lighter blue-black */
  --card-bg: #1e293b;
  --card-bg-hover: #2d3748;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.4), 0 10px 20px -2px rgba(0, 0, 0, 0.2);
  --shadow-card: 0 0 25px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 4px 6px -1px rgba(96, 165, 250, 0.2), 0 2px 4px -1px rgba(96, 165, 250, 0.15);
  --shadow-glow: 0 0 15px rgba(96, 165, 250, 0.3);
  --gradient-primary: linear-gradient(90deg, #60a5fa, #a78bfa);
  --gradient-secondary: linear-gradient(90deg, #a78bfa, #fbbf24);
  --gradient-accent: linear-gradient(90deg, #fbbf24, #34d399);
}

[data-theme="light"] {
  --primary-color: #2563eb;
  --secondary-color: #8b5cf6;
  --accent-color: #f59e0b;
  --tertiary-color: #10b981;
  --text-color: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --bg-color: #f9fafb;
  --bg-secondary: #f3f4f6;
  --card-bg: #ffffff;
  --card-bg-hover: #f9fafb;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 0 25px rgba(0, 0, 0, 0.04);
  --shadow-button: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -1px rgba(37, 99, 235, 0.06);
  --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.15);
  --gradient-primary: linear-gradient(90deg, #2563eb, #8b5cf6);
  --gradient-secondary: linear-gradient(90deg, #8b5cf6, #f59e0b);
  --gradient-accent: linear-gradient(90deg, #f59e0b, #10b981);
}

/* Comprehensive Responsive Styles */

/* Ensure hero badge is always visible */
.hero-badge {
  position: relative;
  z-index: 30;
  background-color: rgba(30, 30, 60, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pulse animation for the badge dot */
.pulse-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(96, 165, 250, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

/* Extra small devices - Smartwatches (< 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-badge-mobile {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-buttons {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
  }

  .social-links span {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .social-icon div {
    width: 2rem;
    height: 2rem;
  }

  .skill-icons-container {
    height: 10rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
  }

  .skill-icon div {
    width: 2.5rem;
    height: 2.5rem;
  }

  .skill-icon i {
    font-size: 1rem;
  }

  .skill-icon span {
    font-size: 0.7rem;
  }

  header {
    padding: 0.5rem 0;
  }

  header a.text-2xl {
    font-size: 1.25rem;
  }

  #mobile-menu-button {
    padding: 0.25rem;
  }

  #mobile-menu {
    top: 3.5rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Small devices - Mobile phones (320px - 639px) */
@media (min-width: 321px) and (max-width: 639px) {
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-badge {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .hero-badge-mobile {
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .social-links {
    margin-top: 1rem;
  }

  .skill-icons-container {
    height: 10rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
  }

  .skill-icon div {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Medium devices - Tablets (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .hero-title {
    font-size: 2.75rem;
  }

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

  .hero-buttons {
    justify-content: center;
    margin-bottom: 2.5rem;
  }

  .skill-icons-container {
    height: 10rem;
  }

  .skill-icon div {
    width: 4rem;
    height: 4rem;
  }
}

/* Standard responsive styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-title {
    font-size: 3rem;
  }

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

  .skill-showcase {
    margin-top: 2rem;
  }

  .skill-card h3 {
    font-size: 1.1rem;
  }

  .skill-card p {
    font-size: 0.75rem;
  }
}

/* Mobile skill icons grid */
@media (max-width: 768px) {
  .skill-icons-container {
    position: relative;
    margin-top: 1.5rem;
  }

  /* Mobile hero badge styling */
  .hero-badge-mobile {
    position: relative;
    z-index: 30;
    background-color: rgba(30, 30, 60, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Large devices - Desktops (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container {
    max-width: 960px;
  }

  .skill-card .skill-icon-container div {
    width: 3rem;
    height: 3rem;
  }
}

/* Extra large devices - Large desktops (1280px and up) */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }

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

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

  .skill-showcase {
    transform: scale(1.05);
  }
}
