/***** Color Scheme Presets *****/

:root{
    --Text: #050315;
    --Background: #E4E0E1;
    --Primary: #D6C0B3;
    --Secondary: #AB886D;
    --Accent: #493628;

}

/***** Global html and body changes *****/

html{
  font-size: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

body{
  background-color: var(--Background);
  color: var(--Text);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

*{
  margin: 0;
  box-sizing: border-box;
}

/***** Heading Font Size Presets *****/

  h1 {font-size: 4.210rem; /* 67.36px */}

  h2 {font-size: 3.158rem; /* 50.56px */}

  h3 {font-size: 2.369rem; /* 37.92px */}

  h4 {font-size: 1.777rem; /* 28.48px */}

  h5 {font-size: 1.333rem; /* 21.28px */}


h1, h2, h3, h4, h5{
  font-family: 'Big Shoulders Display';
}


/* Scroll Indicator - Default Styling */
#scroll-indicator {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000; /* Ensures dots stay above everything */
  pointer-events: none; /* Prevents interference with interactions */
}

.dot {
  width: 12px;
  height: 12px;
  background-color: #bbb;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  pointer-events: auto; /* Ensures dots remain clickable */
}

.dot.active {
  background-color: var(--Primary);
  transform: scale(1.3);
}




/***** Section styling *****/
#services, #portfolio, #about, #contact {
  padding-bottom: 5rem;
}

/***** Button Styles *****/

.btn-primary{
  --bs-btn-color:var(--Text);
  --bs-btn-bg: #D6C0B3;
  --bs-btn-border-color: #D6C0B3;
  --bs-btn-hover-color: var(--Text);
  --bs-btn-hover-bg: #E4E0E1;
  --bs-btn-hover-border-color: #D6C0B3;
  
}

.btn-outline-primary{
  --bs-btn-color:var(--Text);
  --bs-btn-bg:#E4E0E1 ;
  --bs-btn-border-color: #D6C0B3;
  --bs-btn-hover-color: var(--Text);
  --bs-btn-hover-bg: #D6C0B3;
  --bs-btn-hover-border-color: #D6C0B3;
}

.btn{
  background-color: var(--Primary);
  border: none;
  color: var(--Text);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.5s ease, transform 0.2s ease;
  margin-bottom: 15px;
  margin-right: 10px;
}








/***** Navbar Section *****/

/* Styles for the navbar */
.navbar-custom {
    background-color: var(--Background);
    padding: 10px 20px;
  }
  .navbar-brand-logo {
    color: white;
    border-radius: 50%;
    padding: 5px 10px;
    font-size: 1.2em;
  }
  
  .navbar-brand-logo> img{
    width: 100px
  }

  .navbar-brand{
    font-family: 'Big Shoulders Display';
    font-size: 2.369rem;
    font-weight: 700;
  }

  .navbar-nav .nav-link {
    color: var(--Accent);
    font-weight: bold;
  }
  .navbar-nav .nav-link:hover {
    color: var(--Primary);
  }
 
  /* Initial hidden state */
.navbar-custom {
  transform: translateY(-100%);
  transition: transform 1.0s ease;
}

/* Slide in on page load */
.navbar-custom.loaded {
  transform: translateY(0);
}

 
  
/***** Styles for home/hero sections *****/

  #home{
    align-content: center;
    padding: 10% 0 10% 0;
  }



  .container{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }

  .hero_info{
    grid-column: 1/6;
  }

  .heroimg{
    grid-column: 7/12;
  }

  .heroimg > img{
    width: 100%;
  }


  /***** Styles for services section *****/

  .sect_heading{
    grid-column: span 12;
    text-align: center;
  }

  .serv_p {
    grid-column: span 7;
    margin: auto;
  }

  .serv_img{
    grid-column: span 5;
  }

  .serv_img_right{
    grid-column: 8/13;
  }

  .serv_p_left{
    grid-row: 3;
  }

  .serv_img > img {
    width:70%;
    display: grid;
    margin: auto;
  }
 
  /***** Styles for portfolio section *****/

  #portfolio {
    overflow: visible; /* Ensure dots are not clipped */
    position: relative; /* Avoid layout issues */

  }
  

  /* Popup Modal Styling */
#popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#popup-modal.popup-visible {
  opacity: 1;
  visibility: visible;
}

/* Popup Content */
.popup-content {
  background: white;
  width: 80%;
  max-width: 800px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  position: relative;
}

#preview-frame {
  width: 100%;
  height: 400px;
  border-radius: 8px;
}

/* Close Button */
#close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Visit Website Button */
#visit-website {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--Primary);
  color: var(--Text);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

#visit-website:hover {
  background-color: var(--Accent);
  color: white;
}


  /* Make the entire portfolio item clickable */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}


.portfolio-item:hover {
  transform: scale(1.05);
}



