:root {
    --primary-color: #0D47A1;
    --secondary-color: #2196F3;
    --accent-color: #1976D2;
    --background-color: #E3F2FD;
    --footer-bg-color: #1A237E;
    --text-color: #333;
    --light-text-color: #f0f0f0;
    --card-bg-1: #FFFFFF;
    --card-bg-2: #BBDEFB;
    --card-bg-3: #E3F2FD;
    --card-bg-4: #90CAF9;
    --card-bg-5: #64B5F6;

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;

    --font-family-sans: 'Montserrat', sans-serif;
    --font-family-serif: 'Roboto Slab', serif;

    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.12);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Roboto+Slab:wght@300;400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-serif);
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 {
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2.5em;
    font-weight: 600;
}

h3 {
    font-size: 1.8em;
    font-weight: 500;
}

p {
    margin-bottom: 1em;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

/* Layout & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

section:nth-of-type(even) {
    background-color: var(--card-bg-2); /* Secondary light background */
}

section:nth-of-type(odd) {
    background-color: var(--card-bg-1); /* White background */
}

/* Header */
.header {
    background-color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-serif);
    font-size: 2em;
    font-weight: 700;
    color: var(--light-text-color);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--light-text-color);
    font-weight: 500;
    padding: 0.5em 1em;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.8em;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: var(--shadow-light);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    box-shadow: 0 6px 18px rgba(25, 118, 210, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Cards & Glassmorphism */
.card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.18);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid rgba(var(--primary-color), 0.2);
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family-sans);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-color), 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--light-text-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
    box-shadow: inset 0 8px 24px rgba(0, 0, 0, 0.2);
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--light-text-color);
    font-weight: 400;
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text-color);
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
    border-bottom: none;
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

/* Micro-interactions */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero section specific styling */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text-color);
    padding: var(--spacing-lg) 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: rotateBackground 20s linear infinite;
    opacity: 0.7;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.hero-section h1 {
    color: var(--light-text-color);
    font-size: 4.5em;
    margin-bottom: 0.2em;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-section p {
    font-size: 1.4em;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2.8em;
    }

    h2 {
        font-size: 2em;
    }

    .hero-section h1 {
        font-size: 3em;
    }

    .hero-section p {
        font-size: 1.2em;
    }

    .header .container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .nav-menu a {
        padding: 0.5em 0;
        text-align: center;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .btn {
        padding: 0.6em 1.2em;
        font-size: 0.9em;
    }
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}