/* Color Palette: Bright Theme with Navy & Golden Accents */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --bg-main: #FFFFFF; 
    --bg-sec: #F8FAFC; 
    --text-main: #0B203E; 
    --text-muted: #4A5568;
    --accent: #B87333; 
    --accent-hover: #9E5B22;
    --navy-brand: #0A192F; 
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(10, 25, 47, 0.08);
    --shadow-soft: 0 12px 35px rgba(184, 115, 51, 0.08);
    --shadow-hover: 0 25px 50px rgba(184, 115, 51, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
body { background-color: var(--bg-main); color: var(--text-main); overflow-x: hidden; position: relative; }

/* Language Toggle */
body.lang-bn .en { display: none !important; }
body:not(.lang-bn) .bn { display: none !important; }

.lang-switch {
    position: fixed; bottom: 30px; right: 30px; z-index: 9999;
    background: var(--navy-brand); color: #fff; border: 2px solid var(--accent);
    border-radius: 50px; padding: 12px 25px; font-weight: 700; font-size: 1rem;
    cursor: pointer; box-shadow: var(--shadow-soft); transition: 0.3s;
}
.lang-switch:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); background: var(--accent); color: var(--navy-brand); }

/* DOODLE BACKGROUND */
.doodle-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; pointer-events: none;
    opacity: 0.18; /* More visible */
    background: radial-gradient(circle at 50% 50%, var(--bg-main), var(--bg-sec));
}
.doodle {
    position: absolute; width: 45px; height: 45px; /* Smaller */
    color: var(--navy-brand);
    filter: blur(1px); /* Less blur for more visibility */
    transition: 0.3s ease;
}
.doodle svg { width: 100%; height: 100%; }

