
/* === Global Reset === */
 {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Root Variables === */
:root {
  --primary-color: #3C6E71;
  --secondary-color: #D9D9D9;
  --text-color: #2A2A2A;
  --bg-color: #FFFFFF;
  --accent-color: #284B63;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}


/* === Global Styles === */
body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* === Header / Navigation === */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 2px solid var(--secondary-color);
  background-color: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent-color);
  font-weight: 600;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-color);
}

h1 {
  font-family: var(--font-heading);
  color: var(--accent-color); 
  }


/* === Hero Section === */
.hero {
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #F4F4F4, #FFFFFF);
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
}

.hero-text {
  flex: 1 1 50%;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.hero-text h1 span {
  color: var(--primary-color);
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-text .bio {
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 500px;
  color: var(--text-color);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
}

/* === Hero Image === */
.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* === Footer === */
.main-footer {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 80px;
}

.main-footer a {
  color: white;
  text-decoration: none;
}

.main-footer a:hover {
  text-decoration: underline;
}

}



/* === About Page === */
.about {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}

.about-intro {
  text-align: center;
  margin-bottom: 60px;
}

.about-intro h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.about-intro p {
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Timeline Layout === */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 40px;
}

/* Central line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 3px;
  height: 100%;
  background-color: var(--secondary-color);
  transform: translateX(-50%);
}

/* Timeline Items */
.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.timeline-content,
.timeline-image {
  flex: 1;
  max-width: 45%;
}

.timeline-content {
  background-color: #f9f9f9;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.timeline-content h2 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 10px;
}

.timeline-content p {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
}

.timeline-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Alternating sides */
.timeline-item:nth-child(even) .timeline-content {
  order: 2;
}

.timeline-item:nth-child(even) .timeline-image {
  order: 1;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .timeline-content,
  .timeline-image {
    order: 1;
    width: 100%;
    text-align: center;
  }

  /* Then text */
  .timeline-content {
    order: 2;
    width: 100%;
    text-align: left;
  }
  .timeline-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
}

.portfolio-main {
  max-width: 1100px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.portfolio-card img {
  width: 200px;
  height: 300px;
  object-fit: cover;
}

.portfolio-card h2 {
  font-size: 1.2rem;
  color: #333;
  padding: 15px;
}

/* === Resume Page === */
.resume {
  margin-top: 60px;
}

.resume-header {
  text-align: center;
  margin-bottom: 50px;
}

.resume-header h1 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.resume-header p {
  color: var(--text-color);
  margin: 5px 0;
  font-size: 1rem;
}

.resume-section {
  margin-bottom: 40px;
}

.resume-section h2 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.resume-section p,
.resume-section ul {
  margin-left: 20px;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.6;
}

.resume-item h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.skills-list {
  list-style: none;
}

.skills-list li::before {
  content: "•";
  color: var(--primary-color);
  margin-right: 8px;
}

.resume-download {
  text-align: center;
  margin-top: 40px;
}

/* === Contact Page === */
.contact-page {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 40px;
  text-align: center;
}

.contact-intro {
  margin-bottom: 50px;
}

.contact-intro h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.contact-intro p {
  color: var(--text-color);
  font-size: 1.1rem;
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 40%;
}

.contact-info h2,
.contact-form h2 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.social-links {
  margin-top: 15px;
}

.social-links a {
  color: var(--accent-color);
  font-size: 1.4rem;
  margin-right: 15px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}


/* === Responsive Design === */
@media (max-width: 600px) {
  /* Header */
  .main-header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    text-align: center;
  }

  .logo {
    margin-bottom: 10px;
    font-size: 1.4rem;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 12px;
    padding: 0;
  }

  .main-nav a {
    font-size: 1rem;
    display: block;
    padding: 8px 0;
  }

  /* Hero */
  .hero {
    padding: 60px 5%;
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-content {
    flex-direction: column;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .bio {
    margin: 0 auto 20px;
  }

  /* About Page */
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .timeline-content,
  .timeline-image {
    max-width: 100%;
  }

  .timeline-content {
    padding-left: 20px;
  }

  /* Portfolio Grid */
.portfolio-main {
  max-width: 1100px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.portfolio-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.portfolio-card h2 {
  font-size: 1.2rem;
  color: #333;
  padding: 15px;
}
.portfolio-page .project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


  /* Contact Section */
  .connect,
  .contact-info,
  .resume-contact {
    padding: 0 20px;
    text-align: center;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Footer */
  .main-footer {
    padding: 15px;
    font-size: 0.85rem;
  }
}

/* === Project Detail Page === */
.project-detail {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.project-header {
  text-align: center;
  margin-bottom: 60px;
}

.project-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.project-header .project-date {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.project-header .project-intro {
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Step layout */
.project-step {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
}

.project-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-image img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.step-text {
  flex: 1;
}

.step-text h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 10px;
}

.step-text p {
  color: var(--text-color);
  line-height: 1.6;
}

.project-download {
  text-align: center;
  margin-top: 60px;
}

.project-download .cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.project-download .cta-button:hover {
  background-color: var(--accent-color);
}

/* Image grid for steps with many pictures */
.step-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 680px; /* Keeps the gallery from becoming too wide */
}

.step-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.maya-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
	width: 100%;
	max-width: 680px;
}
.maya-gallery img {
  width: 100%;
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}


.photo-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 15px;
	width: 100%;
	max-width: 680px;
}
.photo-gallery img {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}


/* Project Detail: Multi-image rows */
.project-gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.project-gallery-row img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


/* Responsive adjustments */
@media (max-width: 800px) {
  .project-step {
    flex-direction: column;
    gap: 25px;
  }
  .project-step:nth-child(even) {
    flex-direction: column;
  }
  .step-image img {
    max-width: 100%;
  }

}
/* === Print / Project Page Fixes === */

/* Ensure the main print container is centered and padded */
.print-main {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Project/Portfolio Grid */
.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.print-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.print-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.print-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-bottom: 1px solid var(--secondary-color);
}

.print-card h2 {
  font-family: var(--font-heading);
  color: var(--accent-color);
  font-size: 1.2rem;
  padding: 15px;
  text-align: center;
}

/* Project Detail Steps */
.print-step {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
}

.print-step:nth-child(even) {
  flex-direction: row-reverse;
}

.print-step .step-image {
  flex: 1;
  max-width: 45%;
}

.print-step .step-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.print-step .step-text {
  flex: 1;
}

.print-step .step-text h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin-bottom: 10px;
}

.print-step .step-text p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Step gallery for multiple images */
.print-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.print-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* === Print Page Specific Styles === */
.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.project-image img {
  width: 100%;
  height: 400px; /* keeps all images uniform */
  object-fit: cover;
  border-bottom: 1px solid var(--secondary-color);
}

.project-info {
  padding: 20px;
}

.project-info h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.project-info h2 a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.project-info h2 a:hover {
  color: var(--primary-color);
}

.project-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-color);
}

.project-date {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* === Responsive === */
@media (max-width: 800px) {
  .project-item {
    flex-direction: column;
  }

  .project-image img {
    height: 180px;
  }
}

@media (max-width: 500px) {
  .project-image img {
    height: 150px;
  }
}


/* Responsive adjustments */
@media (max-width: 800px) {
  .print-step {
    flex-direction: column;
    gap: 25px;
  }

  .print-step:nth-child(even) {
    flex-direction: column;
  }

  .print-step .step-image,
  .print-step .step-text {
    max-width: 100%;
  }

  .print-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