/* Remove default link styling */
.portfolio-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* View Website Text */
.view-website {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.portfolio-item:hover .view-website {
  opacity: 1;
}

  
  .portfolio-item {
    grid-column: span 6;
    background-color: var(--Primary);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .portfolio-image {
    width: 100%;  /* Make it responsive */
    max-width: 600px; /* Prevents it from getting too large */
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden; /* Prevents overflow issues */
}

.portfolio-image img {
    width: 100%;
    height: auto; /* Ensures correct aspect ratio */
    object-fit: cover; /* Ensures images fit well */
}

  .portfolio-tags {
    margin-top: 8px;
  }
  
  .portfolio-tags span {
    display: inline-block;
    background-color: #fff;
    color: var(--Text);
    border-radius: 12px;
    padding: 4px 8px;
    font-size: 0.9rem;
    margin: 4px;
  }

  /***** Styles for about section *****/

  .pro_img {
    grid-column: span 6;
    display: grid;
    margin-bottom: 10%;
  }

  .pro_img > img {
    width: 75%;
    border-radius: 50%;
    margin: auto;
  }

  .pro_description{
    grid-column: span 6;
    margin: auto;
  }

  .sub_heading{
    grid-column: span 12;
  }

  .tech-item {
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 25px;
    grid-column: span 3;
    display: flex;
    justify-content: space-evenly;
    height: min-content;
    background-color: var(--Primary);
  }
  
  .tech-item img {
    width: 50px; /* Adjust image size as needed */
    margin-bottom: 10px;
  }

  .tech-item p {
    font-weight: bold;
  }


  /***** Styles for contact section *****/

  .contact_ill {
    grid-column: span 5;
  }

  .contact_ill > img {
    width: 100%;
  }


/***** Form container spacing and alignment *****/
.contact_form {
  grid-column: span 7;
}

/***** Form labels *****/
.contact_form .form-label {
  font-weight: bold;
  color: var(--Text);
  margin-bottom: 0.5rem;
  display: block;
}

/***** Input and textarea fields *****/
.contact_form .form-control {
  background-color: var(--Primary);
  border: 1px solid var(--Primary);
  border-radius: 15px;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  color: var(--Text);
}



/***** Submit button styling *****/
.contact_form .btn {
  background-color: var(--Primary);
  border: none;
  color: var(--Text);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.5s ease, transform 0.2s ease;
}


/***** Validation feedback styling ******/
.contact_form .invalid-feedback {
  color: var(--Accent);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.contact_form .was-validated .form-control:invalid {
  border-color: var(--Accent);
  box-shadow: none;
}

.contact_form .was-validated .form-control:valid {
  border-color: var(--Primary);
  box-shadow: none;
}


/***** Responsive Enhancements *****/

@media only screen and (max-width: 1200px) {

  /***** Hero Section *****/
  .hero_info {
    grid-column: 1/7;
  }

  .heroimg {
    grid-column: 8/12;
    align-content: center;
  }

  .heroimg > img {
    width: 130%;
  }





  /***** Services *****/
  .serv_p, .serv_img {
    grid-column: span 6;
    padding-bottom: 1.5rem;
  }
  

  /***** About us styling *****/
  .tech-item{
    grid-column: span 4;
  }

  /**** Contact Section ****/
  .contact_ill{
    align-content: center;
  }
}

@media only screen and (max-width: 768px) {
  .serv_p, .serv_img {
    padding: 1rem;
    padding-bottom: 1.5rem;
    grid-column: span 12;
  }

  .serv_img_right, .serv_p_left{
    grid-row: auto;
  }

  .serv_img > img{
    width: 50%;
  }

  .pro_img, .pro_description{
    grid-column: span 12;
  }

  .portfolio-item:hover {
    transform: none;
  }

  .view-website {
    opacity: 1;
    position: relative;
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    background-color: var(--Accent);
    color: var(--Background);
  }

  .tech-item{
    grid-column: span 6;
  }

  .contact_ill, .contact_form{
    grid-column: span 12;
  }
  .contact_ill{
    display: grid;
  }
  
  
  .contact_ill > img {
    width: 50%;
    margin: auto;
  }

  #scroll-indicator {
    right: 10px; /* Move dots inward */

  }

  .dot {
    width: 14px; /* Make dots slightly bigger */
    height: 14px;
  }
  


}

@media only screen and (max-width: 576px) {
.navbar-brand-logo > img {
  width: 50px;
}

 .hero_info, .heroimg {
  grid-column: span 12;
 }

 .heroimg{
  grid-row: 1;
 }

 .heroimg > img{
  width: 100%;
 }

 .portfolio-item{
  grid-column: span 12;
 }

 .tech-item {
  grid-column: 3/11;
 
 }

 .section{
  margin: 0px 25px 0 25px  !important;
 }
}



