/* ============================================
   PREMIUM PORTFOLIO DESIGN SYSTEM
   Inspired by Apple, Notion, and Linear
   Modern, Elegant, Sophisticated
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  /* Orange Color Palette */
  --primary-orange: hsl(32 93% 54%);
  --orange-light: hsl(32 93% 64%);
  --orange-dark: hsl(32 93% 48%);
  --orange-darker: hsl(32 93% 44%);
  --orange-rgb: 245, 158, 11;
  --orange-hex: #F59E0B;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Typography Scale */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
  
  /* Animation Timing */
  --duration-fast: 0.15s;
  --duration-base: 0.3s;
  --duration-slow: 0.6s;
  --duration-slower: 1s;
  
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-apple: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  
  /* Blur Effects */
  --blur-sm: blur(4px);
  --blur-md: blur(8px);
  --blur-lg: blur(16px);
  --blur-xl: blur(24px);
}

/* === BASE RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.011em;
}


/* === LOADING SCREEN === */
#loading-screen {
  transition: opacity var(--duration-slow) var(--ease-smooth), 
              visibility var(--duration-slow) var(--ease-smooth);
  backdrop-filter: var(--blur-xl);
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader {
  width: 64px;
  height: 64px;
  border: 3px solid hsl(32 20% 90%);
  border-top: 3px solid hsl(32 93% 54%);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  margin: 0 auto;
  box-shadow: 0 0 20px hsl(32 93% 54% / 0.3);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 8s linear infinite;
}

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
.animate-fadeIn {
  animation: fadeIn 1s ease-out forwards;
}

/* === SCROLL PROGRESS === */
#scroll-progress {
  height: 4px;
  background: linear-gradient(90deg, hsl(32 93% 54%), hsl(32 93% 64%));
  box-shadow: 0 2px 10px hsl(32 93% 54% / 0.6);
}

/* === HERO TEXT === */
.hero-text {
  font-size: clamp(3rem, 12vw, 11rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-feature-settings: 'ss01', 'ss02';
}

/* Hero Animations - Staggered Entrance */
.hero-line-1 {
  opacity: 0;
  animation: heroSlideIn 1s var(--ease-apple) 0.2s forwards;
}

.hero-line-2 {
  opacity: 0;
  animation: heroSlideIn 1s var(--ease-apple) 0.4s forwards;
}

.hero-line-3 {
  opacity: 0;
  animation: heroSlideIn 1s var(--ease-apple) 0.6s forwards;
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* === TEXT OUTLINE - ELEGANT STROKE === */
.text-outline {
  color: transparent;
  -webkit-text-stroke: 2.5px hsl(0 0% 13%);
  text-stroke: 2.5px hsl(0 0% 13%);
  transition: all var(--duration-base) var(--ease-smooth);
  paint-order: stroke fill;
}

.text-outline:hover {
  -webkit-text-stroke: 2.5px hsl(32 93% 54%);
  text-stroke: 2.5px hsl(32 93% 54%);
  filter: drop-shadow(0 0 20px hsl(32 93% 54% / 0.4));
}

/* === TYPING EFFECT === */
.typing-cursor {
  display: inline-block;
  color: hsl(32 93% 54%);
  animation: blink 1s step-end infinite;
  margin-left: 3px;
  font-weight: 300;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* === DIAMOND SHAPES - SOPHISTICATED PULSE === */
@keyframes diamondFloat {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.08);
    opacity: 0.85;
  }
}

.animate-diamond-pulse {
  animation: diamondFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 40px hsl(32 93% 54% / 0.3));
}

.animate-diamond-pulse-delayed {
  animation: diamondFloat 6s ease-in-out infinite;
  animation-delay: 0.8s;
  filter: drop-shadow(0 8px 30px hsl(32 93% 54% / 0.25));
}

.animate-diamond-pulse-delayed-2 {
  animation: diamondFloat 6s ease-in-out infinite;
  animation-delay: 1.6s;
  filter: drop-shadow(0 6px 20px hsl(32 93% 54% / 0.2));
}

/* === FLOATING ANIMATION === */
@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-25px) scale(1.02);
  }
}

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

