* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f8f6f0; /* Warm beige background */
  color: #2d2d2d; /* Dark text for readability */
  overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #ede9e0; /* Slightly darker beige */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #667eea, #764ba2); /* Keep the purple gradient */
  border-radius: 4px;
}

/* NAVIGATION */
.slide-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(248, 246, 240, 0.95); /* Beige with transparency */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  z-index: 1000;
  border-bottom: 1px solid rgba(45, 45, 45, 0.1); /* Dark border */
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.slide-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.slide-nav ul li a {
  color: #4a4a4a;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.slide-nav ul li a:hover {
  color: #667eea;
}

.slide-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.slide-nav ul li a:hover::after {
  width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* CONTAINER */
.slide-container {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  height: 100vh;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(135deg, #f8f6f0 0%, #f0ede5 50%, #e8e3d8 100%); /* Beige gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(52, 152, 219, 0.03) 0%, transparent 50%);
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}


.hero {
  background: linear-gradient(135deg, #f8f6f0 0%, #f0ede5 50%, #e8e3d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 6rem 0 4rem 0; /* Remove left/right padding */
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Change to flex-start */
  width: 100%;
  max-width: 1200px;
  gap: 4rem;
  z-index: 1;
  position: relative;
  padding: 0 2rem; /* Only add horizontal padding here */
  margin: 0; /* Remove any margin */
}

.hero-text {
  flex: 1;
  animation: slideInLeft 1s ease-out;
  margin: 0 !important; /* Force remove margin */
  padding: 0 !important; /* Force remove padding */
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 1rem 0 !important; /* Force remove left margin */
  padding: 0 !important; /* Force remove padding */
  background: linear-gradient(135deg, #2d2d2d, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  text-align: left;
  text-indent: 0 !important; /* Remove any text indentation */
}

.hero-text h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 400;
  color: #6b6b6b;
  margin: 0 0 2rem 0 !important; /* Force remove left margin */
  padding: 0 !important; /* Force remove padding */
  text-align: left;
  text-indent: 0 !important; /* Remove any text indentation */
}

.hero-description {
  color: #5a5a5a;
  font-size: 1.1rem;
  margin: 0 0 2rem 0 !important; /* Force remove left margin */
  padding: 0 !important; /* Force remove padding */
  line-height: 1.6;
  text-align: left;
  text-indent: 0 !important; /* Remove any text indentation */
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 !important; /* Force remove margin */
  padding: 0 !important; /* Force remove padding */
}

.cta-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.cta-primary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.cta-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.cta-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  flex: 0 0 300px;
  animation: slideInRight 1s ease-out;
}

.hero-image img {
  width: 140%;
  height: 400px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.02) rotate(2deg);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* SLIDE SECTIONS */
.slide {
  scroll-snap-align: start;
  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: #f8f6f0; /* Beige background */
  overflow: hidden;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.01) 0%, transparent 50%);
  pointer-events: none;
}

.slide-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
  position: relative;
}

.slide h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #2d2d2d, #667eea); /* Dark to purple */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.slide p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

/* ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-text {
  appearance: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.8); /* White with transparency */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 45, 45, 0.1); /* Dark border */
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Subtle shadow */
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: #6b6b6b; /* Medium gray */
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.8); /* White with transparency */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 45, 45, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.project-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}


.project-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 1rem;
}

.project-description {
  color: #4a4a4a; /* Dark gray */
  line-height: 1.6;
  margin-bottom: 1.5rem;
}


.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* EXPERIENCE SECTION */
.experience-timeline {
  position: relative;
  margin-top: 3rem;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateX(-50%);
}

.experience-item {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
}

.experience-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.experience-content {
  flex: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 45, 45, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin: 0 2rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.experience-content:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.experience-dot {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 4px #f8f6f0; /* Match beige background */
}

.experience-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.experience-company {
  color: #6b6b6b; /* Medium gray */
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.experience-date {
  color: #888888; /* Light gray */
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* CONTACT SECTION */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(45, 45, 45, 0.1);
  border-radius: 15px;
  color: #4a4a4a; /* Dark gray */
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-link:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}


.contact-icon {
  font-size: 1.5rem;
}

.contact-title {
  font-weight: 600;
}

.contact-subtitle {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ANIMATIONS */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE DESIGN */
/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .slide-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(248, 246, 240, 0.98); /* Beige background */
    flex-direction: column;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(45, 45, 45, 0.1);
    border-top: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .slide-nav ul.active {
    display: flex;
  }

  .slide-nav ul li {
    margin: 0;
  }

  .slide-nav ul li a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid rgba(45, 45, 45, 0.05);
    color: #4a4a4a;
  }

  .slide-nav ul li:last-child a {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-image {
    flex: none;
    width: 100%;
    max-width: 300px;
  }

  .hero-cta {
    justify-content: center;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .experience-timeline::before {
    left: 20px;
  }

  .experience-item {
    flex-direction: row;
    margin-left: 40px;
  }

  .experience-item:nth-child(odd) {
    flex-direction: row;
  }

  .experience-content {
    margin: 0 0 0 1rem;
  }

  .experience-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-link {
    width: 100%;
    max-width: 300px;
  }

  .slide {
    padding: 4rem 1rem 2rem;
  }

  .hero {
    padding: 4rem 1rem;
  }

  .slide h2 {
    font-size: 2rem;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .slide-nav {
    padding: 1rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .slide h2 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .experience-content {
    padding: 1.5rem;
  }

  .contact-link {
    padding: 1rem 1.5rem;
    min-width: auto;
  }
}

/* Additional animations and effects */
.slide-content > * {
  animation: fadeInUp 0.8s ease-out;
}

.slide-content > *:nth-child(2) {
  animation-delay: 0.2s;
}

.slide-content > *:nth-child(3) {
  animation-delay: 0.4s;
}

.slide-content > *:nth-child(4) {
  animation-delay: 0.6s;
}

/* Intersection Observer classes for scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus states for accessibility */
.cta-button:focus,
.contact-link:focus,
.slide-nav ul li a:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Smooth scrolling for navigation links */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
.loading {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Hover effects for interactive elements */
.project-card:hover .project-title {
  color: #764ba2;
}

.stat-card:hover .stat-number {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --accent: #667eea;
  }
}