:root {
 --primary-color: #0056b3; /* Dark blue for primary actions */
 --secondary-color: #007bff; /* Brighter blue for highlights */
 --accent-color: #28a745; /* Green for success/CTA */
 --text-dark: #333333;
 --text-light: #666666;
 --bg-light: #f8f9fa;
 --bg-white: #ffffff;
 --border-color: #e0e0e0;
 --shadow-light: rgba(0, 0, 0, 0.08);
 --header-height: 70px;
 --padding-section: 80px;
}

/* Reset and base styles */
*, *::before, *::after {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: 'Open Sans', sans-serif;
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700;
 color: var(--primary-color);
 margin-bottom: 0.8em;
 line-height: 1.2;
}

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

p {
 margin-bottom: 1em;
 color: var(--text-light);
}

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

a:hover {
 color: var(--primary-color);
 transform: translateY(-2px);
}

ul {
 list-style: none;
}

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

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

.btn {
 display: inline-block;
 padding: 12px 25px;
 border-radius: 8px;
 font-family: 'Montserrat', sans-serif;
 font-weight: 600;
 font-size: 1em;
 text-align: center;
 cursor: pointer;
 transition: all 0.3s ease;
 border: none;
 text-shadow: none;
}

.btn-primary {
 background-color: var(--primary-color);
 color: var(--bg-white);
}

.btn-primary:hover {
 background-color: var(--secondary-color);
 transform: translateY(-3px) scale(1.02);
 box-shadow: 0 8px 16px rgba(0, 86, 179, 0.3);
}

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

.btn-secondary:hover {
 background-color: var(--primary-color);
 color: var(--bg-white);
 transform: translateY(-3px) scale(1.02);
 box-shadow: 0 8px 16px rgba(0, 86, 179, 0.2);
}

.btn-tertiary {
 background-color: var(--accent-color);
 color: var(--bg-white);
}

.btn-tertiary:hover {
 background-color: #218838;
 transform: translateY(-3px) scale(1.02);
 box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.btn-large {
 padding: 15px 35px;
 font-size: 1.1em;
}

.section-padding {
 padding: var(--padding-section) 0;
}

.section-description {
 font-size: 1.15em;
 max-width: 800px;
 margin: 0 auto 3em;
 text-align: center;
 color: var(--text-dark);
}

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

/* Header & Navbar */
.main-header {
 background-color: var(--bg-white);
 box-shadow: 0 2px 10px var(--shadow-light);
 position: sticky;
 top: 0;
 z-index: 1000;
 padding: 15px 0;
 transition: all 0.3s ease;
}

.main-header.scrolled {
 padding: 10px 0;
 background-color: rgba(255, 255, 255, 0.95);
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
 display: flex;
 justify-content: space-between;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 15px;
}

.logo {
 font-family: 'Montserrat', sans-serif;
 font-weight: 700;
 font-size: 1.8em;
 color: var(--primary-color);
 text-transform: uppercase;
 letter-spacing: -1px;
 transition: transform 0.3s ease;
}

.logo:hover {
 transform: scale(1.05) rotate(-2deg);
 color: var(--secondary-color);
 text-decoration: none;
}

.nav-links {
 display: flex;
 gap: 30px;
}

.nav-links li a {
 font-family: 'Montserrat', sans-serif;
 font-weight: 500;
 color: var(--text-dark);
 position: relative;
 padding: 5px 0;
 transition: color 0.3s ease;
}

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

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

.nav-links li a:hover,
.nav-links li a.active {
 color: var(--secondary-color);
}

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

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

.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(5px, -5px);
}

