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

/* ========== CSS Variables ========== */
:root {
  --orange:     #E8601C;
  --orange-dark: #C84E10;
  --green:      #3A7D30;
  --green-light: #4A9D3E;
  --white:      #ffffff;
  --light-bg:   #FFF8F5;
  --dark:       #1E2024;
  --text-mid:   #4B5563;
  --border:     #E5E7EB;
  --radius-md:  20px;
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { font-family: "Poppins", sans-serif; background-color: var(--white); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
.bg-light { background-color: var(--light-bg); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
img { display: block; max-width: 100%; }
a, button, .btn { cursor: pointer; text-decoration: none; }

/* Loader */
.loader-wrapper { position: fixed; inset: 0; background: var(--white); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader-wrapper.hide { opacity: 0; visibility: hidden; }
.loader-container { text-align: center; }

/* Buttons & Tags */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; border: none; transition: var(--transition); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--orange); transform: translateY(-2px); }
.section-tag { display: inline-block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; color: var(--orange); background: rgba(232,96,28,0.1); padding: 0.35rem 1rem; border-radius: 30px; margin-bottom: 0.9rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; color: var(--dark); }
.section-header p { color: var(--text-mid); }

/* Header */
.header { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.06); z-index: 1000; transition: var(--transition); }
.header.scrolled { box-shadow: 0 4px 24px rgba(232,96,28,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 5%; height: 80px; }

/* Logo Area */
.logo-area { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.logo-icon { width: 50px; height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 100%; height: 100%; display: block; }
.logo-text { display: flex; flex-direction: column; justify-content: center; }
.brand-name { font-size: 1.5rem; font-weight: 800; color: var(--orange); line-height: 1; }
.brand-sub { font-size: 0.68rem; font-weight: 500; color: var(--green); margin-top: 4px; }

/* Navigation */
.navbar { display: flex; align-items: center; height: 100%; }
.nav-menu { display: flex; gap: 1.8rem; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-link { color: var(--dark); font-weight: 500; font-size: 0.93rem; transition: color 0.3s; display: flex; align-items: center; gap: 5px; }
.nav-link:hover, .nav-link.active { color: var(--orange); }

/* Dropdown Desktop */
.dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-menu { position: absolute; top: 100%; left: 0; background: var(--white); min-width: 240px; border-radius: 8px; box-shadow: 0 12px 36px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; border-top: 3px solid var(--orange); transition: var(--transition); z-index: 100; transform: translateY(10px); list-style: none; padding: 0; margin: 0; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li { list-style: none; margin: 0; padding: 0; }
.dropdown-menu li a { display: block; padding: 0.8rem 1.4rem; color: var(--text-mid); font-size: 0.88rem; transition: var(--transition); border-bottom: 1px solid #f9f9f9; }
.dropdown-menu li a:hover { background: rgba(232,96,28,0.07); color: var(--orange); padding-left: 1.8rem; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.bar { width: 24px; height: 3px; background: var(--orange); transition: var(--transition); border-radius: 2px; }

/* Hero */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-video-wrapper { position: absolute; inset: 0; z-index: 0; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #1a0a00 0%, #8B3610 40%, #2C6122 100%); z-index: -1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(30,10,0,0.62) 0%, rgba(58,125,48,0.55) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 0 1rem; }
.hero-title { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 800; margin-bottom: 1.2rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 2.2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections Global */
.categories, .about, .contact { padding: 6rem 0; background: var(--white); }
.categories { background: var(--light-bg); }

/* Category Grid (Index Page) */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.category-card { background: var(--white); border-radius: var(--radius-md); padding: 2.5rem 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid var(--border); transition: var(--transition); display: block; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(232,96,28,0.1); border-color: var(--orange); }
.category-content h3 { color: var(--dark); font-size: 1.3rem; margin-bottom: 0.8rem; }
.category-content p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
.category-link { color: var(--orange); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

/* Categories Page Specific Layout */
.page-padding { padding: 120px 0 60px; }
.layout-sidebar { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
.sidebar { background: var(--white); padding: 2rem; border-radius: var(--radius-md); box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: sticky; top: 100px; }
.sidebar h3 { color: var(--green); margin-bottom: 1.5rem; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.category-list { list-style: none; margin: 0; padding: 0; }
.category-list li { margin-bottom: 0.5rem; }
.filter-btn { display: block; width: 100%; text-align: left; padding: 0.8rem 1rem; border-radius: 8px; background: transparent; color: var(--text-mid); font-weight: 500; transition: var(--transition); border: 1px solid transparent; }
.filter-btn:hover, .filter-btn.active { background: rgba(232,96,28,0.1); color: var(--orange); border-color: rgba(232,96,28,0.2); }

.category-section { display: none; animation: fadeUp 0.4s ease forwards; }
.category-section.active { display: block; }
.section-title { font-size: 2rem; color: var(--dark); margin-bottom: 2rem; border-bottom: 3px solid var(--orange); padding-bottom: 0.5rem; display: inline-block; }

.detailed-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; }
.product-item { background: var(--white); border-radius: 16px; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition); border: 1px solid var(--border); cursor: pointer; display: flex; flex-direction: column; height: 100%; }
.product-item:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(232,96,28,0.1); border-color: var(--orange); }
.product-item img { width: 100%; height: 180px; object-fit: contain; margin: 0 auto 1.5rem; background: #fff; border-radius: 8px; }
.product-item h4 { color: var(--dark); font-size: 1.1rem; margin-bottom: 0.8rem; pointer-events: none; }
.product-item p { color: var(--text-mid); font-size: 0.85rem; margin-bottom: 1.5rem; flex-grow: 1; pointer-events: none; }
.view-details { display: inline-block; background: var(--orange); color: var(--white); padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; transition: var(--transition); cursor: pointer; margin-top: auto; }
.view-details:hover { background: var(--orange-dark); transform: translateY(-2px); }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; overflow-y: auto; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; padding: 20px; }
.modal.active { display: flex; opacity: 1; }
.modal-content { background: var(--white); max-width: 500px; width: 100%; margin: auto; border-radius: var(--radius-md); position: relative; animation: modalSlideIn 0.4s ease; padding: 2.5rem; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal-close { position: absolute; top: 1.2rem; right: 1.5rem; font-size: 2rem; cursor: pointer; color: #a1a1aa; transition: color 0.3s; line-height: 1; }
.modal-close:hover { color: var(--orange); }
.modal-product-details { text-align: center; }
.modal-product-details img { width: 100%; max-width: 250px; height: 250px; object-fit: contain; margin: 0 auto 1.5rem; }
.modal-product-details h3 { font-size: 1.6rem; color: var(--orange); margin-bottom: 1.2rem; }
.modal-product-details p { margin-bottom: 0.8rem; line-height: 1.6; color: var(--text-mid); }
.modal-product-details strong { color: var(--dark); }
.modal-product-details .usage { background: var(--light-bg); padding: 1.2rem; border-radius: 10px; margin-top: 1.5rem; text-align: left; }

@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* About & Contact */
.about-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: center; }
.about-logo-wrap { display: flex; justify-content: center; align-items: center; width: 100%; max-width: 320px; margin: 0 auto; }
.about-logo-wrap svg { width: 100%; height: auto; display: block; }
.about-content h2 { margin-bottom: 1.5rem; color: var(--dark); }
.about-content p { color: var(--text-mid); line-height: 1.7; margin-bottom: 1.2rem; font-size: 1.05rem; }

.contact-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-details { list-style: none; margin-top: 2rem; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-details li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 0; }
.contact-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(232,96,28,0.1); color: var(--orange); display: flex; justify-content: center; align-items: center; flex-shrink: 0; font-size: 1.4rem; }
.contact-text { display: flex; flex-direction: column; padding-top: 4px; }
.contact-text strong { color: var(--dark); font-size: 0.95rem; margin-bottom: 2px; }
.contact-text span { color: var(--text-mid); font-size: 0.95rem; }

.contact-form { background: var(--white); padding: 3rem; border-radius: var(--radius-md); box-shadow: 0 10px 40px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { width: 100%; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 1.2rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 0.95rem; transition: var(--transition); background: #fafafa; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); background: var(--white); box-shadow: 0 0 0 3px rgba(232,96,28,0.1); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; padding: 1rem; }

/* Footer */
.footer { background: var(--dark); color: #E2E8F0; padding: 4rem 0 1.5rem; }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand h2 { margin-bottom: 0.5rem; }
.footer-brand p { display: flex; align-items: flex-start; gap: 8px; margin-top: 0.8rem; color: #94A3B8; font-size: 0.85rem; line-height: 1.5; }
.footer-links h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #94A3B8; display: block; padding: 0.4rem 0; transition: color 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--orange); padding-left: 5px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.8rem; color: #64748b; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up, .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal.active, .fade-up { animation: fadeUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards; }

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 968px) {
  /* Layout Shifts */
  .layout-sidebar { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { position: static; padding: 1.5rem; }
  .about-container, .contact-container, .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .about-container { text-align: center; }
  .about-logo-wrap svg { max-width: 240px; }
  .contact-info { text-align: center; }
  .contact-details { align-items: center; }
  .contact-details li { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }

  /* Navbar Mobile Fix */
  .hamburger { display: flex; }
  .nav-menu { position: fixed; left: -100%; top: 80px; flex-direction: column; background: var(--white); width: 100%; height: calc(100vh - 80px); padding: 2rem 5%; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: left 0.3s ease; z-index: 999; overflow-y: auto; display: block; list-style: none; margin: 0; }
  .nav-menu.active { left: 0; display: flex; flex-direction: column; align-items: flex-start; }
  .nav-menu li { width: 100%; list-style: none; }
  .nav-link { width: 100%; padding: 1.2rem 0; border-bottom: 1px solid #f0f0f0; font-size: 1.1rem; justify-content: space-between; }
  
  /* Mobile Dropdown Fix */
  .dropdown { display: block; width: 100%; height: auto; }
  .dropdown-menu { position: static; box-shadow: none; border: none; display: none; padding: 0 0 1rem 1.5rem; width: 100%; opacity: 1; visibility: visible; transform: none; background: transparent; border-left: 2px solid var(--orange); margin-top: 0.5rem; list-style: none; }
  .dropdown.active .dropdown-menu { display: block; }
  .dropdown-menu li { list-style: none; margin: 0; padding: 0; }
  .dropdown-menu li a { padding: 0.8rem 0; border-bottom: 1px solid #f9f9f9; font-size: 1rem; color: var(--text-mid); }
  .dropdown-menu li:last-child a { border-bottom: none; }

  /* Forms & Buttons */
  .hero-buttons { flex-direction: column; align-items: center; width: 100%; padding: 0 1rem; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 2rem; }
}

@media (max-width: 480px) {
  /* Logo */
  .logo-icon { width: 42px; height: 42px; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: 0.55rem; }
  
  /* Text */
  .hero-title { font-size: 2.5rem; }
  .section-header h2 { font-size: 1.8rem; }
  
  /* Padding */
  .categories, .about, .contact { padding: 4rem 0; }
  .page-padding { padding: 100px 0 40px; }
  
  /* Modals */
  .modal-content { padding: 1.5rem; }
  .modal-product-details img { max-width: 180px; height: 180px; }
  .modal-product-details h3 { font-size: 1.3rem; }
}