 @import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap"
);
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* Allow footer to be pushed down */
  max-width: 100%;
  overflow-x:hidden;
}


/* Hamburger menu icon (hidden by default) */
.hamburger {
  display: none; /* Hidden by default */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
  cursor: pointer;
}

.hamburger .bar {
  background-color: #192026;
  height: 4px;
  width: 100%;
  border-radius: 2px;
}

/* Navigation - default desktop */
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

/* Navigation - mobile dropdown hidden by default */
@media (max-width: 640px) {
  .hamburger {
    display: flex; /* Show hamburger on small screens */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1100; /* Make sure it's above menu */
  }

  .main-nav {
  display: none;
  flex-direction: column;
  gap: 20px;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100vw; /* Full screen width for large dropdown background */
  background-color: #fff;
  padding: 30px 20px;    /* increased padding */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}


  .main-nav.active {
    display: flex; /* Show dropdown */
  }

  .nav-link {
    color: #192026;
    text-decoration: none;
    background-color: #fff;  /* white background for each item */
    border-radius: 4px;       /* optional: round corners */
    margin-bottom: 12px;      /* spacing between items */
  }

  .nav-link:hover {
    background-color: #b79e76;
  }

  .hamburger.active .bar {
    background-color: #192026;
  }
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* space between elements */
}

.hero-title {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  color: #cc9844;
}

.accent {
  width: 40px; /* Adjust to preferred star size */
  height: auto;
}

.hero-section {
  padding: 60px 20px;
  text-align: center;
}

.hero-title-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  animation: sparkleMove 3s infinite linear;
  pointer-events: none;
  z-index: -1;
  filter: blur(3px);
}

@keyframes sparkleMove {
  0% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateX(50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translateX(150%) scale(1);
    opacity: 0.8;
  }
}

.hero-title {
  position: relative;
  color: #fff;
  text-shadow: 0 0 10px #cc9844, 0 0 30px #fff;
}


.hero-container {
  max-width: 1080px;
  margin: 0 auto;
}


@media (max-width: 640px) {
  .hero-row {
    flex-direction: column;
  }

  .hero-title {
    font-size: 28px;
  }

  .accent {
    width: 30px;
  }
}


/* Projects Grid */
/* Grid container */
.container, .section1, .section2, .section3 {
  width: 100%;
 
}

.grid {
  display: grid;
  margin: 0 auto;
  max-width: 1080px;
  grid-template-columns: repeat(3, 1fr); /* 3 cards in a row */
  gap: 30px;
  padding: 60px 20px; /* space around the grid */
  margin-bottom: 50px;
}

.section1 {
  padding: 60px 20px; /* top and bottom spacing */
  background-color: #fff;
}

/* Define the fade-in animation */
@keyframes fadeInGrid {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply the fade-in effect to the grid items */
.card {
  grid-column: span 1;
  background-color: #fff;
  border: 12px solid black;
  border-radius: 15px;
  text-align: center;
  padding: 1.5rem;
  opacity: 0; /* Start as invisible */
  transform: translateY(20px); /* Start slightly below */
  animation: fadeInGrid 1s ease-out forwards; /* Apply fade-in animation */
  height: auto;
}

.card:nth-child(1) {
  animation-delay: 0.2s; /* Add a delay for staggered effect */
}

.card:nth-child(2) {
  animation-delay: 0.4s; /* Add a delay for staggered effect */
}

.card:nth-child(3) {
  animation-delay: 0.6s; /* Add a delay for staggered effect */
}

.card:nth-child(4) {
  animation-delay: 0.8s; /* Add a delay for staggered effect */
}

.card:nth-child(5) {
  animation-delay: 1.0s; /* Add a delay for staggered effect */
}

.card:nth-child(6) {
  animation-delay: 1.2s; /* Add a delay for staggered effect */
}

/*Card Link styles*/
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  transform: scale(1.05); /*Optional: Adds a hover effect*/
  transition: all 0.3s ease-in-out;
}

/* Ensure images are the same size for all cards */
.card img {
  width: 100%; 
  height: 100%; 
  object-position: center;
  max-width: auto;
  margin-bottom: 1rem;
}


/* Project category */
.project-title {
  text-align: left;
  padding-left: 5px; /* adjust this value as needed */
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 600;
  color: #9d7808;
}

/* Paragraph (description) */
.project-description, .project-category {
  color: #192026;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: 20px;
  flex-grow: 1;
  word-wrap: break-word;
  overflow: hidden;
  text-align: left;
}