/* Hero Section */
.hero-section {
 position: relative;
 height: 70vh;
 display: flex;
 align-items: center;
 text-align: left;
 overflow: hidden;
 color: var(--text-dark);
 padding: var(--padding-section) 0;
 background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.hero-section .container {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: space-between;
 gap: 30px;
}

.hero-content {
 flex: 1;
 min-width: 300px;
 max-width: 600px;
}

.hero-content h1 {
 font-size: 3.5em;
 margin-bottom: 20px;
 color: var(--primary-color);
}

.hero-content p {
 font-size: 1.25em;
 margin-bottom: 30px;
 color: var(--text-light);
 line-height: 1.5;
}

.hero-actions {
 display: flex;
 gap: 20px;
 flex-wrap: wrap;
}

.hero-image {
 flex: 1;
 min-width: 300px;
 max-width: 500px;
 text-align: center;
 position: relative;
 animation: float 4s ease-in-out infinite;
}

.hero-image img {
 border-radius: 15px;
 box-shadow: 0 15px 30px var(--shadow-light);
 filter: brightness(0.95);
 transform: perspective(1000px) rotateY(-5deg) scale(0.98);
 transition: all 0.5s ease-out;
}

.hero-image img:hover {
 transform: perspective(1000px) rotateY(0deg) scale(1.0);
 box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

@keyframes float {
 0% { transform: translateY(0px) translateX(0) scale(0.98); }
 50% { transform: translateY(-10px) translateX(5px) scale(1.0); }
 100% { transform: translateY(0px) translateX(0) scale(0.98); }
}

/* Explore Solutions Section */
.explore-solutions-section {
 text-align: center;
 background-color: var(--bg-white);
}

.solution-cards {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 30px;
 margin-top: 50px;
}

.solution-card {
 background-color: var(--bg-white);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 padding: 30px;
 text-align: center;
 transition: all 0.4s ease;
 position: relative;
 overflow: hidden;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
}

.solution-card::before {
 content: '';
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 4px;
 background-color: var(--secondary-color);
 transform: scaleX(0);
 transform-origin: left;
 transition: transform 0.3s ease-out;
}

.solution-card:hover::before {
 transform: scaleX(1);
}

.solution-card:hover {
 transform: translateY(-10px) scale(1.02);
 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
 text-decoration: none;
}

.solution-card .card-icon {
 width: 60px;
 height: 60px;
 background-color: var(--primary-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto 20px;
 transition: transform 0.3s ease;
 animation: rotate-in 0.5s ease-out;
}

.solution-card:hover .card-icon {
 transform: rotateY(180deg);
}

@keyframes rotate-in {
 0% { transform: rotateY(90deg); opacity: 0; }
 100% { transform: rotateY(0deg); opacity: 1; }
}

.solution-card h3 {
 font-size: 1.4em;
 color: var(--primary-color);
 margin-bottom: 15px;
}

.solution-card p {
 font-size: 1em;
 color: var(--text-light);
 flex-grow: 1;
}

.solution-card span {
 display: block;
 margin-top: 20px;
 color: var(--secondary-color);
 font-weight: 600;
 transition: transform 0.3s ease;
}

.solution-card:hover span {
 transform: translateX(5px);
}

/* About Brief Section */
.about-brief-section .container {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 50px;
}

.about-brief-section .content-left,
.about-brief-section .content-right {
 flex: 1;
 min-width: 300px;
}

.about-brief-section .about-image {
 border-radius: 10px;
 box-shadow: 0 10px 25px var(--shadow-light);
 transform: perspective(1000px) rotateX(5deg);
 transition: transform 0.5s ease-out;
}

.about-brief-section .about-image:hover {
 transform: perspective(1000px) rotateX(0deg) scale(1.02);
}

.about-brief-section h2 {
 font-size: 2.5em;
 margin-bottom: 20px;
 color: var(--primary-color);
}

.about-brief-section p {
 margin-bottom: 1.2em;
 line-height: 1.7;
 font-size: 1.05em;
}

/* How We Work Section (Timeline) */
.how-we-work-section {
 text-align: center;
}

.timeline-container {
 display: flex;
 justify-content: center;
 gap: 40px;
 margin-top: 50px;
 position: relative;
 padding: 0 20px;
}

.timeline-container::before {
 content: '';
 position: absolute;
 top: 50px;
 left: 5%;
 right: 5%;
 height: 3px;
 background-color: var(--border-color);
 z-index: 1;
 display: none; /* Hidden on small screens, shown for larger */
}

.timeline-item {
 flex: 1;
 max-width: 280px;
 background-color: var(--bg-white);
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 15px var(--shadow-light);
 position: relative;
 z-index: 2;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 will-change: transform, box-shadow;
 border-top: 4px solid transparent;
}

.timeline-item:hover {
 transform: translateY(-15px);
 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
 border-top-color: var(--secondary-color);
}

.timeline-item .timeline-icon {
 width: 60px;
 height: 60px;
 background-color: var(--secondary-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto 20px;
 border: 3px solid var(--bg-white);
 box-shadow: 0 0 0 5px var(--secondary-color);
 transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon {
 transform: scale(1.1) rotate(5deg);
}

.timeline-item .timeline-icon img {
 filter: brightness(0) invert(1); /* White icon */
}

.timeline-item h3 {
 font-size: 1.3em;
 color: var(--primary-color);
 margin-bottom: 10px;
}

/* Testimonials Section */
.testimonials-section {
 text-align: center;
}

.testimonials-carousel {
 display: flex;
 overflow-x: hidden;
 scroll-snap-type: x mandatory;
 -webkit-overflow-scrolling: touch;
 margin-top: 50px;
 gap: 30px;
 padding-bottom: 20px; /* Space for dots */
}

.testimonial-card {
 flex: 0 0 100%; /* Default to full width for small screens */
 width: 100%;
 scroll-snap-align: center;
 background-color: var(--bg-white);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 padding: 40px;
 display: flex;
 flex-direction: column;
 align-items: center;
 text-align: center;
 transition: all 0.3s ease;
 transform: scale(0.9);
 opacity: 0.7;
}

.testimonial-card.active {
 transform: scale(1);
 opacity: 1;
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.client-avatar {
 width: 90px;
 height: 90px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 25px;
 border: 4px solid var(--secondary-color);
 box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.2);
}

.testimonial-text {
 font-size: 1.15em;
 font-style: italic;
 margin-bottom: 20px;
 color: var(--text-dark);
}

.client-name {
 font-weight: 700;
 color: var(--primary-color);
 font-size: 1.1em;
}

.client-name span {
 font-weight: 500;
 color: var(--text-light);
 display: block;
 font-size: 0.9em;
 margin-top: 5px;
}

.carousel-dots {
 display: flex;
 justify-content: center;
 margin-top: 30px;
 gap: 10px;
}

.dot {
 width: 12px;
 height: 12px;
 border-radius: 50%;
 background-color: var(--border-color);
 cursor: pointer;
 transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
 background-color: var(--secondary-color);
 transform: scale(1.2);
}

.view-all-testimonials {
 margin-top: 40px;
}

/* CTA Section */
.cta-section {
 background: linear-gradient(45deg, var(--primary-color) 0%, var(--secondary-color) 100%);
 color: var(--bg-white);
 text-align: center;
 padding: var(--padding-section) 0;
 position: relative;
 overflow: hidden;
}

.cta-section::before {
 content: '';
 position: absolute;
 top: -50px;
 left: -50px;
 width: 200px;
 height: 200px;
 background-color: rgba(255, 255, 255, 0.1);
 border-radius: 50%;
 animation: pulse 8s infinite alternate-reverse;
}

.cta-section::after {
 content: '';
 position: absolute;
 bottom: -70px;
 right: -70px;
 width: 250px;
 height: 250px;
 background-color: rgba(255, 255, 255, 0.15);
 border-radius: 50%;
 animation: pulse 10s infinite alternate;
 z-index: 0;
}

@keyframes pulse {
 0% { transform: scale(0.9) translate(0, 0); opacity: 0.15; }
 100% { transform: scale(1.1) translate(10px, 10px); opacity: 0.25; }
}

.cta-content {
 max-width: 800px;
 margin: 0 auto;
 position: relative;
 z-index: 1;
}

.cta-content h2 {
 color: var(--bg-white);
 font-size: 2.8em;
 margin-bottom: 25px;
}

.cta-content p {
 color: rgba(255, 255, 255, 0.9);
 font-size: 1.25em;
 margin-bottom: 40px;
}

.cta-content .btn {
 background-color: var(--accent-color);
 color: var(--bg-white);
}

.cta-content .btn:hover {
 background-color: #218838;
}

/* Page specific styles */
/* About Page */
.about-hero {
 background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 123, 255, 0.8)), url('https://picsum.photos/seed/about-hero/1920/600') no-repeat center center/cover;
 color: white;
 text-align: center;
 padding: 100px 0;
}

.about-hero h1 {
 color: white;
 font-size: 3.5em;
 margin-bottom: 15px;
}

.about-hero p {
 font-size: 1.2em;
 max-width: 800px;
 margin: 0 auto;
 color: rgba(255, 255, 255, 0.9);
}

.mission-vision-section .container {
 display: flex;
 flex-wrap: wrap;
 gap: 40px;
 justify-content: center;
}

.mission-card, .vision-card {
 flex: 1;
 min-width: 300px;
 max-width: 500px;
 background-color: var(--bg-white);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 padding: 35px;
 text-align: center;
 transition: transform 0.3s ease-out;
}

.mission-card:hover, .vision-card:hover {
 transform: translateY(-10px);
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-card h3, .vision-card h3 {
 font-size: 1.8em;
 color: var(--primary-color);
 margin-bottom: 15px;
}

.mission-card p, .vision-card p {
 font-size: 1.05em;
 line-height: 1.7;
}

.team-section {
 text-align: center;
}

.team-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 gap: 30px;
 margin-top: 50px;
}

.team-member-card {
 background-color: var(--bg-white);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 padding: 25px;
 position: relative;
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
 transform: translateY(-10px) scale(1.02);
 box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-member-card img {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 border: 4px solid var(--secondary-color);
 transition: transform 0.3s ease;
}

.team-member-card:hover img {
 transform: scale(1.05) rotate(5deg);
}

.team-member-card h4 {
 font-size: 1.3em;
 color: var(--primary-color);
 margin-bottom: 5px;
}

.team-member-card p {
 font-size: 0.95em;
 color: var(--text-light);
 margin-bottom: 10px;
}

/* Services Page */
.services-intro {
 background-color: var(--bg-light);
 text-align: center;
 padding: 80px 0;
}

.services-intro h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 20px;
}

.services-intro p {
 font-size: 1.2em;
 max-width: 900px;
 margin: 0 auto 40px;
 color: var(--text-light);
}

.services-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 40px;
 margin-top: 50px;
}

.service-card {
 background-color: var(--bg-white);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 padding: 35px;
 text-align: center;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
 border-bottom: 5px solid transparent;
}

.service-card:hover {
 transform: translateY(-10px);
 box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
 border-bottom-color: var(--primary-color);
}

.service-card .icon {
 width: 70px;
 height: 70px;
 background-color: var(--secondary-color);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto 25px;
 transition: background-color 0.3s ease;
}

.service-card:hover .icon {
 background-color: var(--primary-color);
}

.service-card .icon img {
 filter: brightness(0) invert(1);
 width: 60%;
 height: 60%;
}

.service-card h3 {
 font-size: 1.6em;
 color: var(--primary-color);
 margin-bottom: 15px;
}

.service-card p {
 font-size: 1em;
 color: var(--text-light);
}

/* Contact Page */
.contact-hero {
 background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.7)), url('https://picsum.photos/seed/contact-hero/1920/600') no-repeat center center/cover;
 text-align: center;
 padding: 100px 0;
 color: white;
}

