/* ===================================================================
   TABLE OF CONTENTS
   ===================================================================
   1.  Global Setup (Variables, Reset, Base)
   2.  Reusable Components (Buttons, Section Headers)
   3.  Layout: Header (Navbar)
   4.  Layout: Modal (Get Quote)
   5.  Layout: Footer (Premium & Simple)
   6.  Page: Homepage Sections
       6.1. Hero Section
       6.2. Impressive Services (Featured/Overview)
       6.3. Alternating Features
       6.4. Timeline (Workflow)
       6.5. Expertise (Flip Cards)
       6.6. Tech Stack (Carousel)
       6.7. Core Values
       6.8. FAQ
       6.9. Final CTA
   7.  Page: Inner Page Styles
       7.1. General Page Header
       7.2. About Page
       7.3. Services Page
       7.4. Contact Page
       7.5. Career Page
   8.  Keyframe Animations
   9.  Responsive Media Queries
       9.1. Tablet (max-width: 992px)
       9.2. Mobile (max-width: 768px)
       9.3. Small Mobile (max-width: 480px)
=================================================================== */

/* ===================================================================
   1. Global Setup (Variables, Reset, Base)
=================================================================== */
:root {
    --primary-color: #2ED1E7; /* Vibrant Teal from WEBFORGE text */
    --primary-hover: #5FEFFC; /* Lighter Teal for hover */
    --secondary-color: #312A6C; /* Dark Blue/Purple from Logo Icon */
    --dark-color: #0D0F1F; /* Very Deep Navy Blue background */
    --bg-light: #1A1D36; /* Slightly lighter deep blue for cards */
    --light-color: #E2E8F0; /* Soft off-white text */
    --text-color: #A0B0C4; /* Light greyish-blue for secondary text */
    --border-color: #3A475C; /* Darker grey-blue for borders */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--dark-color);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    color: var(--light-color);
    margin-bottom: 1rem;
}

/* ===================================================================
   2. Reusable Components (Buttons, Section Headers)
=================================================================== */