/* Other text column styles */
.text-column {
  grid-column: span 3; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.text-column-big {
  grid-column: span 6; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}

.text-column h1 {
  font-size: 24px;
  margin-bottom: 1rem;
}

.text-column p {
  font-size: 16px;
  line-height: 1.5;
  color: black;
}

.image-column {
  grid-column: span 3;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-column-big {
  grid-column: span 6;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-column-big img {
  max-width: 400px;
  height: 400px;
}

.image-column img {
  max-width: 400px; 
  height: 400px; 
}

/* General heading and paragraph styles */
h2 {
  font-family: 'Lora' serif;
  color: black;
  font-size: 40px;
  font-weight: 200;
}

p {
  font-family: 'Inter' sans-serif;
  color: darkgrey;
  font-size: 18px;
  font-weight: 400;
}


/* Media Queries for Adjusting the Grid */
@media (max-width: 991px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Adjust the gap between cards on smaller screens */
    padding: 0 20px; /* Ensure padding */
  }

  .card {
    grid-column: span 1; /* Make each card span full width */
    height: auto; 
  }

  .card img {
    max-width: 100%; /* Ensure the images fit within the card */
  }

  .project-image-wrapper {
    padding: 10px;
  }

  .project-content {
    padding: 15px;
  }

  .project-category,
  .project-title {
    font-size: 18px; 
  }

  .project-description {
    font-size: 14px;
  }
}

/* Additional Media Query for Smaller Screens */
@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr; /* Stack the cards vertically */
    padding: 0 10px;
  }

  .card {
    grid-column: span 1;
  }

  .card img {
    max-width: 100%;
  }

  .project-category {
    font-size: 16px; 
  }

  .card h2 {
    font-size: 18px; 
  }

  .project-description {
    font-size: 14px;
  }
}

/* Additional Media Query for Larger Screens */
@media (min-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
  }

  .project-card {
    height: 100%; 
  }

}


 /* Footer Contact Section Adjustments */
.contact-section {
  background-color: rgba(191, 136, 151, 0.6);
  border: 1px solid rgba(191, 136, 151, 0.6);
  padding: 40px 196px; /*reduced padding for mobile view*/
  margin-top: -50px;
  text-align: center;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-title {
  color: #000;
  font-size: 28px;
  font-weight: 700;
  align-items: flex-start;
  white-space: nowrap;
  margin-bottom: 20px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-description {
  color: #000;
  font-size: 16px; /*Adjust font size*/
  font-weight: 400;
  max-width: 100%; /*Ensure text wraps properly*/
  margin-bottom: 20px; 
  padding: 0 10px; /*Add padding to ensure content isn't too close to edges*/;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-links a {
  display: inline-block;
  width: 33px;
  height: 33px;
}

.contact-links img {
  width: 100%;
  height: 100%;
}

.email {
  color: #000;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
}

.social-link img {
  width: 33px;
  height: 33px;
}

.cta-button {
  display: inline-block;
  color: #192026;
  font-size: 24px;
  font-weight: 700;
  width: 270px;
  height: 42px;
  background-color: #b79e76;
  border: 1px solid #192026;
  text-decoration: none;
  text-align: center;
  line-height: 42px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}

.cta-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
  
/* Media Queries */
@media (max-width: 991px) {
  .main-header {
    padding: 0 40px;
  }

  .hero-section {
    padding: 40px;
  }

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

  .featured-section {
    padding: 50px 40px;
  }

  .projects-grid {
    flex-direction: column;
  }

  .contact-section {
    padding: 40px;
  }

  .contact-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .contact-info {
    align-items: center;
  }
}

@media (max-width: 640px) {
/*Show the navigation links when hamburger is clicked */
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .main-header {
    padding: 0 20px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

 .main-nav.active {
    display: flex;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100vw; /* full screen width */
    background-color: #fff;
    padding: 20px;
    flex-direction: column;
    gap:20px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    font-size: 30px; /* Increase font size for readability */
    padding: 20px;
    color: #192026;
    text-align: center;
    display: block; /* Ensure they stack properly */
    width: 100%;
  }

  .nav-link:hover {
     background-color: #b79e76;
    border-radius: 8px;
  }

  .hamburger {
    z-index: 10; /*Ensure hamburger is above other content*/
  }

  .hero-section {
    padding: 40px 20px;
  }

  .featured-section {
    padding: 50px 20px;
  }

  .contact-section {
    padding: 40px 20px;
  }

  .contact-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }

  .contact-info {
    align-items: center;
  }

  .contact-title {
    font-size: 24px; /* Adjust title size */
    text-align: center;
  }

  .contact-description {
    font-size: 14px; /* Adjust text size */
    text-align: center; /* Center the description */
    margin-bottom: 10px; /* Add some space between description and email */
  }

}

.project-tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #f0f0f0;
  color: #192026;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #ccc;
}

