@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");



:root {
  --primary-bg-color: #FFFFFF;   
  --main-text-color: #000000;    
  --supportive-text-color: #222222; 
  
  --primary-accent: #000000;     
  --secondary-accent: #444444;  

  --white-color: #FFFFFF;
  --gray-color: #F2F2F2;
  --gray-color-2: #DDDDDD;

  --color-preloader-bg: #FFFFFF; 
  --color-dots: #000000;         
}

/* Common styles */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #FFFFFF;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.15px;
}

.container {
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.container-lg {
  max-width: 1200px;
}

.title {
  font-size: 44px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 54px;
  color: #000000;
}

.btn {
  display: inline-block;
  height: 52px;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  line-height: 52px;
  padding: 0 36px;
  margin: 0 12px 16px 0;
  color: #FFFFFF;             
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease-in;

  background-color: #000000;   
  border: 2px solid #FFFFFF;   
}

.btn:hover,
.btn:focus {
  background-color: #FFFFFF; 
  border-color: #000000;      
  color: #000000;            
  outline: 0;
}

.btn-white {
  background: transparent;
  font-weight: 700;
  border: 2px solid var(--primary-accent);
  color: var(--primary-accent);
  transition: all 0.3s ease-in;
}


.btn-white:hover,
.btn-white:focus {
  background: var(--primary-accent);  
  border: 2px solid var(--primary-accent);
  color: #FFFFFF;                    
}

.btn-red {
  background: #000000;
  border: 2px solid #FFFFFF;
  color: #FFFFFF; 
  transition: all 0.3s ease-in;
}

.btn-red:hover,
.btn-red:focus {
  color: #000000;      
  background: #FFFFFF; 
  border-color: #FFFFFF;
}

h5 {
  font-size: 15px;
  letter-spacing: 2px;
  line-height: 23px;
  font-weight: 600;
  text-transform: uppercase;
}

.white {
  color: var(--white-color);
}

/* HEADER SECTION  */
.header {
  z-index: 100;
  background-color: transparent;
  height: 90px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  height: 90px;
}

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1999;
  background-color: #FFFFFF;
  padding-top: 0;
  padding-bottom: 0;
  transition: all 0.3s ease-in-out;
}

.logo {
  position: relative;
  line-height: 1;
  font-weight: 400;
  font-size: clamp(1.125rem, 1.011rem + 0.57vw, 1.375rem);
  color: var(--main-text-color);
}

.nav-list {
  display: flex;
  column-gap: 46px;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.15px;
}

.nav-btn {
  display: none;
}

#nav-btn-img {
  filter: invert(0%); 
}


.nav-link {
  color: var(--main-text-color);
}

.nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--secondary-accent);
  text-decoration-thickness: 1.2px;
  text-underline-offset: 7px;
}


/* HERO SECTION */
.hero {
  padding: 130px 0 80px;
  background: #ffffff;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1 1 450px;
}

.hero-greeting {
  font-size: 1rem;
  letter-spacing: 3px;
  color: #444;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-heading {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 10px 0;
  color: #111;
}

.hero-heading-subtitle {
  font-size: 1.3rem;
  color: #555;
  display: block;
  margin-bottom: 25px;
}


.social-links-row {
  display: flex;
  gap: 18px;
  margin: 20px 0;
}

.social-links-row img {
  width: 30px;
  height: 30px;
  transition: 0.3s;
}

.social-links-row img:hover {
  transform: translateY(-4px);
}


.hero-btn:hover {
  background: #fff;
}
.hero-tag {
  font-weight: 600;
}

.hero-subtitle {
  font-weight: 600;
}

.hero-btn-outline:hover {
  background: #111;
  color: #fff;
}

/* Hero Image */
.hero-img img {
  width: 350px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
  animation: bounce 3s infinite ease-in-out;
}

/* Simple bounce animation */
@keyframes bounce {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-row {
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .social-links-row {
    justify-content: center;
  }

  /* .hero-buttons {
    justify-content: center;
  } */

  .hero-img img {
    width: 280px;
  }
}


/* ABOUT SECTION */
.about {
  /* padding: 7rem 0; */
  background-color: #FFFFFF;
}

.position {
  font-size: 1.3rem;
  color: #000000;
  font-weight: 600;
  display: block;
  margin-bottom: 25px;
}

.about-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  justify-content: center;
  gap: 90px;
  margin-bottom: 80px;
  color: var(--supportive-text-color);
}

.about-descr {
  max-width: 650px;
  line-height: 1.7;
  font-size: 1.05rem;
  color: #333;
}

 /* SKILL SECTION  */

.skill {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 30px;
}

.skill-title,
.skill-percent {
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0px;
}

.skill-percent {
  float: right;
}
.skill-bar__progress {
  background-color: var(--gray-color);
  border-radius: 5px;
  height: 4px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.skill-bar__fill {
  background-color: var(--secondary-accent);
  height: 4px;
  width: 0; 
  transition: width 1.5s ease-in-out; 
}

.about-download-btn {
  margin-top: 40px;
}

/* SERVICES SECTION  */
#services {
  background-color: #ffffff;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

#services .title {
  font-size: 2.3rem;
  margin-bottom: 40px;
  font-weight: 700;
  color: #111;
  position: relative;
}

.services-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 35px;
}

/* ========== SERVICE CARD ========== */
.service-card {
  width: 320px;
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 18px;
  border: 1px solid #e5e5e5;
  text-align: center;
  transition: all 0.35s ease;
  cursor: pointer;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: #000;
  box-shadow: 0px 12px 28px rgba(0, 0, 0, 0.12);
}

