/* ================================
RESET
================================ */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

/* ================================
GLOBAL
================================ */

html{
scroll-behavior:smooth;
}

body{
    font-family:Arial, sans-serif;
    margin:0;
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* đẩy nội dung xuống dưới header */
main{
    margin-top:80px;
}

/* PAGE FADE*/
animation:fadePage .6s ease;
}

main{
flex:1;
padding:40px 20px;
}

@keyframes fadePage{
from{opacity:0;}
to{opacity:1;}
}

.container{
width:90%;
max-width:1200px;
margin:auto;
}

section{
padding:80px 0;
}

h1,h2,h3{
font-family:Arial, sans-serif;
margin-bottom:15px;
}

/* ================================
HEADER
================================ */

header{
position:fixed;
top:0;
width:100%;

background:white;
box-shadow:0 2px 12px rgba(0,0,0,0.05);

z-index:100000;
}

nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:14px 6%;
}

.logo img{
height:55px;
}

/* ================================
MENU
================================ */

.menu a{
margin-left:28px;
text-decoration:none;
color:#333;
font-weight:500;

transition:0.3s;
}

.menu a:hover{
color:#1b8f3a;
}

.menu a.active{
color:#1b8f3a;
border-bottom:2px solid #1b8f3a;
padding-bottom:4px;
}

/*********************************HERO*********************************/
.hero{
height:100vh;
margin-top:-80px;
overflow:hidden;
background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),url('../images/hero.jpg');

background-size:cover;
background-position:center;

display:flex;
align-items:center;

text-align:center;
color:white;
}
.hero img{
    display:block;
}
.hero h1,
.hero p,
.hero .btn{
  opacity:0;
}

.hero h1{
  font-size:56px;
  margin-bottom:20px;
  animation:heroFadeUp 1s ease forwards;
  animation-delay:0.3s;
}

.hero p{
  font-size:20px;
  margin-bottom:30px;
  animation:heroFadeUp 1s ease forwards;
  animation-delay:1s;
}

.hero .btn{
  animation:heroFadeUp 1s ease forwards;
  animation-delay:1.8s;
}
@keyframes heroFadeUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* ================================
BUTTON
================================ */

.btn{
display:inline-block;

padding:14px 28px;
border-radius:6px;

background:linear-gradient(90deg,#1b8f3a,#d4af37);

color:white;
text-decoration:none;
font-weight:600;

transition:0.3s;
}

.btn:hover{
opacity:0.9;
}

/*********************************SECTION*********************************/

section{
padding:60px 10%;
}

.industrial-app{
position:relative;
padding:80px 0;
background:linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),url('../images/hero.jpg');

background-size:cover;
background-position:center;
}

.industrial-app::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(255,255,255,0.75);
}

.industrial-app .container{
position:relative;
z-index:2;
}

table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

table th, table td{
    border:1px solid #ddd;
    padding:12px;
    text-align:left;
}

table th{
    background:#0c3f34;
    color:white;
}

.highlight{
    background:#e9f3f1;
    padding:20px;
    border-left:5px solid #0c3f34;
    margin-top:20px;
    font-weight:600;
}

/*********************************ABOUT*********************************/

.about-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
align-items:center;
}

.about-img,
.about-text {
    opacity: 0;
}

.show-img {
    animation: imgReveal 1s ease forwards;
}

.show-text {
    animation: textReveal 1s ease forwards;
    animation-delay: 0.4s;
}

/* animation */
@keyframes imgReveal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/*********************************ABOUT2*********************************/

