@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Poppins:wght@600;700;800&display=swap');

:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #4a5568; /* Steel Gray */
 --primary-dark: #0a3c6b;
 --bg-light: #f0f4f8;
 --bg-white: #ffffff;
 --text-dark: #2d3748;
 --text-light: #4a5568;
 --text-white: #ffffff;
 --border-color: #e2e8f0;
 --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
 
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;

 --font-main: 'Roboto', sans-serif;
 --font-heading: 'Poppins', sans-serif;
 --transition: all 0.3s ease-in-out;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: var(--font-main);
 background: var(--bg-white);
 color: var(--text-dark);
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
 padding-top: 80px; /* Header height */
}

a {
 color: var(--secondary-color);
 text-decoration: none;
 transition: var(--transition);
}

a:hover {
 color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 color: var(--primary-color);
 line-height: 1.2;
 font-weight: 700;
}

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

img {
 max-width: 100%;
 height: auto;
 display: block;
 border-radius: var(--radius-md);
}

/* --- HEADER --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 background: rgba(255, 255, 255, 0.85);
 backdrop-filter: blur(10px);
 box-shadow: var(--shadow-sm);
 transition: background 0.3s ease, box-shadow 0.3s ease;
 height: 80px;
}

.header.scrolled {
 background: var(--bg-white);
 box-shadow: var(--shadow-md);
}

.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 100%;
}

.nav-logo {
 font-family: var(--font-heading);
 font-size: 1.8rem;
 font-weight: 800;
 color: var(--primary-color);
 transition: transform 0.3s ease;
}

.nav-logo:hover {
 transform: scale(1.05);
}

.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}

.nav-links a {
 font-family: var(--font-heading);
 font-size: 1rem;
 font-weight: 600;
 color: var(--text-dark);
 padding: 8px 0;
 position: relative;
 overflow: hidden;
}

.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: -100%;
 width: 100%;
 height: 2px;
 background-color: var(--secondary-color);
 transition: left 0.4s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
 left: 0;
}

.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
}

.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background: var(--text-dark);
 margin: 5px;
 border-radius: 2px;
 transition: var(--transition);
}

/* --- HERO --- */
.hero {
 position: relative;
 min-height: calc(100vh - 80px);
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--text-white);
 text-align: center;
 overflow: hidden;
}

.short-hero {
 min-height: 40vh;
}

.hero-bg {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-size: cover;
 background-position: center;
 animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
 from { transform: scale(1); }
 to { transform: scale(1.1); }
}

.hero-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(135deg, rgba(13, 79, 139, 0.7), rgba(8, 145, 178, 0.5));
}

.hero-content {
 position: relative;
 z-index: 2;
 animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
 from { opacity: 0; transform: translateY(-30px); }
 to { opacity: 1; transform: translateY(0); }
}

.hero-title {
 font-size: clamp(2.5rem, 5vw, 4rem);
 color: var(--text-white);
 margin-bottom: 0.5em;
 font-weight: 800;
 text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
 font-size: clamp(1rem, 2vw, 1.25rem);
 max-width: 700px;
 margin: 0 auto 1.5rem;
 opacity: 0.9;
}

.hero-cta {
 display: flex;
 justify-content: center;
 gap: 1rem;
 flex-wrap: wrap;
}

/* --- BUTTONS --- */
.btn {
 display: inline-block;
 padding: 14px 28px;
 font-family: var(--font-heading);
 font-weight: 600;
 border-radius: var(--radius-md);
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 text-align: center;
}

.btn-primary {
 background: var(--secondary-color);
 color: var(--text-white);
 box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
 background: var(--primary-color);
 transform: translateY(-3px);
 box-shadow: 0 6px 20px rgba(13, 79, 139, 0.4);
}

.btn-secondary {
 background: transparent;
 color: var(--text-white);
 border-color: var(--text-white);
}

.btn-secondary:hover {
 background: var(--text-white);
 color: var(--primary-color);
}

.btn-tertiary {
 background: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}

.btn-tertiary:hover {
 background: var(--primary-color);
 color: var(--text-white);
}
.btn-full {
 width: 100%;
}

/* --- SECTIONS --- */
.section {
 padding: 80px 0;
}
.bg-light {
 background-color: var(--bg-light);
}

