:root {
    --color-primary: #2B3C53;
    --color-secondary: #84A0EC;
    --color-accent: #5A72D1;
    --color-background: #F0F4FC;
    --color-footer-bg: #1A2533;
    --color-text-dark: #2B3C53;
    --color-text-light: #F0F4FC;
    --color-section-1: #E8EEF9;
    --color-section-2: #FFFFFF;
    --color-section-3: #F0F4FC;
    --color-section-4: #DBE6F7;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; }
h2 { font-size: 2.8rem; letter-spacing: -0.03em; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
    border-bottom: 1px solid var(--color-secondary);
}

ul, ol {
    margin: 0 0 var(--spacing-md) var(--spacing-md);
    padding: 0;
}

li {
    margin-bottom: var(--spacing-xs);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background-color: var(--color-primary);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-light);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 1.05rem;
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-secondary);
    border-bottom-color: var(--color-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(90, 114, 209, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(90, 114, 209, 0.55);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: calc(var(--spacing-sm) - 2px) calc(var(--spacing-md) - 2px);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section:nth-of-type(odd) {
    background-color: var(--color-section-1);
}

.section:nth-of-type(even) {
    background-color: var(--color-section-2);
}

.section-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3a5068 100%);
    color: var(--color-text-light);
    padding: var(--spacing-2xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 L 0 10" fill="none" stroke="%233a5068" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--color-text-light);
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-lg);
}

/* Cards (Glassmorphism) */
.card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card-light {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(220, 220, 220, 0.5);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
}

.card p {
    font-size: 1rem;
    color: var(--color-text-dark);
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(132, 160, 236, 0.5);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: var(--color-background);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(90, 114, 209, 0.2);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--color-footer-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0;
    text-align: center;
    font-size: 0.95rem;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-section h4 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-xs);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: inherit;
    transition: color 0.3s ease;
    border-bottom: none;
}

.footer-section a:hover {
    color: var(--color-secondary);
    border-bottom: none;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    text-align: center;
    width: 100%;
}

/* Utility classes for spacing */
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.9rem; }
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.1rem; }

    .nav-menu ul {
        gap: var(--spacing-md);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
    .section-hero {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    p { font-size: 1rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1rem; }

    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu {
        margin-top: var(--spacing-sm);
    }
    .nav-menu ul {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    .nav-menu a {
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .btn {
        width: 100%;
        padding: var(--spacing-sm);
        font-size: 1rem;
    }
    .card {
        margin: var(--spacing-sm) 0;
    }
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

.fade-in-transition {
    transition: opacity 0.3s ease-out;
}

.fade-in-transition:not(.x-show) {
    opacity: 0;
}

/* Subtle gradient background for sections, alternating */
.section-with-gradient:nth-of-type(1) {
    background: linear-gradient(180deg, var(--color-section-1) 0%, var(--color-section-2) 100%);
}
.section-with-gradient:nth-of-type(2) {
    background: linear-gradient(180deg, var(--color-section-2) 0%, var(--color-section-3) 100%);
}
.section-with-gradient:nth-of-type(3) {
    background: linear-gradient(180deg, var(--color-section-3) 0%, var(--color-section-4) 100%);
}
.section-with-gradient:nth-of-type(4) {
    background: linear-gradient(180deg, var(--color-section-4) 0%, var(--color-section-1) 100%);
}
/* Extend for more sections if needed */

.icon-wrapper {
    display: inline-block;
    padding: var(--spacing-xs);
    border-radius: var(--border-radius-sm);
    background-color: rgba(132, 160, 236, 0.2);
    color: var(--color-accent);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}


/* 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;
    }
}