/*
    Theme: Business Coaching
    Design System: Glassmorphism & Volumetric UI
    Color Scheme: Gradient
    Animation Style: Hand-drawn elements
    Fonts: Playfair Display (Headings), Source Sans Pro (Body)
*/

/* --- CSS Variables --- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;

    /* Gradient Color Scheme */
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --accent-pink: #ec4899;
    --accent-purple: #a855f7;

    /* Text Colors */
    --text-light: #f3f4f6; /* Off-white for better readability */
    --text-dark: #1f2937;
    --text-muted: #d1d5db;

    /* Glassmorphism Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-bg-hover: rgba(255, 255, 255, 0.2);
    --glass-border-color: rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

    /* Volumetric UI */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.15);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    --header-height: 80px;
}

/* --- Global & Base Styles --- */
body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #FFFFFF;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* --- Typography & Links --- */
a {
    transition: color 0.3s ease;
}

.font-semibold.text-pink-300 {
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.font-semibold.text-pink-300::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-pink);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.font-semibold.text-pink-300:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}


/* --- Header & Navigation --- */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple Parallax Effect */
}

#hero h1 {
    color: #FFFFFF; /* Enforcing white color for hero title */
}

/* --- Glassmorphism & Volumetric UI Components --- */

/* Base style for glass cards, used by Tailwind class */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--glass-shadow);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphism:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Global Button Styles */
.volumetric-button, button, input[type='submit'] {
    display: inline-block;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.volumetric-button:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    filter: brightness(1.1);
}

.volumetric-button:active, button:active, input[type='submit']:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* --- Card Styles --- */
.card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center;
    height: 100%; /* Make cards in a row equal height */
}

.card .card-image {
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0.5rem;
}

.card .card-image img {
    width: 100%;
    height: 200px; /* Fixed height for consistent image size */
    object-fit: cover; /* Ensures image covers the area without distortion */
    transition: transform 0.4s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card .card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to take up remaining space */
    justify-content: space-between;
}

/* --- Form Styles --- */
form input[type="text"],
form input[type="email"],
form textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-color);
    box-shadow: var(--shadow-inset);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form textarea:focus {
    background: var(--glass-bg-hover);
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.5); /* Corresponds to Tailwind's ring-pink-400 */
}

/* --- Progress Indicators & Widgets --- */
.progress-bar {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.stat-widget {
    animation: hand-drawn-pop 0.5s ease-out backwards;
}

.stat-widget p:first-child {
    text-shadow: 0 0 15px var(--accent-pink);
}

/* --- Footer --- */
footer a {
    text-decoration: none;
    color: var(--text-muted);
}

footer a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* --- Specific Page Styles --- */
/* For success.html */
.success-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

/* For pages like privacy.html and terms.html */
.static-page-content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    color: var(--text-dark);
}

.static-page-content h1,
.static-page-content h2,
.static-page-content h3 {
    color: var(--text-dark);
    text-shadow: none;
}
.static-page-content .content-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

/* --- Animations --- */
@keyframes hand-drawn-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.05) rotate(3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.03);
  }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    #hero h1 {
        font-size: 2.5rem; /* Tailwind text-4xl */
    }

    #mobile-menu {
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        border-radius: 1rem;
        padding: 0.5rem;
    }

    .static-page-content .content-container {
        padding: 1.5rem;
    }
}