:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: hsl(300, 100%, 99%);
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --white: #fff;
  --nav-bg: #efe9ff;
  --nav-active-bg: #2c3e50;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --header-height: 80px;
  --container-width: min(90%, 1200px);
  --section-padding: 5rem;
  --mobile-breakpoint: 768px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'nunito', sans-serif;
  line-height: 1.4;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--nav-bg);
  border-radius: 999px;
  padding: 0.75rem 2rem;
  margin: 0 auto;
  max-width: max-content;
  position: relative;
  box-shadow: var(--shadow);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  transition: var(--transition);
  display: block;
}

.nav-link.active {
  background-color: var(--nav-active-bg);
  color: var(--white);
  font-weight: 600;
}

.nav-link:hover:not(.active) {
  color: var(--nav-active-bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 4px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  background-color: none;
  color: var(--primary-color);
}

.hero h1 {
  font-family: 'Gloria Hallelujah', cursive;
  font-weight: 300;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.hero-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.hero-img {
  width: 100%;
  max-width: 320px;
  height: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 3px solid var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-img:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}


/* General Section Styles */
.section {
  padding: var(--section-padding) 0;
}

.section-title {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.about-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Projects Section */
.projects-grid {
  display: grid;
  /* Default: 2 columns for desktop */
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-image-container {
  height: 250px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-content h3 {
  font-family: 'Gloria Hallelujah', cursive;
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.project-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
  flex-grow: 1;
}

.project-meta p {
  font-size: 0.9rem;
  font-weight: 500;
}

.project-link-wrapper {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  transition: var(--transition);
}

.project-link-wrapper:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 4px;
}

.project-card {
  cursor: pointer; 
  height: 100%; 
}

/* Experience Section */
.experience-item {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  background-color: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  border-left: 5px solid var(--nav-active-bg);
}

.experience-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.experience-item p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.social-links {
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  font-size: 1rem;
  color: var(--light-color);
}

/* ==========================================================================
   RESPONSIVE STYLES (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 992px) {
  /* For Tablets and smaller desktops */
  .projects-grid {
    /* Still 2 columns on tablets, but can be changed to 1 if preferred */
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* For Mobile devices */
  body {
    line-height: 1.5;
  }
  
  /* Navigation becomes full-width bar */
  .navbar {
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: none; /* Shadow removed from nav, header gets it */
  }
  
  .header {
    background-color: var(--white);
    box-shadow: var(--shadow);
  }

  /* Slide-out menu logic */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden */
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0; /* Shown */
  }

  /* Show the hamburger icon */
  .hamburger {
    display: flex;
  }
  
  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Adjustments for content sections */
  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  /* === CRITICAL RESPONSIVE FIX === */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-images {
  flex-direction: column;
  margin-top: 3rem;
  gap: 1.2rem;
}

.hero-img {
  max-width: 85%;
}
}