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

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Barlow', Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

:root {
    /* --primary-blue: #1e3a8a; */
    --primary-blue: #0f9d58;
    --primary-red: #dc2626;
    /* --primary-orange: #ea580c; */
    --primary-orange: #dc2626;
    --light-gray: #f8f9fa;
    --dark-gray: #374151;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.section-title,
.company-title {
    font-family: 'Salsa', cursive;
}
::-webkit-scrollbar {
    width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
background: #dc2626;
border-radius: 10px;
}

::-webkit-scrollbar-track {
box-shadow: inset 0 0 5px #dc2626;
}

/* Header Styles */
.header {
    background: #90EE90;
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, #0b6b3a 100%); */
    color: #111827;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.top-bar-container{
    flex-wrap: wrap;
    gap: 1rem;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-orange);
    text-decoration: none;
}
.logo img{
    width: 260px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    /* color: var(--dark-gray); */
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-orange);
    background: rgba(234, 88, 12, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark-gray);
    font-size: 1.5rem;
    cursor: pointer;
}

/* start dropdown */
/* Dropdown Menu (hidden by default) */
.dropdown{
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, #0b6b3a 100%); */
    background:  #90EE90;
    min-width: 200px;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1;
    padding: 8px 0;
  }
  
  /* Show Dropdown on Hover */
  .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Dropdown Item Styling */
  .dropdown-menu li a {
    padding: 12px 20px;
    font-size: 0.95rem;
    display: flex;
    color: #333;
  }
  /* .dropdown-menu li a{
    color: var(--dark-gray);
  } */
  
  .dropdown-menu li a:hover {
    color: var(--primary-orange);
    background: rgba(234, 88, 12, 0.1);
  }
  
  /* Optional: Add triangle indicator for dropdown */
  .dropdown .dropbtn::after {
    content: " ▼";
    font-size: 0.7em;
    vertical-align: middle;
    color: #aaa;
  }
/* end dropdown */

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    /* Hide the desktop menu */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #ffffff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        border-top: 1px solid #e5e7eb;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
        z-index: 1000;
    }

    /* Show when toggled */
    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        /* color: var(--dark-gray);  */
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        color: #222;
    }
    .dropdown-menu{
        position: relative;
        background: #fff;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        padding-left: 20px;
    }
    .logo img{
        width: 140px;
    }

    /* Show hamburger */
    .mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 6px;
        transition: background 0.2s ease;
    }

    .mobile-menu-btn:hover {
        background: rgba(0,0,0,0.04);
    }
}

/* Main Content */
.main-content {
    margin-top: 80px;
}

/* Hero Section */
.hero{
    background: url('../images/rice-car.webp') center/cover;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.4;
}
 /* slider */
 .hero.banner-slideshow{
    position: relative;
    width: 100%;
    height: 70vh; 
    overflow: hidden;
}
.banner-slideshow .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeAnim 15s infinite;
  }
  .banner-slideshow .slide1 {
    background: url('../images/rice-car.webp') center/cover;
    animation-delay: 0s;
  }
  .banner-slideshow .slide2 {
    background: url('../images/rice.webp') center/cover;
    animation-delay: 5s;
  }
  .banner-slideshow .slide3 {
    background: url('../images/sugar-45.jpeg') center/cover;
    animation-delay: 10s;
  }
  .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: 0.4;
}
  @keyframes fadeAnim {
    0% { opacity: 0; }
    8% { opacity: 1; }
    33% { opacity: 1; }
    41% { opacity: 0; }
    100% { opacity: 0; }
  }
 /* end slider */

.hero-content {
    position: relative;
    z-index: 2;
}
.banner-slideshow .hero-content{
    width: 100%;
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #fff;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive Hero */
@media (max-width: 992px) {
    .hero {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 50vh;
        padding: 0 1rem;
    }
    .hero-content h1 {
        font-size: 2.3rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
        min-height: 280px;
    }
    .hero-content h1 {
        font-size: 1.9rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
}

.cta-button {
    background: var(--primary-orange);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.cta-button:hover {
    background: #c2410c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.4);
}

/* Company Info Section */
.company-info {
    background: white;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.company-info-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.since-badge {
    background: var(--primary-red);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.company-title {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: bold;
}

.company-subtitle {
    font-size: 1.4rem;
    color: var(--primary-orange);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Section Styles */
.about-section {
    padding: 2rem 0rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    font-weight: bold;
    position: relative;
}
.section-title.philippines,
.section-title.product{
    margin-top: 3rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text h3 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: bold;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* Products Section */
.products-section {
    background: var(--light-gray);
    padding: 4rem 2rem;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-repeat: no-repeat;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(234, 88, 12, 0.1) 100%);
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.product-content p {
    color: #666;
    line-height: 1.7;
}

/* Features Section */
.features-section {
    background: white;
    padding: 4rem 2rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #f97316 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    border-left: 6px solid var(--primary-orange);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-card p {
    color: #e5e7eb;
    font-weight: 500;
}

/* Company Details Grid */
.company-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.detail-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 1px solid #f1f5f9;
}

.detail-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.detail-card p {
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Contact Styles */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #f97316 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(234, 88, 12, 0.3);
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.contact-card p {
    color: #555;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 700px;
    margin: 3rem auto;
    border: 1px solid #f1f5f9;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Business Hours */
.business-hours {
    max-width: 600px;
    margin: 3rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.business-hours h3 {
    color: var(--primary-blue);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.hours-item {
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--primary-orange);
}

.hours-item strong {
    color: var(--primary-blue);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0b6b3a 100%);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* gap: 3rem; */
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: white;
}

/* Responsive adjustments for About/Content pages */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .products-grid{
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 1.5rem 2rem;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    .section-title.philippines,.section-title.product{
        margin-top: 2rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .features-section {
        padding: 3rem 1rem;
    }

    .feature-card {
        padding: 1.75rem;
    }

    .company-info {
        padding: 3rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.9rem;
    }

    .feature-card {
        padding: 1.5rem;
    }
}