:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --primary-dark: #0a3d6d;
 --secondary-color: #4a5568; /* Steel Gray */
 --accent-color: #0891b2; /* Tech Cyan */
 --text-dark: #1a1a1a;
 --text-light: #6c757d;
 --text-white: #ffffff;
 --bg-light: #f8f9fa;
 --bg-white: #ffffff;
 --bg-dark: #1a1a1a;
 --border-color: #dee2e6;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
 --transition: all 0.3s ease-in-out;
}

*, *::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.7;
 color: var(--text-light);
 background: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.3;
 color: var(--text-dark);
 margin-bottom: 0.5em;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
.text-white { color: var(--text-white) !important; }
.text-light-gray { color: #ccc !important; }
.mt-4 { margin-top: 1.5rem; }
.pt-0 { padding-top: 0 !important; }
a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover {
 color: var(--primary-dark);
}
img { max-width: 100%; height: auto; display: block; }
.text-center { text-align: center; }

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255,255,255,0.85);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: all 0.3s;
}
.header.scrolled {
 background: rgba(255,255,255,0.98);
}
.nav {
 height: 80px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}
.nav-logo {
 font-size: 1.5rem;
 font-weight: 800;
 color: var(--primary-color);
}
.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}
.nav-links a {
 font-weight: 600;
 color: var(--secondary-color);
 padding: 8px;
 position: relative;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 50%;
 transform: translateX(-50%);
 width: 0;
 height: 2px;
 background-color: var(--accent-color);
 transition: width 0.3s;
}
.nav-links a.active::after, .nav-links a:hover::after {
 width: 100%;
}
.nav-links a.active {
 color: var(--primary-color);
}
#scroll-progress-bar {
 height: 4px;
 background: var(--accent-color);
 width: 0%;
 position: absolute;
 top: 0;
 left: 0;
}
.nav-toggle { display: none; }

/* Button Styles */
.btn {
 display: inline-block;
 padding: 12px 28px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 border: 2px solid transparent;
 text-align: center;
}
.btn-primary {
 background: var(--primary-color);
 color: white;
}
.btn-primary:hover {
 background: var(--primary-dark);
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}
.btn-secondary {
 background: var(--secondary-color);
 color: white;
}
.btn-secondary:hover {
 background: var(--text-dark);
}

/* Sections */
.section { padding: 80px 0; }
.section.bg-light { background: var(--bg-light); }
.section.bg-dark { 
 background: var(--primary-dark); 
 color: var(--text-white);
}
.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 60px;
}
.section-label {
 display: inline-block;
 background-color: var(--accent-color);
 color: var(--text-white);
 padding: 6px 16px;
 border-radius: 50px;
 font-size: 0.8rem;
 font-weight: 700;
 margin-bottom: 1rem;
 text-transform: uppercase;
}
.section-label.white { background-color: white; color: var(--primary-color); }
.section-title { font-size: 2.5rem; font-weight: 800;}
.section-subtitle { font-size: 1.1rem; color: var(--text-light); }

/* Dynamic Hero Slideshow */
.hero-slideshow {
 position: relative;
 height: 90vh;
 min-height: 600px;
 color: white;
 overflow: hidden;
}
.slides-container {
 width: 100%;
 height: 100%;
}
.slide {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 opacity: 0;
 transition: opacity 1.5s ease;
 z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.slide::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0, 0, 0, 0.6);
 z-index: -1;
}
.hero-content {
 max-width: 800px;
 padding: 24px;
}
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; color: white;}
.hero-subtitle { font-size: 1.25rem; margin-bottom: 2rem; }
.slide-thumbnails {
 position: absolute;
 bottom: 30px;
 left: 50%;
 transform: translateX(-50%);
 display: flex;
 gap: 10px;
 z-index: 3;
}
.thumbnail {
 width: 100px;
 height: 60px;
 cursor: pointer;
 border: 2px solid rgba(255,255,255,0.5);
 border-radius: var(--radius-md);
 overflow: hidden;
 transition: var(--transition);
}
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail:hover, .thumbnail.active {
 border-color: white;
 transform: scale(1.1);
}

/* Page Hero */
.page-hero {
 padding: 120px 0;
 background-size: cover;
 background-position: center;
 color: white;
 text-align: center;
}

