/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --primary-bg: #0a0a0a;
  --secondary-bg: #111111;
  --accent-bg: #1a1a1a;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  --primary-text: #ffffff;
  --secondary-text: #b3b3b3;
  --accent-text: #666666;
  
  --primary-cyan: #00f5ff;
  --primary-purple: #8b5cf6;
  --primary-pink: #ec4899;
  --neon-green: #39ff14;
  
  --gradient-primary: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  --gradient-secondary: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
  --gradient-tertiary: linear-gradient(135deg, var(--primary-cyan), var(--neon-green));
  
  /* Typography */
  --font-primary: 'Orbitron', monospace;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-padding: 0 2rem;
  --border-radius: 16px;
  --border-radius-lg: 24px;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index layers */
  --z-background: -1;
  --z-content: 1;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-cursor: 9999;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  background: var(--primary-bg);
  color: var(--primary-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  cursor: none; /* Hide default cursor */
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: var(--z-background);
}

/* ===== CUSTOM CURSOR ===== */
.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translateZ(0);
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary-cyan), 0 0 20px var(--primary-cyan);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-cyan);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.3s ease-out, opacity 0.2s ease-out;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
  backdrop-filter: blur(5px);
  opacity: 0.5;
}

.custom-cursor.hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--primary-purple);
  box-shadow: 0 0 15px var(--primary-purple), 0 0 30px var(--primary-purple);
}

.custom-cursor.hover .cursor-outline {
  transform: translate(-50%, -50%) scale(1.5);
  border-color: var(--primary-purple);
  opacity: 0.8;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.7);
}

.custom-cursor.click .cursor-dot {
  transform: translate(-50%, -50%) scale(0.8);
  background: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green), 0 0 40px var(--neon-green);
}

.custom-cursor.click .cursor-outline {
  transform: translate(-50%, -50%) scale(1.2);
  border-color: var(--neon-green);
  opacity: 1;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.8);
}

/* ===== 3D INTERACTION EFFECTS ===== */
.section {
  position: relative;
  z-index: var(--z-content);
}

/* Enhanced hover effects for interactive elements */
.skill-item, .project-card, .cta-button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover, .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  margin-bottom: 2rem;
}

.loading-cube {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: 8px;
  animation: loadingCube 2s infinite ease-in-out;
}

@keyframes loadingCube {
  0%, 100% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(120px) rotateX(-180deg) rotateY(180deg); }
}

.loading-text h2 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 1rem auto;
}

.loading-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 2px;
}

.loading-percentage {
  font-size: 0.9rem;
  color: var(--secondary-text);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  padding: 0.5rem 2rem;
}

.nav-brand {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 900;
}

.brand-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-text);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger .bar {
  width: 25px;
  height: 3px;
  background: var(--primary-text);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

/* ===== THREE.JS CONTAINER ===== */
.three-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: var(--z-background);
  pointer-events: none;
}

.three-container canvas {
  display: block;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  position: relative;
  z-index: var(--z-content);
}

.section {
  min-height: 100vh;
  padding: var(--section-padding);
  display: flex;
  align-items: center;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
  width: 100%;
}

/* ===== GLASS MORPHISM ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding-top: 120px;
    flex-direction: column;
    text-align: center;
    gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1rem;
}

.title-line {
  display: block;
  position: relative;
  overflow: hidden;
}

.title-line:first-child {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-line:last-child {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--secondary-text);
  margin-bottom: 1rem;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--accent-text);
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-button {
  position: relative;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  z-index: 1;
}

.cta-button.primary {
  background: var(--gradient-primary);
  color: var(--primary-bg);
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-text);
  border: 2px solid var(--glass-border);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.button-glow {
  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;
}

.cta-button:hover .button-glow {
  left: 100%;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-tertiary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--secondary-text);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
  animation: scrollPulse 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--primary-cyan);
  border-bottom: 2px solid var(--primary-cyan);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes scrollBounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(5px); }
  60% { transform: rotate(45deg) translateY(3px); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-text);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
  display: grid;
  gap: 3rem;
}

.about-card {
  max-width: 800px;
  margin: 0 auto;
}

.about-card h3 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-cyan);
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--secondary-text);
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.highlight-item {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.highlight-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.highlight-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.highlight-item h4 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-text);
}

.highlight-item p {
  color: var(--secondary-text);
  font-size: 0.95rem;
}

/* ===== SKILLS SECTION ===== */
.skills-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.skill-category h3 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--primary-purple);
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.skill-item:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-bg);
  flex-shrink: 0;
}

