/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Load Inter font when available */
.fonts-loaded body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Prevent flash of unstyled content */
body.loading {
    opacity: 0;
    visibility: hidden;
}

body.loaded {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Smooth page transitions */
body {
    transition: opacity 0.15s ease;
}

/* Prevent layout shift during navigation */
.main-content {
    will-change: auto;
    opacity: 1;
}

/* Smooth navigation transitions */
.nav-menu a {
    will-change: color;
    transition: all 0.2s ease;
}

/* Ensure header is always visible */
.header {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Page transition effects */
.page-transition {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-transition.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth section animations */
.section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Prevent layout shift */
.container {
    will-change: auto;
}

/* Smooth link transitions */
a {
    transition: color 0.2s ease;
}

/* Prevent flash during page load */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize rendering */
* {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Faster transitions for better performance */
.section, .card, .course-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Color Variables - Full Mirall Design */
:root {
    --primary-blue: #1A2B4D;
    --secondary-blue: #7A93A7;
    --muted-blue: #8FA8B3;
    --light-blue: #F0F8FF;
    --soft-blue: #E8F4FD;
    --light-gray: #F8F8F8;
    --light-beige: #FAFAFA;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --text-muted: #9CA3AF;
    --accent-orange: #F7A86B;
    --accent-warm: #F2C94C;
    --accent-peach: #F7A86B;
    --white: #FFFFFF;
    --border-light: #E5E7EB;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --dark-bg: #1A1A1A;
    --mirall-blue: #7A93A7;
    --mirall-light-blue: #E8F4FD;
    --mirall-gray: #F8F8F8;
}

/* Typography - Mirall Style */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Mirall Style */
.header {
    background-color: #f7a86b;
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-center {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu a:hover {
    color: var(--white);
    opacity: 0.9;
}


/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.burger-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.burger-line {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* Burger to X animation */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* CTA Button - Mirall Style */
.cta-button {
    background-color: var(--white);
    color: #f7a86b;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247, 168, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-button-secondary {
    background-color: var(--white);
    color: var(--dark-bg);
    border: 2px solid var(--dark-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background-color: var(--dark-bg);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-color: var(--dark-bg);
}

/* Main Content */
.main-content {
    margin-top: 0;
    min-height: calc(100vh - 100px);
}

/* Hero Section - Mirall Style with Background */
.hero {
    background: var(--mirall-blue);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--white);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    opacity: 0.9;
}

.hero-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Decorative elements for hero */
/* Decorative Elements - Mirall Style */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background: var(--accent-orange);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.hero .hero-content::before {
    content: '';
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
.section {
    padding: 5rem 0;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-white {
    background-color: var(--white);
}

.section-blue {
    background: var(--mirall-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.section-blue .container {
    position: relative;
    z-index: 2;
}

.section-blue h2,
.section-blue h3 {
    color: var(--white);
}

.section-blue p {
    color: var(--white);
    opacity: 0.9;
}

.section-gray {
    background-color: var(--mirall-light-blue);
    position: relative;
}

.section-gray::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="subtle" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="rgba(122,147,167,0.1)"/><circle cx="75" cy="75" r="0.5" fill="rgba(122,147,167,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23subtle)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.section-gray .container {
    position: relative;
    z-index: 2;
}

.section-beige {
    background-color: var(--light-beige);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    background-color: var(--accent-orange);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-blue .section-tag {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-gray .section-tag {
    background-color: var(--mirall-blue);
    color: var(--white);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* Cards - Mirall Style */
.card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--mirall-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.card p {
    margin-bottom: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.card-image {
    width: 100%;
    height: 200px;
    background-color: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.card-content p {
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.card-link:hover {
    color: #E8965A;
}

/* Cards in blue section */
.section-blue .card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.section-blue .card h3 {
    color: var(--text-dark);
}

.section-blue .card p {
    color: var(--text-dark);
}

.section-blue .grid-2 > div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Course Cards - Mirall Style */
.course-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--mirall-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.course-image {
    width: 100%;
    height: 280px;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.course-content {
    padding: 2rem;
}

.course-category {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
}

.course-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Statistics */
.stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin: 4rem 0;
    gap: 2rem;
}

.stat-item {
    flex: 1;
    padding: 2rem 1rem;
}

/* Statistics - Mirall Style */
.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-blue .stat-number {
    color: var(--white);
}

.section-blue .stat-label {
    color: var(--white);
    opacity: 0.9;
}

/* Decorative Elements */
.decorative-arrow {
    position: absolute;
    width: 40px;
    height: 40px;
    opacity: 0.7;
}

.arrow-teal {
    color: var(--accent-teal);
}

.arrow-pink {
    color: var(--accent-pink);
}

/* Contact Form - Mirall Style */
.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--mirall-blue));
    border-radius: 12px 12px 0 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Form Styles - Mirall Style */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: var(--white);
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 4px 16px rgba(247, 168, 107, 0.1);
    transform: translateY(-1px);
}

.form-textarea {
    min-height: 120px;
    resize: none;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.5;
}

/* Footer - Mirall Style with Pattern */
.footer {
    background: var(--dark-bg);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-pattern" width="30" height="30" patternUnits="userSpaceOnUse"><circle cx="15" cy="15" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="5" cy="25" r="0.3" fill="rgba(255,255,255,0.03)"/><circle cx="25" cy="5" r="0.3" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

.footer-section a:hover {
    color: var(--accent-orange);
    transition: color 0.3s ease;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--white);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Additional Mirall-style sections */
.section-mirall-blue {
    background: var(--mirall-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.section-mirall-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="mirall-pattern" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="60" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="70" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23mirall-pattern)"/></svg>');
    opacity: 0.4;
    z-index: 1;
}

.section-mirall-blue .container {
    position: relative;
    z-index: 2;
}

.section-mirall-blue h2,
.section-mirall-blue h3 {
    color: var(--white);
}

.section-mirall-blue p {
    color: var(--white);
    opacity: 0.9;
}

.section-mirall-blue .section-tag {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Additional Header Animations */
.header-left::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--dark-bg), rgba(255,255,255,0.5), var(--dark-bg), transparent);
    animation: pulseLine 2s ease-in-out infinite;
}

.header-center::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--dark-bg), rgba(255,255,255,0.5), var(--dark-bg), transparent);
    animation: pulseLine 2s ease-in-out infinite 0.5s;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    .header-right {
        order: -1;
        margin-bottom: 1rem;
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu li {
        margin: 1.5rem 0;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .nav-menu li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu li:nth-child(4) { animation-delay: 0.4s; }

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

    .nav-menu a {
        color: var(--white);
        font-size: 1.5rem;
        font-weight: 600;
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        display: block;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 200px;
    }

    .nav-menu a:hover {
        background: var(--accent-orange);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(247, 168, 107, 0.3);
    }

    .nav-menu a::after {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats {
        flex-direction: column;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section {
        padding: 2rem 0;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2rem 0;
    }

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

    .card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .card {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    color: var(--white);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-content a {
    color: var(--accent-orange);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-content a:hover {
    color: #E8965A;
}

.cookie-button {
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(247, 168, 107, 0.3);
}

.cookie-button:hover {
    background-color: #E8965A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(247, 168, 107, 0.4);
}

.cookie-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cookie-button {
        width: 100%;
        text-align: center;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
}