.contact-hero h1 {
 color: white;
 font-size: 3.5em;
 margin-bottom: 15px;
}

.contact-content {
 display: flex;
 flex-wrap: wrap;
 gap: 50px;
 margin-top: 50px;
}

.contact-form-section {
 flex: 2;
 min-width: 300px;
}

.contact-info-section {
 flex: 1;
 min-width: 250px;
 background-color: var(--bg-light);
 padding: 30px;
 border-radius: 10px;
 box-shadow: 0 5px 15px var(--shadow-light);
}

.contact-info-section h3 {
 color: var(--primary-color);
 margin-bottom: 20px;
 font-size: 1.8em;
}

.contact-info-section p {
 display: flex;
 align-items: center;
 margin-bottom: 15px;
 color: var(--text-dark);
}

.contact-info-section p strong {
 min-width: 80px;
 color: var(--primary-color);
 font-weight: 600;
}

.contact-info-section p a {
 color: var(--text-dark);
 transition: color 0.3s ease;
}

.contact-info-section p a:hover {
 color: var(--secondary-color);
}

.contact-info-section .icon {
 width: 24px;
 height: 24px;
 margin-right: 15px;
 color: var(--secondary-color);
}

/* Form Styles */
.contact-form {
 background-color: var(--bg-white);
 padding: 40px;
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
}