/* Icon Box */
.service-icon-box {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: #f7f7f7;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: #111;
}

.service-card-img {
  width: 36px;
  height: 36px;
  transition: 0.3s ease;
  filter: grayscale(100%) brightness(0);
}

.service-card:hover .service-card-img {
  filter: brightness(100%) invert(100%);
}
.service-card-title {
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
}

.service-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin-top: 10px;
  padding: 0 10px;
}

/* Responsive */
@media (max-width: 780px) {
  .services-row {
    flex-direction: column;
    align-items: center;
  }
}


/* Projects */
.projects {
  padding: 7rem 0;
  background-color: var(--primary-bg-color);
}

.projects-title {
  text-align: center;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* responsive grid */
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

.card {
  position: relative;
  height: 250px;
  color: #333;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 20px;
  transition: all 0.3s ease-in;
}


.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.7); 
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.card p {
  font-size: 16px;
}

/* Background images for each card */
.card.school { background: url('../img/works/01.jfif') center/cover no-repeat; }
.card.college { background: url('../img/works/02.jpg') center/cover no-repeat; }
.card.realestate { background: url('../img/works/03.jfif') center/cover no-repeat; }
.card.poultry { background: url('../img/works/04.jfif') center/cover no-repeat; }
.card.hospital { background: url('../img/works/05.jfif') center/cover no-repeat; }
.card.gym { background: url('../img/works/06.jpg') center/cover no-repeat; }

/* Responsive font for smaller screens */
@media (max-width: 600px) {
  .card h3 { font-size: 20px; }
  .card p { font-size: 14px; }
  .cards-container { gap: 15px; padding: 15px; }
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Left side container */
.contact-left {
  width: 100%;
  max-width: 450px; /* form ke equal size */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Each icon box */
.contact-box {
  border: 1px solid #000; /* black border */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  background: #fff;
}

/* Icons */
.contact-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Text under icons */
.contact-text {
  font-size: 16px;
  color: #000;
  margin-top: 5px;
}

.contact-text a {
  text-decoration: none;
  color: #000;
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}


/* RIGHT SIDE FORM */
.contact-right {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #ddd;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.05);
}

/* Form Styles */
.contact-right input,
.contact-right textarea {
  width: 100%;
  padding: 15px;
  font-size: 15px;
  border: 1px solid #000;
  margin-bottom: 15px;
  background: #fff;
  color: #000;
}

.contact-right input:focus,
.contact-right textarea:focus {
  border-color: #000;
  outline: none;
}

/* Submit Button */
/* .btn-red {
  background: transparent;
  border: 2px solid #000;
  color: #000;
  padding: 10px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
} */

.btn-red:hover {
  background: #000;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 850px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-left {
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }
}


/* FOOTER SECTION  */
.footer {
  color: var(--gray-color-3);
}

.footer-row {
  display: flex;
  flex-direction: column;
  column-gap: 20px;
  align-items: center;
  padding: 40px 0;
}

.footer-social {
  margin-top: 0;
}

.footer-copyright {
  font-size: clamp(0.75rem, 0.679rem + 0.36vw, 1rem);
  color: #000000;
}

.response {
  position: fixed;
  display: inline-block;
  background-color: var(--primary-accent);
  color: var(--white-color);
  border: 1px solid var(--white-color);
  min-width: 280px;
  padding: 20px 40px;
  bottom: -100px;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
  transition: all 0.3s ease-in-out;
  z-index: 5;
}

.response.open {
  bottom: 20px;
  opacity: 1;
  visibility: visible;
}

/* "go to top" button */
.goToTop {
  z-index: 599;
  position: fixed;
  width: 40px;
  height: 40px;
  background-color: var(--gray-color);
  top: auto;
  left: auto;
  right: 30px;
  bottom: 30px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  border-radius: 2px;
  transition: opacity 350ms, visibility 350ms;
}

.goToTop a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  filter: invert(4%) sepia(23%) saturate(2306%) hue-rotate(148deg)
    brightness(91%) contrast(90%);
}

.goToTop img {
  height: 16px;
  width: 16px;
}

.goToTop:hover {
  filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg)
    brightness(102%) contrast(102%);
}

.goToTop.reveal {
  display: block;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s;
}


/* Preloader with jumping dots */
#preloader {
  position: fixed;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: var(--color-preloader-bg);
  z-index: 3000;
  height: 100vh;
  width: 100vw;
  opacity: 1;
  overflow: hidden;
  transition: opacity 0.5s ease-out;
}

.jumping-dots {
  position: relative;
  width: 6px;
  height: 6px;
  padding: 0;
  display: inline-block;
}

.jumping-dots > div {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--color-dots);
  border-radius: 50%;
}

.jumping-dots > div:nth-of-type(1) {
  left: 20px;
}

.jumping-dots > div:nth-of-type(3) {
  left: -20px;
}

.jumping-dots > div {
  animation: jumping-dots 1.2s infinite ease;
  animation-delay: 0.2s;
}

.jumping-dots > div:nth-of-type(1) {
  animation-delay: 0.4s;
}

.jumping-dots > div:nth-of-type(3) {
  animation-delay: 0s;
}

@keyframes jumping-dots {
  0% {
    top: 0;
  }

  40% {
    top: -6px;
  }

  80% {
    top: 0;
  }
}