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

:root {
    /* Color Palette - Premium Dark Green & Glowing Mint (Reference Image inspired) */
    --bd-dark-bg: #00120f;              /* Deepest Dark Forest Green */
    --bd-teal-card: #012b24;            /* Rich Dark Teal Container Background */
    --bd-teal-border: #004d40;          /* Forest Border Green */
    --bd-mint-accent: #00e5a3;          /* Glowing Mint/Cyan Brand Color */
    --bd-mint-hover: #00ffcc;
    --bd-neon-green: #34c759;
    
    /* Typography Colors */
    --bd-text-title: #ffffff;           /* Crisp White Header text */
    --bd-text-body: #a4b8b4;            /* Soft Sage Gray Paragraph text */
    --bd-text-muted: #62827d;           /* Muted Teal-Gray text */
    
    /* Soft glowing ambient shadows */
    --bd-shadow-sm: 0 2px 10px rgba(0, 229, 163, 0.05);
    --bd-shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 229, 163, 0.08);
    --bd-shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 229, 163, 0.15);
    
    /* Squircle Roundings */
    --radius-bd-card: 20px;
    --radius-bd-control: 12px;
    --radius-bd-pill: 9999px;
    
    /* Easing standard */
    --transition-bd: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bd-fast: 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bd-dark-bg);
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "SF Compact Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--bd-dark-bg);
    color: var(--bd-text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-width: 0;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Rules */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--bd-text-title);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 600;
}

p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--bd-text-body);
}

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

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section {
    padding: clamp(3.5rem, 7vw, 7rem) 0;
    background-color: var(--bd-dark-bg);
}

.section-teal {
    background-color: var(--bd-teal-card);
    border-top: 1px solid var(--bd-teal-border);
    border-bottom: 1px solid var(--bd-teal-border);
}

.text-center {
    text-align: center;
}

/* Grid & Flex */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-align-center {
    align-items: center;
}

.flex-justify-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

/* Headers */
.section-header {
    max-width: 650px;
    margin: 0 auto 2.5rem auto;
    width: 100%;
}

@media (min-width: 768px) {
    .section-header {
        margin: 0 auto 3.5rem auto;
    }
}

.section-header .tag {
    display: inline-block;
    color: var(--bd-mint-accent);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* Glassmorphism overlay */
.bd-glass {
    background: rgba(1, 43, 36, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bd-teal-border);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bd-dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bd-teal-border);
    border-radius: var(--radius-bd-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bd-mint-accent);
}
