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

:root {
    /* Default - Dark Theme */
    --clr-bg: #020617;
    --clr-surface: #0f172a;
    --clr-text-main: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-white: #ffffff;
    --clr-accent: #22d3ee;
    --clr-accent-dim: #0891b2;
    --grad-primary: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
    --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.2);
    --border: rgba(255, 255, 255, 0.05);
    
    /* Spacing & Rounding Improvements */
    --br-hero: 40px;
    --br-card: 24px;
    --br-btn: 50px;
    --section-pad: clamp(4rem, 8vw, 7rem);
    --card-gap: 1.5rem;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --clr-bg: #f8fafc;
    --clr-surface: #ffffff;
    --clr-text-main: #0f172a;
    --clr-text-muted: #64748b;
    --clr-white: #000000;
    --border: rgba(0, 0, 0, 0.08);
}

/* Bilingual Support */
[data-lang="en"] .lang-bn { display: none !important; }
[data-lang="bn"] .lang-en { display: none !important; }

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.15;
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Container & Grids */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad) 0;
}

/* Navbar */
.nav-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2.5rem;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    z-index: 2000;
    transition: var(--transition);
}

.nav-header.scrolled {
    top: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    background: var(--clr-bg);
}

.nav-logo img { height: 38px; }

.nav-links { display: flex; gap: 2.5rem; }
.nav-links a { font-weight: 600; font-size: 0.9rem; color: var(--clr-text-muted); }
.nav-links a:hover { color: var(--clr-accent); }

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

.lang-switch {
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    color: var(--clr-accent);
}

.theme-toggle { cursor: pointer; font-size: 1.1rem; color: var(--clr-text-muted); }
.theme-toggle:hover { color: var(--clr-accent); }

.nav-cta {
    background: var(--grad-primary);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: var(--br-btn);
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: var(--shadow-glow);
}

/* Hero Section Refined */
.hero-v2 {
    position: relative;
    height: 85vh;
    padding: 1rem;
}

.hero-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--br-hero);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--clr-bg) 0%, transparent 60%);
}

.hero-content-v2 {
    max-width: 750px;
    z-index: 10;
}

.hero-content-v2 h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

/* Bento & Cards Refined */
.bento-item {
    background: var(--clr-surface);
    border-radius: var(--br-card);
    padding: 2.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--card-gap);
}

.product-item {
    background: var(--clr-surface);
    border-radius: var(--br-card);
    padding: 1.25rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    border-color: var(--clr-accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-img-box {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-unit {
    background: rgba(34, 211, 238, 0.1);
    color: var(--clr-accent);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    display: inline-block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Forms Refined */
.form-group-v2 { margin-bottom: 1.5rem; }
.label-v2 {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-accent);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.input-v2 {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--clr-bg);
    border: 1px solid var(--border);
    color: var(--clr-text-main);
    border-radius: 16px;
    font-family: inherit;
    transition: var(--transition);
}

.input-v2:focus {
    outline: none;
    border-color: var(--clr-accent);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

/* High-End Footer Design */
.fat-footer {
    background: var(--clr-surface);
    border-top: 1px solid var(--border);
    padding: 6rem 0 2rem;
    border-radius: var(--br-hero) var(--br-hero) 0 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--clr-text-main);
    margin-bottom: 2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col ul li a { color: var(--clr-text-muted); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--clr-accent); padding-left: 5px; }

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
}

/* Buttons Refined */
.btn-v2 {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: var(--br-btn);
    font-weight: 800;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-v2-main { background: var(--grad-primary); color: #000; }
.btn-v2-main:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3); }

.btn-v2-outline { border: 2px solid var(--clr-accent); color: var(--clr-accent); }
.btn-v2-outline:hover { background: var(--clr-accent); color: #000; }

.text-grad {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-pill {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--clr-accent);
    display: inline-block;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block !important; }
    .hero-v2 { height: auto; padding: 1rem 0; }
    .hero-inner { height: auto; padding: 4rem 1.5rem; text-align: center; }
}
