@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;700&display=swap');

/* CSS Variables */
:root {
 --primary-color: #0d4f8b; /* Deep Blue */
 --secondary-color: #0891b2; /* Tech Cyan */
 --accent-color: #c9a44c; /* Gold-like accent */
 --text-dark: #4a5568; /* Steel Gray */
 --text-light: #f8f8f8;
 --background-light: #ffffff;
 --background-dark: #eef2f6;
 --border-color: #e0e0e0;
 --shadow-light: rgba(0, 0, 0, 0.08);
 --shadow-hover: rgba(0, 0, 0, 0.15);

 --font-heading: 'Playfair Display', serif;
 --font-body: 'Roboto', sans-serif;

 --max-width: 1200px;
}

/* Base Styles */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

body {
 font-family: var(--font-body);
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--background-light);
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
}

.container {
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 1rem 1.5rem;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 color: var(--primary-color);
 margin-bottom: 0.8em;
 line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p {
 margin-bottom: 1em;
}

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

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

ul {
 list-style: none;
}

img {
 max-width: 100%;
 height: auto;
 display: block;
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 0.8rem 1.8rem;
 border-radius: 5px;
 font-weight: 500;
 text-align: center;
 transition: all 0.3s ease;
 cursor: pointer;
 border: none;
 font-family: var(--font-body);
 font-size: 1rem;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--text-light);
 border: 1px solid var(--primary-color);
}

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

.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border: 1px solid var(--primary-color);
}

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

.btn-white {
 background-color: var(--text-light);
 color: var(--primary-color);
 border: 1px solid var(--text-light);
}

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

.btn-link {
 background: none;
 border: none;
 padding: 0;
 color: var(--secondary-color);
 font-weight: 500;
 text-decoration: underline;
 display: inline-block;
 margin-top: 1rem;
 font-size: 1rem;
}

.btn-link:hover {
 color: var(--primary-color);
}

/* Header */
.main-header {
 background-color: transparent;
 padding: 1rem 0;
 position: fixed;
 width: 100%;
 top: 0;
 left: 0;
 z-index: 1000;
 transition: background-color 0.3s ease, padding 0.3s ease;
}

.main-header.scrolled {
 background-color: var(--background-light);
 padding: 0.8rem 0;
 box-shadow: 0 2px 10px var(--shadow-light);
}

.main-header.scrolled .navbar .logo {
 color: var(--primary-color);
}

.main-header.scrolled .navbar .nav-links a {
 color: var(--text-dark);
}

.main-header.scrolled .navbar .nav-links a:hover {
 color: var(--secondary-color);
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: var(--max-width);
 margin: 0 auto;
 padding: 0 1.5rem;
}

.navbar .logo {
 font-family: var(--font-heading);
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--text-light);
 text-transform: uppercase;
 letter-spacing: 1.5px;
 transition: color 0.3s ease;
}

.navbar .nav-links {
 display: flex;
}

.navbar .nav-links li {
 margin-left: 2.5rem;
}

.navbar .nav-links a {
 color: var(--text-light);
 font-weight: 400;
 font-size: 1.05rem;
 padding: 0.5rem 0;
 position: relative;
 transition: color 0.3s ease;
}

.navbar .nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 0;
 height: 2px;
 background-color: var(--accent-color);
 transition: width 0.3s ease;
}

.navbar .nav-links a:hover::after,
.navbar .nav-links a.active::after {
 width: 100%;
}

.navbar .nav-toggle {
 display: none;
 flex-direction: column;
 justify-content: space-between;
 width: 30px;
 height: 20px;
 background: transparent;
 border: none;
 cursor: pointer;
 padding: 0;
}

.navbar .nav-toggle span {
 display: block;
 width: 100%;
 height: 2px;
 background-color: var(--text-light);
 transition: all 0.3s ease;
 border-radius: 2px;
}

.main-header.scrolled .navbar .nav-toggle span {
 background-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
 position: relative;
 height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--text-light);
 overflow: hidden;
}

.hero-image {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: -1;
 filter: brightness(0.4);
 transform: scale(1.05); /* Initial zoom for Ken Burns */
 animation: kenburns 60s infinite alternate linear;
}

@keyframes kenburns {
 0% {
 transform: scale(1.05) translate(0%, 0%);
 }
 100% {
 transform: scale(1.15) translate(-5%, 5%);
 }
}

.hero-content {
 z-index: 1;
 padding: 1.5rem;
 max-width: 900px;
}

