:root {
 --primary-color: #8A2BE2; /* BlueViolet */
 --secondary-color: #4A00E0; /* A darker, vibrant purple */
 --accent-color: #9370DB; /* MediumPurple */
 --text-dark: #EAEAEA;
 --text-light: #C0C0C0;
 --bg-dark: #121212;
 --glass-bg: rgba(255, 255, 255, 0.05);
 --glass-border: rgba(255, 255, 255, 0.15);
 --radius-md: 16px;
 --radius-lg: 20px;
 --shadow-color: rgba(0, 0, 0, 0.2);
 --transition: all 0.3s ease;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--bg-dark);
 overflow-x: hidden;
}

.background-gradient {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 z-index: -1;
 background: linear-gradient(45deg, #1e0c42, #4a00e0, #8A2BE2, #00c6ff);
 background-size: 400% 400%;
 animation: gradient-animation 15s ease infinite;
}

@keyframes gradient-animation {
 0% { background-position: 0% 50%; }
 50% { background-position: 100% 50%; }
 100% { background-position: 0% 50%; }
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 color: #fff;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

a {
 color: var(--accent-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover { color: #fff; }

.section { padding: 80px 0; }

.section-header {
 text-align: center;
 margin-bottom: 48px;
}
.section-header.centered { max-width: 800px; margin: 0 auto 48px; }
.section-label, .badge {
 display: inline-block;
 padding: 6px 16px;
 margin-bottom: 16px;
 border-radius: 20px;
 font-weight: 600;
 font-size: 0.9rem;
 background: rgba(255, 255, 255, 0.1);
 color: #fff;
 border: 1px solid var(--glass-border);
}

.section-title { margin-bottom: 16px; }
.section-subtitle { max-width: 700px; margin-left: auto; margin-right: auto; }

/* --- HEADER --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 transition: var(--transition);
 padding: 10px 0;
}
.header-scrolled {
 background: rgba(18, 18, 18, 0.5);
 backdrop-filter: blur(10px);
 box-shadow: 0 4px 30px var(--shadow-color);
}
.nav {
 display: flex;
 align-items: center;
 justify-content: space-between;
 height: 70px;
}
.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: #fff;
}
.nav-links {
 display: flex;
 gap: 16px;
 list-style: none;
 background: var(--glass-bg);
 border: 1px solid var(--glass-border);
 backdrop-filter: blur(10px);
 padding: 8px 16px;
 border-radius: 50px;
}
.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 padding: 8px 16px;
 border-radius: 50px;
 transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
 background: rgba(255, 255, 255, 0.2);
 color: #fff;
}
.nav-toggle { display: none; }

/* --- HERO --- */
.hero {
 min-height: 80vh;
 display: flex;
 align-items: center;
 padding: 140px 0 80px;
}
.hero-content-card {
 background: var(--glass-bg);
 border: 1px solid var(--glass-border);
 backdrop-filter: blur(15px);
 border-radius: var(--radius-lg);
 padding: 48px;
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 48px;
 align-items: center;
 box-shadow: 0 8px 32px var(--shadow-color);
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; }
.hero-visual img {
 width: 100%;
 height: auto;
 border-radius: var(--radius-md);
 object-fit: cover;
}

/* --- BUTTONS --- */
.btn {
 display: inline-flex;
 padding: 14px 28px;
 border-radius: 50px;
 font-weight: 600;
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
 justify-content: center;
}
.btn-primary {
 background: var(--primary-color);
 color: #fff;
}
.btn-primary:hover {
 background: var(--secondary-color);
 transform: translateY(-2px);
}
.btn-secondary {
 background: transparent;
 color: #fff;
 border-color: var(--accent-color);
}
.btn-secondary:hover {
 background: var(--accent-color);
 color: #fff;
}
.btn-white {
 background: #fff;
 color: var(--secondary-color);
}
.btn-white:hover {
 background: #eee;
 transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* --- CARDS & GRIDS --- */
.cards-grid, .stats-grid, .values-grid, .team-grid {
 display: grid;
 gap: 24px;
}
.cards-grid, .values-grid { grid-template-columns: repeat(3, 1fr); }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); text-align: center; }

.card, .stat-card, .value-card, .team-member, .contact-form-card, .contact-details-card {
 background: var(--glass-bg);
 border: 1px solid var(--glass-border);
 backdrop-filter: blur(10px);
 border-radius: var(--radius-md);
 padding: 28px;
 transition: var(--transition);
 box-shadow: 0 4px 20px var(--shadow-color);
}
.card:hover, .stat-card:hover, .value-card:hover {
 transform: translateY(-8px);
 background: rgba(255, 255, 255, 0.1);
 box-shadow: 0 12px 40px var(--shadow-color);
}
.card-body { display: flex; flex-direction: column; height: 100%; }
.card-title { margin-bottom: 12px; }
.card-text { color: var(--text-light); flex-grow: 1; margin-bottom: 24px; }
.card-meta {
 font-weight: 600;
 color: var(--accent-color);
 margin-bottom: 16px;
}
.card-button {
 align-self: flex-start;
 padding: 10px 20px;
 border: 1px solid var(--accent-color);
 color: var(--accent-color);
 border-radius: 50px;
}
.card-button:hover { background: var(--accent-color); color: #fff; }
.stat-number { font-size: 3rem; font-weight: 700; color: var(--accent-color); }
.stat-caption { font-size: 1.2rem; font-weight: 600; margin: 8px 0; }

/* Team Section */
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 16px;
 border: 3px solid var(--accent-color);
}
.team-member h3 { font-size: 1.25rem; }
.team-role { color: var(--text-light); font-style: italic; }

/* Media Object */
.media-object, .media-object-reverse {
 display: grid;
 grid-template-columns: 1fr 1fr;
 align-items: center;
 gap: 48px;
 background: var(--glass-bg);
 padding: 48px;
 border-radius: var(--radius-lg);
 border: 1px solid var(--glass-border);
}
.media-object-reverse .media-visual { grid-column: 2 / 3; grid-row: 1 / 2; }
.media-object-reverse .media-copy { grid-column: 1 / 2; grid-row: 1 / 2; }
.media-visual img { width: 100%; border-radius: var(--radius-md); }
.media-copy ul { list-style: none; margin-top: 20px; }
.media-copy ul li {
 padding-left: 25px;
 position: relative;
 margin-bottom: 10px;
}
.media-copy ul li::before {
 content: '';
 color: var(--accent-color);
 position: absolute;
 left: 0;
 font-weight: bold;
}

/* CTA Section */
.cta-section-container { padding: 0; }
.cta-card {
 background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
 padding: 60px;
 border-radius: var(--radius-lg);
 text-align: center;
 color: #fff;
}
.cta-card h2 { font-size: 2.25rem; margin-bottom: 16px; }
.cta-card p { max-width: 600px; margin: 0 auto 32px; }

/* Legal, Articles & Contact Pages */
.page-header-section {
 padding: 140px 0 60px;
 text-align: center;
}
.centered { text-align: center; }
.articles-page-section { padding-top: 0; }
.cards-grid.large-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.pagination {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin-top: 48px;
}
.pagination-link {
 padding: 8px 16px;
 color: var(--text-dark);
 text-decoration: none;
 font-weight: 500;
 border-radius: 8px;
 border: 1px solid var(--glass-border);
}
.pagination-link:hover, .pagination-link.active {
 background: var(--accent-color);
 color: #fff;
 border-color: var(--accent-color);
}

.contact-layout {
 display: grid;
 grid-template-columns: 2fr 1.5fr;
 gap: 32px;
}
.contact-form-card, .contact-details-card { padding: 32px; }
.contact-details-card h3 { margin-bottom: 24px; }
.contact-info-group { display: flex; flex-direction: column; gap: 20px; }
.contact-info-item strong { display: block; color: var(--accent-color); }
.contact-info-item p { margin: 4px 0 0; color: var(--text-light); }
.map-section { padding-bottom: 0px; }
.map-container {
 height: 450px;
 border-radius: var(--radius-md);
 overflow: hidden;
 margin-top: 48px;
 border: 1px solid var(--glass-border);
}

.legal-page { padding: 140px 0 80px; }
.legal-page section { backdrop-filter: blur(10px); background: var(--glass-bg); padding: 48px; border-radius: var(--radius-lg); border: 1px solid var(--glass-border); }
.legal-page ul { margin: 16px 0 16px 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page h1, .legal-page h2 { margin-bottom: 16px; margin-top: 32px; }
.legal-page p { color: var(--text-light); }
.legal-page .cookie-table {
 width: 100%;
 margin-top: 20px;
 border-collapse: collapse;
}
.legal-page .cookie-table th, .legal-page .cookie-table td {
 border: 1px solid var(--glass-border);
 padding: 12px;
 text-align: left;
}
.legal-page .cookie-table th { background: rgba(255,255,255,0.1); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #fff;}
.form-control {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--glass-border);
 border-radius: 8px;
 background: rgba(0,0,0,0.2);
 color: #fff;
 font-size: 1rem;
 transition: var(--transition);
}
.form-control::placeholder { color: var(--text-light); }
.form-control:focus {
 outline: none;
 border-color: var(--accent-color);
 box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.3);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* Thank you page */
.thank-you-section { min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.thank-you-card {
 background: var(--glass-bg);
 border: 1px solid var(--glass-border);
 backdrop-filter: blur(10px);
 border-radius: var(--radius-lg);
 padding: 48px;
 text-align: center;
 max-width: 600px;
}
.thank-you-card h1 { margin-bottom: 24px; }
.thank-you-card p { margin-bottom: 32px; color: var(--text-light); }

/* --- FOOTER --- */
.footer {
 padding: 60px 0 30px;
 margin-top: 80px;
 background: rgba(18, 18, 18, 0.3);
 backdrop-filter: blur(20px);
 border-top: 1px solid var(--glass-border);
 color: var(--text-light);
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; display: block; margin-bottom: 16px; }
.footer-description { font-size: 0.9rem; line-height: 1.6; }
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: #fff;
 margin-bottom: 20px;
 text-transform: uppercase;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact-item a { color: var(--text-light); }
.footer-links a:hover, .footer-contact-item a:hover { color: #fff; }
.footer-contact-item { margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact-item strong { display: block; color: var(--accent-color); }
.footer-bottom {
 text-align: center;
 padding-top: 30px;
 border-top: 1px solid var(--glass-border);
 color: var(--text-light);
 font-size: 0.9rem;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
 position: fixed;
 bottom: 20px;
 left: 50%;
 transform: translateX(-50%);
 width: 90%;
 max-width: 800px;
 background: rgba(0, 0, 0, 0.7);
 backdrop-filter: blur(10px);
 color: #fff;
 padding: 20px;
 border-radius: var(--radius-md);
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 box-shadow: 0 8px 32px var(--shadow-color);
 border: 1px solid var(--glass-border);
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--accent-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-banner .btn { padding: 10px 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
 .cards-grid, .values-grid { grid-template-columns: 1fr 1fr; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .hero-content-card { grid-template-columns: 1fr; text-align: center; }
 .hero-visual { display: none; }
 .contact-layout { grid-template-columns: 1fr; }
 .media-object, .media-object-reverse { grid-template-columns: 1fr; }
 .media-object-reverse .media-visual { grid-column: 1 / 2; }
}

@media (max-width: 768px) {
 .nav-toggle {
 display: block;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
 }
 .nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background: #fff;
 margin: 6px 0;
 transition: var(--transition);
 }
 .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
 
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100%;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 background: rgba(18, 18, 18, 0.8);
 backdrop-filter: blur(20px);
 transition: right 0.4s ease-in-out;
 gap: 32px;
 border-radius: 0;
 }
 .nav-links.active { right: 0; }

 .cards-grid, .values-grid { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 
 #cookie-banner { flex-direction: column; text-align: center; }
}