.contact-form h3 {
 margin-bottom: 30px;
 text-align: center;
 color: var(--primary-color);
}

.form-group {
 margin-bottom: 20px;
}

.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 600;
 color: var(--text-dark);
}

.form-group input,
.form-group textarea {
 width: 100%;
 padding: 12px 15px;
 border: 1px solid var(--border-color);
 border-radius: 8px;
 font-family: 'Open Sans', sans-serif;
 font-size: 1em;
 color: var(--text-dark);
 transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
 border-color: var(--secondary-color);
 box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
 outline: none;
}

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

.form-group.error input,
.form-group.error textarea {
 border-color: #dc3545;
}

.form-group .error-message {
 color: #dc3545;
 font-size: 0.85em;
 margin-top: 5px;
 display: none;
}

.form-group.error .error-message {
 display: block;
}

.contact-form button[type="submit"] {
 width: 100%;
 padding: 15px 20px;
 font-size: 1.1em;
 font-weight: 700;
 border-radius: 8px;
 border: none;
 background-color: var(--accent-color);
 color: white;
 cursor: pointer;
 transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button[type="submit"]:hover {
 background-color: #218838;
 transform: translateY(-2px);
}

.map-section {
 margin-top: var(--padding-section);
 background-color: var(--bg-light);
 padding: 50px 0;
 text-align: center;
}

.map-section h2 {
 margin-bottom: 30px;
}

.map-container {
 height: 450px;
 border-radius: 10px;
 overflow: hidden;
 box-shadow: 0 5px 20px var(--shadow-light);
}

.map-container iframe {
 width: 100%;
 height: 100%;
 border: 0;
}

/* Blog Page */
.blog-hero {
 background: linear-gradient(rgba(0, 86, 179, 0.8), rgba(0, 123, 255, 0.8)), url('https://picsum.photos/seed/blog-hero/1920/600') no-repeat center center/cover;
 color: white;
 text-align: center;
 padding: 100px 0;
}

.blog-hero h1 {
 color: white;
 font-size: 3.5em;
 margin-bottom: 15px;
}

.blog-hero p {
 font-size: 1.2em;
 max-width: 800px;
 margin: 0 auto;
 color: rgba(255, 255, 255, 0.9);
}

.blog-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 40px;
 margin-top: 50px;
}