.hero-title {
 font-size: 3.8rem;
 margin-bottom: 0.5rem;
 color: var(--text-light);
 letter-spacing: 2px;
 text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
 animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
 font-size: 1.5rem;
 margin-bottom: 2rem;
 color: var(--text-light);
 font-weight: 300;
 text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
 animation: fadeInUp 1s ease-out 0.3s backwards;
}

.hero-buttons .btn {
 margin: 0 1rem;
 min-width: 180px;
 transform: translateY(20px);
 opacity: 0;
 animation: fadeInUp 1s ease-out 0.6s forwards;
}
.hero-buttons .btn:last-child {
 animation-delay: 0.9s;
}

.scroll-indicator {
 position: absolute;
 bottom: 2rem;
 left: 50%;
 transform: translateX(-50%);
 color: var(--text-light);
 font-size: 0.9rem;
 letter-spacing: 1px;
 animation: bounce 2s infinite;
}

.scroll-indicator::after {
 content: '';
 display: block;
 width: 1px;
 height: 30px;
 background-color: var(--text-light);
 margin: 10px auto 0;
}

@keyframes bounce {
 0%, 20%, 50%, 80%, 100% {
 transform: translateY(0);
 }
 40% {
 transform: translateY(-10px);
 }
 60% {
 transform: translateY(-5px);
 }
}

/* Sections */
.section {
 padding: 6rem 0;
 text-align: center;
 position: relative; /* For animations */
 opacity: 0; /* Hidden by default for JS animation */
 transform: translateY(50px); /* Move down for JS animation */
 transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.animate-on-scroll.is-visible {
 opacity: 1;
 transform: translateY(0);
}

.section-title {
 font-size: 2.5rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
 letter-spacing: 1px;
}

.section-subtitle {
 font-size: 1.2rem;
 color: var(--text-dark);
 max-width: 700px;
 margin: 0 auto 3rem;
}

.section-title.light-text,
.section-subtitle.light-text {
 color: var(--text-light);
}

.bg-light {
 background-color: var(--background-dark);
}

.colored-bg {
 background-color: var(--primary-color);
 color: var(--text-light);
}

/* Philosophy Quote Section */
.philosophy-quote {
 background-color: var(--background-light);
 padding: 6rem 1.5rem;
}

.philosophy-quote .section-title-alt {
 font-family: var(--font-heading);
 font-size: 2.8rem;
 font-style: italic;
 color: var(--primary-color);
 max-width: 800px;
 margin: 0 auto 1.5rem;
 line-height: 1.3;
}

.philosophy-quote .section-subtitle-alt {
 font-family: var(--font-body);
 font-size: 1.2rem;
 font-weight: 300;
 color: var(--text-dark);
}

/* Features Grid (Exclusive Services) */
.features-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

.feature-item.card {
 padding: 2rem;
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 text-align: left;
}

.feature-item.card:hover {
 transform: translateY(-10px);
 box-shadow: 0 8px 25px var(--shadow-hover);
}

.feature-item img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 border-radius: 8px;
 margin-bottom: 1.5rem;
}

.feature-item h3 {
 font-size: 1.5rem;
 color: var(--primary-color);
 margin-bottom: 0.8rem;
}

.feature-item p {
 font-size: 1rem;
 color: var(--text-dark);
 margin-bottom: 1.5rem;
}

/* About Preview Section */
.about-content-wrapper {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 text-align: left;
 gap: 3rem;
}

.about-image {
 flex: 1;
 min-width: 300px;
}

.about-image img {
 border-radius: 10px;
 box-shadow: 0 8px 20px var(--shadow-light);
}

.about-text {
 flex: 1.5;
 min-width: 300px;
}

.about-text .section-title {
 text-align: left;
 margin-top: 0;
}
.about-text p {
 font-size: 1.1rem;
 margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
 padding: 6rem 0;
}

.testimonial-card {
 max-width: 700px;
 margin: 2.5rem auto;
 background-color: var(--text-light);
 color: var(--text-dark);
 padding: 2.5rem;
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 text-align: center;
 position: relative;
}

.testimonial-avatar {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 border: 3px solid var(--accent-color);
 margin: -70px auto 1.5rem; /* Pull up to overlap section above */
 display: block; /* Important for margin:auto to center */
}

.testimonial-text {
 font-style: italic;
 font-size: 1.15rem;
 margin-bottom: 1.5rem;
 line-height: 1.8;
}

.testimonial-author {
 font-weight: 700;
 font-size: 1.1rem;
 margin-bottom: 0.2rem;
 color: var(--primary-color);
}

.testimonial-title {
 font-size: 0.9rem;
 color: var(--text-dark);
}

/* Blog Preview Section */
.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

.blog-post-card.card {
 text-align: left;
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 overflow: hidden;
}