.about2 img {
width: 60%;
border-radius: 12px;
display: block;
margin: 0 auto;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about2 p {
text-align: justify;   /* căn đều 2 bên */
line-height: 1.5;      /* khoảng cách dòng dễ đọc */
margin-bottom: 16px;   /* khoảng cách giữa các đoạn */
margin-top: 16px;
}

.about-cta{
    text-align:center;
    margin-top:60px;
    padding:40px;
    background:#f3f7f4;
    border-left:5px solid #2c7a4b;
    border-right:5px solid #2c7a4b;
    border-radius:10px;
    border-top:2px solid #ddd;
    border-bottom:2px solid #ddd;
}

.about-cta p{
    font-size:18px;
    margin-bottom:20px;
}

.contact-btn{
    display:inline-block;
    padding:12px 28px;
    background:#2c7a4b;
    color:white;
    text-decoration:none;
    border-radius:6px;
    font-weight:600;
    transition:0.3s;
}

.contact-btn:hover{
    background:#245e3b;
}

.list{
    padding-left:20px;
    text-align: justify; 
}

.list li{
    margin-up:20px;
    line-height:1.8;
}
/*********************************APPLICATIONS*********************************/

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:30px;
}

.card,
a.card{
display:block;
background:#f3f7f5;
padding:20px;
border-radius:10px;
text-decoration:none;
color:#333;
transition:0.3s;
text-align: justify;
line-height: 1.7;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 10px 20px rgba(0,0,0,0.1);
}

.card img{
width:100%;
height:300px;
object-fit:cover;
border-radius:8px;
margin-bottom:10px;
}

.card:hover .more{
color:#0c3f34;
}

.more{
display:inline-block;
margin-top:10px;
text-decoration:none;
color:#2e7d32;
font-weight:600;
}

.more:hover{
color:#0c3f34;
text-decoration:underline;
}
/* ===== Applications scroll animation ===== */

.card{
  opacity:1; /* giữ nguyên cho desktop cũ */
}

/* trạng thái ẩn để animate */
.card.reveal{
  opacity:0;
  transform:translateY(40px);
}

.card.show-card{
  animation:cardFadeUp .8s ease forwards;
}

@keyframes cardFadeUp{
  to{
    opacity:1;
    transform:translateY(0);
  }
}
/* ===== CNSL application image block (image right, smaller) ===== */
.cnsl-application{
    display:flex;
    gap:40px;
    align-items:center;
    margin:30px 0;
    flex-direction: row-reverse;
}

.cnsl-application h2{
    font-size:26px;
}
.cnsl-application .text{
    width:60%;
}

.cnsl-application img{
    width:40%;
    border-radius:10px;
    object-fit:cover;
}

@media(max-width:768px){
    .cnsl-application{
        flex-direction:column;
    }
    .cnsl-application img,
    .cnsl-application .text{
        width:100%;
    }
}
/* ================= SUSTAINABILITY ================= */
.sustainability-section {
    padding: 80px 10%;
    background: white;
}

.sustainability-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.sustainability-image img {
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
}

.sustainability-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.sustainability-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.6;
}

.sustainability-text ul {
    margin-top: 20px;
    padding-left: 18px;
    line-height: 1.5; 
}
.sustainability-image,
.sustainability-text{
    opacity:0;
    transition: all 1s cubic-bezier(.23,1,.32,1);
}

.sustainability-image{
    transform: translateX(-80px);
}

.sustainability-text{
    transform: translateX(80px);
}

.show-img{
    opacity:1;
    transform: translateX(0);
}

.show-text{
    opacity:1;
    transform: translateX(0);
    transition-delay:.4s;
}

/********************ARTICLE******************/
.article{
max-width:1200px;
margin:auto;
padding:80px 10%;
background: #f3f6f4;
}

.article h1{
font-size:36px;
margin-bottom:10px;
}

.article-date{
color:#888;
margin-bottom:30px;
}

.article-image{
width:80%;
border-radius:8px;
margin-bottom:30px;
display: block;
margin: 0 auto;
}

.article p{
margin-bottom:20px;
line-height:1.7;
text-align: justify;
}

.article-source{
margin-top:30px;
padding-left:20px;
}

.article-source li{
margin-bottom:10px;
}