/* Placements for 16 objects */
.d1 { top: 10%; left: 5%; animation: float1 25s infinite ease-in-out; width: 50px; height: 50px; }
.d2 { top: 20%; right: 10%; animation: float2 30s infinite ease-in-out; width: 60px; height: 60px; }
.d3 { bottom: 30%; left: 15%; animation: float1 22s infinite ease-in-out; width: 45px; height: 45px; }
.d4 { bottom: 15%; right: 18%; animation: float2 28s infinite ease-in-out; width: 70px; height: 70px; }
.d5 { top: 45%; left: 12%; animation: float1 35s infinite ease-in-out; width: 55px; height: 55px; }
.d6 { top: 60%; right: 12%; animation: float2 20s infinite ease-in-out; width: 40px; height: 40px; }
.d7 { top: 75%; left: 35%; animation: float1 24s infinite ease-in-out; width: 50px; height: 50px; }
.d8 { top: 15%; right: 35%; animation: float2 26s infinite ease-in-out; width: 45px; height: 45px; }
.d9 { top: 35%; left: 25%; animation: float2 21s infinite ease-in-out; width: 40px; height: 40px; }
.d10 { top: 50%; right: 28%; animation: float1 29s infinite ease-in-out; width: 55px; height: 55px; }
.d11 { bottom: 10%; left: 45%; animation: float2 18s infinite ease-in-out; width: 60px; height: 60px; }
.d12 { top: 5%; left: 40%; animation: float1 32s infinite ease-in-out; width: 45px; height: 45px; }
.d13 { bottom: 40%; right: 8%; animation: float2 23s infinite ease-in-out; width: 50px; height: 50px; }
.d14 { top: 85%; right: 40%; animation: float1 27s infinite ease-in-out; width: 65px; height: 65px; }
.d15 { top: 30%; left: 45%; animation: float2 19s infinite ease-in-out; width: 50px; height: 50px; }
.d16 { bottom: 25%; left: 5%; animation: float1 31s infinite ease-in-out; width: 40px; height: 40px; }
.d17 { top: 20%; left: 55%; animation: float-slow-move 45s infinite linear; width: 75px; height: 75px; }
.d18 { bottom: 15%; right: 45%; animation: float-slow-move 38s infinite linear reverse; width: 65px; height: 65px; }
.d19 { top: 60%; left: 15%; animation: float-slow-move 50s infinite linear; width: 80px; height: 80px; }
.d20 { top: 35%; right: 5%; animation: float-slow-move 42s infinite linear reverse; width: 55px; height: 55px; }
.d21 { bottom: 35%; left: 10%; animation: float-large-move 60s infinite ease-in-out; width: 65px; height: 65px; }
.d22 { top: 12%; right: 25%; animation: float-cross-move 55s infinite linear; width: 70px; height: 70px; }
.d23 { bottom: 5%; left: 35%; animation: float-large-move 48s infinite ease-in-out reverse; width: 50px; height: 50px; }
.d24 { top: 65%; right: 18%; animation: float-cross-move 70s infinite linear reverse; width: 85px; height: 85px; }
.d25 { top: 25%; left: 40%; animation: float1 33s infinite ease-in-out; width: 90px; height: 90px; }
.d26 { bottom: 20%; right: 30%; animation: float-slow-move 39s infinite linear; width: 60px; height: 60px; }
.d27 { top: 45%; left: 5%; animation: float-large-move 52s infinite ease-in-out; width: 75px; height: 75px; }
.d28 { top: 75%; right: 8%; animation: float2 36s infinite ease-in-out; width: 45px; height: 45px; }
.d29 { bottom: 50%; left: 50%; animation: float-cross-move 65s infinite linear; width: 55px; height: 55px; }
.d30 { top: 10%; left: 20%; animation: float-large-move 45s infinite ease-in-out reverse; width: 50px; height: 50px; }
.d31 { top: 70%; left: 35%; animation: float-slow-move 41s infinite linear; width: 60px; height: 60px; }
.d32 { bottom: 15%; left: 25%; animation: float-large-move 55s infinite ease-in-out; width: 75px; height: 75px; }
.d33 { top: 30%; right: 35%; animation: float-cross-move 62s infinite linear reverse; width: 80px; height: 80px; }
.d34 { bottom: 45%; right: 15%; animation: float1 40s infinite ease-in-out; width: 90px; height: 90px; }
.d35 { top: 15%; left: 75%; animation: float-large-move 48s infinite ease-in-out reverse; width: 85px; height: 85px; }
.d36 { top: 5%; right: 55%; animation: float-cross-move 75s infinite linear; width: 70px; height: 70px; }
.d37 { bottom: 25%; right: 55%; animation: float-slow-move 50s infinite linear reverse; width: 65px; height: 65px; }
.d38 { top: 80%; left: 15%; animation: float2 38s infinite ease-in-out; width: 80px; height: 80px; }
.d39 { bottom: 5%; right: 25%; animation: float-large-move 68s infinite ease-in-out; width: 70px; height: 70px; }
.d40 { top: 55%; right: 40%; animation: float-cross-move 58s infinite linear reverse; width: 85px; height: 85px; }

@keyframes float1 {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-40px) rotate(15deg) scale(1.1); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes float2 {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(40px) rotate(-20deg) scale(0.9); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes float-slow-move {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(60px, -40px) rotate(15deg) scale(1.1); }
    66% { transform: translate(-30px, 40px) rotate(-10deg) scale(0.95); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes float-large-move {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(120px, -80px) rotate(25deg) scale(1.2); }
    50% { transform: translate(-60px, -150px) rotate(45deg) scale(0.9); }
    75% { transform: translate(-150px, 60px) rotate(-15deg) scale(1.1); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
@keyframes float-cross-move {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-250px, 150px) rotate(-45deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border); box-shadow: var(--shadow-soft);
}
.brand { font-size: 28px; font-weight: 900; color: var(--navy-brand); letter-spacing: 1.5px; text-transform: uppercase; }
.brand span { color: var(--accent); }
.nav-links a {
    color: var(--text-main); text-decoration: none; margin-left: 35px;
    font-weight: 700; transition: 0.3s; font-size: 1rem; text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); }

/* Hero Section */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: space-between;
    padding: 120px 5% 0; position: relative; z-index: 10;
}
.hero-content { flex: 1; z-index: 10; max-width: 650px; }
.hero h1 { font-size: 5rem; font-weight: 900; line-height: 1.1; margin-bottom: 25px; color: var(--navy-brand); }
.hero h1 .highlight { color: var(--accent); }
.hero p { font-size: 1.6rem; color: var(--text-muted); margin-bottom: 45px; font-weight: 500; }

