/* GLOBAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Invention", Arial, sans-serif;
}

body {
    background: #f4fbfb;
    color: #333;
    line-height: 1.6;
}



/* HEADER */

header {

    background: white;
    padding: 20px 60px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    position: sticky;
    top: 0;
    z-index: 100;

}


.logo {

    font-size: 26px;
    font-weight: bold;
    color: #0f766e;

}

.logo span {

    display: block;
    font-size: 13px;
    color: #777;

}


nav a {

    margin-left: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;

    transition: 0.3s;

}

nav a:hover {

    color: #0f766e;

}



/* HERO */

.hero {

    height: 420px;

    background: linear-gradient(135deg, #0f766e, #14b8a6);

    color: white;

    display: flex;
    align-items: center;

    padding: 60px;

    position: relative;
    overflow: hidden;

}

.hero-text {

    max-width: 600px;

}

.hero h1 {

    font-size: 42px;
    margin-bottom: 20px;

}

.hero p {

    font-size: 18px;

}



/* FLOATING BACKGROUND */

.hero::before,
.hero::after {

    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 10s infinite linear;

}

.hero::before {

    width: 120px;
    height: 120px;
    left: 10%;
    top: 20%;

}

.hero::after {

    width: 80px;
    height: 80px;
    right: 15%;
    bottom: 25%;

}

@keyframes float {

    0% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-30px)
    }

    100% {
        transform: translateY(0)
    }

}



/* SECTIONS */

.section {

    padding: 70px 80px;

}

.section h2 {

    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #0f766e;

}



/* ABOUT */

.about {

    max-width: 900px;
    margin: auto;
    text-align: center;

    font-size: 17px;
    color: #555;

}



/* PRODUCT GRID */

.products {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(250px, 250px));

    justify-content: center;

    gap: 30px;

    margin-top: 40px;

}



/* PRODUCT CARD */

.product-card {

    width: 250px;

    background: white;

    border-radius: 10px;

    padding: 20px;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    text-align: center;

    transition: 0.35s;

}

.product-card:hover {

    transform: translateY(-8px) scale(1.03);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);

}



.product-card img {

    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;

}

.product-card h3 {

    margin-bottom: 8px;
    color: #0f766e;

}

.product-card p {

    font-size: 14px;
    color: #666;
    line-height: 1.5;
  max-height: calc(1.5em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;   /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

}



/* BUTTON */

.btn {

    margin-top: 12px;

    background: #0f766e;

    color: white;

    border: none;

    padding: 10px 18px;

    border-radius: 5px;

    cursor: pointer;

    transition: 0.3s;

}

.inquiry-btn {

    margin-top: 12px;

    background: #0f766e;

    color: white;

    border: none;

    width: 100%;

    padding: 10px 18px;

    border-radius: 5px;

    cursor: pointer;

    transition: 0.3s;

}

.btn:hover {

    background: #115e59;

}



/* SEARCH BOX */

.search {

    display: block;

    margin: auto;

    margin-top: 20px;

    width: 320px;

    padding: 12px;

    border-radius: 6px;

    border: 1px solid #ccc;

    font-size: 15px;

}



/* FOOTER */

footer {

    background: #0f766e;

    color: white;

    text-align: center;

    padding: 30px;

    margin-top: 60px;

}



/* POPUP FORM */

.popup-overlay {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    justify-content: center;
    align-items: center;

    z-index: 999;

}


.popup-box {

    background: white;

    width: 360px;

    border-radius: 10px;

    padding: 25px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    animation: popupFade 0.3s ease;

}

.popup-header {

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    margin-bottom: 20px;

}

.popup-header h2 {

    color: #0f766e;

}

.close-btn {

    position: absolute;

    right: 0;
    top: 0;

    background: none;
    border: none;

    font-size: 20px;

    cursor: pointer;

}

.popup-box input {

    width: 100%;

    padding: 10px;

    margin-bottom: 12px;

    border: 1px solid #ccc;

    border-radius: 4px;

}

@keyframes popupFade {

    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }

}



/* SCROLL ANIMATION */

.fade-in {

    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;

}

.fade-in.visible {

    opacity: 1;
    transform: translateY(0);

}



/* RESPONSIVE */

@media(max-width:900px) {

    header {

        padding: 20px;

    }

    .section {

        padding: 50px 25px;

    }

    .hero {

        padding: 40px;
        height: 360px;

    }

    .hero h1 {

        font-size: 32px;

    }

    .search {

        width: 90%;

    }

}




/* CONTACT FORM */

.contact-container{

max-width:520px;
margin:auto;

background:white;

padding:35px;

border-radius:10px;

box-shadow:0 10px 25px rgba(0,0,0,0.08);

}


.contact-container form{

display:flex;
flex-direction:column;

}


.contact-container input,
.contact-container textarea{

width:100%;

padding:12px 14px;

margin-bottom:15px;

border:1px solid #dcdcdc;

border-radius:6px;

font-size:15px;

transition:0.3s;

background:#fafafa;

}


.contact-container textarea{

resize:none;

height:120px;

}


.contact-container input:focus,
.contact-container textarea:focus{

outline:none;

border-color:#14b8a6;

background:white;

box-shadow:0 0 6px rgba(20,184,166,0.25);

}


/* SUBMIT BUTTON */

.contact-container button{

background:#0f766e;

color:white;

border:none;

padding:12px;

border-radius:6px;

font-size:16px;

cursor:pointer;

transition:0.3s;

}


.contact-container button:hover{

background:#115e59;

transform:translateY(-2px);

box-shadow:0 8px 20px rgba(0,0,0,0.15);

}






/*  -------------------- Responsiveness ----------------------------*/

/* ========================= */
/* MOBILE RESPONSIVENESS */
/* ========================= */


/* TABLETS */

@media (max-width: 1024px){

.section{
padding:60px 40px;
}

.hero{
height:auto;
padding:60px 40px;
}

.hero h1{
font-size:36px;
}

.products{
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
}

}



/* MOBILE */

@media (max-width: 768px){

header{
flex-direction:column;
align-items:flex-start;
padding:20px;
}

nav{
margin-top:10px;
}

nav a{
margin-right:15px;
margin-left:0;
}

.hero{
padding:40px 25px;
text-align:center;
}

.hero-text{
max-width:100%;
}

.hero h1{
font-size:28px;
}

.hero p{
font-size:16px;
}

.section{
padding:50px 20px;
}

.products{
grid-template-columns:1fr;
gap:20px;
}

.product-card{
width:100%;
}

.search{
width:100%;
}

.contact-container{
width:100%;
}

.popup-box{
width:90%;
}

}



/* SMALL PHONES */

@media (max-width:480px){

.logo{
font-size:22px;
}

.hero h1{
font-size:24px;
}

.hero p{
font-size:15px;
}

.section h2{
font-size:26px;
}

.product-card{
padding:18px;
}

.btn{
width:100%;
}

}