:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --primary-dark: #093a65;
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #4a5568; /* Steel Gray */
 --text-dark: #2d3748;
 --text-light: #4a5568;
 --text-muted: #718096;
 --bg-light: #f7fafc;
 --bg-white: #ffffff;
 --border-color: #e2e8f0;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
 --radius-md: 8px;
 --radius-lg: 16px;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
 scroll-behavior: smooth;
 font-size: 100%;
}

body {
 font-family: var(--font-main);
 font-size: 1rem;
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
 margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style-position: inside; padding-left: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header & Nav */
.header { position: sticky; top: 0; left: 0; right: 0; z-index: 1000; background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); transition: var(--transition); }
.nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text-dark); padding: 8px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background-color: var(--text-dark); margin: 6px 0; transition: var(--transition); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; font-size: 1rem; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-decoration: none; }
.btn-primary { background-color: var(--primary-color); color: var(--bg-white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-3px); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--bg-white); }
.btn-white { background-color: var(--bg-white); color: var(--primary-color); border-color: var(--bg-white); }
.btn-white:hover { background-color: var(--bg-light); color: var(--primary-dark); transform: translateY(-3px); }

/* Sections */
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-label { display: inline-block; background-color: var(--secondary-color); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); }
.section-subtitle { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; max-width: 600px; margin: 0 auto; }

/* Hero Section */
.hero-section { background-color: var(--bg-light); padding: 60px 0; }
.hero-container { display: flex; align-items: center; gap: 48px; }
.hero-content { flex: 1 1 50%; }
.hero-title { margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-image-container { flex: 1 1 50%; }
.hero-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-small .hero-container { justify-content: center; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; margin-top: 50px; }
.stat-card { background-color: var(--bg-white); padding: 30px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition); }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-number { font-size: 3.5rem; font-weight: 700; color: var(--primary-color); line-height: 1; }
.stat-title { font-size: 1.2rem; margin-top: 0.5rem; }
.stat-text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

/* Cards & Grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card { background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-image-top { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column;}
.card-title { font-size: 1.3rem; margin-bottom: 0.75rem; }
.card-text { color: var(--text-light); flex-grow: 1; }
.card-link { font-weight: 600; color: var(--primary-color); margin-top: auto; align-self: flex-start; }
.service-card { padding: 30px; text-align: center; }
.service-card .card-icon { width: 50px; height: 50px; margin: 0 auto 20px; color: var(--primary-color); }
.article-card .card-category { font-size: 0.8rem; font-weight: 600; color: var(--secondary-color); text-transform: uppercase; margin-bottom: 0.5rem; }

/* Media Object */
.media-object { display: flex; align-items: center; gap: 48px; }
.media-content, .media-image-container { flex: 1; }
.media-image { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.media-object.reverse { flex-direction: row-reverse; }
.feature-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.feature-list li { padding-left: 28px; position: relative; margin-bottom: 1rem; }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0; color: var(--secondary-color); font-weight: 700; font-size: 1.2rem; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 50px auto 0; }
.timeline::after { content: ''; position: absolute; width: 3px; background-color: var(--border-color); top: 0; bottom: 0; left: 50%; margin-left: -1.5px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 25px; height: 25px; right: -14px; background-color: white; border: 4px solid var(--primary-color); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(even)::after { left: -14px; }
.timeline-dot { position: absolute; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; background-color: var(--primary-color); border-radius: 50%; top: 20px; z-index: 2; border: 3px solid var(--bg-light); }
.timeline-content { padding: 20px 30px; background-color: white; position: relative; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.timeline-item:nth-child(even) .timeline-content { text-align: left; }
.timeline-item:nth-child(odd) .timeline-content { text-align: right; }
.timeline-content h3 { margin-top: 0; color: var(--primary-color); }
.timeline-content p { margin-bottom: 0; }

/* CTA Section */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); border-radius: var(--radius-lg); margin-top: 80px; }