/* === BLOB ANIMATION === */
@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(40px, -60px) scale(1.15) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9) rotate(240deg);
  }
}

.animate-blob {
  animation: blob 12s ease-in-out infinite;
  filter: blur(40px);
}

/* === HEADER - GLASSMORPHISM === */
#header {
  transition: all var(--duration-base) var(--ease-smooth);
}

.header-scrolled {
  background: rgba(249, 246, 241, 0.8);
  backdrop-filter: var(--blur-lg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05),
              0 10px 40px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
}

/* === CTA BUTTONS - PREMIUM STYLE === */
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-apple);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translate(-50%, -50%);
  transition: width var(--duration-slow), height var(--duration-slow);
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.cta-button:hover::before {
  width: 400px;
  height: 400px;
}

.cta-button:active {
  transform: translateY(0) scale(0.98);
}

/* === REVEAL ANIMATIONS === */
.reveal-element {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity var(--duration-slower) var(--ease-apple),
              transform var(--duration-slower) var(--ease-apple);
  will-change: opacity, transform;
}

.reveal-element.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === SKILL BARS - SMOOTH GRADIENT === */
.skill-bar {
  width: 0;
  transition: width 2s var(--ease-apple);
  background: linear-gradient(90deg, 
    hsl(32 93% 54%), 
    hsl(32 93% 64%),
    hsl(32 93% 54%)
  );
  background-size: 200% 100%;
  animation: shimmerBar 3s ease-in-out infinite;
  box-shadow: 0 0 20px hsl(32 93% 54% / 0.3);
  position: relative;
}

.skill-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  filter: blur(4px);
}

@keyframes shimmerBar {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.skill-bar.animated {
  width: var(--progress);
}

/* === SKILL CARDS - PREMIUM ELEVATION === */
.skill-card {
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-apple);
  background: linear-gradient(135deg, 
    hsl(0 0% 100%), 
    hsl(32 20% 98%)
  );
  border: 1px solid hsl(32 20% 90%);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.08),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-smooth);
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(245, 158, 11, 0.2);
  border-color: hsl(32 93% 54% / 0.3);
}

.skill-card:hover::before {
  left: 100%;
}

/* Icon Container Hover */
.skill-card .icon-container {
  transition: all var(--duration-base) var(--ease-bounce);
}

.skill-card:hover .icon-container {
  transform: rotate(10deg) scale(1.1);
  background: linear-gradient(135deg, hsl(32 93% 54% / 0.15), hsl(32 93% 64% / 0.15));
}

/* === PROJECT CARDS - MODERN HOVER === */
.project-card {
  transition: all var(--duration-base) var(--ease-apple);
}

.project-card:hover {
  transform: scale(1.01);
}

.project-card img {
  transition: all var(--duration-slow) var(--ease-smooth);
  filter: brightness(0.95);
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

/* Project Number Badge */
.project-number {
  transition: all var(--duration-base) var(--ease-bounce);
}

.project-card:hover .project-number {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

/* === GLASSMORPHISM EFFECTS === */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
  background: rgba(34, 34, 34, 0.6);
  backdrop-filter: var(--blur-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === FORM INPUTS - REFINED === */
input, textarea {
  transition: all var(--duration-base) var(--ease-smooth);
  font-family: var(--font-sans);
  letter-spacing: -0.011em;
}

input:focus, textarea:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px hsl(32 93% 54% / 0.1),
              0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: hsl(32 93% 54%);
}

input::placeholder, textarea::placeholder {
  color: hsl(0 0% 60%);
  opacity: 1;
}

/* === BUTTONS - APPLE-STYLE === */
button, .btn {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--duration-base) var(--ease-apple);
  cursor: pointer;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
}

button:active, .btn:active {
  transform: translateY(0) scale(0.98);
}

/* === SCROLLBAR - MINIMAL === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(32 20% 95%);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(32 93% 54%), hsl(32 93% 64%));
  border-radius: 10px;
  transition: background var(--duration-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(32 93% 48%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: hsl(32 93% 54%) hsl(32 20% 95%);
}

/* === BACK TO TOP - FLOATING === */
#back-to-top {
  transition: all var(--duration-base) var(--ease-apple);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
  backdrop-filter: var(--blur-md);
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

#back-to-top:active {
  transform: translateY(-3px) scale(1.05);
}

