:root {
  --white: #ffffff;
  --mint: #adffbf;
  --purple: #850aff;
  --pink: #f8dde4;
  --dark: #232528;
}

body { 
    font-family: 'Poppins', sans-serif; 
    margin: 0; color: var(--dark); 
    background-color: var(--white); 
    line-height: 1.6; 
} 

h1, h2, h3, h4 { 
    font-family: 'Sora', sans-serif; 
    color: var(--dark); 
}

a { 
    text-decoration: none; 
    color: var(--purple); 
}


.nav-links a:hover::after {
  width: 100%;
}

/* ——— Map & Hero Section ——— */
.map-section {
  position: relative;
  height: 100vh;
  width: 100%;
  padding-top: 80px; /* navbar height */
}

.map-container {
  position: absolute;
  inset: 0;
  background: url('../assets/images/World.svg') no-repeat center/cover;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(35, 37, 40, 0.9);
  transition: background-color 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.map-overlay:hover {
  background-color: rgba(35, 37, 40, 0.5);
}

.location-marker { 
    position: absolute; 
    width: 12px; 
    height: 12px; 
    background: rgba(133, 10, 255, 0.8); 
    border-radius: 50%; 
    transform: translate(-50%, -50%); 
    cursor: pointer; 
    z-index: 2; 
    transition: all 0.3s ease; 
} 

.location-marker:hover { 
    transform: translate(-50%, -50%) scale(1.5); 
    box-shadow: 0 0 0 4px rgba(133, 10, 255, 0.3); 
} 

.location-bubble { 
    position: absolute; 
    background: var(--white); 
    border: 2px solid var(--purple); 
    border-radius: 10px; 
    padding: 15px; 
    width: 220px; 
    display: none; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
    z-index: 3; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%); 
} 

.location-bubble::after { 
    content: ''; 
    position: absolute; 
    top: -10px; 
    left: 50%; 
    transform: translateX(-50%); 
    border-width: 0 10px 10px 10px; 
    border-style: solid; 
    border-color: transparent transparent transparent transparent; 
} 

.location-bubble h3 { 
    margin: 0 0 5px 0; 
    color: var(--purple); 
} 

.location-bubble p { 
    margin: 0; 
    font-size: 0.9rem; 
}

/* Hero text above the map */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  margin: 0;
  color: var(--pink);
  font-size: 4rem;
  font-weight: 700;
}

.hero-content p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: var(--mint);
}

/* ——— Projects Preview & Carousel ——— */
.projects-preview {
  padding: 4rem 5%;
  text-align: center;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 2rem 0;
  scroll-snap-type: x mandatory;
}

.carousel-item {
  flex: 0 0 300px;      /* fixed width card */
  display: grid;
  grid-template-rows: 180px auto;
  width: 300px;
  flex-direction: column;
  border: 1px solid var(--pink);
  border-radius: 10px;
  overflow: hidden;
  background-color: var(--white);
  scroll-snap-align: start;
}

/* placeholder when no image is provided */
.no-image {
  background: var(--pink);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
  padding: 0 1rem;
}

.carousel-item img {
  width: 100%;
  height: 180px;        /* fixed height for uniform cards */
  object-fit: cover;
  flex-shrink: 0;
}

.project-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;              /* fill remaining space */
}

.project-info p {
    flex: 1;
    margin-bottom: 1rem;
}

.project-info h3 {
  margin: 0 0 0.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;     /* push tags to bottom if needed */
}

.tech-tag {
  background: var(--mint);
  color: var(--dark);
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--purple);
  color: var(--white);
  border-radius: 5px;
  margin-top: 2rem;
  transition: background 0.3s;
}

.btn:hover {
  background: #6d00d6;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
  }
  .nav-links {
    margin-top: 1rem;
  }
  .map-container {
    height: 60%;
  }
}
