/* ================================================
   AHMED DEVELOPER - 3D PORTFOLIO STYLESHEET
   Modern CSS with 3D animations and interactions
   ================================================ */

/* CSS Variables - Design System */
:root {
  /* Colors - Cyberpunk Theme */
  --primary: #00ffff;
  --primary-dark: #00cccc;
  --secondary: #ff00ff;
  --accent: #ffff00;
  --bg-dark: #0a0a0f;
  --bg-card: #1a1a2e;
  --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
  --text-light: #ffffff;
  --text-muted: #a0a0a0;
  --border-color: #333;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-hero: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,255,0.1));
  --gradient-card: linear-gradient(145deg, #1a1a2e, #16213e);
  
  /* Shadows */
  --shadow-neon: 0 0 20px rgba(0,255,255,0.5);
  --shadow-card: 0 10px 30px rgba(0,0,0,0.3);
  --shadow-3d: 0 20px 40px rgba(0,255,255,0.2);
  
  /* 3D Properties */
  --perspective: 1000px;
  --card-depth: 20px;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-3d: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,255,255,0.8);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* 3D Components */
.card-3d {
  position: relative;
  transform-style: preserve-3d;
  transition: var(--transition-3d);
  will-change: transform;
}

.card-3d:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(var(--card-depth));
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(30px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  color: var(--bg-dark);
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
}

.nav-menu {
  display: flex;
  gap: 10px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-gradient);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
  opacity: 0.1;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: 20%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 3D Cube */
.cube-container {
  perspective: var(--perspective);
  margin-bottom: 60px;
}

.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate-cube 15s linear infinite;
  margin: 0 auto;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(26, 26, 46, 0.8);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light);
  backdrop-filter: blur(10px);
  border-radius: 8px;
}

.cube-face.front { transform: translateZ(100px); }
.cube-face.back { transform: translateZ(-100px) rotateY(180deg); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate-cube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  25% { transform: rotateX(90deg) rotateY(90deg); }
  50% { transform: rotateX(180deg) rotateY(180deg); }
  75% { transform: rotateX(270deg) rotateY(270deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Hero Content */
.hero-content {
  margin-bottom: 60px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-description {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
  margin: 0 auto;
  margin-bottom: 40px;
  max-width: 600px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0;
}

.scroll-wheel {
  width: 3px;
  height: 10px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll-wheel 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(15px); }
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.section-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Skills Section */
.skills-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f1e 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  perspective: var(--perspective);
}

.skill-card {
  position: relative;
  height: 300px;
  cursor: pointer;
}

.card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: var(--transition-3d);
}

.skill-card:hover .card-3d {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card-front {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.card-back {
  background: var(--gradient-primary);
  transform: rotateY(180deg);
  color: var(--bg-dark);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.skill-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease-out;
}

.progress-text {
  font-weight: 600;
  color: var(--primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.tech-item {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Projects Section */
.projects-section {
  background: var(--bg-dark);
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-3d);
  position: relative;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
  box-shadow: var(--shadow-3d);
}

.project-image {
  padding: 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,255,255,0.1), rgba(255,0,255,0.1));
}

.project-image i {
  font-size: 4rem;
  color: var(--primary);
}

.project-content {
  padding: 25px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.project-header h3 {
  font-size: 1.3rem;
  color: var(--text-light);
}

.featured-badge {
  background: var(--gradient-primary);
  color: var(--bg-dark);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tech span {
  background: rgba(0, 255, 255, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.project-buttons {
  display: flex;
  gap: 10px;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f1e 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-3d);
  transform-style: preserve-3d;
}

.contact-card:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(10px);
  box-shadow: var(--shadow-3d);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-card h3 i {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-light);
  font-size: 16px;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-method:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(10px);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
  text-align: center;
}

.contact-method h4 {
  margin-bottom: 5px;
}

.contact-method span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stats-card {
  margin-top: 30px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 20px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.footer-right a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-3d);
  animation: modal-slide-in 0.3s ease-out;
}

@keyframes modal-slide-in {
  from { transform: scale(0.8) translateY(50px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 30px 0;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--text-light);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

/* Toast Notification */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  background: var(--gradient-primary);
  color: var(--bg-dark);
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(400px);
  transition: var(--transition-smooth);
  z-index: 3000;
  font-weight: 500;
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  font-size: 1.2rem;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-cube {
  perspective: var(--perspective);
  margin-bottom: 30px;
}

.loading-cube .cube {
  width: 80px;
  height: 80px;
  animation: loading-rotate 2s linear infinite;
}

.loading-cube .cube-face {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border: none;
  opacity: 0.8;
}

@keyframes loading-rotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

.loading-screen p {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
    justify-content: center;
  }
  
  .cube {
    width: 150px;
    height: 150px;
  }
  
  .cube-face {
    width: 150px;
    height: 150px;
    font-size: 14px;
  }
  
  .cube-face.front { transform: translateZ(75px); }
  .cube-face.back { transform: translateZ(-75px) rotateY(180deg); }
  .cube-face.right { transform: rotateY(90deg) translateZ(75px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(75px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(75px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(75px); }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .project-buttons {
    flex-direction: column;
  }
  
  /* Reduce 3D effects on mobile for better performance */
  .card-3d:hover {
    transform: scale(1.02) translateZ(5px);
  }
  
  .project-card:hover {
    transform: scale(1.02);
  }
  
  .contact-card:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 50px;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .contact-card {
    padding: 25px;
  }
  
  .modal-content {
    margin: 10px;
  }
  
  .modal-header,
  .modal-body {
    padding: 20px;
  }
}

/* Performance Optimizations */
.card-3d,
.project-card,
.skill-card .card-3d,
.cube {
  will-change: transform;
  backface-visibility: hidden;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Animation classes for JavaScript */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Utility classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }