:root {
  --primary-color: #4CAF50;
  /* Green accent */
  --primary-color-hover: #3e8e41;
  --dark-color: #e7e7e7;
  /* Text color for dark backgrounds */
  --light-color: #2a2a2a;
  /* Section background */
  --card-bg: #1e1e1e;
  /* Card background */
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hide Scrollbars */
html,
body {
  overflow-x: hidden;
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}



body::-webkit-scrollbar {
  display: none;
}

body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(to bottom, rgb(34, 34, 34), rgb(24, 24, 24));
  color: var(--dark-color);
  line-height: 1.5;
  /* min-height: 100vh; */
}

/* Sticky 3D Model */
.model-3d {
  position: sticky;
  top: 0;
  margin-left: 20%;
  z-index: 0;
}

/* Section Defaults */
section {
  min-height: auto;
  height: 100vh;
}

/* Projects Section */
#projects {
  padding: 5rem 10%;
  background-color: var(--light-color);
  scroll-snap-type: y mandatory;
  margin-top: 100px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark-color);
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
}

.projects-container {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 2rem;
}

.project-card {
  min-width: 300px;
  background: var(--card-bg);
  color: var(--dark-color);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card p {
  margin-bottom: 1.5rem;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-card .tag {
  background-color: rgba(76, 175, 80, 0.15);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-link:hover {
  color: var(--primary-color-hover);
}

.project-link:hover i {
  transform: translateX(5px);
}



/* Full-screen overlay */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #121212;
  /* Dark background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 9999;
}

/* Spinner animation */
.loader {
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #4CAF50;
  /* Accent color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}