html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Increased to fix spacing for the floating menu */
}

:root {
    --bg-page: #0B1220; --bg-surface: #121B2E; --bg-surface-raised: #182338;
    --accent-gold: #D4A857; --accent-gold-hover: #E0B96C;
    --accent-teal: #4FB3A9; --accent-teal-dim: #2C5C56;
    --text-primary: #EDEAE2; --text-muted: #8B96AC; --text-on-gold: #1A1305;
    --border-hairline: #24304A;
}

body { 
    background-color: var(--bg-page); 
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    padding: 0; 
    padding-top: 120px; /* Pushed down so content doesn't hide behind floating nav */
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* HIGHLIGHT START: Real Life Glass Refraction Navbar */
.navbar { 
    position: fixed; 
    top: 12px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 92%; 
    max-width: 900px; 
    z-index: 1000; 
    
    /* More transparent background so you see the content behind it */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.0) 100%);
    
    /* This creates the real physics glass reflection/refraction effect */
    /* Saturate brings out colors behind it, contrast makes it sharp, brightness adds shine */
    backdrop-filter: blur(20px) saturate(200%) contrast(120%) brightness(110%); 
    -webkit-backdrop-filter: blur(20px) saturate(200%) contrast(120%) brightness(110%); 
    
    /* Brighter, thicker top and left edges for realistic light catching */
    border: 1px solid rgba(255, 255, 255, 0.15); 
    border-top: 1.5px solid rgba(255, 255, 255, 0.6); 
    border-left: 1.5px solid rgba(255, 255, 255, 0.4);
    
    border-radius: 100px; 
    /* Deep outer shadow and bright inner shadow to make it a 3D glass object */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}
/* HIGHLIGHT END */

/* HIGHLIGHT START: Removed logo CSS, updated nav-container to center links better */
.nav-container { padding: 10px 20px; display: flex; justify-content: center; align-items: center; gap: 40px; } 
/* HIGHLIGHT END */
.nav-links { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; align-items: center; }

/* Apple Style Nav Links */
.nav-link { 
    text-decoration: none; 
    color: var(--text-muted); 
    font-size: 14px; 
    font-weight: 500; 
    padding: 8px 16px; 
    border-radius: 100px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
}
.nav-link:hover { 
    color: var(--text-primary); 
    background: rgba(255, 255, 255, 0.1); 
}
.nav-link.active { 
    color: var(--text-primary); 
    background: rgba(255, 255, 255, 0.15); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

/* Make the button fit the round Apple theme */
.navbar .btn-secondary { 
    height: 38px; 
    padding: 0 18px; 
    border-radius: 100px; 
    font-size: 13px; 
    border: 1px solid rgba(79, 179, 169, 0.4); 
    /* Push button slightly away from links if they get too close */
    margin-left: auto;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%); 
    color: var(--accent-teal); 
    cursor: pointer; 
    transition: all 0.3s ease; 
    display: inline-flex; 
    align-items: center; 
    text-decoration: none; 
    backdrop-filter: blur(8px);
}
.navbar .btn-secondary:hover { background: rgba(79, 179, 169, 0.15); border-color: var(--accent-teal); transform: translateY(-2px); }

h1, h2 { font-family: 'Space Grotesk', sans-serif; font-weight: 600; line-height: 1.2; margin: 0 0 16px 0; }
h1 { font-size: 40px; letter-spacing: -0.5px; margin-bottom: 12px; } 
h2 { font-size: 26px; letter-spacing: -0.25px; } 
h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; margin: 8px 0; } 
strong { font-weight: 600; color: var(--text-primary); }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-teal); display: inline-block; min-height: 18px; }
p { font-size: 15px; max-width: 600px; margin-bottom: 20px; } 
.text-muted { color: var(--text-muted); font-size: 13px; }

.container { max-width: 1000px; margin: 0 auto; padding: 64px 24px; } 
.page-section { padding-top: 32px; }
.bento-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; } 

/* True Liquid Glass Design */
.card { 
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Light edge for thick glass look */
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* Light edge for thick glass look */
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-radius: 24px; 
    padding: 20px; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
} 
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(79, 179, 169, 0.2);
    border-color: rgba(79, 179, 169, 0.3);
}