.blog-post-card {
 background-color: var(--bg-white);
 border-radius: 10px;
 box-shadow: 0 5px 20px var(--shadow-light);
 overflow: hidden;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post-card img {
 width: 100%;
 height: 220px;
 object-fit: cover;
 border-bottom: 1px solid var(--border-color);
}

.blog-post-card-content {
 padding: 25px;
}

.blog-post-card-content h3 {
 font-size: 1.5em;
 color: var(--primary-color);
 margin-bottom: 10px;
}

.blog-post-card-content p {
 font-size: 0.95em;
 color: var(--text-light);
 margin-bottom: 15px;
}

.blog-post-card-content .read-more {
 display: inline-block;
 color: var(--secondary-color);
 font-weight: 600;
 transition: color 0.3s ease, transform 0.3s ease;
}

.blog-post-card-content .read-more:hover {
 color: var(--primary-color);
 transform: translateX(5px);
}

/* Blog Post Page */
.post-header {
 text-align: center;
 padding: 80px 0;
 background-color: var(--bg-light);
}

.post-header h1 {
 font-size: 3em;
 margin-bottom: 20px;
 color: var(--primary-color);
}

.post-meta {
 font-size: 0.95em;
 color: var(--text-light);
}

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

.post-content {
 padding: 50px 0;
 max-width: 900px;
 margin: 0 auto;
 font-size: 1.1em;
 line-height: 1.8;
}

.post-content h2 {
 color: var(--primary-color);
 margin-top: 40px;
 margin-bottom: 20px;
 font-size: 2em;
}

.post-content h3 {
 color: var(--primary-color);
 margin-top: 30px;
 margin-bottom: 15px;
 font-size: 1.6em;
}

.post-content p {
 margin-bottom: 1.5em;
}

.post-content ul, .post-content ol {
 margin: 1.5em 0;
 padding-left: 20px;
 color: var(--text-dark);
}

.post-content ul li {
 list-style: disc;
 margin-bottom: 0.5em;
}

.post-content ol li {
 list-style: decimal;
 margin-bottom: 0.5em;
}

.post-content img {
 margin: 30px auto;
 border-radius: 10px;
 box-shadow: 0 8px 20px var(--shadow-light);
 max-height: 500px;
 object-fit: cover;
 width: 100%;
}

.author-box {
 background-color: var(--bg-light);
 border-radius: 10px;
 padding: 30px;
 text-align: center;
 margin-top: 60px;
 display: flex;
 flex-direction: column;
 align-items: center;
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.author-box img {
 width: 100px;
 height: 100px;
 border-radius: 50%;
 object-fit: cover;
 margin-bottom: 15px;
 border: 3px solid var(--secondary-color);
}

.author-box h4 {
 margin-bottom: 5px;
 color: var(--primary-color);
}

.author-box p {
 font-size: 0.95em;
 color: var(--text-light);
 margin-bottom: 0;
}

/* Testimonials Page */
.testimonials-page-intro {
 background-color: var(--bg-light);
 text-align: center;
 padding: 80px 0;
}

.testimonials-page-intro h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 20px;
}

.testimonials-page-intro p {
 font-size: 1.2em;
 max-width: 900px;
 margin: 0 auto 40px;
 color: var(--text-light);
}

.all-testimonials-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
 gap: 40px;
 margin-top: 50px;
}

.all-testimonials-grid .testimonial-card {
 /* reuse styles from home page testimonial card, adjust if needed */
 flex: unset;
 width: auto;
 scroll-snap-align: none;
 transform: none;
 opacity: 1;
 box-shadow: 0 5px 20px var(--shadow-light);
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.all-testimonials-grid .testimonial-card:hover {
 transform: translateY(-10px);
 box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* Gallery Page */
.gallery-intro {
 background-color: var(--bg-light);
 text-align: center;
 padding: 80px 0;
}
.gallery-intro h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 20px;
}
.gallery-intro p {
 font-size: 1.2em;
 max-width: 900px;
 margin: 0 auto 40px;
 color: var(--text-light);
}

.gallery-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
 gap: 20px;
 margin-top: 50px;
}

.gallery-item {
 position: relative;
 overflow: hidden;
 border-radius: 8px;
 box-shadow: 0 4px 15px var(--shadow-light);
 cursor: pointer;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
 transform: translateY(-5px) scale(1.02);
 box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.gallery-item:hover img {
 transform: scale(1.08); /* slight zoom on hover */
}

.gallery-item-overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(0, 86, 179, 0.7);
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
 opacity: 1;
}

