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

:root {
    --primary-color: #2c5530;
    --secondary-color: #4a7c59;
    --accent-color: #ffa726;
    --light-green: #e8f5e8;
    --dark-text: #2c3e50;
    --light-text: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --success-color: #28a745;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    margin: 0;
    padding-top: 70px;
}

/* Navigation */
.navbar {
    background: rgba(44, 85, 48, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--light-text) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.lighthouse-icon {
    animation: lighthouse-glow 3s ease-in-out infinite alternate;
}

@keyframes lighthouse-glow {
    from { text-shadow: 0 0 5px var(--accent-color); }
    to { text-shadow: 0 0 20px var(--accent-color), 0 0 30px var(--accent-color); }
}

.navbar-nav .nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after,.navbar-nav .nav-active::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover::after,.navbar-nav .nav-active::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: var(--light-text);
    padding: 120px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    color: var(--light-text);
    z-index: 2;
    position: relative;
    padding: 50px;
}

.hero-content img {
    margin-top: 5px;
    width: 125px;
    height: 250px;
}

/* Established Badge */
.established-badge {
    display: inline-block;
    background: rgba(255, 167, 38, 0.2);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.9s forwards;
    transition: all 0.3s ease;
}

.established-badge:hover {
    background: rgba(255, 167, 38, 0.3);
    transform: translateY(-2px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: slideInUp 1s ease-out 1.2s forwards;
}

.hero .lead {
    font-size: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInUp 1s ease-out 1.5s forwards;
}

.cta-buttons {
    opacity: 0;
    animation: slideInUp 1s ease-out 1.8s forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary-custom {
    background: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-right: 15px;
    color: var(--dark-text);
    margin: 10px;
}

.btn-primary-custom:hover {
    background: #ff9800;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 167, 38, 0.3);
    color: var(--dark-text);
}

.btn-outline-custom {
    border: 2px solid var(--light-text);
    color: var(--light-text);
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-custom:hover {
    background: var(--light-text);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

/* Features Section */
.features {
    padding: 50px 0;
    background: var(--light-green);
}

/* Products Section */
.products {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2.2em;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa500);
    border-radius: 2px;
}

.fruits-title::after {
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
}

.vegetables-title::after {
    background: linear-gradient(90deg, #4ecdc4, #44a08d);
}

.product-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 167, 38, 0.1), transparent);
    transition: left 0.6s ease;
}

.product-card:hover::before {
    left: 100%;
}

.product-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.product-name {
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.product-features {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.product-variants {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.feature-tag, .variant-tag {
    background: var(--accent-color);
    color: var(--dark-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.variant-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.product-card:hover .feature-tag {
    background: var(--primary-color);
    color: white;
}

.vegetable-card::before {
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
}

.vegetable-card .variant-tag {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
}

.feature-card.animated {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Stats Section */
.stats {
    background: var(--primary-color);
    padding: 80px 0;
    color: var(--light-text);
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.stat-item.animated {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--gray-light);
}

.contact-info {
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: fit-content;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-green);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(44, 85, 48, 0.1);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.contact-icon i {
    color: var(--light-text);
    font-size: 1.2rem;
}

.contact-details h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    color: var(--gray-medium);
    line-height: 1.5;
}

/* Social Section */
.social-section h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    color: var(--dark-text);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-header { 
    margin-bottom: 40px; 
    text-align: center; 
}

.form-header h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-header p { 
    color: var(--gray-medium); 
}

.form-group { 
    position: relative; 
    margin-bottom: 25px; 
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-control {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.15);
    background: white;
    outline: none;
}

/* Form Validation Styles */
.form-control:invalid {
    border-color: #e9ecef;
    box-shadow: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.form-icon {
    position: absolute;
    top: 40px;
    left: 15px;
    color: var(--gray-medium);
    font-size: 1rem;
}

.textarea-icon { 
    top: 60px; 
}

.form-check-label { 
    font-size: 0.9rem; 
    color: var(--gray-medium); 
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 14px 30px;
    border-radius: 12px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 85, 48, 0.25);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-icon { 
    margin-left: 10px; 
}

.alert-success {
    margin-top: 20px;
    border-radius: 12px;
    background: var(--light-green);
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

.alert-danger {
    margin-top: 20px;
    border-radius: 12px;
    background: #fff5f5;
    border: none;
    color: #dc3545;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 15px 20px;
}

/* Footer */
footer {
    background: orange;
    color: var(--light-text);
    padding: 50px 0 20px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-align: end;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* About us page */
.about-hero {
    height: 70vh;
    background: url("asset/about-hero.jpg") center/cover no-repeat;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.about-hero p { 
    font-size: 1.2rem; 
}

.about-section h2 { 
    color: var(--primary-color); 
    font-weight: 700; 
}

.about-section p { 
    color: var(--dark-text); 
    font-size: 1.1rem; 
}

.mission-vision {
    background: #f9f9f9;
}

.mission-vision h2 { 
    color: var(--primary-color); 
    margin-bottom: 20px; 
}

.mission-vision .card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.mission-vision .card:hover {
    transform: translateY(-5px);
}

.global-reach h2 { 
    color: var(--primary-color); 
    font-weight: 700; 
}

.global-reach p { 
    max-width: 700px; 
    margin: 0 auto; 
}

/* Products page animations */
@keyframes float {
    0% { transform: translateX(-100px) translateY(-100px); }
    100% { transform: translateX(100px) translateY(100px); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
}

.floating-elements::after {
    background: #4ecdc4;
    bottom: 10%;
    left: 10%;
    animation: bounce 8s infinite ease-in-out reverse;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.section {
    padding: 60px 40px;
    position: relative;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .contact-info { 
        margin-bottom: 40px; 
    }
    .contact-form-wrapper { 
        padding: 30px; 
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        display: block;
        margin: 10px 0;
        width: 100%;
    }
    
    .pharos-logo {
        width: 150px;
        height: 225px;
    }
    
    .established-badge {
        font-size: 1rem;
        padding: 8px 20px;
    }
    
    .about-hero h1 { 
        font-size: 2rem; 
    }
    
    .about-hero p { 
        font-size: 1rem; 
    }
    
    .contact-section { 
        padding: 60px 0; 
    }
    
    .btn-submit { 
        font-size: 1rem; 
        padding: 12px 20px; 
    }
    
    .section {
        padding: 40px 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 576px) {
    footer { 
        text-align: center; 
    }
    
    footer .text-end { 
        text-align: center !important; 
        margin-top: 30px; 
    }
    
    .footer-social { 
        justify-content: center; 
    }
}