/* Spotlight Template - Custom CSS Styles */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --spotlight-gradient: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    --nav-blur: rgba(17, 24, 39, 0.8); /* gray-900/80 */
    --section-bg: rgba(31, 41, 55, 0.5); /* gray-800/50 */
  }
  
  /* ===== CUSTOM ANIMATIONS ===== */
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  @keyframes slideUp {
    0% { 
      transform: translateY(30px); 
      opacity: 0; 
    }
    100% { 
      transform: translateY(0); 
      opacity: 1; 
    }
  }
  
  @keyframes spotlight {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
  
  @keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  
  /* ===== ANIMATION UTILITY CLASSES ===== */
  .animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
  }
  
  .animate-slide-up {
    animation: slideUp 0.6s ease-out;
  }
  
  .animate-pulse-slow {
    animation: pulse-slow 3s infinite;
  }
  
  .animate-spotlight {
    animation: spotlight 8s infinite ease-in-out;
  }
  
  /* ===== SPOTLIGHT EFFECT ===== */
  .spotlight-effect {
    position: relative;
    overflow: hidden;
  }
  
  .spotlight-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--spotlight-gradient);
    animation: spotlight 6s infinite;
    z-index: 1;
    pointer-events: none;
  }
  
  /* ===== GLASS MORPHISM EFFECT ===== */
  .glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
  }
  
  /* ===== GRADIENT TEXT ===== */
  .gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support background-clip: text */
  }
  
  /* ===== SMOOTH SCROLLING ===== */
  html {
    scroll-behavior: smooth;
  }
  
  /* ===== BODY STYLES ===== */
  body {
    background-color: #111827; /* gray-900 */
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
  }
  
  /* ===== NAVIGATION STYLES ===== */
  nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.3s ease;
  }
  
  nav.scrolled {
    background-color: rgba(17, 24, 39, 0.95);
  }
  
  .mobile-menu {
    transition: all 0.3s ease;
  }
  
  /* ===== HERO SECTION STYLES ===== */
  #home {
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, rgba(17, 24, 39, 1) 70%);
  }
  
  .hero-background-blur {
    filter: blur(60px);
    opacity: 0.7;
  }
  
  /* ===== BUTTON STYLES ===== */
  .btn-primary {
    background: linear-gradient(to right, #8b5cf6, #3b82f6);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  }
  
  .btn-primary:hover {
    background: linear-gradient(to right, #7c3aed, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
  }
  
  .btn-secondary {
    border: 2px solid #4b5563;
    transition: all 0.3s ease;
  }
  
  .btn-secondary:hover {
    background-color: #ffffff;
    color: #111827;
    transform: translateY(-2px);
  }
  
  /* ===== PROFILE IMAGE STYLES ===== */
  .profile-image {
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
  }
  
  .profile-image:hover {
    transform: scale(1.05);
  }
  
  /* ===== PROJECT CARDS ===== */
  .project-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
  }
  
  .project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  }
  
  .project-card img {
    transition: transform 0.3s ease;
  }
  
  .project-card:hover img {
    transform: scale(1.1);
  }
  
  /* ===== ARTICLE CARDS ===== */
  .article-card {
    transition: all 0.3s ease;
    border-radius: 12px;
  }
  
  .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  }
  
  /* ===== FORM STYLES ===== */
  .contact-form {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .form-input {
    background: rgba(55, 65, 81, 0.5);
    border: 1px solid #4b5563;
    transition: all 0.3s ease;
  }
  
  .form-input:focus {
    outline: none;
    ring: 2px;
    ring-color: #8b5cf6;
    border-color: transparent;
    background: rgba(55, 65, 81, 0.8);
  }
  
  .form-input::placeholder {
    color: #9ca3af;
  }
  
  /* ===== SKILL TAGS ===== */
  .skill-tag {
    background: rgba(55, 65, 81, 0.5);
    padding: 8px 16px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .skill-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    transform: translateY(-2px);
  }
  
  /* ===== TECH STACK BADGES ===== */
  .tech-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .tech-badge:hover {
    transform: scale(1.05);
  }
  
  .tech-badge-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
  }
  
  .tech-badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
  }
  
  .tech-badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
  }
  
  .tech-badge-yellow {
    background: rgba(234, 179, 8, 0.2);
    color: #fde047;
  }
  
  .tech-badge-orange {
    background: rgba(249, 115, 22, 0.2);
    color: #fed7aa;
  }
  
  .tech-badge-red {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
  }
  
  /* ===== SOCIAL LINKS ===== */
  .social-link {
    color: #9ca3af;
    transition: all 0.3s ease;
  }
  
  .social-link:hover {
    color: #8b5cf6;
    transform: translateY(-2px);
  }
  
  /* ===== STATISTICS CARDS ===== */
  .stat-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
  }
  
  .stat-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
  }
  
  /* ===== SECTION BACKGROUNDS ===== */
  .section-bg-primary {
    background-color: #111827;
  }
  
  .section-bg-secondary {
    background-color: var(--section-bg);
  }
  
  /* ===== FOOTER STYLES ===== */
  footer {
    background: var(--section-bg);
    border-top: 1px solid #374151;
  }
  
  /* ===== RESPONSIVE DESIGN ===== */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 3rem;
    }
    
    .section-title {
      font-size: 2.5rem;
    }
    
    .mobile-menu {
      background-color: #1f2937;
      border-radius: 0 0 12px 12px;
    }
    
    .hero-buttons {
      flex-direction: column;
      gap: 16px;
    }
    
    .hero-buttons .btn {
      width: 100%;
      justify-content: center;
    }
  }
  
  @media (max-width: 640px) {
    .hero-title {
      font-size: 2.5rem;
    }
    
    .section-title {
      font-size: 2rem;
    }
    
    .project-grid {
      grid-template-columns: 1fr;
    }
    
    .skill-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* ===== ACCESSIBILITY IMPROVEMENTS ===== */
  @media (prefers-reduced-motion: reduce) {
    .spotlight-effect::before,
    .animate-spotlight,
    .animate-pulse-slow {
      animation: none;
    }
    
    .animate-slide-up,
    .animate-fade-in {
      animation: none;
      opacity: 1;
      transform: none;
    }
  }
  
  /* Focus styles for better accessibility */
  button:focus,
  input:focus,
  textarea:focus,
  a:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
  }
  
  /* ===== CUSTOM SCROLLBAR ===== */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #1f2937;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
  }
  
  /* ===== SELECTION STYLES ===== */
  ::selection {
    background-color: rgba(139, 92, 246, 0.3);
    color: #ffffff;
  }
  
  ::-moz-selection {
    background-color: rgba(139, 92, 246, 0.3);
    color: #ffffff;
  }