.gallery-item-overlay span {
 color: white;
 font-size: 1.5em;
 font-weight: 600;
 transform: translateY(20px);
 opacity: 0;
 transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay span {
 transform: translateY(0);
 opacity: 1;
}

/* Lightbox styles */
.lightbox {
 display: none; /* Hidden by default */
 position: fixed; /* Stay in place */
 z-index: 2000; /* Sit on top */
 left: 0;
 top: 0;
 width: 100%; /* Full width */
 height: 100%; /* Full height */
 overflow: auto; /* Enable scroll if needed */
 background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
 justify-content: center;
 align-items: center;
}

.lightbox-content {
 position: relative;
 margin: auto;
 padding: 20px;
 width: 90%;
 max-width: 900px;
 background-color: var(--bg-white);
 border-radius: 10px;
 animation-name: animatetop;
 animation-duration: 0.4s;
 text-align: center;
}

.lightbox-content img {
 width: 100%;
 height: auto;
 max-height: 80vh;
 object-fit: contain;
 border-radius: 8px;
}

.lightbox-caption {
 margin-top: 15px;
 color: var(--text-dark);
 font-size: 1.1em;
}

.close-lightbox {
 position: absolute;
 top: 15px;
 right: 35px;
 color: var(--text-dark);
 font-size: 40px;
 font-weight: bold;
 transition: 0.3s;
 cursor: pointer;
 background-color: var(--bg-white);
 border-radius: 50%;
 width: 40px;
 height: 40px;
 display: flex;
 justify-content: center;
 align-items: center;
 line-height: 1;
 box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close-lightbox:hover,
.close-lightbox:focus {
 color: var(--primary-color);
 text-decoration: none;
 cursor: pointer;
 transform: rotate(90deg);
}

@keyframes animatetop {
 from {top: -300px; opacity: 0}
 to {top: 0; opacity: 1}
}

/* FAQ Page */
.faq-intro {
 background-color: var(--bg-light);
 text-align: center;
 padding: 80px 0;
}
.faq-intro h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 20px;
}
.faq-intro p {
 font-size: 1.2em;
 max-width: 900px;
 margin: 0 auto 40px;
 color: var(--text-light);
}

.faq-container {
 max-width: 900px;
 margin: 50px auto;
}

.faq-item {
 background-color: var(--bg-white);
 border: 1px solid var(--border-color);
 border-radius: 8px;
 margin-bottom: 15px;
 overflow: hidden;
 box-shadow: 0 2px 10px var(--shadow-light);
 transition: box-shadow 0.3s ease;
}

.faq-item:hover {
 box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
 padding: 20px 25px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 cursor: pointer;
 background-color: var(--bg-light);
 font-weight: 600;
 color: var(--primary-color);
 font-size: 1.1em;
 transition: background-color 0.3s ease;
}

.faq-question:hover {
 background-color: #e9ecef;
}

.faq-question.active {
 background-color: var(--secondary-color);
 color: white;
}

.faq-question.active .arrow-icon {
 transform: rotate(180deg);
 filter: brightness(0) invert(1);
}

.arrow-icon {
 width: 20px;
 height: 20px;
 flex-shrink: 0; /* Prevent icon from shrinking */
 transition: transform 0.3s ease;
}

.faq-answer {
 padding: 0 25px;
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer p {
 padding: 15px 0;
 border-top: 1px solid var(--border-color);
 color: var(--text-dark);
 font-size: 1em;
}

.faq-item.active .faq-answer {
 max-height: 500px; /* Adjust as needed for content height */
 padding: 0 25px 20px;
}

/* Legal Pages (Privacy, Terms, Cookie, Disclaimer, Refund) */
.legal-page-hero {
 background: linear-gradient(rgba(0, 86, 179, 0.7), rgba(0, 123, 255, 0.7)), url('https://picsum.photos/seed/legal-hero/1920/600') no-repeat center center/cover;
 color: white;
 text-align: center;
 padding: 100px 0;
}
.legal-page-hero h1 {
 color: white;
 font-size: 3.5em;
 margin-bottom: 15px;
}
.legal-page-hero p {
 font-size: 1.2em;
 max-width: 800px;
 margin: 0 auto;
 color: rgba(255, 255, 255, 0.9);
}

.legal-content {
 max-width: 900px;
 margin: 50px auto;
 padding: 0 15px;
 font-size: 1.05em;
 line-height: 1.8;
}

.legal-content h2 {
 font-size: 2em;
 margin-top: 40px;
 margin-bottom: 20px;
 color: var(--primary-color);
}

.legal-content h3 {
 font-size: 1.6em;
 margin-top: 30px;
 margin-bottom: 15px;
 color: var(--primary-color);
}

.legal-content p {
 margin-bottom: 1.5em;
}

.legal-content ul {
 list-style: disc;
 margin: 1.5em 0;
 padding-left: 25px;
}

.legal-content ol {
 list-style: decimal;
 margin: 1.5em 0;
 padding-left: 25px;
}

.legal-content li {
 margin-bottom: 0.8em;
}

/* Thanks Page */
.thanks-container {
 padding: var(--padding-section) 0;
 text-align: center;
 min-height: 60vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.thanks-icon {
 font-size: 5em;
 color: var(--accent-color);
 margin-bottom: 20px;
 animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
 0% { transform: scale(0.3); opacity: 0; }
 50% { transform: scale(1.1); opacity: 1; }
 70% { transform: scale(0.9); }
 100% { transform: scale(1); }
}

.thanks-container h1 {
 font-size: 3em;
 color: var(--primary-color);
 margin-bottom: 15px;
}

.thanks-container p {
 font-size: 1.25em;
 color: var(--text-dark);
 max-width: 600px;
 margin-bottom: 30px;
}

/* 404 Page */
.error-container {
 padding: var(--padding-section) 0;
 text-align: center;
 min-height: 70vh;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
}

.error-container .error-code {
 font-size: 8em;
 font-weight: 700;
 color: var(--primary-color);
 line-height: 1;
 margin-bottom: 20px;
 position: relative;
 display: inline-block;
 animation: shake 0.8s ease-in-out infinite alternate;
}
@keyframes shake {
 0% { transform: translateX(0); }
 25% { transform: translateX(-5px) rotate(-1deg); }
 50% { transform: translateX(5px) rotate(1deg); }
 75% { transform: translateX(-5px) rotate(-1deg); }
 100% { transform: translateX(0); }
}

.error-container h1 {
 font-size: 3.5em;
 color: var(--secondary-color);
 margin-bottom: 15px;
}

.error-container p {
 font-size: 1.2em;
 color: var(--text-light);
 max-width: 700px;
 margin-bottom: 40px;
}

.error-container .btn {
 padding: 15px 30px;
}

/* Footer */
.main-footer {
 background-color: var(--primary-color);
 color: rgba(255, 255, 255, 0.9);
 padding: 60px 0 30px;
 font-size: 0.95em;
}

.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 30px;
 margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
 color: var(--bg-white);
 margin-bottom: 20px;
 font-size: 1.2em;
}

.footer-col p {
 color: rgba(255, 255, 255, 0.8);
 margin-bottom: 10px;
 line-height: 1.7;
}

.footer-col ul {
 padding: 0;
}

.footer-col ul li {
 margin-bottom: 8px;
}

.footer-col ul li a {
 color: rgba(255, 255, 255, 0.8);
 transition: color 0.3s ease, transform 0.2s ease;
 display: inline-block;
}

.footer-col ul li a:hover {
 color: var(--accent-color);
 transform: translateX(5px);
 text-decoration: none;
}

.social-icons {
 display: flex;
 gap: 15px;
 margin-top: 20px;
}

.social-icons a {
 width: 32px;
 height: 32px;
 background-color: rgba(255, 255, 255, 0.15);
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
 background-color: var(--accent-color);
 transform: translateY(-3px) scale(1.1);
}

.social-icons img {
 width: 18px;
 height: 18px;
 filter: brightness(0) invert(1);
 display: block;
}

.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 25px;
 text-align: center;
 font-size: 0.85em;
 color: rgba(255, 255, 255, 0.6);
}

/* Utilities */
.text-center { text-align: center; }
.mt-50 { margin-top: 50px; }

/* Interactive Animations */
.interactive {
 will-change: transform, opacity;
}

.interactive-btn {
 animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) backwards;
 opacity: 0;
}