.blog-post-card.card:hover {
 transform: translateY(-10px);
 box-shadow: 0 8px 25px var(--shadow-hover);
}

.blog-post-card img {
 width: 100%;
 height: 220px;
 object-fit: cover;
 border-radius: 10px 10px 0 0;
 margin-bottom: 1.5rem;
}

.blog-post-card h3 {
 font-size: 1.4rem;
 padding: 0 1.5rem;
 margin-bottom: 0.8rem;
 color: var(--primary-color);
}

.blog-post-card p {
 padding: 0 1.5rem;
 font-size: 1rem;
 margin-bottom: 1.5rem;
}

.blog-post-card .btn-link {
 padding: 0 1.5rem 1.5rem;
 margin-top: 0;
 display: inline-block;
}

/* FAQ Section */
.faq-accordion {
 max-width: 800px;
 margin: 3rem auto 0;
 text-align: left;
}

.accordion-item {
 background-color: var(--background-light);
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 1rem;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion-header {
 width: 100%;
 padding: 1.5rem;
 font-size: 1.15rem;
 font-weight: 500;
 color: var(--primary-color);
 background: none;
 border: none;
 text-align: left;
 cursor: pointer;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-family: var(--font-body);
 transition: background-color 0.3s ease;
}

.accordion-header:hover {
 background-color: #f9f9f9;
}

.accordion-header::after {
 content: '+';
 font-size: 1.5rem;
 color: var(--secondary-color);
 transition: transform 0.3s ease;
}

.accordion-header.active::after {
 content: '-';
 transform: rotate(180deg);
}

.accordion-content {
 padding: 0 1.5rem;
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content p {
 padding-bottom: 1.5rem;
 color: var(--text-dark);
}

/* CTA Section */
.cta-section {
 padding: 5rem 0;
 background-color: var(--secondary-color);
}

/* Footer Styles */
.main-footer {
 background-color: var(--primary-color);
 color: var(--text-light);
 padding: 4rem 0 2rem;
 font-size: 0.95rem;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 2rem;
 margin-bottom: 3rem;
 text-align: left;
}

.footer-col h3 {
 font-size: 1.2rem;
 color: var(--text-light);
 margin-bottom: 1.5rem;
 position: relative;
}

.footer-col h3::after {
 content: '';
 display: block;
 width: 40px;
 height: 2px;
 background-color: var(--accent-color);
 margin-top: 8px;
}

.footer-col p, .footer-col li {
 margin-bottom: 0.8rem;
}

.footer-col a {
 color: var(--text-light);
 transition: color 0.3s ease;
}

.footer-col a:hover {
 color: var(--accent-color);
}

.footer-logo {
 font-family: var(--font-heading);
 font-size: 1.8rem;
 font-weight: 700;
 color: var(--text-light);
 text-transform: uppercase;
 letter-spacing: 1.5px;
 display: block;
 margin-bottom: 1.5rem;
}

.brand-info p {
 max-width: 300px;
}

.social-icons {
 margin-top: 1.5rem;
}

.social-icons a {
 display: inline-block;
 margin-right: 0.8rem;
}

.social-icons img {
 width: 28px;
 height: 28px;
 filter: invert(100%); /* Make placeholder icons white */
 opacity: 0.8;
 transition: opacity 0.3s ease;
}

.social-icons img:hover {
 opacity: 1;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 2rem;
 text-align: center;
 color: rgba(255, 255, 255, 0.7);
}

/* Generic Card Styling (for about.html team, services.html cards etc) */
.card {
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 padding: 1.5rem;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 20px var(--shadow-hover);
}

/* Form Styles */
.contact-form {
 max-width: 700px;
 margin: 2rem auto;
 background-color: var(--background-light);
 padding: 2.5rem;
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 text-align: left;
}

.form-group {
 margin-bottom: 1.5rem;
}

.form-group label {
 display: block;
 margin-bottom: 0.5rem;
 font-weight: 500;
 color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
 width: 100%;
 padding: 0.8rem 1rem;
 border: 1px solid var(--border-color);
 border-radius: 5px;
 font-family: var(--font-body);
 font-size: 1rem;
 color: var(--text-dark);
 background-color: #fcfcfc;
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--secondary-color);
 outline: none;
 box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.2); /* Tech Cyan with transparency */
}

.form-group textarea {
 min-height: 120px;
 resize: vertical;
}

.form-group button {
 width: auto;
 padding: 0.9rem 2.5rem;
 font-size: 1.1rem;
}

/* Small utility classes */
.centered-text {
 text-align: center;
}

