:root {
 --primary-color: #00A9E0; /* Cinematic Blue */
 --primary-dark: #0087b3;
 --secondary-color: #D4AF37; /* Cinematic Gold */
 --bg-dark: #121212;
 --bg-dark-2: #1a1a1a;
 --bg-light: #222222;
 --text-light: #e0e0e0;
 --text-dark: #ffffff; /* Main text is white on dark theme */
 --text-muted: #a0a0a0;
 --border-color: #333333;
 --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
 --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.3);
 --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
 --font-headings: 'Roboto Condensed', sans-serif;
}

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

html {
 scroll-behavior: smooth;
 scroll-padding-top: 80px;
}

body {
 font-family: var(--font-main);
 background-color: var(--bg-dark);
 color: var(--text-light);
 font-size: 16px;
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
}

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

.centered { text-align: center; }

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-headings);
 font-weight: 700;
 color: var(--text-dark);
 line-height: 1.2;
 letter-spacing: 0.5px;
 text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.5rem); }

a {
 color: var(--primary-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover { color: var(--primary-dark); }

p { margin-bottom: 1rem; color: var(--text-muted); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.section { padding: 80px 0; }
.section.bg-light { background-color: var(--bg-light); }
.page-content { padding-top: 80px; }

/* Header */
.header {
 position: fixed;
 top: 0; left: 0; right: 0;
 z-index: 1000;
 background: rgba(18, 18, 18, 0.85);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 transition: var(--transition);
}
.header.scrolled { background: rgba(18, 18, 18, 0.95); }
.nav {
 height: 80px;
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.nav-logo {
 font-family: var(--font-headings);
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
 text-transform: uppercase;
 letter-spacing: 1px;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
 font-weight: 500;
 color: var(--text-muted);
 padding: 8px 0;
 position: relative;
 text-transform: uppercase;
 font-size: 0.9rem;
 letter-spacing: 1px;
}
.nav-links a::after {
 content: ''; position: absolute; bottom: 0; left: 0;
 width: 0; height: 2px;
 background-color: var(--primary-color);
 transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; }

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

/* Hero Studio */
.hero-studio {
 position: relative;
 height: 85vh;
 min-height: 600px;
 display: flex;
 align-items: center;
 justify-content: center;
 overflow: hidden;
 text-align: center;
}
.hero-studio-bg {
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
}
.hero-studio-bg img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 animation: slowZoom 20s infinite alternate;
}
@keyframes slowZoom {
 from { transform: scale(1); }
 to { transform: scale(1.1); }
}
.hero-studio-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(rgba(18,18,18,0.9), rgba(18,18,18,0.7));
}
.hero-studio-content { position: relative; z-index: 2; }
.hero-studio-title {
 color: white;
 margin-bottom: 1rem;
 text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-studio-subtitle {
 font-size: 1.25rem;
 color: var(--text-muted);
 max-width: 700px;
 margin: 0 auto 2rem;
}
.btn-hero { padding: 16px 40px; font-size: 1.1rem; }

/* Section Header */
.section-header { margin-bottom: 60px; }
.section-label {
 display: inline-block;
 font-family: var(--font-headings);
 font-size: 0.9rem;
 font-weight: 700;
 color: var(--primary-color);
 margin-bottom: 1rem;
 letter-spacing: 2px;
 text-transform: uppercase;
}
.section-title { margin-bottom: 1rem; color: var(--text-dark); }
.section-subtitle { font-size: 1.1rem; max-width: 700px; margin: 0 auto; color: var(--text-muted); }

/* Projects Grid (Cinematic) */
.projects-grid { margin-top: 60px; }
.project-card {
 position: relative;
 display: block;
 overflow: hidden;
 height: 400px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.project-card:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }
.project-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-card-img { transform: scale(1.1); }
.project-card-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 padding: 24px;
}
.project-card-title {
 color: white;
 margin-bottom: 4px;
 font-size: 1.5rem;
}
.project-card-category { color: var(--primary-color); font-family: var(--font-headings); text-transform: uppercase; font-size: 0.8rem; }

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-object.reverse { grid-template-columns: 1fr 1fr; }
.media-object.reverse .media-visual { order: -1; }
.media-copy ul {
 list-style: none;
 padding-left: 0;
 margin-top: 2rem;
}
.media-copy ul li {
 padding-left: 30px;
 position: relative;
 margin-bottom: 1rem;
}
.media-copy ul li::before {
 content: '';
 color: var(--primary-color);
 position: absolute;
 left: 0;
 font-weight: bold;
}
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cta-buttons { margin-top: 2rem; }

/* Capability Cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.capability-card {
 background: var(--bg-light);
 padding: 30px;
 border-radius: var(--radius-md);
 text-align: center;
 border: 1px solid var(--border-color);
 transition: var(--transition);
}
.capability-card:hover {
 transform: translateY(-5px);
 border-color: var(--primary-color);
 box-shadow: 0 0 20px rgba(0, 169, 224, 0.2);
}
.capability-icon { 
 margin-bottom: 20px;
 color: var(--primary-color);
 width: 50px; height: 50px;
 margin-left: auto; margin-right: auto;
 display: flex; align-items: center; justify-content: center;
 background: rgba(0, 169, 224, 0.1);
 border-radius: 50%;
}
.capability-icon svg { width: 24px; height: 24px; }
.capability-title { font-size: 1.2rem; margin-bottom: 10px; }
.capability-text { font-size: 0.9rem; color: var(--text-muted); }

/* Team Section */
.team-section { background-color: var(--bg-dark); }
.team-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 30px;
 margin-top: 40px;
}
.team-member { text-align: center; }
.team-photo {
 width: 150px; height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 border: 4px solid var(--border-color);
 transition: var(--transition);
}
.team-member:hover .team-photo { border-color: var(--primary-color); transform: scale(1.05); }
.team-name { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 5px; }
.team-role { color: var(--primary-color); font-family: var(--font-headings); font-weight: 400; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* Logos */
.logos-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; margin-top: 40px; }
.partner-logo {
 height: 40px; width: auto; max-width: 140px;
 object-fit: contain; filter: grayscale(100%) invert(80%); opacity: 0.7;
 transition: var(--transition);
}
.partner-logo:hover { filter: grayscale(0) invert(0); opacity: 1; }

/* CTA Section */
.cta-section-dark {
 background: var(--bg-light);
 padding: 60px 0;
 text-align: center;
 border-top: 1px solid var(--border-color);
 border-bottom: 1px solid var(--border-color);
}
.cta-title { font-size: 2rem; color: white; margin-bottom: 1rem; }
.cta-text { max-width: 600px; margin: 0 auto 2rem; color: var(--text-muted); }

/* Footer */
.footer {
 background: var(--bg-dark-2);
 color: var(--text-muted);
 padding: 60px 0 30px;
 border-top: 1px solid var(--border-color);
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo { font-size: 1.5rem; font-family: var(--font-headings); font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-description { font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
 width: 40px; height: 40px; border-radius: 50%;
 background: rgba(255, 255, 255, 0.05);
 display: flex; align-items: center; justify-content: center;
 color: var(--text-muted); transition: var(--transition);
}
.footer-social a:hover { background: var(--primary-color); color: white; transform: translateY(-3px); }
.footer-heading {
 font-size: 1rem; font-weight: 700; color: white; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact-item {
 display: flex; align-items: flex-start; gap: 12px;
 margin-bottom: 16px; font-size: 0.9rem; color: var(--text-muted);
}
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--primary-color); }
.footer-contact-item a { color: var(--text-muted); }
.footer-contact-item a:hover { color: white; }
.footer-extra {
 display: flex;
 justify-content: space-between;
 gap: 30px;
 border-top: 1px solid var(--border-color);
 border-bottom: 1px solid var(--border-color);
 padding: 30px 0;
 margin-bottom: 30px;
 font-size: 0.9rem;
}
.footer-hours, .footer-disclaimer { flex: 1; }
.footer-bottom { text-align: center; font-size: 0.85rem; color: #777; }
.footer-bottom p { margin: 0; }

/* ---------- PAGE SPECIFIC STYLES ---------- */

/* Page Header */
.page-header-section {
 padding: 120px 0 60px;
 background: var(--bg-light);
}
.page-title {
 color: white;
}
.page-subtitle {
 color: var(--text-muted);
 font-size: 1.2rem;
 max-width: 600px;
 margin: 1rem auto 0;
}

/* Articles Page */
.search-section {
 max-width: 600px;
 margin: 0 auto 48px;
 display: flex; gap: 1rem;
}
.search-input {
 flex-grow: 1;
 width: 100%;
 padding: 14px 20px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 font-size: 1rem;
 background-color: var(--bg-dark-2); color: white;
}
.search-button { flex-shrink: 0; }
.card {
 background: var(--bg-light);
 border-radius: var(--radius-md);
 overflow: hidden;
 box-shadow: var(--shadow-sm);
 transition: var(--transition);
 border: 1px solid var(--border-color);
 display: flex;
 flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-color);}
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column;}
.card-title { font-size: 1.2rem; text-transform: none; margin-bottom: 12px; }
.card-text { color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.card-meta { margin-bottom: 1rem; }
.meta-tag {
 background: rgba(0, 169, 224, 0.1);
 color: var(--primary-color);
 padding: 4px 10px;
 border-radius: var(--radius-sm);
 font-size: 0.8rem;
 font-weight: bold;
}
.card-button {
 align-self: flex-start;
 padding: 10px 20px; margin-top: auto;
 border-radius: var(--radius-sm);
 border: 2px solid var(--primary-color);
 color: var(--primary-color);
 font-weight: 600;
 text-transform: none; letter-spacing: 0;
}
.card-button:hover { background-color: var(--primary-color); color: white; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a {
 padding: 8px 16px;
 color: var(--primary-color);
 font-weight: 500;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
}
.pagination a.active, .pagination a:hover {
 background: var(--primary-color);
 color: white;
 border-color: var(--primary-color);
}

/* About Page */
.value-card {
 background: var(--bg-dark);
 padding: 30px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 text-align: center;
}
.value-card h3 { color: var(--primary-color); }
.team-grid-detailed { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.team-member-detailed {
 background-color: var(--bg-light);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 padding: 30px;
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
}
.team-bio { font-size: 0.9rem; color: var(--text-muted); }

/* Contact Page */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.contact-form-container h3, .contact-info-container h3 { margin-bottom: 1rem; color: white;}
.contact-info-item { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-item svg { color: var(--primary-color); width: 24px; height: 24px; flex-shrink: 0; margin-top: 3px; }
.contact-info-item div { display: flex; flex-direction: column; }
.contact-info-item strong { color: white; margin-bottom: 5px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-light); }
.form-group input, .form-group textarea {
 width: 100%;
 padding: 14px 18px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 background: var(--bg-dark-2); color: white;
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none; border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.2);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; font-size: 0.9rem; }
.submit-button { width: 100%; }

.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; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.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; }

.map-container {
 width: 100%; height: 450px;
 border-radius: 0; overflow: hidden;
 margin-top: 80px;
 filter: grayscale(100%) invert(90%) contrast(80%);
}

/* Legal Pages */
.legal-content h3 { color: var(--primary-color); margin: 2rem 0 1rem; }
.legal-content p, .legal-content ul li { color: var(--text-muted); }
.legal-content ul { list-style: disc; margin-left: 20px; }
.cookie-table { width: 100%; margin-top: 2rem; border-collapse: collapse; }
.cookie-table th, .cookie-table td {
 padding: 12px 15px; text-align: left;
 border-bottom: 1px solid var(--border-color);
}
.cookie-table th { background: var(--bg-light); color: white; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0; left: 0; right: 0;
 background: var(--bg-light);
 padding: 20px;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
}
#cookie-banner p { margin: 0; color: var(--text-muted); }
#cookie-banner p a { color: var(--primary-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 10px; }

/* Responsive Design */
@media (max-width: 992px) {
 .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .media-object { grid-template-columns: 1fr; }
 .media-object.reverse .media-visual { order: 0; }
 .team-grid { grid-template-columns: repeat(2, 1fr); }
 .contact-layout { grid-template-columns: 1fr; }
 .team-grid-detailed { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
 h1 { font-size: 2.2rem; }
 h2 { font-size: 1.8rem; }
 .nav-cta { display: none; }
 .nav-toggle {
 display: block;
 background: none; border: none; cursor: pointer; padding: 8px;
 z-index: 1001;
 }
 .nav-toggle span {
 display: block; width: 25px; height: 2px;
 background: var(--text-dark); margin: 6px 0;
 transition: var(--transition);
 }
 .nav-links {
 position: fixed; inset: 0;
 background: var(--bg-dark);
 flex-direction: column;
 padding: 100px 40px;
 gap: 30px;
 align-items: center; justify-content: center;
 transform: translateX(100%);
 transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
 }
 .nav-links.active { transform: translateX(0); }
 .nav-links a { font-size: 1.5rem; }
 .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, -7px); }
 .hero-studio { height: 70vh; }
 .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-column { margin: 0 auto; }
 .footer-social { justify-content: center; }
 .footer-extra { flex-direction: column; text-align: center; }
 #cookie-banner { flex-direction: column; text-align: center; }
}