/*********************************CONTACT*********************************/

.contact-section{
padding:90px 10%;
}

.contact-container{
display:flex;
gap:80px;
flex-wrap:wrap;
align-items:flex-start;
}

/*******LEFT*******/

.contact-info{
flex:1;
min-width:300px;
}

.contact-info h2{
font-size:32px;
margin-bottom:15px;
}

.contact-desc{
margin-bottom:30px;
color:#555;
max-width:400px;
}

.info-item{
display:flex;
align-items:center;
gap:10px;
margin-bottom:15px;
font-size:16px;
}

.info-item span{
font-size:20px;
}

/********RIGHT********/

.contact-form{
flex:1;
min-width:320px;
background:#f3f7f5;
padding:30px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.contact-form form{
display:flex;
flex-direction:column;
gap:15px;
}

.contact-form input,
.contact-form textarea{
padding:12px 14px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
}

.contact-form textarea{
min-height:120px;
resize:vertical;
}

.contact-form button{
margin-top:10px;
padding:14px;
background:#2e7d32;
color:white;
border:none;
border-radius:6px;
font-size:15px;
font-weight:600;
cursor:pointer;
transition:0.3s;
}

.contact-form button:hover{
background:#1b5e20;
}
/*********************************FOOTER*********************************/

.footer{
background:#0c3f34;
color:#ddd;
padding:50px 10% 20px;
}

.footer-container{
display:flex;
gap:50px;
flex-wrap:wrap;
}

.footer-col{
flex:1;
min-width:220px;
}

.footer-col h3,
.footer-col h4{
color:white;
margin-bottom:15px;
}

.footer-col ul{
list-style:none;
padding:0;
}

.footer-col ul li{
margin-bottom:8px;
}

.footer-col ul li a{
color:#ccc;
text-decoration:none;
}

.footer-col ul li a:hover{
color:white;
}

.footer-bottom{
text-align:center;
margin-top:30px;
border-top:1px solid #444;
padding-top:15px;
font-size:14px;
}

/********************DROPDOWN**********************/

.dropdown{
position:relative;
display:inline-block;
}

.dropdown-content{
display:none;
position:absolute;
background:white;
min-width:180px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
border-radius:5px;
opacity:0;
transition:0.3s;
}

.dropdown-content a{
color:#333;
font-size:14px;
padding:8px 8px;
display:block;
text-decoration:none;
}

.dropdown-content a:hover{
background:#f2f2f2;
}

.dropdown:hover .dropdown-content{
display:block;
opacity:1;
}

.arrow{
display:inline-block;
margin-left:6px;
width:0;
height:0;

border-left:4px solid transparent;
border-right:4px solid transparent;
border-top:5px solid white;
}

/*********************BREADCRUMB******************/
.breadcrumb{
font-size:16px;
margin-bottom:15px;
color:#777;
}

.breadcrumb a{
color:#2e7d32;
text-decoration:none;
}

.breadcrumb a:hover{
text-decoration:underline;
}

.breadcrumb span{
color:#555;
}
/*********************PRODUCT******************/
.product-page {
  font-family: Arial, sans-serif;
}

/* ===== PHẦN TRÊN ===== */
.product-top {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 30px 10%;
  background: linear-gradient(to right, #f3f6f4, #ecfeff);
}

.product-text {
  flex: 1;

}

.product-text h1 {
  font-size: 40px;
  color: #065f46;
  margin-bottom: 20px;
}

.product-text p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  color: #333;
}

.product-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.product-image img {
  width: 280px;
  border-radius: 50%;
  border: 10px solid #059669;
}
/* ===== Layout/khung cho bảng ===== */
.product-specs {
  padding: 60px 10%;
  background: #f3f6f4;
}

.product-specs h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #065f46;
}

/* ===== BẢNG ===== */
.table-style{
    width:100%;
    border-collapse:collapse;
    font-size:15px;
}