/* Media Queries (Mobile First) */
@media (max-width: 1024px) {
 .navbar .nav-links {
 margin-left: 0;
 }
 .hero-title {
 font-size: 3rem;
 }
 .hero-subtitle {
 font-size: 1.3rem;
 }
 .section-title {
 font-size: 2rem;
 }
 .section-subtitle {
 font-size: 1.1rem;
 }
 .philosophy-quote .section-title-alt {
 font-size: 2.5rem;
 }
}

@media (max-width: 768px) {
 .navbar .nav-links {
 display: none;
 flex-direction: column;
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 height: 100vh;
 background-color: var(--primary-color);
 justify-content: center;
 align-items: center;
 z-index: 999;
 transform: translateX(100%);
 transition: transform 0.5s ease-in-out;
 }

 .navbar .nav-links.active {
 transform: translateX(0%);
 display: flex; /* Override display:none when active */
 }

 .navbar .nav-links li {
 margin: 1.5rem 0;
 opacity: 0; /* For staggered animation */
 animation: fadeInRight 0.5s ease-out forwards;
 }

 .navbar .nav-links li:nth-child(1) { animation-delay: 0.1s; }
 .navbar .nav-links li:nth-child(2) { animation-delay: 0.2s; }
 .navbar .nav-links li:nth-child(3) { animation-delay: 0.3s; }
 .navbar .nav-links li:nth-child(4) { animation-delay: 0.4s; }
 .navbar .nav-links li:nth-child(5) { animation-delay: 0.5s; }

 .navbar .nav-links a {
 font-size: 1.8rem;
 color: var(--text-light);
 opacity: 0;
 transform: translateX(20px);
 transition: opacity 0.5s ease-out, transform 0.5s ease-out;
 width: 100%;
 text-align: center;
 padding: 1rem 0;
 }

 .navbar .nav-links a::after {
 background-color: var(--accent-color);
 height: 3px;
 bottom: -5px;
 }

 .navbar .nav-toggle {
 display: flex;
 z-index: 1001; /* Above mobile menu */
 }

 .navbar .nav-toggle.active span:nth-child(1) {
 transform: translateY(9px) rotate(45deg);
 }

 .navbar .nav-toggle.active span:nth-child(2) {
 opacity: 0;
 }

 .navbar .nav-toggle.active span:nth-child(3) {
 transform: translateY(-9px) rotate(-45deg);
 }

 .main-header.scrolled .navbar .nav-toggle.active span {
 background-color: var(--text-light); /* Maintain color on scrolled header */
 }

 .hero-title {
 font-size: 2.5rem;
 }
 .hero-subtitle {
 font-size: 1.1rem;
 }
 .hero-buttons {
 display: flex;
 flex-direction: column;
 gap: 1rem;
 }
 .hero-buttons .btn {
 margin: 0;
 }

 .section {
 padding: 4rem 0;
 }
 .section-title {
 font-size: 1.8rem;
 }
 .section-subtitle {
 font-size: 1rem;
 }
 .philosophy-quote .section-title-alt {
 font-size: 2rem;
 }

 .about-content-wrapper {
 flex-direction: column;
 gap: 2rem;
 }
 .about-text .section-title {
 text-align: center;
 }
 .about-text p {
 text-align: center;
 }
 .about-text .btn {
 margin: 0 auto;
 }

 .testimonial-card {
 padding: 2rem 1.5rem;
 }

 .footer-grid {
 grid-template-columns: 1fr;
 text-align: center;
 }

 .footer-col h3::after {
 margin: 8px auto 0;
 }

 .brand-info p {
 max-width: none;
 }

 .social-icons {
 margin-top: 1rem;
 display: flex;
 justify-content: center;
 }
}

@media (max-width: 480px) {
 .container {
 padding: 1rem;
 }
 .navbar .logo {
 font-size: 1.5rem;
 }
 .hero-title {
 font-size: 2rem;
 }
 .hero-subtitle {
 font-size: 0.9rem;
 }
 .section-title {
 font-size: 1.6rem;
 }
 .philosophy-quote .section-title-alt {
 font-size: 1.6rem;
 }
 h3 {
 font-size: 1.3rem;
 }
 .btn {
 padding: 0.7rem 1.5rem;
 font-size: 0.9rem;
 }
 .testimonial-text {
 font-size: 1rem;
 }
 .accordion-header {
 font-size: 1rem;
 }
}