/* --- General Section Titles (for Timeline, Expertise, etc.) --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--light-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Specific Section Header (for Impressive Services) --- */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.subheading {
    display: inline-block;
    background: #204169;
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* --- Buttons --- */

/* Main CTA Button (e.g., Hero, Final CTA) */
.cta-button {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 0.9rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(46, 209, 231, 0.5);
}

.cta-button span {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.cta-button:hover span {
    transform: translateX(5px);
}

/* Secondary CTA Button (e.g., View All Services) */
.cta-button-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button-secondary span {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.cta-button-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

.cta-button-secondary:hover span {
    transform: translateX(5px);
}

/* Small CTA Button (e.g., Career Page Apply) */
.cta-button-small {
    background: var(--primary-color);
    color: var(--dark-color);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button-small:hover {
    background: var(--primary-hover);
    color: var(--dark-color);
}

/* Button from Impressive Services (Primary) */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    color: #fff;
    text-decoration: none;
}

.btn-primary-custom i {
    margin-left: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

/* Button from Impressive Services (Outline) */
.btn-outline-light-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--light-color);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline-light-custom:hover {
    background: var(--light-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-outline-light-custom i {
    margin-left: 0.6rem;
}

/* ===================================================================
   3. Layout: Header (Navbar)
=================================================================== */
header {
    background: #5FEFFC; /* Light Teal background */
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(13, 15, 31, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    line-height: 0;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

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

.nav-links li a {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.cta-nav {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cta-nav:hover {
    background: #4A3F9F;
    color: var(--light-color);
    box-shadow: 0 0 15px rgba(49, 42, 108, 0.5);
}

button.cta-nav {
    font-family: var(--font-family);
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* ===================================================================
   4. Layout: Modal (Get Quote)
=================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 15, 31, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.modal-open {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    border: 1px solid var(--border-color);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.modal-open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--light-color);
}

.modal-form-container h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-align: center;
}

.modal-form-container p {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

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

.modal-form-container .form-group input,
.modal-form-container .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--dark-color);
    color: var(--light-color);
}

.modal-form-container .cta-button {
    width: 100%;
}

/* ===================================================================
   5. Layout: Footer (Premium & Simple)
=================================================================== */

/* --- 5.1 Premium Footer (Homepage) --- */
.premium-footer {
    background: var(--bg-light);
    color: var(--text-color);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

.premium-footer .footer-logo img {
    height: 45px;
    width: auto;
    margin-bottom: 1rem;
}

.premium-footer .footer-col-about p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.premium-footer .social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-right: 1.2rem;
    transition: color 0.3s ease;
}

.premium-footer .social-links a:hover {
    color: var(--primary-color);
}

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

.premium-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.premium-footer ul {
    list-style: none;
    padding: 0;
}

.premium-footer ul li {
    margin-bottom: 0.8rem;
}

.premium-footer ul li a {
    color: var(--text-color);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.premium-footer ul li a:hover {
    color: var(--primary-color);
}

.premium-footer address {
    font-style: normal;
}

.premium-footer address p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.premium-footer address p i {
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-color);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom p a {
    color: var(--text-color);
    margin: 0 0.5rem;
}

.footer-bottom p a:hover {
    color: var(--primary-color);
}

/* --- 5.2 Simple Footer (Subpages) --- */
/* This style was missing from your file but we discussed it */
.simple-footer,
#contact-footer { /* Targeting both for safety */
    background: var(--bg-light);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

/* ===================================================================
   6. Page: Homepage Sections
=================================================================== */

/* --- 6.1 Hero Section --- */
.hero-advanced {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 85vh;
    padding: 8rem 0;
    align-items: center;
    display: flex;
    color: var(--light-color);
    overflow: hidden;
    /* NOTE: Add your background-image URL here */
    /* background-image: url('../images/your-hero-image.jpg'); */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-text h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--light-color);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-container img {
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(49, 42, 108, 0.6);
}

/* --- 6.2 Impressive Services Section --- */
#impressive-services {
    background: var(--dark-color);
    padding: 6rem 0;
    color: var(--light-color);
    overflow-x: hidden;
}

.services-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    align-items: center;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.featured-service-card {
    background: #2C3E50;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.featured-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.icon-box-large {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 4rem;
    color: #fff;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.service-title-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--light-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.service-description-large {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.overview-services-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.overview-card {
    background: #2b3a53;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overview-card:hover {
    transform: translateY(-5px);
    background-color: #3b4d68;
}

.icon-box-small {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-title-small {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 0;
}

.card-darkblue { background: #2C3E50; }
.card-orange { background: #FFA500; }
.card-teal { background: #4ECDC4; }
.card-darkorange { background: #E67E22; }
.card-pink { background: #E91E63; }

/* --- 6.3 Alternating Features Section --- */
.features-alternating-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.detail-grid.reverse .detail-image { grid-area: image; }
.detail-grid.reverse .detail-text { grid-area: text; }

.detail-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    background: var(--secondary-color);
    min-height: 250px;
}

.detail-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
}

.detail-text ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.detail-text ul li {
    position: relative;
    padding-left: 1.8rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.detail-text ul li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- 6.4 Timeline (Workflow) Section --- */
.timeline-section {
    padding: 4rem 0;
    background: var(--dark-color);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--bg-light);
    border-radius: 2px;
}

.timeline-item {
    padding: 1rem 3rem;
    position: relative;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--dark-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.timeline-content {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* --- 6.5 Expertise (Flip Cards) Section --- */
.expertise-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 700px;
    margin: 3rem auto 0 auto;
    perspective: 1000px;
}

.expertise-card {
    background: var(--dark-color);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card {
    background-color: transparent;
    width: 100%;
    height: 280px;
    border-radius: 12px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 12px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
}

.flip-card-back {
    transform: rotateY(180deg);
    align-items: flex-start;
    text-align: left;
    justify-content: flex-start;
}

.expertise-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.flip-card-back h3 {
    font-size: 1.2rem;
}

.expertise-card p {
    color: var(--text-color);
    font-size: 0.95rem;
}

.flip-card-back p {
    margin-top: 0.5rem;
}

/* --- 6.6 Tech Stack (Carousel) Section --- */
.tech-stack-section {
    padding: 4rem 0;
    background: var(--dark-color);
    overflow: hidden;
}

.logo-carousel-container {
    width: 100%;
    margin-top: 3rem;
    position: relative;
}

.logo-carousel-track {
    display: flex;
    width: calc(200px * 12);
    animation: scrollLogos 30s linear infinite;
}

.logo-item {
    width: 180px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.logo-item span {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(46, 209, 231, 0.15);
}

.logo-carousel-container:hover .logo-carousel-track {
    animation-play-state: paused;
}

/* --- 6.7 Core Values Section --- */
.values-section {
    padding: 4rem 0;
    background: var(--dark-color);
}

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

.value-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(46, 209, 231, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* --- 6.8 FAQ Section --- */
.faq-section {
    padding: 4rem 0;
    background: var(--dark-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item summary {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--light-color);
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
}

.faq-item[open] summary {
    color: var(--primary-color);
}

.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

/* --- 6.9 Final CTA Section --- */
.cta-section {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--dark-color);
    text-align: center;
}

.cta-section h2 {
    color: var(--dark-color);
    font-size: 2.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--dark-color);
}

/* NOTE: .cta-section .cta-button uses the global .cta-button style */
.cta-section .cta-button {
    background: var(--light-color);
    color: var(--primary-color);
    font-weight: 700;
}

.cta-section .cta-button:hover {
    background: var(--dark-color);
    color: var(--light-color);
    box-shadow: none;
}

/* ===================================================================
   7. Inner Page Styles
=================================================================== */

/* --- 7.1 General Page Header --- */
.page-header {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 1.5rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(46, 209, 231, 0.05) 0%, transparent 70%);
    opacity: 0.7;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(46, 209, 231, 0.3);
}

.page-header p {
    color: var(--text-color);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 7.2 About Page --- */
.about-content {
    background: var(--dark-color);
    padding: 5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    padding-right: 1.5rem;
}

.about-text .section-title-left {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 10px;
    text-align: left; /* Added for clarity */
}

.about-text .section-title-left::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: 1;
    border-radius: inherit;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px rgba(46, 209, 231, 0.4);
}

.about-image-wrapper:hover::before {
    opacity: 1;
}

/* --- 7.3 Services Page --- */
.services-section {
    background: var(--dark-color);
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.service-card {
    background: rgba(26, 29, 54, 0.6);
    border: 1px solid rgba(46, 209, 231, 0.1);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(46, 209, 231, 0.15);
    background: rgba(26, 29, 54, 0.9);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(46, 209, 231, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    transform: scale(1.1) rotate(3deg);
}

.service-card:hover .icon-box i {
    color: var(--dark-color);
}

.service-card h3 {
    font-size: 1.6rem;
    color: var(--light-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* --- 7.4 Contact Page --- */
.contact-section {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form h3, .contact-details h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    background: var(--dark-color);
    color: var(--light-color);
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details ul li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* --- 7.5 Career Page --- */
.career-content {
    padding: 4rem 0;
}

.career-content h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.career-content > .container > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.job-list {
    max-width: 800px;
    margin: 0 auto;
}

.job-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.job-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.job-item small {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.job-item.no-openings {
    text-align: center;
}

/* ===================================================================
   8. Keyframe Animations
=================================================================== */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 6));
    }
}

/* ===================================================================
   9. Responsive Media Queries
=================================================================== */

/* --- 9.1 Tablet (max-width: 992px) --- */
@media (max-width: 992px) {
    /* Impressive Services */
    .services-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 700px;
    }
    .featured-service-card { padding: 2.5rem; }
    .icon-box-large {
        width: 80px;
        height: 80px;
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
    .service-title-large { font-size: 1.8rem; }
    .service-description-large { font-size: 1rem; margin-bottom: 1.5rem; }
    .overview-services-area { gap: 15px; }
    .overview-card { padding: 1.2rem; }
    .icon-box-small {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    .service-title-small { font-size: 1.1rem; }

    /* CTA Section */
    .cta-section h2 { font-size: 2.2rem; }
    .cta-section p { font-size: 1rem; max-width: 90%; }
    .cta-section .cta-button { padding: 0.8rem 1.8rem; font-size: 1rem; }
}

/* --- 9.2 Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    /* General */
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; }

    /* Header */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #5FEFFC;
        position: absolute;
        top: 65px; /* Adjust as needed */
        left: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(13, 15, 31, 0.2);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 1rem 0; text-align: center; }
    .hamburger-menu { display: flex; }
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Hero */
    .hero-advanced { padding-top: 4rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text { order: 2; }
    .hero-image-container { order: 1; margin-bottom: 3rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }

    /* Impressive Services */
    .section-header { margin-bottom: 3rem; }
    .subheading { font-size: 1rem; padding: 0.5rem 1.5rem; }
    .services-main-grid { max-width: 500px; padding: 0 15px; }
    .featured-service-card { padding: 2rem; }
    .icon-box-large {
        width: 70px;
        height: 70px;
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    .service-title-large { font-size: 1.6rem; }
    .service-description-large { font-size: 0.95rem; }
    .overview-services-area {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
    }
    .overview-card { padding: 1rem; }
    .icon-box-small {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    .service-title-small { font-size: 1rem; }
    .btn-primary-custom { font-size: 1rem; padding: 0.7rem 1.8rem; }

    /* Alternating Features */
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid.reverse .detail-image { grid-area: auto; }
    .detail-grid.reverse .detail-text { grid-area: auto; }
    .detail-grid .detail-image,
    .detail-grid.reverse .detail-image {
        grid-area: auto;
        margin-bottom: 1.5rem;
    }
    .detail-grid .detail-text,
    .detail-grid.reverse .detail-text {
        grid-area: auto;
        text-align: center;
    }
    .detail-text ul { display: inline-block; text-align: left; }

    /* Timeline */
    .timeline-container::before { left: 20px; }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 1rem;
        text-align: left;
    }
    .timeline-item:nth-child(odd) { left: 0; text-align: left; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 10px; }
    
    /* Expertise */
    .expertise-grid { grid-template-columns: 1fr; }

    /* Premium Footer */
    .premium-footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .premium-footer .footer-col-about .footer-logo,
    .premium-footer h4 {
        margin-left: auto;
        margin-right: auto;
    }
    .premium-footer h4::after { left: 50%; transform: translateX(-50%); }
    .premium-footer .social-links { text-align: center; }
    .premium-footer address p { justify-content: center; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-bottom p { width: 100%; }

    /* Inner Pages */
    .page-header { padding: 1rem 0; }
    .page-header h1 { font-size: 2.5rem; }
    .page-header p { font-size: 1rem; padding: 0 1rem; }
    
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .about-text { padding-right: 0; }
    .about-text .section-title-left { font-size: 2.2rem; text-align: center; }
    .about-text .section-title-left::after { left: 50%; transform: translateX(-50%); }
    .about-image-wrapper {
        margin-top: 2rem;
        transform: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    .about-image-wrapper::before { opacity: 0.5; }
    .about-image-wrapper:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card { padding: 2rem; text-align: center; }
    .icon-box { margin: 0 auto 1.5rem auto; }
    .service-card h3 { font-size: 1.6rem; }

    .cta-section h2 { font-size: 2.2rem; }
    .cta-section p { font-size: 1rem; padding: 0 1rem; margin-bottom: 2rem; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-details { margin-top: 2rem; }
}

/* --- 9.3 Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    /* General */
    .section-title { font-size: 1.8rem; }
    
    /* Impressive Services */
    .services-main-grid { padding: 0 10px; }
    .featured-service-card { padding: 1.5rem; }
    .service-title-large { font-size: 1.4rem; }
    .btn-outline-light-custom { font-size: 0.9rem; padding: 0.6rem 1.5rem; }
}