/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  color: #222;
  line-height: 1.6;
  background-color: #EBEBEB;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  overscroll-behavior: none;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100svh;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1rem;
}

.main-content {
  flex: 1;
  padding: 100px 30px 30px 30px;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Serif', serif;
  color: #111;
  margin: 0;
}

/* Section Headings */
.hero-content h1,
.hero-content h2,
.hero-content h3,
.projects h2 {
  margin: 2rem 0 1rem;
}

.hero-content:first-of-type h2 {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav a {
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav a:hover {
  color: #00bfa5;
}

.nav a.active {
  color: #00bfa5;
  padding: 6px 14px;
  border-radius: 25px;
  font-weight: 600;
}

.nav a.active:hover {
  color: #00d9bb;
}

/* Header */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1100px;
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(0,0,0,0.05);
  z-index: 1100;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease;
}

.logo img {
  height: 60px;
  width: auto;
}

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

.btn-header {
  padding: 8px 16px;
  background: #00bfa5;
  border-radius: 25px;
  font-weight: 600;
  color: black !important;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-header:hover {
  background: #00d9bb;
  transform: scale(1.05);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55svh;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(circle at top, #faf8f4, #fdfbf7);
  margin-bottom: 15px;
  padding: 30px 20px 10px;
}

.hero-projects {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 55svh;
  text-align: center;
  overflow: hidden;
  margin-bottom: 15px;
  padding: 30px 20px 10px;
}

.hero-content h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  color: #111;
  opacity: 0;
  transform: translateX(-100vw);
  animation: slideInLeft 2.2s ease-out forwards;
}

.hero-content h3 {
  font-size: 1.1rem;
  margin-top: 6px;
  margin-bottom: 10px;
  color: #555;
  opacity: 0;
  transform: translateX(100vw);
  animation: slideInRight 2.2s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes slideInLeft {
  from { transform: translateX(-100vw); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100vw); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero-buttons {
  margin: 40px 0 20px;
}

.hero-buttons a {
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  background: #00bfa5;
  color: black !important;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-buttons a:hover {
  background: #00d9bb;
  transform: scale(1.05);
}

/* Projects */
.projects {
  padding: 20px 50px 40px;
  text-align: center;
  margin-top: 80px;
}

.projects h2 {
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(107, 75, 158, 0.1);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,191,165,0.25);
  border-color: #00bfa5;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  background: #faf8f4;
  text-align: center;
  padding: 30px 50px;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: #555;
}

.social-links a {
  margin: 0 10px;
  font-weight: 500;
  color: black;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  margin-right: 30px;
  color: #00bfa5;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .main-content {
    padding: 100px 15px 30px;
  }

  .header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 0;
    height: 60px;
    padding: 0 20px;
  }

  .logo img {
    height: 45px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 60px;
    right: -100%;
    height: calc(100svh - 60px);
    width: 100%;
    flex-direction: column;
    align-items: center;       /* Center menu items */
    justify-content: flex-start;
    padding: 40px 20px;
    gap: 25px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 1200;
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 1.2rem;
    padding: 12px 0;
    text-align: left;
    width: 80%;
  }

  .nav .btn-header {
    width: 90%;
    max-width: 280px;
    margin-top: 30px;
    padding: 14px 18px;
    font-size: 1rem;
    text-align: center;
  }

  .project-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .project-card {
    width: 90%;
    max-width: 350px;
  }
}

/* Tech Stack */
.tech-stack {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 20px 30px;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  box-sizing: border-box;
}

.tech-stack > h1 {
  font-family: 'Noto Serif', serif;
  color: #111;
  margin-bottom: 20px;
  text-align: center;
}

.tech-stack::before,
.tech-stack::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.tech-stack::before {
  left: 0;
  background: linear-gradient(to right, #EBEBEB 0%, transparent 100%);
}

.tech-stack::after {
  right: 0;
  background: linear-gradient(to left, #EBEBEB 0%, transparent 100%);
}

.pill-list {
  display: inline-flex;
  gap: 40px;
  padding-left: 100%;
  animation: scroll-left 20s linear infinite;
  list-style: none;
  margin: 0;
  user-select: none;
}

.pill-list:hover {
  animation-play-state: paused;
}

.pill-list li {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #00bfa5;
  color: #111;
  font-weight: 600;
  border-radius: 25px;
  transition: background 0.2s ease, color 0.3s ease;
}

.pill-list li:hover {
  background: #00bfa5;
  color: white;
}

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  90% { transform: translateX(-100%); }
  100% { transform: translateX(-105%); }
}

/* Clean Section Backgrounds */
.contact-container,
.projects-container {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}