/* Animations */
@keyframes fadeInDown {
 from {
 opacity: 0;
 transform: translateY(-20px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

@keyframes fadeInUp {
 from {
 opacity: 0;
 transform: translateY(20px);
 }
 to {
 opacity: 1;
 transform: translateY(0);
 }
}

@keyframes fadeInRight {
 from {
 opacity: 0;
 transform: translateX(20px);
 }
 to {
 opacity: 1;
 transform: translateX(0);
 }
}

/* Specific for gallery */
.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 15px;
 padding: 20px 0;
}

.gallery-item {
 cursor: pointer;
 overflow: hidden;
 border-radius: 8px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.1);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
 transform: translateY(-5px);
 box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.gallery-item img {
 width: 100%;
 height: 200px;
 object-fit: cover;
 transition: transform 0.4s ease;
}

.gallery-item:hover img {
 transform: scale(1.05);
}

/* Lightbox styles */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed;
 z-index: 2000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 0, 0, 0.8);
 justify-content: center;
 align-items: center;
 animation: fadeIn 0.3s;
}

.lightbox-content {
 max-width: 90%;
 max-height: 90%;
 display: flex;
 justify-content: center;
 align-items: center;
 position: relative;
}

.lightbox-content img {
 max-width: 100%;
 max-height: 100%;
 object-fit: contain;
 border-radius: 8px;
 box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
 animation: zoomIn 0.3s;
}

.lightbox-close {
 position: absolute;
 top: 20px;
 right: 30px;
 color: #fff;
 font-size: 40px;
 font-weight: bold;
 cursor: pointer;
 transition: 0.3s;
}

.lightbox-close:hover,
.lightbox-close:focus {
 color: #bbb;
 text-decoration: none;
 cursor: pointer;
}

@keyframes fadeIn {
 from { opacity: 0; }
 to { opacity: 1; }
}

@keyframes zoomIn {
 from { transform: scale(0.8); opacity: 0; }
 to { transform: scale(1); opacity: 1; }
}

/* Blog Post Detail Page */
.blog-post-header {
 background-color: var(--background-dark);
 padding: 4rem 0 2rem;
 margin-top: 80px; /* Adjust for fixed header */
 text-align: center;
}