.intro-card { display: flex; flex-direction: column; justify-content: center; padding: 28px; position: relative; } 
.physics-card { transform-style: preserve-3d; will-change: transform; }
.physics-card:hover { border-color: rgba(79, 179, 169, 0.5); }

.glow-effect { position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: inherit; background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.1), transparent 40%); opacity: 0; transition: opacity 0.3s; pointer-events: none; } 
.physics-card:hover .glow-effect { opacity: 1; }

.changing-greet { font-size: 32px; margin-bottom: 8px; color: var(--text-primary); transition: opacity 0.5s ease-in-out; } 

.image-card { position: relative; padding: 0 !important; overflow: hidden; min-height: 280px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.2); } 
.image-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.image-card:hover img { transform: scale(1.05); } 
.image-label { position: absolute; bottom: 16px; left: 16px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%); color: var(--text-primary); padding: 6px 14px; border-radius: 8px; font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.15); border-top: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 10px rgba(0,0,0,0.3); } 

.btn-primary { background-color: var(--accent-gold); color: var(--text-on-gold); border: none; border-radius: 8px; padding: 0 20px; height: 40px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; text-decoration: none; position: relative; z-index: 10; box-shadow: 0 4px 15px rgba(212, 168, 87, 0.3); } 
.btn-primary:hover { background-color: var(--accent-gold-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212, 168, 87, 0.5); }
.button-group { margin-top: 16px; position: relative; z-index: 10; }

.connector { width: 1px; height: 48px; background: linear-gradient(to bottom, transparent, var(--accent-teal-dim), transparent); margin: 64px auto; position: relative; } 
.connector::before, .connector::after { content: ''; width: 6px; height: 6px; background-color: var(--accent-teal); border-radius: 50%; position: absolute; left: -2.5px; box-shadow: 0 0 10px var(--accent-teal); }
.connector::before { top: 0; } .connector::after { bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; } 
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.big-tags { gap: 10px; } .big-tags .tag { font-size: 13px; padding: 8px 14px; }
.tag { background: rgba(255, 255, 255, 0.05); color: var(--accent-teal); font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px); }

/* Apple-style glass swipe and blur reveal animation */
.scroll-reveal { 
    opacity: 0; 
    transform: translateY(30px) scale(0.98); 
    filter: blur(12px); /* Starts blurry like frosted glass */
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); 
    will-change: opacity, transform, filter; 
}

.scroll-reveal.visible { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
    filter: blur(0); /* Clears up beautifully as it slides in */
}

/* Footer Styles */
.site-footer { text-align: center; padding: 32px 24px; border-top: 1px solid rgba(255, 255, 255, 0.05); background: linear-gradient(135deg, rgba(11, 18, 32, 0.4) 0%, rgba(11, 18, 32, 0.1) 100%); color: var(--text-muted); font-size: 14px; margin-top: 40px; backdrop-filter: blur(12px); }

@media (max-width: 768px) {
    h1 { font-size: 28px; } h2 { font-size: 20px; }
    .container { padding: 40px 24px; }
    .bento-grid { grid-template-columns: 1fr; }
    .intro-card { padding: 20px; } .image-card { min-height: 240px; }
    .connector { margin: 40px auto; }
    .physics-card { transform: none !important; }
    .glow-effect { display: none; }
}

/* =========================================
   NEW PROJECT SECTION DESIGN 
   ========================================= */

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.blue-line {
    width: 4px;
    height: 40px;
    background-color: #3b82f6;
    border-radius: 4px;
}

.section-header h2 {
    margin: 0;
    font-size: 36px;
}

.project-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: #3b82f6;
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    background-color: var(--bg-surface-raised);
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-project-btn {
    background-color: #1a1a1a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #333;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-project-btn:hover {
    background-color: #2a2a2a;
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin: 0 0 12px 0;
}

.project-content p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.project-content .tags {
    margin-top: auto; /* Pushes the tags to the very bottom */
}