.skill-item span {
  font-weight: 600;
  flex: 1;
}

.skill-level {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-level::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 0%;
  transition: width 1s ease;
}

.skill-item.animate .skill-level::after {
  width: var(--skill-width, 0%);
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass-bg);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.project-image {
  height: 200px;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.project-placeholder {
  transition: transform var(--transition-normal);
}

.project-card:hover .project-placeholder {
  transform: scale(1.1);
}

.project-content {
  padding: 2rem;
}

.project-title {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-text);
}

.project-description {
  color: var(--secondary-text);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 245, 255, 0.1);
  color: var(--primary-cyan);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(0, 245, 255, 0.2);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--primary-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  position: relative;
}

.project-link:hover {
  color: var(--primary-text);
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cyan);
  transition: width var(--transition-normal);
}

.project-link:hover::after {
  width: 100%;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-content-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-centered {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 600px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 500px;
}

.contact-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.2);
}

.contact-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-details h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-text);
}

.contact-details p,
.contact-details a {
  color: var(--secondary-text);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.contact-link {
  color: var(--primary-cyan);
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  display: inline-block;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--primary-text);
  transform: translateX(5px);
}

.contact-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-cyan);
  transition: width var(--transition-normal);
}

.contact-link:hover::after {
  width: 100%;
}

.contact-link.clicked {
  animation: linkClick 0.3s ease;
}

@keyframes linkClick {
  0% { transform: translateX(5px) scale(1); }
  50% { transform: translateX(5px) scale(1.05); }
  100% { transform: translateX(5px) scale(1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 245, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 245, 255, 0); }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--primary-text);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  color: var(--primary-text);
  font-family: var(--font-secondary);
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-cyan);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.submit-button {
  position: relative;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: var(--primary-bg);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary-bg);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer p {
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar {
    height: 80px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-description {
    padding: 0 1.5rem;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
  
  .skills-content {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* Hide custom cursor on mobile devices */
  .custom-cursor {
    display: none;
  }
  
  body {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }
  
  .hero-section {
    padding-top: 120px;
  }
  
  .hero-description {
    padding: 0 1rem;
  }
  
  .glass-card {
    padding: 1.5rem;
  }
  
  .skill-item {
    padding: 1rem;
  }
  
  .contact-item {
    padding: 1rem;
  }
  
  /* Hide custom cursor on mobile devices */
  .custom-cursor {
    display: none;
  }
  
  body {
    cursor: auto;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100%) translateZ(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* ===== SCROLL SNAP EFFECTS ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

.section {
  scroll-snap-align: start;
}

/* ===== ELASTIC SCROLL BOUNDARIES ===== */
@keyframes elasticOverscroll {
  0% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  50% { transform: translateY(5px); }
  75% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* ===== PARALLAX LAYERS ===== */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(0);
}

.parallax-layer-foreground {
  transform: translateZ(50px);
}

.parallax-layer-midground {
  transform: translateZ(25px);
}

.parallax-layer-background {
  transform: translateZ(-50px);
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.1s ease;
}

/* ===== SECTION TRANSITION EFFECTS ===== */
.section-transition {
  position: relative;
  overflow: hidden;
}

.section-transition::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}

.section.animate-in::before {
  left: 100%;
}

/* ===== 3D MORPHING EFFECTS ===== */
.morph-element {
  transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-style: preserve-3d;
}

.morph-element:hover {
  transform: scale(1.05) rotateY(10deg);
}

/* ===== MOBILE SCROLL ENHANCEMENTS ===== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }
  
  .section {
    scroll-snap-align: none;
  }
  
  /* Momentum scroll for mobile */
  .main-content {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Reduced animations for performance */
  .animate-in,
  .animate-left,
  .animate-right {
    animation-duration: 0.4s;
  }
}

/* ===== UTILITY CLASSES ===== */
.hidden {
  display: none !important;
}

.invisible {
  opacity: 0 !important;
  visibility: hidden !important;
}

.no-scroll {
  overflow: hidden;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== END OF FILE ===== */

