@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800;900&display=swap');

/* ===== CSS Variables ===== */
:root {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-lighter: #52b788;
    --primary-pale: #74c69d;
    --primary-faint: #95d5b2;
    --primary-bg: #d8f3dc;
    --accent: #ffd60a;
    --accent-dark: #ffc300;
    --dark: #1b4332;
    --dark-bg: #0d2818;
    --danger: #e63946;
    --danger-light: #ff6b6b;
    --white: #ffffff;
    --light-bg: #f8fdf8;
    --gray-100: #f5f5f5;
    --gray-200: #e8e8e8;
    --gray-300: #d1d1d1;
    --gray-500: #888;
    --gray-700: #555;
    --gray-900: #222;
    --font: 'Noto Sans Bengali', 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45,106,79,0.3);
}
.btn-primary:hover {
    background: var(--primary-light);
    box-shadow: 0 6px 20px rgba(45,106,79,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}
.btn-danger:hover {
    background: var(--danger-light);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(255,214,10,0.3);
}
.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 17px; }

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ===== Header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(27, 67, 50, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}
#header.scrolled {
    background: rgba(27, 67, 50, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
}
.logo-icon {
    font-size: 28px;
    background: rgba(255,255,255,0.15);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.logo-text strong { font-size: 18px; font-weight: 800; }
.logo-text small { font-size: 11px; opacity: 0.8; font-weight: 500; }

#mainNav {
    display: flex;
    gap: 6px;
}
#mainNav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid transparent;
}
#mainNav a:hover,
#mainNav a.active {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.header-actions {
    display: flex;
    gap: 10px;
}
.header-actions .btn {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 18px;
    align-items: center;
    justify-content: center;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg,
            rgba(45,106,79,0.15) 0%,
            rgba(82,183,136,0.1) 30%,
            rgba(149,213,178,0.08) 60%,
            rgba(216,243,220,0.1) 100%
        ),
        radial-gradient(ellipse at 20% 80%, rgba(74,198,134,0.25) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(255,214,10,0.15) 0%, transparent 60%),
        linear-gradient(180deg, #1b4332 0%, #2d6a4f 30%, #40916c 50%, #52b788 70%, #74c69d 85%, #95d5b2 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5c2 0 3 3 3 6 0 4-3 7-3 7s-3-3-3-7c0-3 1-6 3-6z' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 0;
}

.hero-text { flex: 1; max-width: 600px; }

.hero-text h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-icons {
    flex-shrink: 0;
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.hero-animal {
    font-size: 120px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    animation: bounce 3s ease-in-out infinite;
}

.duck-anim { animation-delay: 0s; }
.goat-anim { animation-delay: 0.5s; }

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 3;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Products ===== */
.products-section {
    background: var(--light-bg);
}

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

.tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    background: var(--white);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    transition: var(--transition);
}
.tab-btn:hover {
    border-color: var(--primary-pale);
    color: var(--primary);
}
.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.product-card.hidden { display: none; }

.product-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #e8f5e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-placeholder {
    font-size: 80px;
    animation: floatUp 3s ease-in-out infinite;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}
.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}
.product-desc {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}
.product-stock {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}
.in-stock { background: #dcfce7; color: #16a34a; }
.out-stock { background: #fef2f2; color: #dc2626; }

.product-info .btn { width: 100%; justify-content: center; }
.product-info .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== Order Section ===== */
.order-section {
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--primary-bg) 100%);
}

.order-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
}

.order-form {
    padding: 35px;
}
.order-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-form h3 i { color: var(--primary); }
.order-form h3:not(:first-child) { margin-top: 25px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-lighter);
    box-shadow: 0 0 0 3px rgba(82,183,136,0.15);
}

.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; }

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.form-actions .btn { flex: 1; justify-content: center; }

/* Order Summary */
.order-summary {
    padding: 30px;
    position: sticky;
    top: 90px;
}
.order-summary h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-summary h3 i { color: var(--accent-dark); }

.summary-items {
    min-height: 60px;
    margin-bottom: 15px;
}
.summary-empty {
    text-align: center;
    color: var(--gray-500);
    font-size: 14px;
    padding: 20px 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px dashed var(--gray-200);
}
.summary-item:last-child { border-bottom: none; }
.summary-item .item-name {
    display: flex;
    align-items: center;
    gap: 6px;
}
.summary-item .item-qty {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 12px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: var(--gray-700);
}
.summary-total {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    padding: 10px 0;
}

/* ===== About / Features ===== */
.about-section {
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Gallery ===== */
.gallery-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--primary-bg) 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius);
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}
.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    padding: 12px 10px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}
.gallery-item:hover span { transform: translateY(0); }

/* ===== Contact ===== */
.contact-section {
    background: var(--primary-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.contact-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.contact-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 12px;
}
.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 15px;
    color: var(--gray-700);
}

/* ===== Footer ===== */
#footer {
    background: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 30px 0;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--white);
}
.footer-brand .logo-icon { font-size: 24px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); }

/* ===== Floating Social ===== */
.floating-social {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999;
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: var(--transition);
}
.social-btn:hover { transform: translateY(-3px) scale(1.1); }
.phone-btn { background: var(--primary); }
.whatsapp-btn { background: #25d366; }
.telegram-btn { background: #0088cc; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal-overlay.active { display: flex; }

.modal {
    padding: 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: scaleIn 0.3s ease-out;
}
.modal-icon { font-size: 64px; margin-bottom: 15px; }
.modal h2 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 10px;
}
.modal p {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.modal .btn { margin-top: 15px; }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes floatUp {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

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

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-icons { justify-content: center; }
    .hero-animal { font-size: 80px; }

    .order-wrapper { grid-template-columns: 1fr; }
    .order-summary { position: static; }
}

@media (max-width: 768px) {
    #mainNav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(27, 67, 50, 0.98);
        flex-direction: column;
        padding: 15px;
    }
    #mainNav.active { display: flex; }

    .header-actions { display: none; }
    .mobile-toggle { display: flex; }

    .hero-text h1 { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }

    .section { padding: 50px 0; }
    .section-header h2 { font-size: 26px; }

    .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }

    .footer-inner { flex-direction: column; text-align: center; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-animal { font-size: 60px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-tabs { flex-wrap: wrap; }
}
