/* Reset and Base Styles */ @import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; background-color: #fff; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header Styles */ .header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; top: 0; width: 100%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .header.scrolled { padding: 0.5rem 0; background: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15); } .navbar { padding: 1.5rem 0; transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .header.scrolled .navbar { padding: 0.8rem 0; } .nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; } .nav-logo { display: flex; align-items: center; gap: 15px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; } .nav-logo:hover { transform: scale(1.02); } .nav-logo .logo { height: 70px; width: auto; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .header.scrolled .nav-logo .logo { height: 45px; } .nav-logo:hover .logo { filter: drop-shadow(0 2px 4px rgba(20, 107, 39, 0.3)); } .company-name { display: flex; flex-direction: column; line-height: 1.2; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .company-main { font-size: 2rem; font-weight: 700; color: #146b27; letter-spacing: 1px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .header.scrolled .company-main { font-size: 1.6rem; } .company-sub { font-size: 0.8rem; font-weight: 500; color: #146b27; letter-spacing: 2px; margin-top: -2px; opacity: 0.8; transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .header.scrolled .company-sub { font-size: 0.65rem; } .nav-menu { display: flex; list-style: none; gap: 2rem; } .nav-link { text-decoration: none; color: #333; font-size: 18px; font-weight: 600; transition: color 0.3s ease; } .nav-link:hover { color: #146b27; } .hamburger { display: none; flex-direction: column; cursor: pointer; } .bar { width: 25px; height: 3px; background-color: #333; margin: 3px 0; transition: 0.3s; } /* Banner Styles */ .banner { height: 100vh; background: linear-gradient(rgba(20, 107, 39, 0.6), rgba(20, 107, 39, 0.6)), url('../img/banner.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding-top: 180px; /* Account for larger header */ } .banner-content h1 { font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); } .banner-content .slogan { text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); } .banner-content .slogan1 { font-size: 4rem; font-weight: 800; margin-bottom: 0rem; } .banner-content .slogan2 { font-size: 2rem; font-weight: 600; margin-bottom: 2rem; } .banner-content .keywords { font-size: 1.1rem; background: rgba(255, 255, 255, 0.2); padding: 1rem 2rem; border-radius: 10px; backdrop-filter: blur(10px); max-width: 800px; margin: 0 auto; } /* Section Styles */ section { padding: 5rem 0; } .section-title { text-align: center; font-size:3rem; font-weight: 800; color: #146b27; margin-bottom: 3rem; } /* About Section */ .about { background-color: #f8f9fa; } .about-content h2 { color: #146b27; font-size: 2rem; margin-bottom: 1rem; margin-top: 2rem; } .about-content h2:first-child { margin-top: 0; } .about-content p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; text-align: justify; } /* Services Section - Advanced Parallax */ .services { height: 80vh; width: 100%; background-size: cover; background-position: center; display: table; background-attachment: fixed; background-image: url('../img/service.jpg'); padding: 0px; } .services-content { height: 100%; margin: 0px !important; width: 60%; background: rgba(0, 0, 0, 0.7); position: relative; top: -50px; padding: 70px 80px 70px 80px !important; } .services-content h1 { text-shadow: 0 0 1px #fff, 0 1px 1px rgba(255,255,255,1), -1px 0 1px #fff, 1px 0 1px #fff, 0 -1px 1px #fff; } .services-content h2 { color: #ffffff; font-size: 1.8rem; line-height: 1.3; margin-bottom: 1rem; } .services-content p { font-size: 1rem; line-height: 1.4; margin-bottom: 1.5rem; color: #d7f8de; } /* Product Section */ .product { background-color: #f8f9fa; } .product-filters { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; } .filter-btn { background: transparent; border: 2px solid #146b27; color: #146b27; padding: 0.8rem 1.5rem; border-radius: 25px; cursor: pointer; font-weight: 500; font-size: 1rem; transition: all 0.3s ease; } .filter-btn:hover, .filter-btn.active { background: #146b27; color: white; } .product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1300px; margin: 0 auto; } .product-item { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; position: relative; } .product-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(20, 107, 39, 0.1), rgba(20, 107, 39, 0.05)); opacity: 0; transition: opacity 0.4s ease; z-index: 1; pointer-events: none; } .product-item:hover { transform: translateY(-10px) scale(1.03); box-shadow: 0 15px 35px rgba(20, 107, 39, 0.2); } .product-item:hover::before { opacity: 1; } .product-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); } .product-item:hover img { transform: scale(1.1); } .product-item-content { padding: 1rem; position: relative; z-index: 2; transition: all 0.3s ease; } .product-item:hover .product-item-content { transform: translateY(-2px); } .product-item-content p { font-size: 1rem; font-weight: 600; color: #146b27; margin: 0; transition: color 0.3s ease; } .product-item:hover .product-item-content p { color: #0f5520; } .product-item-content small { font-size: 0.85rem; color: #666; margin-top: 0.3rem; display: block; transition: color 0.3s ease; } .product-item:hover .product-item-content small { color: #444; } /* Animation for product filter transitions */ .product-item { opacity: 1; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); animation: fadeInUp 0.4s ease-out; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes fadeOutDown { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(10px) scale(0.95); } } .product-item.hidden { display: none; } .product-item.filtering-out { opacity: 0; transform: scale(0.95) translateY(10px); pointer-events: none; } /* Location Section */ .location { background-color: white; } .location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; } .location-item { background: white; padding: 2rem; border-radius: 15px; text-align: center; transition: transform 0.3s ease, background-color 1s ease; } .location-item:hover { background-color: rgba(164, 218, 176, 0.259); } .location-icon { margin-bottom: 1rem; display: flex; justify-content: center; } .location-item h3 { color: #146b27; font-size: 1.3rem; font-weight: 600; margin: 0; } /* Contact Section */ .contact-section { background-color: #f8f9fa; padding: 5rem 0; } .contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } .contact-left { display: flex; justify-content: center; align-items: center; position: relative; } .contact-left img { width: 100%; border-radius: 15px; } .contact-left::before { content: 'E-Mail'; position: absolute; right:-20px; bottom: 50%; transform: translateY(50%); background: rgba(219, 149, 28, 0.9); z-index: 1; border-radius: 0px; padding: 10px 40px; font-size: 30px; font-weight: 700; color: white; } .email-image { text-align: center; background: linear-gradient(135deg, #146b27, #1a7a2e); padding: 3rem 2rem; border-radius: 15px; color: white; box-shadow: 0 10px 30px rgba(20, 107, 39, 0.3); } .email-image h2 { font-size: 2rem; margin-bottom: 1rem; font-weight: 600; } .email-icon { display: flex; justify-content: center; } .contact-right { padding: 2rem; } .contact-info h3 { color: #146b27; font-size: 1.8rem; margin-bottom: 1rem; } .contact-info p { font-size: 1.6rem; line-height: 1.6; } .contact-info p a { color: #0b0b0b; text-decoration: none; } .contact-info p a:hover { font-weight: 600; } /* Footer Section */ .footer { background: #146b27; color: white; padding: 3rem 0 1rem; } .footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; } .footer-left { display: flex; align-items: center; gap: 15px; } .footer-logo { height: 40px; width: auto; } .footer-company-name { display: flex; flex-direction: column; line-height: 1.2; } .footer-company-main { font-size: 1.4rem; font-weight: 700; color: white; letter-spacing: 1px; } .footer-company-sub { font-size: 0.6rem; font-weight: 500; color: rgba(255, 255, 255, 0.8); letter-spacing: 1.5px; margin-top: -2px; } .footer-right { text-align: right; } .footer-contact p { font-size: 1.1rem; color: white; } .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.8); } /* Animation Classes */ .fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; } .fade-in.visible { opacity: 1; transform: translateY(0); } /* Scroll to Top Button */ .scroll-top { position: fixed; bottom: 110px; right: 20px; background: #146b27; color: white; border: none; border-radius: 50%; width: 50px; height: 50px; cursor: pointer; display: none; transition: all 0.3s ease; z-index: 1000; } .scroll-top:hover { background: #1a7a2e; transform: translateY(-2px); } .scroll-top.visible { display: block; } /* Responsive Design */ @media screen and (max-width: 1400px) { .product-gallery { grid-template-columns: repeat(3, 1fr); max-width: 900px; } } @media screen and (max-width: 1200px) { .container { padding: 0 35px; } .banner-content h1 { font-size: 1.3rem; margin-bottom: 0.7rem; } .banner-content .slogan1 { font-size: 3rem; line-height: 1.4; margin-bottom: 0rem; } .banner-content .slogan2 { font-size: 1.6rem; margin-bottom: 1.6rem; } .banner-content .keywords { font-size: 0.9rem; padding: 10px 30px; max-width: 800px; width:90%; margin: 0 auto; } .services-content { margin: 0 auto !important; width: 80%; padding: 60px !important; } .location-grid { grid-template-columns: repeat(4, 1fr); } } @media screen and (max-width: 992px) { .about-content p, .services-content p { line-height: 1.4; } .location-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } .contact-content { gap: 2rem; } .contact-left::before { right: -15px; padding: 8px 30px; font-size: 26px; } .contact-right { padding: 1rem; } .contact-info h3 { font-size: 1.6rem; margin-bottom: 0.8rem; } .contact-info p { font-size: 1.4rem; } } @media screen and (max-width: 768px) { .hamburger { display: flex; } .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05); padding: 2rem 0; } .nav-menu.active { left: 0; } .nav-menu li { margin: 1rem 0; } .hamburger.active .bar:nth-child(2) { opacity: 0; } .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); } .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); } .banner { padding-left: 15px; padding-right: 15px; } .banner-content .keywords { font-size: 1rem; padding: 1rem; } .section-title { font-size: 2rem; } .about-content h2, .services-content h2 { font-size: 1.5rem; } .about-content p, .services-content p { font-size: 1rem; } .services-content { margin: 0 auto !important; width: 100%; padding: 60px 35px !important; } .product-gallery { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } .filter-btn { padding: 0.6rem 1rem; font-size: 0.9rem; } .footer-content { flex-direction: column; text-align: center; gap: 2rem; } .footer-left { flex-direction: column; gap: 10px; } .company-name { } .nav-logo .logo { height: 45px; } .header.scrolled .nav-logo .logo { height: 35px; } .company-main { font-size: 1.6rem; } .header.scrolled .company-main { font-size: 1.3rem; } .company-sub { font-size: 0.6rem; } .header.scrolled .company-sub { font-size: 0.55rem; } .footer-company-name { text-align: center; } .footer-company-main { font-size: 1.2rem; } .footer-company-sub { font-size: 0.55rem; } .contact-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; } .contact-left::before { right: 50%; bottom: 50%; transform: translate(50%, 50%); padding: 10px 40px; font-size: 26px; } .contact-right { padding: 1rem; } .contact-info h3 { font-size: 1.6rem; margin-bottom: 0.8rem; } .contact-info p { font-size: 1.4rem; } /* Logo adjustments for tablet */ .nav-logo { gap: 12px; } .nav-logo .logo { height: 50px; } .header.scrolled .nav-logo .logo { height: 40px; } .company-main { font-size: 1.8rem; } .header.scrolled .company-main { font-size: 1.4rem; } .company-sub { font-size: 0.7rem; } .header.scrolled .company-sub { font-size: 0.6rem; } } @media screen and (max-width: 850px) { .nav-menu { gap: 1.5rem; } .nav-link { font-size: 16px; } } @media screen and (max-width: 620px) { .product-gallery { grid-template-columns: 1fr; gap: 1rem; } .footer-right { text-align: center; } .footer-contact p { font-size: 0.8rem; color: white; } } @media screen and (max-width: 480px) { .container { padding: 0 30px; } section { padding: 3rem 0; } .location-grid { grid-template-columns: repeat(1, 1fr); gap: 1rem; } .location-item { padding: 1rem; margin: 0px; } .contact-content { grid-template-columns: 1fr; gap: 1.5rem; } .email-image { padding: 2rem 1rem; } .email-image h2 { font-size: 1.5rem; } .contact-left::before { padding: 5px 25px; font-size: 22px; } .contact-info h3 { font-size: 1.2rem; margin-bottom: 0.8rem; } .contact-info p { font-size: 1.0rem; } }