/* Footer */
.footer { background-color: var(--text-dark); color: #a0aec0; padding: 60px 0 20px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 1rem; display: block; }
.footer-description { font-size: 0.9rem; line-height: 1.6; }
.footer-heading { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 20px; text-transform: uppercase; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a, .footer-contact a { color: #a0aec0; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--secondary-color); }
.footer-bottom { border-top: 1px solid #4a5568; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: #a0aec0; }

/* Legal Pages */
.legal-page { padding: 80px 0; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page section { margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2rem; margin-bottom: 1rem; border-bottom: 2px solid var(--border-color); padding-bottom: 0.5rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.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); }

/* Service Detail Page */
.service-detail-card { display: flex; gap: 48px; align-items: center; margin-bottom: 80px; }
.service-detail-card img { flex: 0 0 45%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.service-detail-card .service-detail-content { flex: 1; }
.service-detail-card.reverse { flex-direction: row-reverse; }
.service-detail-card ul { margin-top: 1rem; list-style-type: ' '; padding-left: 1.5rem; }
.service-detail-card li { margin-bottom: 0.5rem; }

/* About Page */
.team-card { text-align: center; padding: 30px; background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); transition: var(--transition); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; object-fit: cover; border: 4px solid var(--secondary-color); }
.team-name { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.25rem; }
.team-role { font-weight: 500; color: var(--primary-color); margin-bottom: 1rem; }
.team-bio { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.value-item { text-align: center; }
.value-icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--primary-color); }
.value-icon svg { width: 100%; height: 100%; }

/* Contact Page */
.contact-page-grid { display: grid; grid-template-columns: 2fr 1.5fr; gap: 60px; }
.contact-form-container, .contact-info-container { }
.contact-info-list { list-style: none; padding: 0; }
.contact-info-list li { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info-list svg { width: 24px; height: 24px; color: var(--primary-color); flex-shrink: 0; margin-top: 3px; }
.map-section { padding-top: 0; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 14px 18px; font-size: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-md); transition: var(--transition); background: white; font-family: inherit; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.2); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* Cookie Banner */
#cookie-banner { position: fixed; bottom: -200px; left: 20px; right: 20px; max-width: 500px; background-color: var(--text-dark); color: white; padding: 20px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 2000; display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: var(--transition); }
#cookie-banner.show { bottom: 20px; }
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 992px) {
 .grid-3, .footer-grid, .contact-page-grid { grid-template-columns: 1fr 1fr; }
 .hero-container, .media-object, .media-object.reverse { flex-direction: column; text-align: center; }
 .hero-buttons { justify-content: center; }
 .timeline::after { left: 31px; }
 .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
 .timeline-item:nth-child(even) { left: 0; }
 .timeline-item::after { left: 18px; }
 .timeline-item:nth-child(even)::after, .timeline-item:nth-child(odd)::after { left: 18px; }
 .timeline-dot { left: 31px; }
 .timeline-item:nth-child(even) .timeline-content, .timeline-item:nth-child(odd) .timeline-content { text-align: left; }
 .service-detail-card, .service-detail-card.reverse { flex-direction: column; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-links { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: white; flex-direction: column; justify-content: center; align-items: center; gap: 2rem; transform: translateX(100%); transition: var(--transition); }
 .nav-links.active { transform: translateX(0); }
 .footer-grid, .grid-3, .contact-page-grid { grid-template-columns: 1fr; }
 .footer-bottom { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
 #cookie-banner { flex-direction: column; text-align: center; }
}

/* Animations */
[data-aos] {
 transition-property: transform, opacity;
}
[data-aos="fade-up"] {
 transform: translateY(50px);
}
[data-aos="fade-right"] {
 transform: translateX(-50px);
}
[data-aos="fade-left"] {
 transform: translateX(50px);
}
[data-aos="zoom-in"] {
 transform: scale(0.9);
}
[data-aos].aos-animate {
 transform: translate(0, 0) scale(1);
}