:root {
    /* Color Palette - Light Mode */
    --primary-h: 220;
    --primary-s: 90%;
    --primary-l: 50%;

    --bg-h: 210;
    --bg-s: 20%;
    --bg-l: 98%;

    --text-h: 210;
    --text-s: 20%;
    --text-l: 10%;

    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.3);

    --accent-color: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --bg-color: hsl(var(--bg-h), var(--bg-s), var(--bg-l));
    --text-color: hsl(var(--text-h), var(--text-s), var(--text-l));
    --text-muted: hsl(var(--text-h), var(--text-s), 40%);

    --transition-speed: 0.3s;
}

[data-theme="dark"] {
    --bg-l: 5%;
    --text-l: 95%;

    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);

    --text-muted: hsl(var(--text-h), var(--text-s), 70%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    padding: 2rem;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, hsla(var(--primary-h), var(--primary-s), 50%, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, hsla(var(--primary-h), var(--primary-s), 50%, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--accent-color), hsl(190, 80%, 50%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.card-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-image-container {
    width: 100%;
    height: 320px;
    /* Reduced to create a banner effect */
    position: relative;
    overflow: hidden;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    /* Adjusted to focus on the content part */
}

.hero-text-section {
    padding: 3rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.hero-content {
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    /* Increased weight for better visibility */
    margin-bottom: 1.25rem;
    background: linear-gradient(to right, var(--accent-color), hsl(190, 80%, 50%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Soft shadow for depth */
}

.hero p {
    font-size: 1.35rem;
    /* Slightly larger */
    color: var(--text-color);
    /* Higher contrast color */
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 500;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.hero .button-group {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    /* Allow wrapping to prevent overflow */
}

.hero .btn {
    white-space: nowrap;
    padding: 0.75rem 1.25rem;
    flex: 0 1 auto;
    min-width: 140px;
    /* Reduced to allow side-by-side on medium screens */
}

@media (max-width: 768px) {
    .hero-image-container {
        height: 180px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .hero .button-group {
        gap: 0.75rem;
        flex-direction: column;
        /* Stack vertically if space is tight */
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero .btn {
        min-width: unset;
        width: 100%;
        font-size: 0.95rem;
    }
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: hsl(var(--primary-h), var(--primary-s), 40%);
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline:hover {
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.1);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
    background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.2);
}

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--card-bg);
    border: none;
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 1.5rem;
}

.theme-toggle:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 2rem;
    }

    body {
        padding: 1rem;
    }
}