.blog-post-header h1 {
 font-size: 2.8rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.post-meta {
 font-size: 0.95rem;
 color: var(--text-dark);
 margin-bottom: 1.5rem;
}

.post-meta span {
 margin: 0 5px;
}

.post-meta img {
 display: inline-block;
 width: 30px;
 height: 30px;
 border-radius: 50%;
 vertical-align: middle;
 margin-right: 5px;
}

.blog-post-body {
 padding: 3rem 0;
 text-align: left;
 max-width: 800px;
 margin: 0 auto;
}

.blog-post-body h2, .blog-post-body h3 {
 margin-top: 2rem;
 margin-bottom: 1rem;
 color: var(--primary-color);
}

.blog-post-body img {
 margin: 2rem auto;
 border-radius: 8px;
 box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.blog-post-body p {
 margin-bottom: 1.5em;
 font-size: 1.05rem;
 line-height: 1.7;
}

.blog-post-body ul {
 list-style: disc;
 margin-left: 20px;
 margin-bottom: 1.5em;
}

.blog-post-body ol {
 list-style: decimal;
 margin-left: 20px;
 margin-bottom: 1.5em;
}

.blog-post-body li {
 margin-bottom: 0.5em;
 font-size: 1.05rem;
 line-height: 1.6;
}

.author-info {
 display: flex;
 align-items: center;
 margin-top: 3rem;
 padding: 1.5rem;
 background-color: var(--background-dark);
 border-radius: 8px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.author-info img {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 margin-right: 1.5rem;
 flex-shrink: 0;
}

.author-details h4 {
 margin-bottom: 0.5rem;
 color: var(--secondary-color);
}

.author-details p {
 font-size: 0.95rem;
 margin-bottom: 0;
}

.related-posts {
 margin-top: 4rem;
 padding-top: 2rem;
 border-top: 1px solid var(--border-color);
 text-align: center;
}

.related-posts h2 {
 margin-bottom: 2rem;
 color: var(--primary-color);
}

.related-posts .blog-grid {
 margin-top: 0;
}

/* Contact page specifics */
.contact-info-section {
 padding: 3rem 0;
 text-align: center;
}

.contact-details {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 2rem;
 margin-top: 2rem;
}

.contact-item {
 min-width: 280px;
 flex: 1;
 max-width: 350px;
 padding: 2rem;
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 text-align: center;
}

.contact-item h3 {
 font-size: 1.4rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.contact-item p {
 font-size: 1rem;
 color: var(--text-dark);
 margin-bottom: 0.5rem;
}

.contact-item a {
 color: var(--secondary-color);
}

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

.map-section {
 padding-bottom: 4rem;
}
.map-section .container {
 padding-top: 2rem;
}
.map-section iframe {
 width: 100%;
 height: 450px;
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
}

/* Thank you page */
.thank-you-section {
 text-align: center;
 padding: 8rem 0;
 min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.thank-you-section h1 {
 font-size: 3rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.thank-you-section p {
 font-size: 1.2rem;
 color: var(--text-dark);
 max-width: 600px;
 margin-bottom: 2rem;
}

/* 404 page */
.error-section {
 text-align: center;
 padding: 8rem 0;
 min-height: calc(100vh - 200px);
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.error-section h1 {
 font-size: 6rem;
 color: var(--secondary-color);
 margin-bottom: 1rem;
 letter-spacing: 5px;
 position: relative;
 animation: shake 0.5s infinite;
}

@keyframes shake {
 0%, 100% { transform: translateX(0); }
 25% { transform: translateX(-5px); }
 50% { transform: translateX(5px); }
 75% { transform: translateX(-5px); }
}

.error-section h2 {
 font-size: 2.5rem;
 color: var(--primary-color);
 margin-bottom: 1.5rem;
}

.error-section p {
 font-size: 1.1rem;
 color: var(--text-dark);
 margin-bottom: 2rem;
}

/* Legal pages */
.legal-content {
 max-width: 800px;
 margin: 0 auto;
 padding: 3rem 1.5rem 5rem;
 text-align: left;
}

.legal-content h1 {
 font-size: 2.5rem;
 margin-bottom: 1.5rem;
 text-align: center;
 color: var(--primary-color);
}

.legal-content h2 {
 font-size: 1.8rem;
 margin-top: 2.5rem;
 margin-bottom: 1rem;
 color: var(--secondary-color);
}

.legal-content h3 {
 font-size: 1.4rem;
 margin-top: 1.8rem;
 margin-bottom: 0.8rem;
 color: var(--primary-color);
}

.legal-content p {
 margin-bottom: 1em;
 line-height: 1.7;
 font-size: 1.05rem;
}

.legal-content ul, .legal-content ol {
 margin-bottom: 1.5em;
 margin-left: 25px;
}

.legal-content ul {
 list-style-type: disc;
}

.legal-content ol {
 list-style-type: decimal;
}

.legal-content li {
 margin-bottom: 0.5em;
 line-height: 1.6;
}

.legal-content a {
 color: var(--secondary-color);
 text-decoration: underline;
}

.legal-content a:hover {
 color: var(--primary-color);
}
/* Team Member Cards */
.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 2.5rem;
 margin-top: 3rem;
}

.team-member-card {
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px rgba(0,0,0,0.08);
 text-align: center;
 padding: 1.5rem;
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.team-member-card img {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 border: 3px solid var(--secondary-color);
 transition: border-color 0.3s ease;
 filter: grayscale(0.2);
}
.team-member-card:hover img {
 border-color: var(--primary-color);
 filter: grayscale(0);
}

.team-member-card h3 {
 font-size: 1.5rem;
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}

.team-member-card p {
 font-size: 0.95rem;
 color: var(--text-dark);
 margin-bottom: 0.8rem;
}

.team-member-card .title {
 font-weight: 500;
 color: var(--secondary-color);
 margin-bottom: 1.2rem;
}

.team-member-card .social-links a {
 display: inline-block;
 margin: 0 0.5rem;
}

.team-member-card .social-links img {
 width: 24px;
 height: 24px;
 filter: none; /* Reset filter for social icons here */
 opacity: 0.7;
 transition: opacity 0.3s ease;
 border: none;
 margin: 0;
}

.team-member-card .social-links img:hover {
 opacity: 1;
}
/* Services page specific */
.service-details-section {
 padding: 6rem 0 3rem;
 text-align: left;
}

.service-details-section h2 {
 text-align: center;
 margin-bottom: 3rem;
 font-size: 2.5rem;
 color: var(--primary-color);
}

.service-item-detail {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 2.5rem;
 margin-bottom: 5rem;
 padding: 2rem;
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-detail:nth-child(even) {
 flex-direction: row-reverse;
}

.service-item-detail:hover {
 transform: translateY(-8px);
 box-shadow: 0 10px 25px var(--shadow-hover);
}

.service-item-detail .service-image {
 flex: 1;
 min-width: 300px;
 max-width: 50%; /* Allow image to take up to half the width */
}

.service-item-detail .service-image img {
 border-radius: 8px;
 box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-item-detail .service-content {
 flex: 1;
 min-width: 300px;
 padding: 1rem 0;
}

.service-item-detail .service-content h3 {
 font-size: 1.8rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.service-item-detail .service-content p {
 font-size: 1.05rem;
 line-height: 1.7;
 margin-bottom: 1em;
}

.service-item-detail .service-content ul {
 list-style: disc;
 margin-left: 20px;
 margin-bottom: 1.5em;
 color: var(--text-dark);
}

.service-item-detail .service-content li {
 margin-bottom: 0.5em;
}

@media (max-width: 768px) {
 .service-item-detail {
 flex-direction: column !important; /* Force column layout for all on small screens */
 text-align: center;
 }
 .service-item-detail .service-image {
 max-width: 100%;
 margin-bottom: 1.5rem;
 }
 .service-item-detail .service-content {
 padding: 0;
 }
 .service-item-detail .service-content h3 {
 text-align: center;
 }
 .service-item-detail .service-content p,
 .service-item-detail .service-content ul {
 text-align: left; /* Keep text aligned left within the block */
 margin-left: auto;
 margin-right: auto;
 max-width: 90%;
 }
}
.process-section {
 padding: 5rem 0;
 background-color: var(--background-dark);
}

.process-section .section-title {
 margin-bottom: 3rem;
}

.process-steps {
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 3rem;
}

.process-step {
 flex: 1;
 min-width: 280px;
 max-width: 350px;
 background-color: var(--background-light);
 border-radius: 10px;
 padding: 2.5rem;
 box-shadow: 0 4px 15px var(--shadow-light);
 text-align: center;
 position: relative;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 20px var(--shadow-hover);
}

.process-step .step-number {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 60px;
 height: 60px;
 background-color: var(--secondary-color);
 color: var(--text-light);
 border-radius: 50%;
 font-size: 2rem;
 font-weight: 700;
 margin-bottom: 1.5rem;
 box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.process-step h3 {
 font-size: 1.5rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
}

.process-step p {
 font-size: 1rem;
 color: var(--text-dark);
}

/* Arrow between steps for larger screens */
@media (min-width: 769px) {
 .process-step + .process-step::before {
 content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="%230891b2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"/></svg>'); /* Tech Cyan arrow */
 position: absolute;
 left: -1.5rem;
 top: 50%;
 transform: translateY(-50%);
 width: 30px;
 height: 30px;
 }
}

@media (max-width: 768px) {
 .process-steps {
 flex-direction: column;
 align-items: center;
 }
 .process-step {
 width: 100%;
 max-width: 450px;
 }
}
/* Blog List Page */
.blog-list-section {
 padding: 6rem 0 3rem;
 margin-top: 80px; /* Adjust for fixed header */
}

.blog-list-section .section-title {
 margin-bottom: 3rem;
}

.blog-post-item {
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 gap: 1.5rem;
 margin-bottom: 3rem;
 padding: 2rem;
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 5px 20px rgba(0,0,0,0.08);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover {
 transform: translateY(-8px);
 box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-post-item img {
 width: 100%;
 max-width: 400px; /* Limit image width */
 height: 250px;
 object-fit: cover;
 border-radius: 8px;
 box-shadow: 0 2px 8px rgba(0,0,0,0.1);
 margin-bottom: 0.5rem;
}

.blog-post-item .post-content {
 flex: 1;
 text-align: center;
}

.blog-post-item h2 {
 font-size: 1.8rem;
 color: var(--primary-color);
 margin-bottom: 0.8rem;
}

.blog-post-item .post-meta {
 font-size: 0.9rem;
 color: var(--text-dark);
 margin-bottom: 1rem;
}

.blog-post-item p {
 font-size: 1rem;
 line-height: 1.6;
 margin-bottom: 1.5rem;
 max-width: 600px;
 margin-left: auto;
 margin-right: auto;
}

@media (min-width: 768px) {
 .blog-post-item {
 flex-direction: row;
 text-align: left;
 }

 .blog-post-item:nth-child(even) {
 flex-direction: row-reverse;
 }

 .blog-post-item img {
 max-width: 350px;
 margin-bottom: 0;
 }

 .blog-post-item .post-content {
 padding-left: 2rem;
 padding-right: 2rem;
 text-align: left;
 }
 .blog-post-item h2 {
 text-align: left;
 }
 .blog-post-item p {
 margin-left: 0;
 margin-right: 0;
 }
 .blog-post-item .btn-primary {
 margin-left: 0;
 margin-right: auto;
 }
}
/* Gallery page specific */
.gallery-section {
 padding: 6rem 0 3rem;
 margin-top: 80px; /* Adjust for fixed header */
}

.gallery-section .section-title {
 margin-bottom: 3rem;
}
/* Resource Page (resurse.html for articles, studies, exercises, podcasts, books)
 This will reuse blog-grid for articles and generic card for other resources. */

.resource-section {
 padding: 6rem 0 3rem;
 margin-top: 80px; /* Adjust for fixed header */
}

.resource-section .section-title {
 margin-bottom: 3rem;
}

.resource-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

.resource-card {
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 padding: 2rem;
 text-align: left;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 20px var(--shadow-hover);
}

.resource-card h3 {
 font-size: 1.5rem;
 color: var(--primary-color);
 margin-bottom: 0.8rem;
}

.resource-card p {
 font-size: 1rem;
 color: var(--text-dark);
 margin-bottom: 1.5rem;
}

.resource-card .btn-link {
 margin-top: 0;
}

/* Specific for podcast/books with icons if desired */
.resource-card .icon {
 font-size: 3rem;
 color: var(--secondary-color);
 margin-bottom: 1rem;
 display: block;
 text-align: center;
}
.resource-card img {
 height: 180px;
 object-fit: contain;
 border-radius: 5px;
 margin: 0 auto 1.5rem;
 display: block;
 box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for image resources */
}
/* Hero sections for inner pages */
.inner-hero {
 position: relative;
 height: 40vh; /* Shorter height for inner page heroes */
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: var(--text-light);
 overflow: hidden;
 margin-top: 80px; /* Account for fixed header */
}

.inner-hero::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: linear-gradient(rgba(13, 79, 139, 0.7), rgba(8, 145, 178, 0.7)); /* Gradient overlay */
 z-index: 1;
}

.inner-hero .hero-image {
 position: absolute;
 width: 100%;
 height: 100%;
 object-fit: cover;
 z-index: 0;
 filter: brightness(0.6); /* Darken image further */
 transform: scale(1.05); /* Initial zoom */
 animation: none; /* No Ken Burns on inner pages */
}

.inner-hero .hero-content {
 z-index: 2;
 padding: 1rem;
}

.inner-hero .hero-title {
 font-size: 3rem;
 margin-bottom: 0;
 color: var(--text-light);
 letter-spacing: 1.5px;
 text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
 .inner-hero {
 height: 30vh;
 margin-top: 60px; /* Adjust for smaller header */
 }
 .inner-hero .hero-title {
 font-size: 2rem;
 }
}

@media (max-width: 480px) {
 .inner-hero {
 height: 25vh;
 }
 .inner-hero .hero-title {
 font-size: 1.8rem;
 }
}
.mission-values-section {
 padding: 5rem 0;
}

.mission-values-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 2.5rem;
 margin-top: 3rem;
}

.mission-card, .value-card {
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 padding: 2.5rem;
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover, .value-card:hover {
 transform: translateY(-8px);
 box-shadow: 0 8px 20px var(--shadow-hover);
}

.mission-card h3, .value-card h3 {
 font-size: 1.8rem;
 color: var(--primary-color);
 margin-bottom: 1rem;
 position: relative;
 padding-bottom: 0.5rem;
}

.mission-card h3::after, .value-card h3::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 50px;
 height: 2px;
 background-color: var(--secondary-color);
}

.mission-card p, .value-card p {
 font-size: 1.05rem;
 color: var(--text-dark);
 line-height: 1.7;
}

.story-section .about-content-wrapper {
 margin-top: 3rem;
}

.achievements-section {
 background-color: var(--background-dark);
 padding: 5rem 0;
}

.achievements-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
 gap: 2rem;
 margin-top: 3rem;
}

.achievement-item {
 background-color: var(--background-light);
 border-radius: 10px;
 box-shadow: 0 4px 15px var(--shadow-light);
 padding: 2rem;
 text-align: center;
}

.achievement-item .icon {
 font-size: 3rem;
 color: var(--secondary-color);
 margin-bottom: 1rem;
}

.achievement-item h3 {
 font-size: 2rem;
 color: var(--primary-color);
 margin-bottom: 0.5rem;
}

.achievement-item p {
 font-size: 1.1rem;
 color: var(--text-dark);
 margin-bottom: 0;
}
/* For blog pages, where blog-post-item is a link */
.blog-post-item > a {
 display: contents; /* Makes children take click, not the container itself */
 color: inherit; /* Inherit color from parent */
 text-decoration: none; /* Remove underline */
}
.blog-post-item h2 a,
.blog-post-item p a {
 text-decoration: none;
 color: inherit;
}
.blog-post-item h2 a:hover,
.blog-post-item p a:hover {
 color: var(--primary-color);
 text-decoration: underline;
}
/* Ensure the button within a card is the primary interaction point */
.blog-post-item button {
 z-index: 10; /* Ensure button clickability */
 position: relative;
}