/* === SUCCESS/ERROR MESSAGES === */
.success-message, .error-message {
  animation: messageSlide var(--duration-base) var(--ease-apple);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 500;
  letter-spacing: -0.011em;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === SELECTION === */
::selection {
  background: hsl(32 93% 54%);
  color: white;
  text-shadow: none;
}

::-moz-selection {
  background: hsl(32 93% 54%);
  color: white;
}

/* === PREMIUM SHADOWS === */
.shadow-premium {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05),
              0 10px 40px rgba(0, 0, 0, 0.08),
              0 20px 60px rgba(0, 0, 0, 0.05);
}

.shadow-glow {
  box-shadow: 0 0 20px hsl(32 93% 54% / 0.3),
              0 0 40px hsl(32 93% 54% / 0.2),
              0 0 60px hsl(32 93% 54% / 0.1);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: linear-gradient(135deg, 
    hsl(32 93% 54%), 
    hsl(32 93% 64%),
    hsl(32 93% 44%)
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === MOBILE MENU - SMOOTH === */
  #mobile-menu {
  transition: all var(--duration-base) var(--ease-apple);
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 600px;
}


/* === IMAGE TREATMENTS === */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

  .grayscale {
  filter: grayscale(100%) brightness(0.95);
  transition: filter var(--duration-slow) var(--ease-smooth);
}

.grayscale:hover {
  filter: grayscale(0%) brightness(1);
}

/* === LINK HOVER EFFECTS === */
a {
  transition: all var(--duration-fast) var(--ease-smooth);
  text-decoration: none;
}

a:hover {
  color: hsl(32 93% 54%);
}

/* === FOCUS STYLES === */
*:focus-visible {
  outline: 2px solid hsl(32 93% 54%);
  outline-offset: 4px;
  border-radius: 4px;
}

/* === PERFORMANCE OPTIMIZATIONS === */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Particles.js Performance Optimizations */
#particles-js {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Background Animation Performance */
.animate-float,
.animate-blob,
.animate-diamond-pulse {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Gradient Orbs Performance */
.bg-primary\/5 {
  will-change: transform;
  transform: translateZ(0);
}

/* === SCROLL BUTTON FIX === */
/* Keep scroll button stable - no parallax movement */
#scroll-btn {
  will-change: opacity;
}

#scroll-btn:hover {
  opacity: 1;
}

/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 1024px) {
  .hero-text {
    font-size: clamp(2.5rem, 10vw, 8rem);
  }
}

@media (max-width: 768px) {
  .hero-text {
    font-size: clamp(2rem, 8vw, 6rem);
  }
  
  .text-outline {
    -webkit-text-stroke: 2px hsl(0 0% 13%);
    text-stroke: 2px hsl(0 0% 13%);
  }
}

/* === MOBILE RESPONSIVE FIXES === */
@media (max-width: 640px) {
  /* About section mobile fixes */
  #about {
    padding: 2rem 0;
  }
  
  #about .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Ensure text doesn't overflow */
  #about .text-content {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  /* Fix stats section for mobile */
  #about .stats-container {
    gap: 1rem;
  }
  
  #about .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  #about .stat-number {
    font-size: 1.5rem;
    line-height: 1;
  }
  
  #about .stat-text {
    font-size: 0.875rem;
    line-height: 1.2;
  }
  
  /* Ensure proper text wrapping */
  #about p {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  /* Fix decorative elements positioning on mobile */
  #about .absolute {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Extra small mobile devices */
  #about .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  #about h2 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  #about p {
    font-size: 0.875rem;
    line-height: 1.4;
  }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Disable background animations for reduced motion */
  #particles-js {
    display: none !important;
  }
  
  .animate-float,
  .animate-blob,
  .animate-diamond-pulse,
  .animate-diamond-pulse-delayed,
  .animate-diamond-pulse-delayed-2 {
    animation: none !important;
  }
  
  /* Keep essential animations but make them subtle */
  .animate-pulse {
    animation: none !important;
  }
  
  .animate-spin-slow {
    animation: none !important;
  }
}

/* === DARK MODE SUPPORT (Optional) === */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}