/* Darker pill-shaped tags to match the image */
.project-content .tag {
    background-color: #1c1c1e; 
    color: #a1a1aa;
    border: 1px solid #333;
    border-radius: 100px;
    padding: 6px 14px;
}

/* =========================================
   NEW CONTACT SECTION DESIGN 
   ========================================= */

.contact-subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 700px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}

/* Left Side: Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method-card:hover:not(.non-clickable) {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
    transform: translateX(8px); /* Smooth slide to the right */
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background-color: #1c1c1e;
    color: #a1a1aa;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.contact-method-card:hover:not(.non-clickable) .contact-icon {
    background-color: #3b82f6;
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h4 {
    color: var(--text-primary);
    margin: 0 0 4px 0;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.contact-info span {
    color: var(--text-muted);
    font-size: 14px;
}

.non-clickable {
    cursor: default;
}

/* Right Side: CTA Card */
.contact-cta {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-hairline);
    border-radius: 24px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-cta h3 {
    font-size: 32px;
    margin: 0 0 16px 0;
}

.contact-cta p {
    color: var(--text-muted);
    margin: 0 0 32px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* =========================================
   FIXED CONTACT CTA BUTTONS
   ========================================= */
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Resetting the button styles specifically for the CTA section */
.cta-buttons a.btn-full {
    width: 100%;
    height: 56px; /* Taller, more premium feel */
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Prevents padding from breaking the width */
}

/* Specific styling for the white email button */
.cta-buttons a.btn-primary {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 0; /* Removing old padding */
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.cta-buttons a.btn-primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

/* Specific styling for the WhatsApp outline button */
.cta-buttons a.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0;
}

.cta-buttons a.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-buttons svg {
    flex-shrink: 0; /* Prevents the icon from getting squished */
}


/* =========================================
   PREMIUM FOOTER DESIGN
   ========================================= */
.site-footer {
    margin-top: 100px;
    padding: 40px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
}

.footer-dots {
    display: flex;
    gap: 6px;
}

.footer-dots span {
    width: 4px;
    height: 4px;
    background-color: #3b82f6; /* Blue accent dot */
    border-radius: 50%;
}


/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-cta {
        padding: 32px 24px;
    }
    .footer-content {
        flex-direction: column;
        gap: 12px;
    }
    .footer-dots {
        display: none; /* Hide dots on mobile for a cleaner stack */
    }
}

/* Tablet & Smaller Desktop Optimization */
@media (max-width: 1024px) {
    .container { max-width: 900px; padding: 48px 20px; }
    .bento-grid { grid-template-columns: 1fr; } /* Stack intro and image */
    .navbar { width: 95%; }
}

/* Mobile & Small Tablet Optimization */
@media (max-width: 768px) {
    body { padding-top: 100px; }
    
    /* Navbar: Make it more compact for mobile */
    .navbar { width: 95%; top: 8px; }
    .nav-container { padding: 8px 15px; gap: 15px; }
    .nav-links { display: none; } /* Consider a mobile menu toggle here if needed */
    
    /* Typography: Smaller text for small screens */
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    
    /* Grid: Make sure cards stack in one column */
    .grid { grid-template-columns: 1fr; gap: 16px; }
    
    /* Contact Section: Stack correctly */
    .contact-grid { grid-template-columns: 1fr; }
    
    /* Footer */
    .site-footer { margin-top: 60px; padding: 30px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
}

/* Very Small Mobile Optimization (e.g., iPhone SE/mini) */
@media (max-width: 480px) {
    .container { padding: 30px 15px; }
    .card { padding: 16px; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* HIGHLIGHT START: মোবাইল মেনু ডিজাইন */
.menu-toggle {
    display: none; /* ডেসকটপে এটা দেখা যাবে না */
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; } /* মোবাইলে এটা দেখাবে */
    
    .nav-links {
        display: none; /* ডিফল্ট ভাবে লুকিয়ে থাকবে */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 27, 46, 0.95);
        flex-direction: column;
        padding: 20px 0;
        border-radius: 20px;
    }
    
    .nav-links.active { display: flex; } /* বাটন ক্লিক করলে এটা চালু হবে */
}
/* HIGHLIGHT END */