/* Featured Cards (Index) */
.featured-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}
.featured-card {
 position: relative;
 overflow: hidden;
 border-radius: var(--radius-lg);
 min-height: 400px;
 color: white;
 display: flex;
 align-items: flex-end;
}
.featured-card img {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.4s ease;
}
.featured-card::before {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 100%;
 height: 70%;
 background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
 transition: height 0.4s ease;
}
.featured-card-content {
 position: relative;
 z-index: 1;
 padding: 30px;
 width: 100%;
}
.featured-card-content h3 { color: white; }
.featured-card-content p {
 opacity: 0;
 height: 0;
 overflow: hidden;
 transition: all 0.4s ease;
}
.featured-card .card-link {
 display: inline-block;
 margin-top: 1rem;
 color: var(--accent-color);
 font-weight: 600;
 transform: translateY(20px);
 opacity: 0;
 transition: all 0.4s ease;
}
.featured-card:hover img { transform: scale(1.05); }
.featured-card:hover::before { height: 100%; }
.featured-card:hover p { opacity: 1; height: auto; margin: 10px 0; }
.featured-card:hover .card-link { transform: translateY(0); opacity: 1; }

/* Hexagon Grid */
.hexagon-grid {
 display: flex;
 flex-direction: column;
 align-items: center;
 margin: 30px 0;
}
.hexagon-row { display: flex; justify-content: center; }
.hexagon-item {
 position: relative;
 width: 180px;
 height: 208px;
 background-color: var(--accent-color);
 margin: 104px 5px 0;
 clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 transition: all 0.3s ease;
}
.hexagon-item span { color: white; font-weight: 600; font-size: 1rem; padding: 10px; }
.hexagon-row:nth-child(2) { margin-top: -52px; }
.hexagon-row:nth-child(3) { margin-top: -52px; }
.hexagon-item:hover {
 background-color: var(--primary-color);
 transform: scale(1.1);
 z-index: 2;
}

/* Video Showcase */
.video-showcase { position: relative; cursor: pointer; max-width: 800px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.video-thumbnail { width: 100%; display: block; }
.play-button-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: grid; place-items: center; transition: background 0.3s ease; }
.play-button-overlay svg { color: white; }
.video-showcase:hover .play-button-overlay { background: rgba(0,0,0,0.5); }
.play-button-overlay svg { transition: transform 0.3s ease; }
.video-showcase:hover .play-button-overlay svg { transform: scale(1.15); }

/* Reviews Grid */
.reviews-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 perspective: 1000px;
}
.review-card {
 position: relative;
 min-height: 320px;
 transform-style: preserve-3d;
 transition: transform 0.6s;
 cursor: pointer;
}
.review-card-front, .review-card-back {
 position: absolute;
 width: 100%;
 height: 100%;
 backface-visibility: hidden;
 padding: 30px;
 border-radius: var(--radius-lg);
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 justify-content: center;
}
.review-card-front {
 background: white;
 box-shadow: var(--shadow-md);
 z-index: 2;
}
.review-card-back {
 background: var(--primary-color);
 color: white;
 transform: rotateY(180deg);
 z-index: 1;
}
.review-card:hover { transform: rotateY(180deg); }
.review-avatar {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 1rem;
 border: 4px solid var(--accent-color);
}
.star-rating { color: #f39c12; font-size: 1.2rem; margin-top: 0.5rem; }

/* CTA Section */
.cta-section {
 text-align: center;
 padding: 60px 40px;
 background: var(--bg-light);
 border-radius: var(--radius-lg);
}

/* Cards */
.cards-grid {
 display: grid;
 gap: 30px;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-md);
}
.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
}
.card-body {
 padding: 24px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.card-body h3 { margin-bottom: 1rem; }
.card-body p { flex-grow: 1; margin-bottom: 1.5rem; }
.card-link {
 font-weight: 600;
 color: var(--primary-color);
 align-self: flex-start;
}
.card-link:hover { text-decoration: underline; }

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.team-card {
 text-align: center;
 background: white;
 padding: 30px;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 border: 4px solid var(--accent-color);
}
.team-title {
 color: var(--accent-color);
 font-weight: 600;
 margin-bottom: 0.5rem;
}
.team-bio { font-size: 0.9rem; }

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.media-object.alternate .media-visual { grid-column: 2; }
.media-object.alternate .media-copy { grid-column: 1; }
.media-visual img { border-radius: var(--radius-lg); }
.media-copy ul { list-style-position: inside; margin: 1.5rem 0; }

/* Partners */
.partners-logo-grid {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 align-items: center;
 gap: 50px;
}
.partners-logo-grid span {
 font-size: 1.5rem;
 font-weight: 700;
 color: #a9a9a9;
 font-family: serif;
 opacity: 0.7;
 transition: var(--transition);
}
.partners-logo-grid span:hover { opacity: 1; color: var(--secondary-color); }

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
 border-bottom: 1px solid var(--border-color);
}
.faq-question {
 width: 100%;
 background: none;
 border: none;
 text-align: left;
 font-size: 1.1rem;
 font-weight: 600;
 padding: 20px 0;
 cursor: pointer;
 position: relative;
}
.faq-question::after {
 content: '+';
 position: absolute;
 right: 0;
 font-size: 1.5rem;
 color: var(--primary-color);
 transition: transform 0.3s;
}
.faq-item.active .faq-question::after {
 transform: rotate(45deg);
}
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out;
}
.faq-answer p { padding-bottom: 20px; }

