@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}

html{
  scroll-behavior: smooth;
}

body{
    background: #eff2ff;
}

/* Navbar */
.navbar{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1px 8%;
    background-color: #0B1F3A;
    background: rgba(11, 31, 58, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    z-index: 100;
}

.navbar.sticky {
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Logo */
.logo img{
    height: 65px;
    width: auto;
}

/* Menu */
.menu-items ul{
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu-items li a{
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    font-size: clamp(1rem, 1.25vw, 1.5rem);
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-items a:hover,
.menu-items a.active{
    color:#59B2F4;
}

.menu-items a:hover{
    /*background: rgb(104, 104, 104);*/
    background: rgba(255,255,255,0.1);
}

/* Icons */
.xIcon,
.dashicon{
    background: none;
    color: #fff;
    border: none;
    font-size: clamp(1rem, 5vw, 1.75rem);
    font-weight: bold;
    cursor: pointer;
    display: none;
}


.home {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.3)),
                url("./images/mainbg.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    height: 100vh;
    padding: 0 120px;
    color: #ffffff;
}

.main {
    max-width: 600px;
}

.main h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 70px;
    opacity: 100%;
}

.main h4 {
    font-size: 20px;
     color: #74a84a;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    margin-bottom: 15px;
}

.main p {
    font-size: 16px;
    color: #d0d8e8;
    line-height: 1.7;
    font-weight: 400;
}

.main h1, .main h4, .main p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.cta {
    margin-top: 25px;
    padding: 12px 45px;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.cta:hover {
    background: #74a84a;
    border-color: #74a84a;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.4);
}

/* ======================================================== **all buttons** ========================================================== */

.btn{
  display: inline-block;
   padding: 0.8rem 1.8rem; 
  background: #59B2F4;
  border-radius: 2rem;
  box-shadow: 0 0 0.6rem #59B2F4;
  font-size: clamp(1rem, 1.2vw, 1.3rem);
  color: #191f36;
  letter-spacing: 0.05rem;
  text-decoration: none;
  border: none;
  font-weight: 600;
  transition: 0.3s ease;
  width: fit-content;  
}

.btn:hover{
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 1rem #59B2F4;
}

/* ===================================================== **about section** ============================================================*/

.about{ 
  height: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;   
  align-items: center;
  gap: 3rem;
  background: #eff2ff;
  color: #242a56;
  padding: 8rem 8%;                
  overflow: hidden;
  flex-wrap: wrap;               
}

.about-img{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img{
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: 0.4s ease;
}

.about-img img:hover{
  transform: scale(1.03);
}

.heading{
  text-align: center;
  color: #74a84a;
  font-size: clamp(2rem, 4vw, 4.5rem);
}

.highlight-3{
  font-size: clamp(2rem, 4vw, 4.5rem);
  color: #59B2F4;
}

.about-content{
  flex: 1;
}

.about-content h2{
  text-align: left;
  line-height: 1.2;
}

.about-content h3{
  color: #242a56;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
}

.about-content p{
  font-size: clamp(0.875rem, 1.25vw, 1.6rem);
  margin: .5rem 0 2rem;
}

/* ==================================================== **why parvasense section** ======================================================== */

.why {
  padding: 6rem 8%;
  background: #eff2ff;  
  text-align: center;
}

/* Container */
.why-container {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Card */
.why-box {
  flex: 1 1 30%;
  background: #262B40;
  padding: 2rem;
  border-radius: 16px;
  border: 2px solid #E0E0E0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: all 0.3s ease;

  /*animation*/
  animation: fadeUp 1s ease forwards;
  opacity: 0;
}

/* Stagger animation */
.why-box:nth-child(1) { animation-delay: 0.2s; }
.why-box:nth-child(2) { animation-delay: 0.4s; }
.why-box:nth-child(3) { animation-delay: 0.6s; }

/* Hover */
.why-box:hover {
  transform: translateY(-8px);
  border: .2rem solid #59B2F4;
  box-shadow: 0 0 12px rgba(89,178,244,0.6);
}

/* ==================================================== ICONS ==================================================== */

.why-box i {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: 0.3s;

  /*floating animation */
  animation: float 3s infinite ease-in-out;
}

/* Icon colors (better contrast for light bg section) */
.why-box:nth-child(1) i { color: #4FC3F7; }
.why-box:nth-child(2) i { color: #59B2F4; }
.why-box:nth-child(3) i { color: #4CAF50; }

/* Hover icon effect */
.why-box:hover i {
  transform: scale(1.25);
  text-shadow: 0 0 10px currentColor;
}

/* ==================================================== TEXT ==================================================== */

.why-box h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.why-box p {
  font-size: 0.95rem;
  color: #F8F9FA;
  line-height: 1.6;
}

/* ==================================================== ANIMATIONS ==================================================== */

/* Fade up */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================================================= FLOAT ANIMATION (why and products sections) ========================================================= */
/* Floating */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
/* ========================================================= COMMON SECTION STYLE (Solutions + Products) ========================================================= */

.products,
.solutions {
  background: #0f172a;
  padding: 10rem 8%;
  overflow: hidden;
}

/* Section Heading */
.products .heading-4,
.solutions .heading-4,
.why .heading-4 {
  text-align: left;
  margin-bottom: 3rem;
  color: #74a84a;
}

/* Highlight word */
.highlight-4 {
  color: #59B2F4;
}

.why-box,
.product-card,
.solution-card {
  will-change: transform;
}

/* ========================================================= GRID LAYOUT ========================================================= */

.products-container,
.solutions-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ========================================================= CARD DESIGN ========================================================= */

.product-card,
.solution-card {
  background: #1e293b;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s ease;
}

/* Hover effect for cards */
.product-card:hover,
.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(89,178,244,0.4);
}

/* ========================================================= ICON STYLING ========================================================= */

.product-card i,
.solution-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: 0.3s;
  will-change: transform;
}

/* Glow effect on hover */
.product-card:hover i,
.solution-card:hover i {
  text-shadow: 0 0 15px currentColor,
               0 0 30px currentColor;
}

/* ========================================================= TEXT STYLING ========================================================= */

.product-card h4,
.solution-card h4 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.product-card p,
.solution-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ========================================================= BUTTON (ONLY FOR SOLUTIONS) ========================================================= */

.solution-card a {
  display: inline-block;
  padding: 10px 25px;
  background: #59B2F4;
  color: #0f172a;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s ease;
  box-shadow: 0 0 15px rgba(89,178,244,0.6);
}

.solution-card a:hover {
  box-shadow: 0 0 25px rgba(89,178,244,0.9);
  transform: scale(1.05);
}

/* ========================================================= ICON COLORS ========================================================= */

/* Solutions */
.solutions .solution-card:nth-child(1) i { color: #4FC3F7; } /* Irrigation */
.solutions .solution-card:nth-child(2) i { color: #59B2F4; } /* Automation */
.solutions .solution-card:nth-child(3) i { color: #00E5FF; } /* IoT */

/* Products */
.products .product-card:nth-child(1) i { color: #4CAF50; } /* Fertigation */
.products .product-card:nth-child(2) i { color: #00E5FF; } /* Valve */
.products .product-card:nth-child(3) i { color: #59B2F4; } /* Tank */

/* ========================================================= GLOBAL FLOAT ANIMATION (ALL ICONS) ========================================================= */

/* Apply floating to all icons */
.product-card i,
.solution-card i {
  animation: float 3s infinite ease-in-out;
}

/* ========================================================= SOLUTIONS ANIMATIONS ========================================================= */

/* 🌧 Rain */
@keyframes rain {
  0%,100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.6; }
}
.rain-icon {
  animation: rain 1.5s infinite ease-in-out, float 3s infinite;
}

/* ⚙️ Chip */
@keyframes chip {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.chip-icon {
  animation: chip 2s infinite ease-in-out, float 3s infinite;
}

/* 📊 Chart */
@keyframes chart {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}
.chart-icon {
  animation: chart 1.8s infinite ease-in-out, float 3s infinite;
}

/* ========================================================= RODUCTS ANIMATIONS ========================================================= */

/* 🌱 Growth */
@keyframes grow {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.grow-icon {
  animation: grow 2s infinite ease-in-out, float 3s infinite;
}

/* 💧 Drip */
@keyframes drip {
  0%   { transform: translateY(0); opacity: 1; }
  40%  { transform: translateY(10px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}
.drip-icon {
  animation: drip 1.5s infinite ease-in-out, float 3s infinite;
}

/* 📊 Level */
@keyframes level {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(1.3); }
}
.level-icon {
  animation: level 2s infinite ease-in-out, float 3s infinite;
}

/* ========================================================= HOVER BOOST (BOTH SECTIONS) ========================================================= */

.product-card:hover i,
.solution-card:hover i {
  transform: scale(1.25);
  animation-duration: 0.7s;
}

/* ======================================================= **footer section** ======================================================== */

.footer-main{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 9%;
  background: #262B40;
}

.footer-contact{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 9%;
  background: #191f36;
}

.footer-text{
  color: #fff;
  font-size: clamp(0.5rem, 2vw, 1.6rem);
}

.footer-iconTop{
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .8rem 1rem;
  background: #59B2F4;
  border-radius: .8rem;
  transition: .5s ease;
}

.footer-iconTop a:hover{
  box-shadow: 0 0 1rem #59B2F4;
}

.footer-iconTop a i {
  font-size: clamp(1rem, 2vw, 2.4rem);
  color: #262B40;
}

/* ----------------------------------------------------------------- Main page footer color ----------------------------------------------------------------------*/

.foter-main{
  background: #eff2ff;
  padding: 70px 120px;
}

/* Contact page footer color */
.contact-foter {
  background: #262B40;
  padding: 70px 120px;
}

.foter-col img{
    background: rgba(11, 31, 58, 0.85); /* dark blue glass */
    backdrop-filter: blur(8px);

    border-radius: 14px;

    /* subtle light border for contrast */
    border: 1px solid rgba(255, 255, 255, 0.15);

    /* depth */
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);

    padding: 10px;

    transition: 0.3s ease;
}

/* hover effect */
.foter-col img:hover{
    transform: translateY(-3px);

    box-shadow: 
        0 8px 20px rgba(0,0,0,0.18),
        0 0 10px rgba(116,168,74,0.25); /* slight green glow */
}

.row-f{
    display: flex;
    flex-wrap: wrap;
}
.container-f{
    max-width: 1170px;
    margin: auto;
}
ul{
    list-style: none;
}
.foter-col{
    width: 25%;
    padding: 0 15px;
}

.foter-col h1 {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #59B2F4, #00E676);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.foter-col h4{
    font-size: 18px;
    color: #242a56;
    text-transform: capitalize;
    margin-bottom: 35px;
    position: relative;
}
.foter-col h4::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background-color: #e91e63;
    height: 2px;
    box-sizing: border-box;
    width: 50px;
}
.foter-col ul li:not(:last-child){
    margin-bottom: 10px;
}
.foter-col ul li a{
    font-size: 16px;
    text-transform: capitalize;
    text-decoration: none;
    font-weight: 300;
    color: #393a56;
    display: block;
    transition: all 0.3s ease;
}
.foter-col ul li a:hover{
    color: #242a56;
    padding-left: 10px;
}
.foter-col .soc-links a{
    display: inline-block;
    height: 40px;
    width: 40px;
    background-color: rgba(57, 58, 86, 0.2);
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: #242a56;
}
.foter-col .soc-links a:hover{
    color: #24262b;
    background-color: #F8F9FA;
}
.foter-col-2 p {
    font-weight: 300;
    font-size: 16px;
    color: #393a56;
    padding: 5px 0 8px 0;
}
.foter-col-2 h3{
    font-weight: 600;
    font-style: italic;
    letter-spacing: 1.8px;
    font-size: 17px;
    color: #393a56;
    cursor: pointer;
    transition: all 0.3s ease;
}
.foter-col-2 h3:hover{
    color: #242a56;
    padding-left: 10px;
}
.foter-col-2 i{
    color: #242a56;
    padding-right: 10px;
}
/* response */
@media(max-width:768px){
    .foter-col{
        
        width: 50%;
        margin-bottom: 30px;
    }
}

@media(max-width:574px){
    .foter-col{
        text-align: center;
        width: 100%;
    }
    .foter-col h4{
        font-size: 18px;
        color: #242a56;
        text-transform: capitalize;
        margin-bottom: 35px;
        position: relative;
    }
    .foter-col h4::before{
        content: '';
        position: absolute;
        left: auto;
        bottom: -10px;
        background-color: #e91e63;
        height: 2px;
        box-sizing: border-box;
        width: 75px;
    }
}

/*====================================================== **contact section** ========================================================= */

.contact{
  overflow: hidden;
  background: #0f172a;
  min-height: 650px;
  padding: 5rem 9% 2rem;
}

.contact .js-btn{
  cursor: pointer;
}

.contact h2{
  text-align: center;
  color: #74a84a;
  margin-bottom: .8rem;
}

.contact form{
  max-width: 75rem;
  margin: 1rem auto;
  text-align: center;
  margin-bottom: 3rem;
}

.contact form .input-box{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.contact form .input-field input,
.contact form textarea{
  width: 100%;
  padding:  clamp(1rem, 1.25vw, 1.6rem);
  border:2px solid #59B2F4;
  background: #262B40;
  color: #fff;
  outline: none;
  border-radius: .8rem;
  font-size: clamp(0.875rem, 1.25vw, 1.6rem);
  margin: 0.7rem 0;
}

.contact form .input-field{
  width: 49.5% ;
}

.contact form textarea{
  resize: none;
}

.error-txt{
  color: darkred;
  text-align:start;
  margin: -5px 0 10px;
}


form .textarea-field .error-txt{
  margin-top: -10px;
}

/* ========================================================= */
/* 🌍 GLOBAL RESPONSIVE SETTINGS */
/* ========================================================= */

img{
  max-width: 100%;
  height: auto;
}

/* ========================================================= */
/* 📱 MOBILE (0px – 576px) */
/* ========================================================= */

@media(max-width:576px){

  /* Navbar */
  .navbar{ padding: 5px 5%; }

  .navbar ul{
    display: block;
    width: fit-content;
    margin: 45px auto 0 auto;
    text-align: center;
    transition: 0.5s;
  }

  .navbar ul li{ margin-bottom: 50px; }
  .logo img{ height: 50px; }
  .dashicon{ display: block; }
  .xIcon{ display: block; }
  .js-hide{ display: none; }

  .menu-items{
    height: 0;
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    width: 100vw;
    background:#191f36;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
    transition: 0.3s;
    overflow: hidden;
    z-index: 1000;
  }

  .menu-items.active{ height: 400px; }
  .menu-items ul{ flex-direction: column; }
  .menu-items li{ margin: 10px 0; }

  /* Home */
  .home{
    padding: 0 5%;
    text-align: center;
    background-attachment: scroll;
  }

  .main{ max-width: 100%; }
  .main h1{ font-size: 28px; }
  .main h4{ font-size: 16px; }
  .main p{ font-size: 14px; }
  .cta{ padding: 10px 25px; }

  /* About */
  .about{
    flex-direction: column;
    text-align: center;
    padding: 5rem 5%;
    height: auto;
  }

  .about-content h2{ max-width: 280px; }
  .about-content h3{ text-align: left; }
  .about-img img{ width: 90%; }

  /* Solutions & Products */
  .solutions, .products{ padding: 6rem 5%; }
  .solutions-container, .products-container{ grid-template-columns: 1fr; }

  /* Why */
  .why{ padding: 5rem 5%; }
  .why-container{ flex-direction: column; }
  .why-box{ flex: 1 1 100%; }

  /* Footer */
  .foter-main{ padding: 40px 5%; }
  .foter-col{ width: 100%; text-align: center; }

  /* Contact */
  .contact{
    padding: 4rem 5% 2rem;
    min-height: auto;
  }

  .contact h2{ font-size: 1.8rem; }
  .contact form{ width: 100%; }

  .contact form .input-box{
    flex-direction: column;
    gap: 0;
  }

  .contact form .input-field{ width: 100%; }
  .contact form textarea{ height: 120px; }
  .btn{ width: 100%; text-align: center; }
}

/* ========================================================= */
/* 📲 TABLET (577px – 768px) */
/* ========================================================= */

@media(min-width:577px) and (max-width:768px){

  .navbar{ padding: 5px 6%; }
  .dashicon{ display: block; }

  .menu-items{
    position: absolute;
    top: 65px;
    left: -100%;
    width: 100%;
    height: 0;
    background: #0B1F3A;
    text-align: center;
    overflow: hidden;
    transition: 0.3s;
    z-index: 1000;
  }

  .menu-items.active{ height: 350px; left: 0; }
  .menu-items ul{ flex-direction: column; }
  .menu-items ul li{ margin: 8px 0; }

  .logo img{ height: 55px; }

  /* Home */
  .home{ padding: 0 11%; text-align: center; }
  .main h1{ font-size: 34px; }

  /* About */
  .about{ flex-direction: column; padding: 7rem 6%; }
  .about-img img{ max-width: 340px; }

  /* Grid */
  .solutions-container,
  .products-container{ grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .foter-col{ width: 50%; margin-bottom: 30px; }

  /* Contact */
  .contact{ padding: 4.5rem 6% 2rem; }
  .contact form .input-field{ width: 100%; }
  .contact form .input-box{ flex-direction: column; }
  .contact form textarea{ height: 140px; }
}

/* ========================================================= */
/* 💻 SMALL LAPTOP (769px – 1024px) */
/* ========================================================= */

@media(min-width:769px) and (max-width:1024px){

  .navbar{ padding: 1px 6%; }
  .home{ padding: 0 6%; }
  .main h1{ font-size: 40px; }

  /* About */
  .about{ padding: 8rem 6%; }
  .about-img img{ max-width: 380px; }

  /* Grid */
  .solutions-container,
  .products-container{ grid-template-columns: repeat(2, 1fr); }

  .foter-main{ padding: 8rem 3%; }
  .why-box{ flex: 1 1 45%; }

  /* Contact */
  .contact{ padding: 5rem 6% 2rem; }
  .contact form .input-field{ width: 48%; }
}

/* ========================================================= */
/* 🖥 DESKTOP (1025px – 1440px) */
/* ========================================================= */

@media(min-width:1025px) and (max-width:1440px){

  .navbar{ padding: 1px 8%; }
  .home{ padding: 0 8%; }
  .about{ padding: 10rem 6%; }
  .solutions, .products{ padding: 10rem 8%; }

  /* Contact */
  .contact{ padding: 5rem 8% 2rem; }
}

/* ========================================================= */
/* 🖥 LARGE SCREENS (1441px+) */
/* ========================================================= */

@media(min-width:1441px){

  .navbar{ padding: 1px 10%; }
  .home{ padding: 0 10%; }
  .about{ padding: 10rem 10%; }
  .solutions, .products{ padding: 10rem 10%; }
  .main h1{ font-size: 56px; }
  .main p{ font-size: 18px; }

  /* Contact */
  .contact{ padding: 6rem 10% 2rem; }
  .contact form{ max-width: 85rem; }
}