/* Section Header */
.section-header {
 text-align: center;
 max-width: 750px;
 margin: 0 auto 60px;
}

.section-tag {
 display: inline-block;
 font-family: var(--font-heading);
 font-weight: 600;
 color: var(--secondary-color);
 text-transform: uppercase;
 letter-spacing: 1.5px;
 margin-bottom: 0.5rem;
 font-size: 0.9rem;
}

.section-title {
 font-size: clamp(2rem, 4vw, 2.75rem);
 margin-bottom: 1rem;
}

.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
 max-width: 600px;
 margin: 0 auto;
}

/* --- INTERACTIVE CARDS --- */
.interactive-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}
.interactive-card {
 perspective: 1000px;
 cursor: pointer;
}
.interactive-card .card-face {
 width: 100%;
 min-height: 280px;
 padding: 30px;
 backface-visibility: hidden;
 transition: transform 0.6s;
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}
.interactive-card .card-front {
 transform: rotateY(0deg);
}
.interactive-card .card-back {
 position: absolute;
 top: 0;
 left: 0;
 transform: rotateY(180deg);
 justify-content: center;
 background: var(--primary-color);
 color: var(--text-white);
}
.interactive-card .card-back h3, .interactive-card .card-back p {
 color: var(--text-white);
}
.interactive-card:hover .card-front {
 transform: rotateY(-180deg);
}
.interactive-card:hover .card-back {
 transform: rotateY(0deg);
}

.card-icon {
 color: var(--secondary-color);
 margin-bottom: 15px;
}
.card-icon svg {
 width: 50px;
 height: 50px;
}
.interactive-card h3 {
 margin-bottom: 10px;
 font-size: 1.4rem;
}
.interactive-card p {
 color: var(--text-light);
 flex-grow: 1;
}
.card-action {
 margin-top: auto;
 font-weight: 600;
 color: var(--secondary-color);
}

/* --- MEDIA OBJECT --- */
.media-object {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 50px;
 align-items: center;
}
.media-object.reverse .media-visual { order: 2; }

.media-visual img {
 box-shadow: var(--shadow-lg);
}
.media-content h2 { margin-bottom: 1.5rem; }
.media-content p { margin-bottom: 1.5rem; }

.benefit-list {
 list-style: none;
 padding: 0;
}
.benefit-list li {
 display: flex;
 align-items: flex-start;
 gap: 15px;
 margin-bottom: 1.5rem;
}
.benefit-list svg {
 flex-shrink: 0;
 width: 24px;
 height: 24px;
 color: var(--secondary-color);
 margin-top: 5px;
}
.benefit-list h4 {
 font-size: 1.1rem;
 margin-bottom: 0.25rem;
}

/* --- TIMELINE --- */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
 padding: 40px 0;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 4px;
 background: var(--secondary-color);
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -2px;
 opacity: 0.2;
}

