:root {
    /* "Teal Green" Theme Variables */

    /* Primary Accents */
    --primary-color: #0f766e;
    /* Teal 700 - Darker for text/icons */
    --primary-hover: #115e59;
    /* Teal 800 */

    /* Backgrounds - Vibrant Gradient */
    --bg-color: #ccfbf1;
    --bg-gradient-start: #1a614b;
    /* Deep Green */
    /* Teal 400 (Base) */
    --bg-gradient-end: #00ffe3;
    /* Bright Teal */
    /* Teal 500 */

    /* Surface - "White Block" Style */
    --surface-color: rgba(255, 255, 255, 0.9);
    /* High Opacity White */
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.1);

    /* Typography Color Update */
    --text-color: #ffffff;
    /* Revert Global to White for Background */
    --text-secondary: #e2e8f0;
    /* Light Grey/Blue */

    --backdrop-blur: 0px;
    /* No blur for solid blocks */
    --radius-lg: 8px;
    /* Sharper corners */
    /* More rounded */
    --radius-md: 16px;
    --transition-speed: 0.3s;

    /* Typography */
    --font-serif: 'Inter', sans-serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    /* Vibrant diagonal gradient */
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);

    /* Force Dark Text inside Glass Blocks */
    color: #01160c;
    /* Darkest Green */
}

.glass h1,
.glass h2,
.glass h3,
.glass h4,
.glass h5,
.glass h6,
.glass .display-1,
.glass .display-2,
.glass .display-3,
.glass .display-4 {
    color: #18bea1;
    /* Bright Teal for Headings */
}

.glass p,
.glass li,
.glass span,
.glass .text-secondary {
    color: #01160c !important;
    /* Darkest Green for text */
}

.glass .text-muted {
    color: #475569 !important;
    /* Readable dark grey */
}

.glass-card {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    /* Solid white on hover */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    /* Smaller, punchy uppercase */
    color: #ffffff;
    /* Revert to White */
    text-shadow: none;
}

h1,
.display-1,
.display-2,
.display-3,
.display-4 {
    text-transform: none;
    /* Keep main headers normal */
    font-size: 3rem;
    letter-spacing: normal;
    /* Main title still white on gradient */
}

p,
li,
.small,
.lead {
    font-family: var(--font-sans);
    line-height: 1.6;
}

.text-gradient {
    /* Gradient Text that pops against white */
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary {
    color: #115e59 !important;
    /* Dark Teal for icons */
}

/* Make sure text-primary pops on dark background check */
body:not(.glass) .hero-section .text-primary,
body .text-primary.text-white-on-dark {
    color: white !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: #64748b !important;
}

/* Training stages numbers */
.training-steps .display-6,
.training-steps .training-step-number,
.training-steps .text-primary,
.training-steps .text-success {
    color: #01160c !important;
}

/* Buttons */
.btn-primary-ios {
    /* Glassy Gradient Button - More Solid */
    background: radial-gradient(circle at top left, rgba(32, 201, 151, 0.8), rgba(20, 184, 166, 0.6));
    color: #ffffff;
    /* White text */
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary-ios:hover {
    background: radial-gradient(circle at top left, rgba(32, 201, 151, 0.5), rgba(20, 184, 166, 0.3));
    color: #ffffff;
    border-color: #5eead4;
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.5), 0 0 10px rgba(45, 212, 191, 0.3);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    /* Thicker border */
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    /* More visible backdrop */
    /* High opacity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.6rem;
    color: #115e59 !important;
}

.nav-link {
    font-weight: 600;
    color: #334155 !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 160px 0 120px;
    /* More spacing */
    position: relative;
    overflow: hidden;
}

.hero-blob {
    /* Subtle highlight blob */
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0.6;
    border-radius: 50%;
    z-index: -1;
    top: -100px;
    right: -100px;
    filter: blur(80px);
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.4);
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Form Controls */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.05);
    /* Solid white for inputs */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Crisp border */
    color: white;
    /* White text */
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.2);
    color: var(--text-color);
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    /* Custom ease */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Table overrides */
.table {
    color: inherit;
    /* inherit from parent (block or body) */
}

.table-borderless th,
.table-borderless td {
    color: inherit;
}

.border-bottom {
    border-bottom: 1px solid #e2e8f0 !important;
}

/* Specific Color Customization */
.hero-section .lead {
    color: #01160c !important;
    font-weight: 500;
}

.glass-card .text-secondary {
    color: #01160c !important;
}

.card.rounded-4 {
    background-color: #17bca2 !important;
}

.card.rounded-4 .text-secondary,
.card.rounded-4 .card-body {
    color: #01160c !important;
}

/* Custom Utilities requested by User */
.text-teal-dark {
    color: #317765 !important;
}

.glass-68 {
    background: rgba(255, 255, 255, 0.68) !important;
}

/* Override Form Controls to be Solid */
.form-control,
.form-select {
    background-color: #ffffff !important;
    /* Solid White */
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
    /* Dark text */
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(23, 188, 162, 0.25) !important;
    border-color: #17bca2 !important;
}
