:root{
   --base-color: rgb(255, 255, 255);
   --text-color: black;
   --primary-color: rgb(230, 170, 59);
   --secondary-color : violet;
   --color-1: #eae4df;
   --color-2: #c9dee9;
   --color-3: #e1d7ea;
}

nav a.active {
  color: #be8f0c;   /* highlight color */
  font-weight: bold;
/*  border-bottom: 2px solid #007BFF;*/
}


*{
    margin: 0;
    padding: 0;
    box-sizing: 0;
}

html {
    font-family: 'Times New Roman', Times, serif;
    color: var(--text-color);
}

body {
    padding: 1em;
    background-color: var(--base-color);
    font-family: 'Montserrat', sans-serif;
}

h1 h2 h3 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

nav {
    margin: 1em auto 3em auto;
    width: min(1000px, 100%);
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    justify-content: center;   /* ✅ This centers the links horizontally */
    gap: 2em;
}

/*nav li:first-child {
    margin: auto;
    font-family: Merriweather, ;
    font-weight: bold;
}*/

nav a {
    text-decoration: none;
    color: var(--text-color);
}

nav a:hover {
    text-decoration: underline;
}

header, section {
    margin: 2em auto;
    width: min(75em, 100%);
    background-color: var(--color-1);
    padding: min(2em, 15%);
    border-radius: 1em;
}
/*FOR IMAGE AND TEXT IN HEADER*/
.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3em; 
}

header img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom; 
}

.text-container {
    flex: o 1 34em;
}

h1 {
    font-size: 2.5rem;
}

.text-container p {
    margin: .75em 0 1em 0;
    font-size: 1.25rem;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: white;
    background-color: var(--primary-color);
    padding: .75em 1.25em;
    border-radius: .5em;
    font-weight: 600;
}

.secondary {
    background-color: var(--secondary-color);
}
/* first section in html*/
section {
    padding: 3em min(2em, 15%);
    background-color: var(--color-2);
    text-align: center;
}

h2 {
    font-size: 2rem;
}

section p{
    margin-top: 1em;
    font-size: 1.25rem;
}

section img {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom; 
}
/*next section for images, ill add to the about page*/
section#my-pics {
    background-color: var(--color-3);
}

section#my-vids {
    background-color: #eab0cb;
}

section iframe {
    max-width: 100%;
    border-radius: 1em;
    object-fit: cover;
    object-position: bottom; 
}

footer {
    padding-bottom: 1.5em;
    text-align: center;
}

footer a {
    margin: 0.1em;
    text-decoration: none;
    color: var(--text-color);
}

footer a:hover {
    text-decoration: underline;
}

/*ABOUT PAGE*/
.text-about h2{
    display: flex;
     color: rgb(126, 172, 221);
}

.text-about p {
    text-align: justify;
    font-size: 20px;
}
.text-about1 h2{
    display: flex;
    text-align: center;
    color: rgb(189, 183, 151);
}
.text-about2 h2{
    display: flex;
    text-align: justify;
    color: rgb(79, 93, 110);
}
.text-about2 p {
    text-align: justify;
}

section#ab3 {
    background-color: var(--color-3);
}
.gallery{
    margin-top: 3em;
    margin-bottom: 3em;
    width: 100%;
    gap: 0.5em;
}

.gallery img {
    border-radius: .5em;
    transition: 100ms ease;
}

.gallery img:hover {
    scale: 1.05;
}

/*for contact page*/
section#contact {
    background-color: rgb(202, 196, 196);
}
.container {
      width: 90%;
      max-width: 500px;
      margin: 40px auto;
      background: #8f8a8a;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
     h2 {
      text-align: center;
      margin-bottom: 20px;
    }
    input, textarea {
      width: 90%;
      padding: 10px;
      margin: 8px 0;
      border: 1px solid #0a0808;
      border-radius: 10px;
    }
    button {
      width: 100%;
      padding: 12px;
      border: none;
      border-radius: 5px;
      background: rgb(91, 181, 103);
      color: white;
      font-size: 16px;
      cursor: pointer;
    }
    button:hover {
      background: #8994a0;
    }


    /*pop up images*/
    /* Popup background */
.popup {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  padding-top: 60px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.8);
}

/* Popup image */
.popup-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  transition: 0.3s;
}

.next {
  right: 20px;
}

.prev {
  left: 20px;
}

/* Hover effect */
.prev:hover, .next:hover {
  color: #f1f1f1;
}


.video-section {
  text-align: center;
  margin: 2em 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#form-status {
  margin-top: 10px;
  font-weight: bold;
}



/*Resposiveness*/
@media(max-width: 988px){
     header {
        text-align: center;
     }

     header .text-container {
          padding-top: 0;
     }
}

@media(max-width: 640px) {
    nav li {
        display: none;
    }

    nav li:first-child,
    nav li:last-child {
        display: block;
    }

    header {
        margin-top: 0;
    }

    .cta-button {
        margin-top: .5em;
        width: 90%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .text-container p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