.timeline-item {
 padding: 10px 40px;
 position: relative;
 width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::after {
 content: attr(data-step);
 position: absolute;
 width: 50px;
 height: 50px;
 right: -25px;
 background: var(--bg-white);
 border: 4px solid var(--secondary-color);
 top: 30px;
 border-radius: 50%;
 z-index: 1;
 display: flex;
 justify-content: center;
 align-items: center;
 font-family: var(--font-heading);
 font-weight: 700;
 font-size: 1.5rem;
 color: var(--primary-color);
 transition: var(--transition);
}
.timeline-item:nth-child(even)::after { left: -25px; }

.timeline-item:hover::after {
 background: var(--secondary-color);
 color: white;
 transform: scale(1.1);
}

.timeline-content {
 padding: 20px 30px;
 background: var(--bg-white);
 position: relative;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.timeline-item:hover .timeline-content {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(odd) { text-align: right; }
.timeline-item:nth-child(odd) .timeline-content {
 border-right: 4px solid var(--secondary-color);
}
.timeline-item:nth-child(even) .timeline-content {
 border-left: 4px solid var(--secondary-color);
}

.timeline-content h3 { font-size: 1.3rem; margin-bottom: 0.5rem;}
.timeline-content p { color: var(--text-light); }

/* --- CTA SECTION --- */
.cta-section {
 text-align: center;
 padding: 60px 20px;
}
.cta-section h2 {
 font-size: 2.2rem;
 margin-bottom: 1rem;
}
.cta-section p {
 max-width: 600px;
 margin: 0 auto 2rem;
 color: var(--text-light);
}

/* --- FOOTER --- */
.footer {
 background: var(--primary-color);
 color: var(--bg-light);
 padding: 60px 0 20px;
}
.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-family: var(--font-heading);
 font-size: 1.8rem;
 font-weight: 800;
 color: var(--text-white);
 margin-bottom: 1rem;
 display: inline-block;
}
.footer-description {
 font-size: 0.9rem;
 line-height: 1.6;
 color: #a0c4e4;
 margin-bottom: 1rem;
}
.social-links {
 display: flex;
 gap: 12px;
}
.social-links a {
 color: var(--text-white);
 background-color: rgba(255, 255, 255, 0.1);
 width: 40px;
 height: 40px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: var(--transition);
}
.social-links a:hover {
 background-color: var(--secondary-color);
 transform: translateY(-3px);
}
.social-links svg {
 width: 20px;
 height: 20px;
 fill: none;
 stroke: currentColor;
 stroke-width: 2;
 stroke-linecap: round;
 stroke-linejoin: round;
}
.footer-heading {
 font-size: 1.1rem;
 color: var(--text-white);
 margin-bottom: 1.5rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-contact p, .footer-contact a {
 color: #a0c4e4;
 font-size: 0.95rem;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--text-white); text-decoration: underline;}
.footer-contact { font-style: normal; }
.footer-contact p { margin-bottom: 10px; display: flex; align-items: flex-start; gap: 10px;}
.footer-contact svg { width: 18px; height: 18px; color: var(--secondary-color); flex-shrink: 0; margin-top: 3px;}
.footer-hours { color: #a0c4e4; font-size: 0.95rem; line-height: 1.6;}
.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 flex-wrap: wrap;
 gap: 1rem;
 font-size: 0.85rem;
 color: #a0c4e4;
}
.footer-legal { display: flex; gap: 20px; list-style: none; }

/* SERVICES PAGE */
.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
 gap: 30px;
}
.service-card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.service-card:hover {
 transform: translateY(-8px);
 box-shadow: var(--shadow-lg);
}
.service-card .card-image {
 height: 220px;
 object-fit: cover;
 border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.service-card .card-content {
 padding: 25px;
 flex-grow: 1;
}
.service-card h3 {
 font-size: 1.4rem;
 margin-bottom: 0.75rem;
}

.values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 30px;
}
.value-item {
 background: var(--bg-white);
 padding: 30px;
 border-radius: var(--radius-lg);
 text-align: center;
 box-shadow: var(--shadow-md);
 border-left: 5px solid var(--secondary-color);
}
.value-icon {
 color: var(--secondary-color);
 margin-bottom: 1rem;
}
.value-icon svg {
 width: 40px; height: 40px;
}
.value-item h4 {
 font-size: 1.25rem;
 margin-bottom: 0.5rem;
}

/* ABOUT PAGE */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
}
.team-member {
 text-align: center;
}
.team-member img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 border: 5px solid var(--bg-white);
 box-shadow: var(--shadow-lg);
}
.team-member h4 {
 font-size: 1.25rem;
 margin-bottom: 0.25rem;
}
.team-member .team-title {
 color: var(--secondary-color);
 font-weight: 600;
}

/* RESOURCES PAGE */
.resource-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
 gap: 30px;
}
.resource-card {
 background: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
}
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.resource-card .card-image { height: 200px; object-fit: cover; }
.resource-card .card-content { padding: 25px; }
.card-category {
 display: inline-block;
 background: var(--bg-light);
 color: var(--secondary-color);
 padding: 5px 10px;
 border-radius: var(--radius-sm);
 font-size: 0.8rem;
 font-weight: 600;
 margin-bottom: 1rem;
}
.resource-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.read-more-link { font-weight: 600; color: var(--primary-color);}

.faq-accordion {
 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;
 padding: 20px 0;
 font-size: 1.1rem;
 font-weight: 600;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 color: var(--text-dark);
}
.faq-icon {
 width: 24px;
 height: 24px;
 transition: transform 0.3s;
 stroke: var(--secondary-color);
 stroke-width: 2;
 fill: none;
}
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p { padding-bottom: 20px; color: var(--text-light); }

.faq-item.active .faq-answer {
 max-height: 300px; /* Adjust as needed */
}
.faq-item.active .faq-icon {
 transform: rotate(180deg);
}