.table-style th,
.table-style td{
    border:1px solid #ddd;
    padding:12px;
    text-align:center;
}

.table-style tr:first-child{
    background:#0c3f34;
    color:white;
    font-weight:700;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .product-top {
    flex-direction: column;
    text-align: center;
  }

  .product-image img {
    width: 200px;
  }
}
#current-date{
    color: #999;
    font-style: italic;
    font-size: 13px;
    letter-spacing: 0.5px;
}
/* =========================================
MOBILE & TABLET RESPONSIVE
========================================= */

/* Tablet */
@media (max-width: 992px){

  section{
    padding:50px 6%;
  }

  .about-grid{
    grid-template-columns:1fr;
  }

  .sustainability-content{
    flex-direction:column;
    gap:30px;
  }

  .contact-container{
    flex-direction:column;
    gap:40px;
  }

  .product-top{
    flex-direction:column;
    text-align:center;
  }

  .product-text h1{
    font-size:32px;
  }
}


/* Mobile */
@media (max-width: 768px){

  body{
    padding-top:70px;
  }

  nav{
    padding:10px 6%;
  }

  .logo img{
    height:42px;
  }

  /* MENU xuống dòng gọn */
  .menu{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    justify-content:flex-end;
  }

  .menu a{
    margin:0;
    font-size:14px;
  }

  /* HERO nhỏ lại */
  .hero{
    height:70vh;
    padding:0 20px;
  }

  .hero h1{
    font-size:32px;
    line-height:1.3;
  }

  .hero p{
    font-size:16px;
  }

  .btn{
    padding:12px 20px;
    font-size:14px;
  }

  /* ABOUT */
  .about2 img{
    width:100%;
  }

  /* CARD grid 1 cột */
  .grid{
    grid-template-columns:1fr;
  }

  .card img{
    height:220px;
  }

  /* ARTICLE */
  .article-image{
    width:100%;
  }

  .article h1{
    font-size:26px;
  }

  /* CONTACT */
  .contact-section{
    padding:60px 6%;
  }

  .contact-form{
    padding:20px;
  }

  /* FOOTER */
  .footer{
    padding:40px 6% 20px;
  }

  .footer-container{
    flex-direction:column;
    gap:30px;
  }

  /* PRODUCT */
  .product-image img{
    width:180px;
  }

  .spec-table th,
  .spec-table td{
    font-size:13px;
    padding:8px;
  }
}


/* Small phone */
@media (max-width: 480px){

  .hero{
    height:60vh;
  }

  .hero h1{
    font-size:26px;
  }

  .hero p{
    font-size:14px;
  }

  .product-text h1{
    font-size:24px;
  }

  h2{
    font-size:22px !important;
  }

}
/* ================= MOBILE MENU CHUẨN ================= */

@media (max-width:768px){

    .hamburger{
        display:flex;
    }

    /* MENU MOBILE FIX CHUẨN */
    .menu{
        position:fixed;
        top:70px;
        right:-100%;
        width:85%;                 /* rộng hơn, đẹp hơn */
        max-height:calc(100vh - 70px);  /* QUAN TRỌNG */
        overflow-y:auto;           /* QUAN TRỌNG */
        background:#fff;
        display:flex;
        flex-direction:column;
        padding:25px;
        gap:16px;
        transition:0.4s ease;
        box-shadow:-10px 0 25px rgba(0,0,0,0.15);
        z-index:99999;
    }

    .menu a{
        margin:0 !important;
        padding:14px 0;
        border-bottom:1px solid #eee;
        font-size:18px;
    }

    .menu.show{
        right:0;
    }

    /* dropdown mobile */
    .dropdown-content{
        position:static;
        box-shadow:none;
        display:none;
        opacity:1;
        padding-left:15px;
    }

    .dropdown.open .dropdown-content{
        display:block;
    }

    .arrow{
        border-top:5px solid #333;
    }
}