:root {
    /* Color Palette */
    --primary: #00d2ff;
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --accent: #ff0080;
    --accent-gradient: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
    --health-emerald: #10b981;
    --health-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-main: #1e293b;
    --text-muted: #64748b;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-blur: blur(12px);

    /* Spacing & Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --max-width: 1200px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem;
    /* Ensure vertical padding is preserved */
}

section {
    padding: 2rem 0;
    /* Base padding, overridden by container in most cases */
    position: relative;
    z-index: 1;
}

/* Header & Nav */
header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 1000px;
    height: 4.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.logo img {
    height: 32px;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav ul li a:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    min-height: 30vh;
    padding: 4rem 0 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(180px, auto);
    /* Smaller minimum height */
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.bento-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    /* Slightly smaller radius */
    padding: 1.5rem;
    /* Reduced padding for smaller look */
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-card h3 {
    font-size: 1.25rem;
    /* Smaller titles */
    margin-bottom: 0.50rem;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.bento-card .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bento-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.bento-card .icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Variations */
.card-wide {
    grid-column: span 2;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-tall {
    grid-row: span 2;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-wide,
    .card-large,
    .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Features/Services Section */
.services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-item {
    padding: 3rem;
    text-align: left;
}

.service-item .symbol {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Contact Section */
.contact-section {
    background: #ffffff;
    /* Explicit white to avoid confusion */
    color: var(--text-main);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 0 !important;
    /* Heavily reduced vertical padding */
}

.contact-section h2 {
    color: var(--text-main);
    font-size: 2rem;
    /* Smaller heading */
    margin-bottom: 0.5rem;
}

.contact-section .text-muted {
    color: var(--text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    /* Reduced gap */
    margin-top: 1rem;
}

.contact-box-minimal {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 1s ease forwards;
}