/* CONTACT PAGE */
.contact-page-layout {
 display: grid;
 grid-template-columns: 2fr 1fr;
 gap: 60px;
}
.contact-form-container h2, .contact-info-container h2 {
 text-align: left;
 margin-bottom: 1rem;
}
.contact-form-container > p, .contact-info-container > p {
 text-align: left;
 margin-bottom: 2rem;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label {
 display: block;
 font-weight: 600;
 margin-bottom: 0.5rem;
}
.contact-form input, .contact-form textarea {
 width: 100%;
 padding: 14px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: var(--font-main);
 font-size: 1rem;
 transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus {
 outline: none;
 border-color: var(--secondary-color);
 box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2);
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
}
.checkbox-group input { width: auto; }

.contact-details .contact-item {
 display: flex;
 gap: 15px;
 margin-bottom: 1.5rem;
}
.contact-details .contact-icon {
 background: var(--bg-light);
 color: var(--secondary-color);
 width: 44px;
 height: 44px;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 flex-shrink: 0;
}
.contact-details .contact-icon svg { width: 22px; height: 22px; }
.contact-details h4 {
 font-size: 1.1rem;
 margin-bottom: 0.2rem;
}
.contact-details p { margin: 0; color: var(--text-light); }

.map-container {
 margin-top: 60px;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-lg);
}
.map-container iframe {
 width: 100%;
 height: 100%;
 border: 0;
}

/* LEGAL & THANK YOU PAGES */
.legal-page, .thank-you-section { padding: 60px 0; }
.legal-page .container, .thank-you-section .container { max-width: 800px; }
.legal-page h3 { margin: 2rem 0 1rem; }
.legal-page p, .legal-page li { color: var(--text-light); }
.legal-page .last-updated {
 margin-bottom: 2rem;
 color: var(--text-light);
 font-style: italic;
}
.thank-you-section .text-center { text-align: center; }
.thank-you-icon {
 color: var(--secondary-color);
 margin: 0 auto 2rem;
}
.thank-you-icon svg {
 width: 80px; height: 80px;
}

/* COOKIE BANNER */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: var(--text-dark);
 color: var(--text-white);
 padding: 15px 20px;
 display: none;
 justify-content: space-between;
 align-items: center;
 z-index: 2000;
 gap: 20px;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }
#cookie-banner button {
 padding: 8px 16px;
 border-radius: var(--radius-sm);
 border: none;
 cursor: pointer;
}
#accept-cookies { background: var(--secondary-color); color: white; }
#decline-cookies { background: var(--accent-color); color: white; }

/* SPINNER & FORM VALIDATION */
.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; }

.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error {
 color: #dc2626;
 font-size: 0.85rem;
 margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
 .media-object { grid-template-columns: 1fr; }
 .media-object.reverse .media-visual { order: 0; }
 .contact-page-layout { grid-template-columns: 1fr; }
 .timeline::after { left: 30px; }
 .timeline-item { width: 100%; padding-left: 70px; padding-right: 20px; }
 .timeline-item:nth-child(even) { left: 0; }
 .timeline-item::after, .timeline-item:nth-child(even)::after { left: 5px; }
 .timeline-item:nth-child(odd) { text-align: left;}
}

@media (max-width: 768px) {
 body { padding-top: 70px; }
 .header { height: 70px; }
 .nav-toggle { display: block; z-index: 1001;}
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 100%;
 height: 100vh;
 background: var(--primary-color);
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 40px;
 transition: right 0.5s ease;
 }
 .nav-links.active { right: 0; }
 .nav-links a { color: var(--text-white); font-size: 1.5rem; }
 .nav-links a::after { background: var(--text-white); }

 .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-toggle.active span { background-color: white; }

 #cookie-banner { flex-direction: column; text-align: center; }
}

.table-container {
 overflow-x: auto;
 margin: 2rem 0;
}

table {
 width: 100%;
 border-collapse: collapse;
 font-size: 0.9rem;
}

th, td {
 padding: 12px 15px;
 text-align: left;
 border-bottom: 1px solid var(--border-color);
}

th {
 background-color: var(--bg-light);
 font-weight: 600;
 color: var(--primary-color);
}

tbody tr:hover {
 background-color: var(--bg-light);
}