.cta-btn {
    display: inline-block; padding: 18px 45px;
    background: var(--navy-brand); color: #fff;
    text-decoration: none; font-weight: 800; text-transform: uppercase;
    border-radius: 50px; font-size: 1.1rem; border: 2px solid var(--navy-brand);
    transition: all 0.3s ease; box-shadow: 0 10px 20px rgba(10,25,47,0.2);
}
.cta-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--navy-brand); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(212,175,55,0.4); }

/* 3D Animated Hero Logo */
.hero-visual { flex: 1; display: flex; justify-content: center; position: relative; perspective: 1000px; }
.hero-logo-container {
    width: 550px; height: 550px;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
    animation: float3d 8s infinite ease-in-out;
}
.hero-logo {
    width: 100%; height: auto; max-height: 100%;
    transition: transform 0.3s;
}
.hero-logo:hover {
    transform: scale(1.05) translateZ(30px);
}

@keyframes float3d {
    0% { transform: translateY(0) rotateX(8deg) rotateY(-12deg); }
    50% { transform: translateY(-25px) rotateX(-5deg) rotateY(10deg); }
    100% { transform: translateY(0) rotateX(8deg) rotateY(-12deg); }
}

/* Sections */
section { padding: 120px 5%; position: relative; z-index: 10; }
section:nth-child(even) { background: rgba(255,255,255,0.4); backdrop-filter: blur(10px); }
.section-title {
    text-align: center; font-size: 3.2rem; margin-bottom: 70px;
    font-weight: 900; color: var(--navy-brand); text-transform: uppercase;
}

/* Features Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card {
    background: #ffffff; 
    border-radius: 25px; padding: 45px 35px; text-align: center;
    border: 2px solid rgba(184, 115, 51, 0.2); 
    box-shadow: 0 15px 40px rgba(10, 25, 47, 0.08), 0 5px 15px rgba(184, 115, 51, 0.06);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease; 
    position: relative; overflow: hidden;
    backdrop-filter: blur(15px);
}
.card:hover { transform: translateY(-12px) scale(1.02); box-shadow: var(--shadow-hover); border-color: rgba(184, 115, 51, 0.4); }
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover)); 
    transform: scaleX(0); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); transform-origin: center;
}
.card:hover::before { transform: scaleX(1); }

.feature-icon { 
    font-size: 4.5rem; margin-bottom: 25px; color: var(--navy-brand); 
    display: inline-block; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.4s ease;
}
.card:hover .feature-icon { transform: scale(1.15) rotate(5deg); color: var(--accent); }
.card h3 { font-size: 1.7rem; margin-bottom: 15px; color: var(--navy-brand); font-weight: 900; transition: color 0.4s; }
.card:hover h3 { color: var(--accent); }
.card p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.6; }

/* Badges */
.badge {
    position: absolute; top: 20px; right: 20px;
    background: var(--accent); color: var(--navy-brand);
    padding: 8px 18px; border-radius: 25px; font-weight: 800; font-size: 0.9rem;
    box-shadow: 0 5px 15px rgba(212,175,55,0.4);
}

/* Products */
.product-card { text-align: center; }
.product-img {
    height: 220px; width: 100%; background: #fff; border-radius: 15px;
    margin-bottom: 30px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); border: 2px dashed #cbd5e0; box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
}
.product-price { font-size: 2.5rem; font-weight: 900; color: var(--navy-brand); margin-top: 20px; }

