:root {
    --color-primary: #0F4C81;
    --color-secondary: #76B041;
    --color-accent: #007BFF;
    --color-background: #F9FBFD;
    --color-footer-bg: #0A2463;
    --color-text-dark: #2c3e50;
    --color-text-light: #ecf0f1;
    --color-section-1: #EBF8FF;
    --color-section-2: #F0FFF4;
    --color-section-3: #F3F4F6;
    --color-section-4: #E0F7FA;
    --color-section-5: #FFF7ED;

    --font-family-main: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;

    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;

    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.15);

    --gradient-button: linear-gradient(135deg, var(--color-accent) 0%, #4CAF50 100%);
    --gradient-button-hover: linear-gradient(135deg, #4CAF50 0%, var(--color-accent) 100%);
    --gradient-header: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-main);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--color-secondary);
    transform: translateY(-1px);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
}

h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
}

p {
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gradient-header);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.header.scrolled {
    background: rgba(var(--color-primary-rgb), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-medium);
}

.header .logo {
    flex-grow: 1;
    text-align: center;
}

.header .logo a {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header nav {
    display: flex;
    gap: var(--spacing-md);
}

.header nav a {
    color: var(--color-text-light);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header nav a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--color-text-light);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--gradient-button);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-button-hover);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 123, 255, 0.4);
}

.btn:hover:before {
    opacity: 1;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.2);
}

/* Section Backgrounds */
.section-bg-1 { background-color: var(--color-section-1); }
.section-bg-2 { background-color: var(--color-section-2); }
.section-bg-3 { background-color: var(--color-section-3); }
.section-bg-4 { background-color: var(--color-section-4); }
.section-bg-5 { background-color: var(--color-section-5); }

/* General Section Styling */
.section {
    padding: var(--spacing-xl) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: var(--shadow-medium);
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-fluid:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Footer Styles */
.footer {
    background-color: var(--color-footer-bg);
    color: var(--color-text-light);
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    box-shadow: inset 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.footer:before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--color-primary-rgb), 0.1) 0%, transparent 70%);
    animation: rotateBackground 20s linear infinite;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: var(--spacing-lg);
}

.footer-section {
    flex: 1 1 250px;
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-section h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
    position: relative;
}

.footer-section h4:after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
    margin-top: 5px;
    border-radius: 2px;
}

.footer-section p {
    font-size: 0.95rem;
    color: rgba(var(--color-text-light-rgb), 0.8);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(var(--color-text-light-rgb), 0.8);
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--color-secondary);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-icons a {
    color: var(--color-text-light);
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(var(--color-primary-rgb), 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(var(--color-text-light-rgb), 0.1);
    font-size: 0.9rem;
    color: rgba(var(--color-text-light-rgb), 0.6);
}

/* Alpine.js specific styles */
[x-cloak] {
    display: none !important;
}

/* Utility classes for spacing and layout (complementing Tailwind) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
}

.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-lg { margin-bottom: var(--spacing-lg); }
.mt-lg { margin-top: var(--spacing-lg); }
.py-xl { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }

/* Keyframe Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .header nav { gap: var(--spacing-sm); }
    .header .logo a { font-size: 1.8rem; }
    .section { padding: var(--spacing-lg) var(--spacing-md); }
    .footer-content { flex-direction: column; align-items: center; }
    .footer-section { text-align: center; }
    .footer-section h4:after { margin-left: auto; margin-right: auto; }
    .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    p { font-size: 1rem; }
    .header { flex-direction: column; padding: var(--spacing-xs); }
    .header .logo { margin-bottom: var(--spacing-sm); }
    .header nav { width: 100%; justify-content: center; flex-wrap: wrap; }
    .header nav a { padding: 0.4rem 0.8rem; font-size: 0.9rem; }
    .btn { padding: 0.8rem 2rem; font-size: 1rem; }
    .grid-cols-2, .grid-cols-3 { grid-template-columns: 1fr; }
    .section { padding: var(--spacing-md) var(--spacing-sm); }
    .footer { padding: var(--spacing-lg) var(--spacing-sm); }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .header .logo a { font-size: 1.5rem; }
    .header nav a { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .container { padding: 0 var(--spacing-xs); }
}

/* Custom icon styling for linear icons + color */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke: var(--color-primary);
    fill: none;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: stroke 0.3s ease, transform 0.2s ease;
}

.icon-secondary {
    stroke: var(--color-secondary);
}

.icon:hover {
    transform: scale(1.1);
    stroke: var(--color-secondary);
}

/* Image blur effect for background images (example) */
.hero-background-image {
    background-size: cover;
    background-position: center;
    filter: blur(2px); /* Light blur effect */
    -webkit-filter: blur(2px);
    transform: scale(1.02); /* To hide blur edges */
    transition: filter 0.5s ease-out;
}

.hero-background-image:hover {
    filter: blur(0px); /* Sharpen on hover */
    -webkit-filter: blur(0px);
}

/* Card components with subtle neumorphic touch */
.card {
    background-color: var(--color-background);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: 8px 8px 16px rgba(0,0,0,0.05), -8px -8px 16px rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 12px 12px 24px rgba(0,0,0,0.08), -12px -12px 24px rgba(255,255,255,0.9);
    transform: translateY(-3px);
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-family-main);
    font-size: 1rem;
    color: var(--color-text-dark);
    background-color: var(--color-background);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,0.9), 0 0 0 3px rgba(var(--color-secondary-rgb), 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-button);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 1.5rem;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 999;
}

.scroll-indicator:hover {
    background: var(--gradient-button-hover);
    transform: translateY(-2px);
}

.scroll-indicator.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Loading animations */
.skeleton-loader {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius-sm);
    opacity: 0.7;
}

@keyframes loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}


/* 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;
    }
}