/* Contact Page */
.contact-page-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.contact-info-container h3, .contact-form-container h3 { font-size: 1.75rem; margin-bottom: 1rem; }
.contact-details-box {
 background: var(--bg-light);
 padding: 30px;
 border-radius: var(--radius-lg);
 margin-top: 1.5rem;
}
.contact-detail-item { margin-bottom: 1rem; }
.contact-detail-item strong { color: var(--text-dark); }
.map-container {
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-sm);
}

/* Forms */
.form-animated .form-group {
 margin-bottom: 20px;
}
.form-animated label {
 display: block;
 font-weight: 600;
 margin-bottom: 8px;
 color: var(--text-dark);
}
.form-animated input[type="text"],
.form-animated input[type="email"],
.form-animated input[type="tel"],
.form-animated textarea {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 transition: var(--transition);
 font-family: var(--font-main);
 font-size: 1rem;
}
.form-animated textarea {
 min-height: 120px;
 resize: vertical;
}
.form-animated input:focus,
.form-animated textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.1);
}
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group label { margin: 0; }
.input-error { border-color: #dc2626 !important; }
.field-error { color: #dc2626; font-size: 0.85rem; margin-top: 5px; }

/* Spinner */
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
button:disabled { opacity: 0.7; cursor: not-allowed; }

/* Legal Pages */
.legal-page { padding: 40px 0; }
.legal-page h1 { margin-top: 80px; margin-bottom: 20px; }
.legal-page section { margin-bottom: 30px; }
.legal-page h2 { margin-top: 40px; margin-bottom: 15px; }
.legal-page ul { margin-left: 20px; }
.cookie-table {
 width: 100%;
 border-collapse: collapse;
 margin-top: 20px;
}
.cookie-table th, .cookie-table td {
 border: 1px solid var(--border-color);
 padding: 12px;
 text-align: left;
}
.cookie-table th {
 background-color: var(--bg-light);
 font-weight: 600;
}

/* Footer */
.footer {
 background: var(--text-dark);
 color: #aab2bd;
 padding: 60px 0 30px;
 margin-top: 60px;
}
.footer-container {
 max-width: 1200px;
 margin: auto;
 padding: 0 24px;
}
.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: white;
 margin-bottom: 1rem;
 display: inline-block;
}
.footer-heading {
 color: white;
 font-weight: 600;
 font-size: 1rem;
 margin-bottom: 1.5rem;
 text-transform: uppercase;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contact-item a { color: #aab2bd; }
.footer-links a:hover, .footer-contact-item a:hover { color: white; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 1rem; }
.footer-contact-item span { color: var(--accent-color); font-weight: 600; }
.footer-bottom { border-top: 1px solid #4a5568; padding-top: 30px; text-align: center; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: #2b3035;
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 1001;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--accent-color); }
#cookie-banner div { display: flex; gap: 10px; }

/* Responsive */
@media (max-width: 992px) {
 .nav-toggle { display: block; background: none; border: none; cursor: pointer; }
 .nav-toggle span { display: block; width: 25px; height: 2px; background: var(--text-dark); margin: 6px 0; transition: 0.3s; }
 .nav-links {
 position: fixed;
 top: 80px;
 left: 0;
 right: 0;
 background: white;
 flex-direction: column;
 padding: 30px;
 gap: 20px;
 box-shadow: var(--shadow-md);
 transform: translateY(-120%);
 transition: transform 0.4s ease-in-out;
 }
 .nav-links.active { transform: translateY(0); }
 .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
 .nav-toggle.open span:nth-child(2) { opacity: 0; }
 .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

 h1 { font-size: 2.5rem; }
 h2 { font-size: 2rem; }
 .media-object { grid-template-columns: 1fr; }
 .media-object.alternate .media-visual, .media-object.alternate .media-copy { grid-column: 1; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .contact-page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
 .footer-grid { grid-template-columns: 1fr; }
 #cookie-banner { flex-direction: column; text-align: center; }
 .hero-title { font-size: 2rem; }
 .hero-subtitle { font-size: 1rem; }
}