/* Pricing */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card.premium {
    background: var(--navy-brand); color: #fff; border-color: var(--navy-brand);
    transform: scale(1.05); box-shadow: 0 30px 60px rgba(10,25,47,0.25);
}
.pricing-card.premium:hover { transform: scale(1.05) translateY(-10px); }
.pricing-card.premium h3, .pricing-card.premium p { color: #fff; }
.pricing-card.premium .price-tag { color: var(--accent); }
.pricing-card.premium .cta-btn { background: var(--accent); border-color: var(--accent); color: var(--navy-brand); }
.price-tag { font-size: 3.5rem; font-weight: 900; color: var(--navy-brand); margin: 25px 0; }
.price-tag span { font-size: 1.2rem; color: var(--text-muted); }
.pricing-card.premium .price-tag span { color: #a0aec0; }
.features-list { list-style: none; text-align: left; margin: 35px 0; flex-grow: 1; }
.features-list li { margin-bottom: 15px; padding-left: 30px; position: relative; font-weight: 600; font-size: 1.1rem; }
.features-list li::before { content: '✔'; position: absolute; left: 0; color: var(--accent); font-weight: 900; font-size: 1.2rem; }

/* Form */
.contact-form { max-width: 700px; margin: 0 auto; background: rgba(255,255,255,0.95); padding: 50px; border-radius: 25px; box-shadow: var(--shadow-hover); border: 1px solid var(--glass-border); }
input, select {
    width: 100%; padding: 18px; margin-bottom: 25px;
    background: var(--bg-sec); border: 2px solid #e2e8f0;
    border-radius: 12px; color: var(--text-main); font-size: 1.1rem; font-weight: 600;
    transition: 0.3s;
}
input:focus, select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }
button[type="submit"] {
    width: 100%; padding: 20px; border: none; border-radius: 12px;
    background: var(--navy-brand); color: #fff; font-weight: 900; font-size: 1.2rem;
    text-transform: uppercase; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(10,25,47,0.2);
}
button[type="submit"]:hover { background: var(--accent); color: var(--navy-brand); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(212,175,55,0.4); }

/* Footer */
footer { background: var(--navy-brand); color: #fff; padding: 70px 5%; text-align: center; position: relative; z-index: 10; }
footer h2 { color: var(--accent); font-size: 2.2rem; margin-bottom: 20px; font-weight: 900; }
footer p { color: #a0aec0; margin-bottom: 10px; font-size: 1.1rem; }
footer a { color: var(--accent); text-decoration: none; font-weight: bold; }

/* Animations on Scroll */
.fade-up { opacity: 0; transform: translateY(50px); transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Responsive Design (Mobile / Tablet) */
@media (max-width: 1024px) {
    .hero h1 { font-size: 4rem; }
    .hero-logo-container { width: 450px; height: 450px; }
}

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; margin-left: 0; }
    .nav-links a { margin-left: 0; font-size: 0.9rem; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 160px; justify-content: center; }
    .hero h1 { font-size: 3rem; }
    .hero p { font-size: 1.2rem; }
    .hero-visual { margin-top: 50px; }
    .hero-logo-container { width: 350px; height: 350px; }
    
    section { padding: 80px 5%; }
    .section-title { font-size: 2.5rem; margin-bottom: 40px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1rem; }
    .hero-logo-container { width: 280px; height: 280px; }
    .cta-btn { padding: 15px 30px; font-size: 1rem; }
    
    .section-title { font-size: 2rem; }
    .card { padding: 30px 20px; }
    .price-tag { font-size: 2.8rem; }
    .contact-form { padding: 30px 20px; }
    
    .lang-switch { bottom: 20px; right: 20px; padding: 10px 20px; font-size: 0.9rem; }
    
    /* Reduce doodles on mobile to prevent clutter */
    .d9, .d10, .d11, .d12, .d13, .d14, .d15, .d16 { display: none; }
}