/* === PRINT STYLES === */
@media print {
  #loading-screen,
  #scroll-progress,
  #back-to-top,
  .animate-float,
  .animate-blob,
  .animate-diamond-pulse,
  .animate-diamond-pulse-delayed,
  .animate-diamond-pulse-delayed-2 {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* === ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: hsl(32 93% 54%);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
  transition: top var(--duration-fast);
}

.skip-to-content:focus {
  top: 0;
}

/* === SMOOTH SCROLL SNAP (Optional) === */
.scroll-snap-y {
  scroll-snap-type: y proximity;
  scroll-padding-top: 80px;
}

.scroll-snap-section {
  scroll-snap-align: start;
}

/* === TECHNOLOGY CARDS - MODERN DESIGN === */
.tech-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, hsl(0 0% 100%), hsl(32 20% 98%));
  border: 2px solid hsl(32 20% 90%);
  border-radius: 1rem;
  transition: all var(--duration-base) var(--ease-apple);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.08),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-smooth);
}

.tech-card:hover {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, hsl(32 60% 98%), hsl(32 60% 96%));
  border-color: hsl(32 93% 54%);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.2),
              0 0 0 2px rgba(245, 158, 11, 0.3),
              0 0 60px rgba(245, 158, 11, 0.15);
}

.tech-card:hover::before {
  left: 100%;
}

/* Tech Icon Wrapper */
.tech-icon-wrapper {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  border-radius: 1rem;
  transition: all var(--duration-base) var(--ease-bounce);
  position: relative;
  overflow: hidden;
}

.tech-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.tech-card:hover .tech-icon-wrapper {
  transform: rotate(10deg) scale(1.15);
  background: linear-gradient(135deg, hsl(32 93% 54% / 0.3), hsl(32 93% 64% / 0.2));
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.tech-card:hover .tech-icon-wrapper::after {
  opacity: 1;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Tech Icon */
.tech-icon {
  width: 2rem;
  height: 2rem;
  color: hsl(32 93% 54%);
  transition: all var(--duration-base) var(--ease-smooth);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.tech-card:hover .tech-icon {
  color: hsl(32 93% 64%);
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.4));
}

/* Tech Name */
.tech-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(0 0% 20%);
  text-align: center;
  letter-spacing: -0.01em;
  transition: all var(--duration-base) var(--ease-smooth);
  position: relative;
  z-index: 1;
}

.tech-card:hover .tech-name {
  color: hsl(0 0% 13%);
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tech-card {
    padding: 1.5rem 1rem;
  }
  
  .tech-icon-wrapper {
    width: 3rem;
    height: 3rem;
  }
  
  .tech-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .tech-name {
    font-size: 0.875rem;
  }
}

/* Staggered Animation for Tech Cards */
.tech-card:nth-child(1) { animation-delay: 0s; }
.tech-card:nth-child(2) { animation-delay: 0.05s; }
.tech-card:nth-child(3) { animation-delay: 0.1s; }
.tech-card:nth-child(4) { animation-delay: 0.15s; }
.tech-card:nth-child(5) { animation-delay: 0.2s; }
.tech-card:nth-child(6) { animation-delay: 0.25s; }
.tech-card:nth-child(7) { animation-delay: 0.3s; }
.tech-card:nth-child(8) { animation-delay: 0.35s; }
.tech-card:nth-child(9) { animation-delay: 0.4s; }
.tech-card:nth-child(10) { animation-delay: 0.45s; }

/* Pulse animation for icon glow */
@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* === EDUCATION CARDS === */
.education-card {
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.05),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-smooth);
}

.education-card:hover::before {
  left: 100%;
}

.education-card:hover {
  transform: translateY(-4px);
}

/* Responsive Education Cards */
@media (max-width: 768px) {
  .education-card {
    padding: 1.5rem !important;
  }
  
  .education-card .flex {
    flex-direction: column;
  }
  
  .education-card h3 {
    font-size: 1.25rem;
  }
}

/* === EDUCATION CAROUSEL === */
.education-carousel-container {
  position: relative;
  width: 100%;
}

.education-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-slide {
  min-width: 100%;
  flex-shrink: 0;
}