.interactive-btn:nth-of-type(1) { animation-delay: 0.2s; }
.interactive-btn:nth-of-type(2) { animation-delay: 0.3s; }

.interactive-card {
 animation: fadeInScale 0.8s ease-out backwards;
 opacity: 0;
}

.explore-solutions-section .solution-card:nth-child(1) { animation-delay: 0.2s; }
.explore-solutions-section .solution-card:nth-child(2) { animation-delay: 0.4s; }
.explore-solutions-section .solution-card:nth-child(3) { animation-delay: 0.6s; }
.explore-solutions-section .solution-card:nth-child(4) { animation-delay: 0.8s; }

.interactive-timeline-item {
 animation: slideUpFade 0.8s ease-out backwards;
 opacity: 0;
}
.timeline-container .timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-container .timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-container .timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-container .timeline-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes popIn {
 0% { transform: scale(0.8) translateY(10px); opacity: 0; }
 100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes fadeInScale {
 0% { opacity: 0; transform: scale(0.9) translateY(20px); }
 100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes slideUpFade {
 0% { opacity: 0; transform: translateY(30px); }
 100% { opacity: 1; transform: translateY(0); }
}

/* Media Queries */
@media (max-width: 1024px) {
 h1 { font-size: 2.5em; }
 h2 { font-size: 2em; }
 h3 { font-size: 1.6em; }
 .hero-content h1 { font-size: 3em; }

 .nav-links {
 gap: 20px;
 }

 .timeline-container::before {
 display: none; /* Hide horizontal line on smaller screens */
 }

 .timeline-container {
 flex-direction: column;
 align-items: center;
 }

 .timeline-item {
 margin-bottom: 30px;
 max-width: 400px;
 }

 .timeline-item::after {
 content: '';
 position: absolute;
 bottom: -20px;
 left: 50%;
 transform: translateX(-50%);
 width: 3px;
 height: 20px;
 background-color: var(--border-color);
 display: block;
 z-index: 1;
 }

 .timeline-item:last-child::after {
 display: none;
 }

 .testimonial-card {
 flex: 0 0 80%; /* Show more of the next card */
 margin-left: 10%;
 margin-right: 10%;
 padding: 30px;
 }
}

@media (max-width: 768px) {
 .nav-toggle {
 display: flex;
 }

 .nav-links {
 display: none;
 flex-direction: column;
 position: absolute;
 top: var(--header-height);
 left: 0;
 width: 100%;
 background-color: var(--bg-white);
 box-shadow: 0 5px 15px var(--shadow-light);
 padding: 20px 0;
 border-top: 1px solid var(--border-color);
 animation: slideDown 0.3s ease-out forwards;
 }

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

 .nav-links li {
 width: 100%;
 text-align: center;
 padding: 10px 0;
 }

 .nav-links li a {
 padding: 10px 20px;
 display: block;
 }

 .main-header.scrolled .nav-links {
 top: 60px; /* Adjust if header height changes on scroll */
 }

 @keyframes slideDown {
 0% { transform: translateY(-100%); opacity: 0; }
 100% { transform: translateY(0); opacity: 1; }
 }

 .hero-section {
 height: auto;
 padding-top: var(--header-height);
 text-align: center;
 }

 .hero-section .container {
 flex-direction: column;
 padding-top: 40px;
 }

 .hero-content {
 max-width: 100%;
 order: 2;
 }
 .hero-content h1 {
 font-size: 2.5em;
 }
 .hero-content p {
 font-size: 1.1em;
 }

 .hero-actions {
 justify-content: center;
 }

 .hero-image {
 max-width: 80%;
 margin-bottom: 30px;
 order: 1;
 }

 .section-padding { padding: 60px 0; }
 .section-description { font-size: 1em; margin-bottom: 2.5em; }

 .about-brief-section .container {
 flex-direction: column;
 }
 .about-brief-section .content-left,
 .about-brief-section .content-right {
 min-width: unset;
 max-width: 100%;
 }
 .about-brief-section .about-image {
 max-width: 80%;
 margin: 0 auto;
 }

 .mission-vision-section .container {
 flex-direction: column;
 align-items: center;
 }
 .mission-card, .vision-card {
 max-width: 90%;
 }

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

 .footer-col ul {
 width: fit-content;
 margin: 0 auto;
 }

 .social-icons {
 justify-content: center;
 }

 .testimonial-card {
 flex: 0 0 90%;
 margin-left: 5%;
 margin-right: 5%;
 }

 /* Contact Page */
 .contact-content {
 flex-direction: column;
 }
 .contact-form-section, .contact-info-section {
 min-width: unset;
 width: 100%;
 }
 .contact-info-section p {
 justify-content: center;
 }
 .contact-info-section p strong {
 min-width: unset;
 margin-right: 10px;
 }
}

@media (max-width: 480px) {
 h1 { font-size: 2em; }
 h2 { font-size: 1.8em; }
 h3 { font-size: 1.4em; }

 .hero-content h1 { font-size: 2.2em; }
 .hero-content p { font-size: 1em; }

 .btn { padding: 10px 20px; font-size: 0.9em; }
 .btn-large { padding: 12px 25px; font-size: 1em; }

 .hero-actions {
 flex-direction: column;
 align-items: center;
 }

 .solution-cards {
 grid-template-columns: 1fr;
 }

 .post-header h1, .contact-hero h1, .blog-hero h1, .thanks-container h1, .error-container h1, .legal-page-hero h1 {
 font-size: 2.5em;
 }
 .post-content, .legal-content {
 font-size: 1em;
 }

 .map-container {
 height: 300px;
 }

 .testimonial-card {
 padding: 25px;
 }
 .client-avatar {
 width: 80px;
 height: 80px;
 }
 .testimonial-text {
 font-size: 1em;
 }
}