/* Carousel navigation buttons */
#edu-prev,
#edu-next {
  opacity: 0.9;
  transition: opacity var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-smooth),
              background-color var(--duration-base) var(--ease-smooth);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#edu-prev:hover,
#edu-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1) !important;
}

#edu-prev:active,
#edu-next:active {
  transform: translateY(-50%) scale(0.95) !important;
}

#edu-prev svg,
#edu-next svg {
  pointer-events: none;
}

#edu-prev *,
#edu-next * {
  cursor: pointer;
}

/* Carousel indicators */
.edu-indicator {
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
}

.edu-indicator:hover {
  transform: scale(1.3);
}

.edu-indicator.bg-primary {
  width: 2rem;
}

/* Responsive carousel */
@media (max-width: 768px) {
  #edu-prev,
  #edu-next {
    width: 2.5rem;
    height: 2.5rem;
    transform: translateY(-50%) !important;
  }
  
  #edu-prev:hover,
  #edu-next:hover {
    transform: translateY(-50%) scale(1.05) !important;
  }
  
  #edu-prev {
    left: -0.5rem;
  }
  
  #edu-next {
    right: -0.5rem;
  }
  
  .education-slide {
    padding: 0 0.5rem;
  }
}

/* === MODERN TIMELINE STYLES === */
.timeline-item {
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 200px;
  display: flex;
  align-items: center;
}

.timeline-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.timeline-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.1),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card:hover::before {
  left: 100%;
}

.timeline-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(245, 158, 11, 0.15),
              0 0 0 1px rgba(245, 158, 11, 0.2);
}

.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-node::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover .timeline-node::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.5);
}

/* Timeline line animation */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, hsl(32 93% 54%), hsl(32 93% 64%));
  z-index: 1;
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(245, 158, 11, 0.5),
    transparent
  );
  animation: timelineFlow 3s ease-in-out infinite;
}

@keyframes timelineFlow {
  0%, 100% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% {
    transform: translateY(100%);
    opacity: 1;
  }
}

/* Staggered animation for timeline items */
.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

/* Ensure timeline items are visible */
.timeline-item {
  display: flex !important;
  visibility: visible !important;
  align-items: center;
}

/* Mobile timeline adjustments */
@media (max-width: 1024px) {
  .timeline-item {
    flex-direction: column !important;
    display: flex !important;
  }
  
  .timeline-card {
    margin: 0 1rem;
  }
  
  .timeline-node {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: 1rem auto;
  }
}

@media (max-width: 768px) {
  .timeline-card {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .timeline-card h3 {
    font-size: 1.5rem;
  }
  
  .timeline-card .w-16 {
    width: 3rem;
    height: 3rem;
  }
}

/* Timeline status badges */
.timeline-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-status.current {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1));
  color: hsl(32 93% 54%);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.timeline-status.completed {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  color: rgb(21, 128, 61);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.timeline-status.foundation {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
  color: rgb(30, 64, 175);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Enhanced hover effects */
.timeline-card:hover .timeline-card img {
  transform: scale(1.1) rotate(2deg);
}

.timeline-card img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline progress indicator */
.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(to bottom, hsl(32 93% 54%), hsl(32 93% 64%));
  transition: height 2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.timeline-progress.animate {
  height: 100%;
}

/* Timeline item entrance animation */
@keyframes timelineItemSlide {
  from {
    opacity: 0;
    transform: translateX(-100px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Force timeline items to be visible */
.timeline-item.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
  display: flex !important;
  visibility: visible !important;
  align-items: center;
}

/* Ensure proper spacing between timeline items */
.space-y-16 > * + * {
  margin-top: 4rem;
}

/* Timeline container */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

/* Timeline item content alignment */
.timeline-item .w-full {
  position: relative;
  z-index: 2;
}

/* Timeline node positioning fix */
.timeline-item .timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.timeline-item:nth-child(even) {
  animation: timelineItemSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.timeline-item:nth-child(odd) {
  animation: timelineItemSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-direction: reverse;
}

/* Timeline glow effect */
.timeline-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.1), transparent);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.timeline-item:hover .timeline-glow {
  opacity: 1;
}

/* === END OF PREMIUM STYLES === */

/* Thank you for using this design system 🚀 */
