/* ========================================
   JESTA TECH SOLUTIONS - MAIN STYLESHEET
   Modern, Responsive, and Professional Design
   ======================================== */

/* === RESET AND BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #0D6EFD;
    --primary-dark: #0a58ca;
    --primary-light: #3d8bfd;
    --secondary-color: #6c757d;
    --dark-color: #1E1E1E;
    --light-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #212529;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Theme Variables - Light Mode (Default) */
    --theme-bg: #FFFFFF;
    --theme-bg-secondary: #F8F9FA;
    --theme-text: #212529;
    --theme-text-secondary: #6c757d;
    --theme-card-bg: #FFFFFF;
    --theme-header-bg: #FFFFFF;
    --theme-border: #dee2e6;
    --theme-shadow: rgba(0, 0, 0, 0.1);
    --theme-shadow-lg: rgba(0, 0, 0, 0.15);
}

/* Dark Mode Theme Variables (Applied via body.dark-mode class) */
body.dark-mode {
    --theme-bg: #1a1a1a;
    --theme-bg-secondary: #2d2d2d;
    --theme-text: #e4e4e4;
    --theme-text-secondary: #b0b0b0;
    --theme-card-bg: #242424;
    --theme-header-bg: #1f1f1f;
    --theme-border: #3a3a3a;
    --theme-shadow: rgba(0, 0, 0, 0.3);
    --theme-shadow-lg: rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--theme-text);
    background-color: var(--theme-bg);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    max-width: 100vw;
    position: relative;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

/* === CONTAINER === */
.container {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-light:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* === DESKTOP HEADER === */
.desktop-header {
    background-color: var(--theme-header-bg);
    box-shadow: 0 4px 6px var(--theme-shadow);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 10px 0;
    display: none;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
}

/* === MOBILE HEADER === */
.mobile-header {
    background-color: var(--theme-header-bg);
    box-shadow: 0 4px 6px var(--theme-shadow);
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1200 !important;
    padding: 8px 0;
    display: none;
    overflow: hidden;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
}

/* Mobile header with hamburger and logo on left, JTS text centered */
.mobile-header-content {
    position: relative;
    height: 65px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

/* Place hamburger on left side */
.hamburger-menu {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 2 !important;
}

/* Logo image on right side of hamburger (left area) */
.mobile-logo-img {
    position: absolute !important;
    left: 56px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(1.4) !important;
    transform-origin: center center;
    height: 48px !important;
    width: auto;
    max-width: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
    display: block;
    z-index: 2;
    flex-shrink: 0;
}

/* JTS text centered in header */
.mobile-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0;
}

.mobile-logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin: 0;
}

/* Keep base layout props */
.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.hamburger-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hamburger-menu:hover {
    color: var(--primary-dark);
}

/* === DARK MODE TOGGLE BUTTON (Mobile/Tablet Only) === */
#darkModeToggle {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    display: none; /* Hidden by default, shown via JS on mobile/tablet */
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2 !important;
}

#darkModeToggle:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-dark);
    transform: translateY(-50%) !important;
}

#darkModeToggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    transform: translateY(-50%) !important;
}

/* Icon transitions for smooth toggle effect */
#darkModeToggle i {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#darkModeToggle:active {
    transform: translateY(-50%) scale(0.95) !important;
}

/* Hide toggle on desktop (>1024px) */
@media (min-width: 1025px) {
    #darkModeToggle {
        display: none !important;
    }
}

/* === DARK MODE COMPONENT STYLES === */
/* Apply theme variables to all major components */

/* Sections */
body.dark-mode section {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

body.dark-mode .intro-section,
body.dark-mode .services-section,
body.dark-mode .why-choose-section,
body.dark-mode .testimonials-section,
body.dark-mode .cta-section,
body.dark-mode .story-section,
body.dark-mode .team-section,
body.dark-mode .contact-section,
body.dark-mode .portfolio-section {
    background-color: var(--theme-bg);
}

/* Cards */
body.dark-mode .service-card,
body.dark-mode .highlight-card,
body.dark-mode .feature-card,
body.dark-mode .portfolio-card,
body.dark-mode .team-card,
body.dark-mode .testimonial-card,
body.dark-mode .faq-item,
body.dark-mode .contact-info-card {
    background-color: var(--theme-card-bg);
    border-color: var(--theme-border);
    box-shadow: 0 4px 6px var(--theme-shadow);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark-mode .service-card:hover,
body.dark-mode .highlight-card:hover,
body.dark-mode .feature-card:hover,
body.dark-mode .portfolio-card:hover,
body.dark-mode .team-card:hover {
    box-shadow: 0 10px 30px var(--theme-shadow-lg);
}

/* Text elements */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--theme-text);
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode span {
    color: var(--theme-text);
}

body.dark-mode .section-header p,
body.dark-mode .intro-content p {
    color: var(--theme-text-secondary);
}

/* Navigation */
body.dark-mode .desktop-nav a {
    color: var(--theme-text);
}

body.dark-mode .side-menu {
    background-color: var(--theme-card-bg);
}

body.dark-mode .side-menu-header {
    background-color: var(--theme-header-bg);
    border-bottom-color: var(--theme-border);
}

body.dark-mode .side-menu-links a {
    color: var(--theme-text);
}

body.dark-mode .side-menu-links a:hover {
    background-color: var(--theme-bg-secondary);
}

/* Mobile Bottom Navigation */
body.dark-mode .mobile-bottom-nav {
    background-color: var(--theme-header-bg);
    border-top-color: var(--theme-border);
}

body.dark-mode .mobile-bottom-nav .nav-item {
    color: var(--theme-text-secondary);
}

body.dark-mode .mobile-bottom-nav .nav-item.active {
    color: var(--primary-color);
}

/* Forms */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: var(--theme-card-bg);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    background-color: var(--theme-card-bg);
    border-color: var(--primary-color);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--theme-text-secondary);
}

/* Tables */
body.dark-mode table {
    background-color: var(--theme-card-bg);
    color: var(--theme-text);
}

body.dark-mode th,
body.dark-mode td {
    border-color: var(--theme-border);
}

body.dark-mode tr:hover {
    background-color: var(--theme-bg-secondary);
}

/* Borders and dividers */
body.dark-mode .section-divider {
    background-color: var(--theme-border);
}

body.dark-mode hr {
    border-color: var(--theme-border);
}

/* Ensure images and icons remain visible */
body.dark-mode img {
    opacity: 0.95;
}

body.dark-mode i.fas,
body.dark-mode i.fab {
    color: inherit;
}

/* === DARK MODE: LEGAL PAGES (Terms, Privacy) === */
body.dark-mode .legal-content-section {
    background-color: var(--theme-bg);
}

body.dark-mode .legal-intro {
    background-color: var(--theme-bg-secondary);
}

body.dark-mode .legal-intro p {
    color: var(--theme-text);
}

body.dark-mode .legal-section {
    border-bottom-color: var(--theme-border);
}

body.dark-mode .legal-section h2 {
    color: var(--theme-text);
}

body.dark-mode .legal-section p {
    color: var(--theme-text);
}

body.dark-mode .legal-section strong {
    color: var(--theme-text);
}

body.dark-mode .legal-footer {
    background-color: var(--theme-bg-secondary);
}

body.dark-mode .legal-footer p {
    color: var(--theme-text);
}

body.dark-mode .contact-list li {
    color: var(--theme-text);
}

/* === DARK MODE: ABOUT PAGE === */
body.dark-mode .mvv-section {
    background-color: var(--theme-bg);
}

body.dark-mode .mvv-card {
    background-color: var(--theme-card-bg);
}

body.dark-mode .mvv-card h3 {
    color: var(--theme-text);
}

body.dark-mode .mvv-card p {
    color: var(--theme-text);
}

body.dark-mode .values-list li {
    color: var(--theme-text);
}

body.dark-mode .story-section {
    background-color: var(--theme-bg-secondary);
}

body.dark-mode .story-content p {
    color: var(--theme-text);
}

body.dark-mode .timeline-section {
    background-color: var(--theme-bg);
}

body.dark-mode .timeline-content {
    background-color: var(--theme-card-bg);
}

body.dark-mode .timeline-content h3 {
    color: var(--theme-text);
}

body.dark-mode .timeline-content p {
    color: var(--theme-text);
}

body.dark-mode .team-section {
    background-color: var(--theme-bg-secondary);
}

body.dark-mode .team-member-info h3 {
    color: var(--theme-text);
}

body.dark-mode .team-member-info p {
    color: var(--theme-text-secondary);
}

/* === DARK MODE: CONTACT PAGE === */
body.dark-mode .contact-section {
    background-color: var(--theme-bg);
}

body.dark-mode .contact-info-grid {
    background-color: var(--theme-bg);
}

body.dark-mode .contact-info-card h3 {
    color: var(--theme-text);
}

body.dark-mode .contact-info-card p,
body.dark-mode .contact-info-card a {
    color: var(--theme-text);
}

body.dark-mode .contact-card {
    background-color: var(--theme-card-bg);
}

body.dark-mode .contact-card h3 {
    color: var(--theme-text);
}

body.dark-mode .contact-card p {
    color: var(--theme-text);
}

body.dark-mode .contact-card a {
    color: var(--theme-text);
}

body.dark-mode .contact-form-container {
    background-color: var(--theme-card-bg);
}

body.dark-mode .contact-form-wrapper {
    background-color: var(--theme-bg);
}

body.dark-mode .contact-info-wrapper {
    background-color: var(--theme-bg);
}

body.dark-mode .form-group label {
    color: var(--theme-text);
}

body.dark-mode .map-section {
    background-color: var(--theme-bg);
}

body.dark-mode .contact-content {
    background-color: var(--theme-bg);
}

/* === DARK MODE: PAGE HEADER === */
body.dark-mode .page-header {
    background-color: var(--theme-bg);
}

body.dark-mode .page-header h1 {
    color: var(--theme-text);
}

body.dark-mode .page-header p {
    color: var(--theme-text-secondary);
}

body.dark-mode .page-header-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* === DARK MODE: FAQ SECTION === */
body.dark-mode .faq-section {
    background-color: var(--theme-bg-secondary);
}

body.dark-mode .faq-question:hover {
    background-color: var(--theme-bg-secondary);
}

body.dark-mode .faq-answer p {
    color: var(--theme-text);
}


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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.desktop-logo-img {
    height: 60px !important;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    flex-shrink: 0;
    transform: scale(1.5) !important;
    transform-origin: center center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.logo i {
    margin-right: 8px;
}

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

.desktop-nav a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

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

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

.desktop-nav a.active {
    color: var(--primary-color);
}

/* === HERO SECTION === */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed background image to rely on responsive banner component */
    margin-top: 70px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--light-color);
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

/* === FADE IN ANIMATIONS === */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0 auto 15px;
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* === INTRO SECTION === */
.intro-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.intro-content {
    text-align: center;
    max-width: none;
    margin: 0 auto 60px;
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.highlight-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* === SERVICES SECTION === */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--light-color);
    padding: 0; /* moved padding into inner body to keep media flush */
    border-radius: 10px;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 480px; /* ensure equal-ish heights */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-media {
    width: 100%;
    flex: 0 0 auto;
    /* increased height to leave room for final service images */
    height: 320px;
    overflow: hidden;
    /* Removed fallback background image */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    opacity: 1; /* ensure local fallback is visible immediately */
    transition: transform 0.5s ease, opacity 0.4s ease;
}

.service-media img.loaded {
    opacity: 1;
}

.service-card:hover .service-media img {
    transform: scale(1.04);
}

.service-body {
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    flex: 1 1 auto;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
    flex: 1 1 auto;
}

.service-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

/* Responsive adjustments */
@media (max-width: 900px) {
    /* tablet: slightly smaller but still generous */
    .service-media { height: 220px; }
    .service-card { min-height: 420px; }
}

@media (max-width: 600px) {
    .services-grid { gap: 18px; }
    /* mobile: still roomy for portrait images */
    .service-media { height: 200px; }
    .service-body { padding: 20px; }
    .service-card { min-height: 380px; }
}

/* Small helper to keep grid aligned when descriptions have different lengths */
.services-grid { align-items: stretch; }

/* === TESTIMONIALS SECTION === */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.testimonials-carousel {
    max-width: 1000px;
    margin: 0 auto 30px;
    position: relative;
}

.testimonial-card {
    display: none;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-content {
    position: relative;
    margin-bottom: 30px;
}

.quote-icon {
    font-size: 36px;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 24px;
}

.author-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 14px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

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

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

.partners-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    font-size: 64px;
    color: var(--text-secondary);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: scale(1.1);
}

/* === PAGE HEADER === */
.page-header {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin-top: 70px;
    position: relative;
    text-align: center;
    color: var(--light-color);
}

/* Banner container within page header */
.page-header .banner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-header .banner-container picture {
    width: 100%;
    height: 100%;
    display: block;
}

.page-header .page-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Fix page-header banner cropping on mobile (394px and below) */
@media (max-width: 394px) {
    .page-header .banner-container {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
    }

    .page-header .banner-container picture {
        width: 100%;
        height: auto;
    }

    .page-header .page-banner {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

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

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 20px;
    position: relative;
    z-index: 2;
}

/* === MISSION VISION VALUES === */
.mvv-section {
    padding: 100px 0 70px 0;
    background-color: var(--light-color);
}

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

.mvv-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.mvv-icon {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.mvv-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.mvv-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.values-list {
    text-align: left;
    margin-top: 20px;
}

.values-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.values-list i {
    color: var(--primary-color);
}

/* === STORY SECTION === */
.story-section {
    padding: 60px 0 80px 0;
    background-color: var(--bg-light);
}

.story-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: justify;
    padding: 0 60px;
}

.story-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 24px;
    text-align: justify;
    word-spacing: 0.5px;
    letter-spacing: 0.2px;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* === TIMELINE SECTION === */
.timeline-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.timeline {
    max-width: none;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
    min-height: 60px;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: left;
}

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

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 24px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--light-color);
    flex-shrink: 0;
}

.timeline-content {
    width: calc(50% - 80px);
    padding: 30px;
    background: var(--bg-light);
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50px;
}

.timeline-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === TEAM SECTION === */
.team-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.team-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    background-color: var(--bg-light);
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.5);
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(20, 30, 48, 0.95), transparent);
    padding: 30px 20px;
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-card:hover .team-overlay {
    transform: translateY(0);
}

.team-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.team-overlay p {
    font-size: 14px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}

.team-social {
    display: flex;
    gap: 15px;
}

.team-social a {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--light-color);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* === SERVICES DETAIL SECTION === */
.services-detail-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.service-detail-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-detail-icon {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-detail-image {
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    margin-top: -30px;
    height: auto;
    max-width: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 30px;
    display: block;
    background-color: #f0f0f0;
}

.service-detail-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.service-detail-card > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.service-features {
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-features li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features i {
    color: var(--primary-color);
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
    width: 100%;
}

.service-btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* === WHY CHOOSE SECTION === */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.why-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.why-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.counter {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.why-card p {
    color: var(--text-secondary);
}

/* === PROCESS SECTION === */
.process-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.process-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.process-number {
    position: absolute;
    top: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.process-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.process-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.process-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === CTA SECTION === */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--light-color);
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* === PORTFOLIO SECTION === */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    position: relative;
    height: 300px;
    overflow: visible;
    min-height: 300px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.5);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95) 0%, rgba(35, 47, 62, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 300px;
    overflow-y: auto;
    padding: 20px 0;
}

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

.portfolio-info {
    color: var(--light-color);
    padding: 30px 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 300px;
    overflow-y: auto;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.portfolio-info p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 14px;
}

.portfolio-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.portfolio-tags span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateX(5px);
}

/* === STATS SECTION === */
.stats-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.stat-card .counter {
    font-size: 56px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.contact-info-wrapper {
    order: 1;
}

.contact-form-wrapper {
    order: 2;
}

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

.contact-card {
    text-align: center;
    padding: 35px 20px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 240px;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.contact-card-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 36px;
}

.contact-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* === CONTACT FORM === */
.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* === MAP SECTION === */
.map-section {
    padding: 60px 0 0;
    background-color: var(--light-color);
}

.map-container {
    width: 100%;
    height: 450px;
    margin-top: 40px;
}

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

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

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-color);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* === LEGAL CONTENT === */
.legal-content-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-intro {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.legal-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h2 i {
    color: var(--primary-color);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.contact-list {
    margin-top: 20px;
}

.contact-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-list i {
    color: var(--primary-color);
    width: 20px;
}

.legal-footer {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    margin-top: 40px;
    text-align: center;
}

.legal-footer p {
    color: var(--text-primary);
    line-height: 1.8;
}

/* === FOOTER === */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.footer-section ul li {
    padding: 8px 0;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

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

.footer-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* === MOBILE BOTTOM NAVIGATION === */
.mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: var(--light-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000 !important;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px;
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
    min-height: 60px;
    max-height: 70px;
    transform: translateZ(0) translateY(0) !important;
    -webkit-transform: translateZ(0) translateY(0) !important;
    will-change: auto;
    margin: 0 !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    color: var(--text-secondary);
    font-size: 11px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1 1 0;
    max-width: 20%;
    min-width: 0;
    position: relative;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-align: center;
    overflow: visible;
}

/* Circular background for active nav item */
.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.06));
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    pointer-events: none;
}

.nav-item.active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    display: block;
}

.nav-item span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    opacity: 1;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
    line-height: 1.2;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active i {
    transform: scale(1.1);
    color: var(--primary-color);
}

.nav-item.active span {
    font-weight: 600;
    transform: scale(1.02);
}

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

.nav-item:hover::after {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.4;
}

/* Bounce animation for nav items */
.nav-item.bounce {
    animation: navBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes navBounce {
    0% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-8px) scale(1.15);
    }
    50% {
        transform: translateY(-12px) scale(1.2);
    }
    65% {
        transform: translateY(-4px) scale(1.1);
    }
    80% {
        transform: translateY(-6px) scale(1.12);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Icon bounce animation within nav item */
.nav-item.bounce i {
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.4) rotate(5deg);
    }
    70% {
        transform: scale(1.2) rotate(-5deg);
    }
    85% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments for nav items */
@media (max-width: 319px) {
    /* Extra small screens - iPhone SE, etc. */
    .mobile-bottom-nav {
        padding: 4px 1px !important;
        min-height: 56px !important;
        max-height: 62px !important;
        position: fixed !important;
        bottom: 0 !important;
    }

    .nav-item {
        font-size: 8px;
        padding: 3px 1px;
        min-width: 0;
        flex: 1 1 0;
        gap: 1px;
    }

    .nav-item i {
        font-size: 16px;
        margin-bottom: 1px;
    }

    .nav-item span {
        font-size: 8px;
        line-height: 1;
    }

    .nav-item::after {
        width: 36px;
        height: 36px;
    }

    .nav-item.active::before {
        width: 40px;
        height: 40px;
        border-width: 1px;
    }
}

@media (max-width: 374px) {
    .mobile-bottom-nav {
        padding: 5px 2px !important;
        min-height: 58px !important;
        max-height: 65px !important;
        position: fixed !important;
        bottom: 0 !important;
    }

    .nav-item {
        font-size: 9px;
        padding: 4px 2px;
        min-width: 0;
        flex: 1 1 0;
        gap: 2px;
    }

    .nav-item i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    .nav-item span {
        font-size: 9px;
        line-height: 1.1;
    }

    .nav-item::after {
        width: 40px;
        height: 40px;
    }

    .nav-item.active::before {
        width: 44px;
        height: 44px;
        border-width: 1.5px;
    }
}

/* Adjustments for medium mobile screens */
@media (min-width: 375px) and (max-width: 480px) {
    .mobile-bottom-nav {
        padding: 6px 4px !important;
        min-height: 60px !important;
        max-height: 68px !important;
        position: fixed !important;
        bottom: 0 !important;
    }

    .nav-item {
        padding: 5px 4px;
        min-width: 0;
        flex: 1 1 0;
    }

    .nav-item i {
        font-size: 19px;
    }

    .nav-item span {
        font-size: 10px;
    }
}

/* Additional styling for circular active state */
.nav-item.active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border: 1.5px solid rgba(13, 110, 253, 0.15);
    border-radius: 50%;
    opacity: 1;
    animation: pulseRing 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: -1;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 1;
    }
}

/* === SIDE MENU - MOBILE DRAWER FROM LEFT === */
.side-menu {
    position: fixed;
    top: 0;
    left: 0; /* Changed from right to left */
    width: 75%; /* 75% width on mobile */
    max-width: 320px; /* Maximum width for larger screens */
    height: 100vh;
    background: var(--light-color);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.3); /* Shadow on right side */
    z-index: 2000; /* ensure above .mobile-header (1200) */
    overflow: hidden; /* Hide overflow on container */
    padding: 0;
    transform: translateX(-100%); /* Start hidden on the LEFT */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth ease-out animation */
    display: flex;
    flex-direction: column; /* Stack header and content */
    height: 100dvh; /* use dynamic viewport height on mobile to avoid top clipping */
}

.side-menu.active {
    transform: translateX(0); /* Slide IN from left */
}

/* Side menu header - FIXED at top, doesn't scroll */
.side-menu-header {
    padding: 16px 20px; /* Reduced from 22px */
    background: var(--primary-color);
    color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevent header from shrinking */
    min-height: auto; /* Changed from 70px for natural sizing */
    height: auto; /* Natural height */
    position: relative; /* Stay at top */
    z-index: 1; /* Above content */
}

/* Scrollable content wrapper - contains both links and social */
.side-menu-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* Important for flex child with overflow */
}

/* Navigation links */
.side-menu-links {
    padding: 8px 0; /* Reduced from 16px */
    margin: 0; /* Remove any default margin */
    list-style: none;
    flex-shrink: 0; /* Don't shrink the links */
}

/* Custom scrollbar for navigation links */
.side-menu-links::-webkit-scrollbar {
    width: 6px;
}

.side-menu-links::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.side-menu-links::-webkit-scrollbar-thumb {
    background: rgba(13, 110, 253, 0.3);
    border-radius: 3px;
}

.side-menu-links::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 110, 253, 0.5);
}

.side-menu-header h3 {
    font-size: 18px; /* Reduced from 20px */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px */
    margin: 0; /* Remove default margin */
    line-height: 1.2; /* Tighter line height */
}

.side-menu-header h3 i {
    font-size: 20px; /* Reduced from 22px */
}

/* Close button with modern styling */
.close-menu {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--light-color);
    font-size: 20px; /* Reduced from 22px */
    cursor: pointer;
    padding: 6px 8px; /* Reduced from 8px 10px */
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Reduced from 40px */
    height: 36px; /* Reduced from 40px */
}

.close-menu:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Navigation links list items */
.side-menu-links li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.side-menu-links li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.side-menu-links li:last-child {
    border-bottom: none;
}

.side-menu-links a {
    display: flex;
    align-items: center;
    gap: 14px; /* Reduced from 16px */
    padding: 14px 20px; /* Reduced from 16px */
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.side-menu-links a:hover {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-color);
    padding-left: 24px; /* Slight indent on hover */
}

.side-menu-links a.active {
    background: rgba(13, 110, 253, 0.12);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 16px; /* Compensate for border */
}

/* Icon styling with consistent width for alignment */
.side-menu-links i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0; /* Prevent icon from shrinking */
    color: var(--primary-color);
}

.side-menu-links a:hover i {
    transform: scale(1.1);
}

/* === SOCIAL MEDIA SECTION IN SIDE MENU === */
.side-menu-social {
    padding: 18px 12px 20px;
    margin-top: 8px; /* Small spacing from links */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(13, 110, 253, 0.03);
    flex-shrink: 0; /* Don't allow social section to shrink */
}

.side-menu-social h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-menu-social-links {
    display: flex;
    justify-content: space-evenly; /* Even distribution prevents overflow */
    align-items: center;
    gap: 0; /* Use space-evenly instead of gap for better control */
    flex-wrap: nowrap; /* Force single row */
    overflow: visible; /* Allow hover effects to show */
    padding: 0 8px; /* Add padding to prevent edge clipping */
}

.side-menu-social-links a {
    width: 42px;
    height: 42px;
    background: var(--light-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 19px;
    transition: all 0.3s ease;
    flex-shrink: 1; /* Allow slight shrinking if needed */
    flex-grow: 0; /* Don't grow */
    flex-basis: 42px; /* Base size */
    min-width: 32px; /* Absolute minimum */
    position: relative;
}

.side-menu-social-links a:hover {
    background: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    z-index: 10; /* Ensure hover effect shows above others */
}

/* Specific icon colors on hover for brand recognition */
.side-menu-social-links a:nth-child(1):hover {
    background: #1877F2; /* Facebook blue */
    border-color: #1877F2;
}

.side-menu-social-links a:nth-child(2):hover {
    background: #1DA1F2; /* Twitter blue */
    border-color: #1DA1F2;
}

.side-menu-social-links a:nth-child(3):hover {
    background: #0A66C2; /* LinkedIn blue */
    border-color: #0A66C2;
}

.side-menu-social-links a:nth-child(4):hover {
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
    border-color: #E1306C;
}

/* Responsive adjustments for very small screens (≤280px menu width ~373px screen) */
@media (max-width: 374px) {
    .side-menu-social {
        padding: 16px 10px 18px;
    }

    .side-menu-social h4 {
        font-size: 12px;
        margin-bottom: 12px;
        letter-spacing: 0.3px;
    }

    .side-menu-social-links {
        padding: 0 6px;
    }

    .side-menu-social-links a {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        min-width: 30px;
        font-size: 17px;
        border-width: 1.5px;
    }

    .side-menu-social-links a:hover {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Ultra-small screens (≤240px menu width ~320px screen) */
@media (max-width: 320px) {
    .side-menu-social {
        padding: 14px 8px 16px;
    }

    .side-menu-social h4 {
        font-size: 11px;
        margin-bottom: 10px;
        letter-spacing: 0.2px;
    }

    .side-menu-social-links {
        padding: 0 4px;
    }

    .side-menu-social-links a {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        min-width: 28px;
        font-size: 16px;
        border-width: 1.5px;
    }

    .side-menu-social-links a:hover {
        transform: translateY(-2px) scale(1.04);
    }
}

/* Adjustments for medium mobile screens (375px-428px) */
@media (min-width: 375px) and (max-width: 428px) {
    .side-menu-social-links a {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 20px;
    }
}

/* Larger screens (>428px) */
@media (min-width: 429px) {
    .side-menu-social {
        padding: 20px 16px;
    }

    .side-menu-social h4 {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .side-menu-social-links {
        padding: 0 12px;
    }

    .side-menu-social-links a {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        font-size: 21px;
    }
}

/* Semi-transparent backdrop overlay */
.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    backdrop-filter: blur(4px); /* Modern blur effect */
    z-index: 1999; /* place overlay just under the drawer but above mobile header */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    pointer-events: none;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    cursor: pointer; /* Indicate it's clickable */
}

@supports (height: 100dvh) {
    .side-menu {
        height: 100dvh; /* explicitly prefer dvh when supported */
    }
}

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* === DESKTOP AND LARGE SCREENS (1025px and above) === */
@media (min-width: 1025px) {
    .desktop-header {
        display: block;
    }

    .mobile-header {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: none !important;
    }

    .side-menu {
        display: none !important;
    }

    .side-menu-overlay {
        display: none !important;
    }

    /* Story section desktop optimization - use more screen width */
    .story-content {
        max-width: 1400px;
        padding: 0 80px;
    }
}

/* === TABLET VIEW (768px - 1024px) === */
@media (max-width: 1024px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 9999 !important;
    }

    body {
        padding-bottom: 80px !important;
    }
    
    .footer {
        display: none !important;
    }

    .hero-section {
        margin-top: 81px; /* Match mobile header height (65px content + 16px padding) */
        height: auto;
        min-height: auto;
        padding-top: 0;
    }
    
    .page-header {
        margin-top: 81px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
        transform: translateX(0);
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content h3 {
        font-size: 18px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .whatsapp-btn {
        bottom: 80px;
    }
    
    body {
        padding-bottom: 75px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .team-photo {
        height: 350px; /* Maintain standard height for tablet */
    }

    /* Make team overlay always visible on tablet */
    .team-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(20, 30, 48, 0.95), rgba(20, 30, 48, 0.75));
    }

    .team-card:hover .team-overlay {
        transform: translateY(0);
    }

    /* Story section tablet optimization */
    .story-content {
        max-width: 100%;
        padding: 0 40px;
        text-align: justify;
    }

    .story-content p {
        text-align: justify;
    }

    /* Ensure all sections have proper spacing */
    section:last-of-type {
        margin-bottom: 20px;
    }
}

/* === MOBILE VIEW (481px - 767px) === */
@media (max-width: 768px) {
    .desktop-header {
        display: none;
    }
    
    .mobile-header {
        display: block;
    }

    .mobile-bottom-nav {
        display: flex;
    }
    
    .footer {
        display: none !important;
    }

    /* Side menu responsive adjustments */
    .side-menu {
        width: 80%; /* Slightly wider on smaller tablets */
        max-width: 320px;
    }

    .hero-section {
        margin-top: 81px; /* Match mobile header height (65px content + 16px padding) */
        height: auto;
        min-height: auto;
        padding-top: 0;
    }

    .page-header {
        margin-top: 81px;
        padding-top: 0;
    }

    /* Remove spacing between mobile header and banner image */
    .page-header .banner-container {
        margin-top: -81px;
        padding-top: 81px;
    }

    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .page-header h1 {
        font-size: 36px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .services-grid,
    .services-detail-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-detail-card {
        padding: 30px 25px;
    }

    .service-detail-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .service-detail_card h3 {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .service-features li {
        padding: 8px 0;
        font-size: 15px;
    }

    .service-btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
    
    .key-highlights,
    .why-choose-grid,
    .process-grid,
    .stats-grid,
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        height: 400px; /* Slightly taller for mobile single column layout */
    }

    /* Make team overlay always visible on mobile */
    .team-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(20, 30, 48, 0.95), rgba(20, 30, 48, 0.75));
    }

    .team-card:hover .team-overlay {
        transform: translateY(0);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .timeline::before {
        left: 30px;
    }

    .timeline-icon {
        left: 30px;
        transform: translateX(0);
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 40px;
    }

    .timeline-content {
        width: calc(100% - 90px);
        margin-left: 70px !important;
        margin-right: 0 !important;
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 16px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 10px;
    }

    .timeline-content p {
        font-size: 13px;
        line-height: 1.6;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 30px 15px;
        min-height: 220px;
    }

    .contact-card-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
    }

    .contact-card-icon i {
        font-size: 32px;
    }

    .contact-card h3 {
        font-size: 18px;
    }

    .contact-card p {
        font-size: 14px;
    }

    .portfolio-filters {
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 14px;
        padding: 8px 20px;
    }

    .portfolio-image {
        height: auto;
        min-height: 280px;
    }

    .portfolio-overlay {
        position: relative;
        opacity: 1;
        background: linear-gradient(135deg, rgba(20, 30, 48, 0.95) 0%, rgba(35, 47, 62, 0.95) 100%);
        min-height: auto;
        padding: 20px;
        overflow-y: auto;
    }

    .portfolio-info {
        padding: 20px;
        max-height: none;
        overflow-y: visible;
    }

    .portfolio-info h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .portfolio-info p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .portfolio-tags span {
        font-size: 12px;
        padding: 4px 12px;
    }

    .view-details-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    body {
        padding-bottom: 75px;
    }

    .whatsapp-btn {
        bottom: 80px;
    }

    /* Optimize sections for mobile */
    section {
        padding: 60px 0;
    }

    .contact-section,
    .services-detail-section {
        padding: 50px 0;
    }

    /* MVV section mobile optimization */
    .mvv-section {
        padding: 60px 0 40px 0;
    }

    /* Story section mobile optimization */
    .story-section {
        padding: 40px 0 60px 0;
    }

    .story-content {
        max-width: 100%;
        padding: 0 20px;
        text-align: justify;
    }

    .story-content p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 20px;
        text-align: justify;
    }

    /* Ensure last section has spacing */
    section:last-of-type {
        margin-bottom: 20px;
    }
}

/* === SMALL MOBILE VIEW (320px - 480px) === */
@media (max-width: 480px) {
    .desktop-header {
        display: none;
    }

    .mobile-header {
        display: block;
    }

    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
    }

    .footer {
        display: none !important;
    }

    /* Adjust logo and text size for small screens */
    .mobile-logo-img {
        height: 42px !important;
        width: auto;
        max-width: 42px;
        left: 52px;
        transform: translateY(-50%) scale(1.35) !important;
        transform-origin: center center;
    }

    .mobile-logo h1 {
        font-size: 16px;
    }

    .mobile-header-content {
        height: 56px;
        max-width: 100%;
    }

    /* Side menu responsive adjustments for small screens */
    .side-menu {
        width: 85%; /* Wider on small screens for better usability */
        max-width: 300px;
    }

    .side-menu-links a {
        padding: 14px 16px;
        font-size: 14px;
    }

    .side-menu-links i {
        font-size: 16px;
        width: 22px;
    }

    .hero-section {
        height: auto;
        min-height: auto;
        margin-top: 72px; /* Match mobile header height (56px content + 16px padding) */
        width: 100%;
        overflow: visible;
        padding-top: 0;
    }

    .page-header {
        margin-top: 72px;
        height: 250px;
        padding-top: 0;
    }

    /* Remove spacing between mobile header and banner image */
    .page-header .banner-container {
        margin-top: -72px;
        padding-top: 72px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }


    .page-header h1 {
        font-size: 28px;
    }
    
    /* Fix banner images cropping on small mobile screens */
    .banner-container,
    .hero-section picture,
    .page-header .banner-container {
        width: 100%;
        overflow: visible;
        margin: 0 !important;
        padding: 0 !important;
    }

    .page-banner,
    .hero-banner,
    .banner-image,
    img[class*="banner"] {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Ensure hero section banner displays properly with no spacing */
    .hero-section .hero-banner {
        position: relative;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove any line-height that might create spacing */
    .hero-section picture {
        line-height: 0;
        font-size: 0;
    }

    /* Ensure hero section itself has no extra spacing */
    .hero-section {
        line-height: 0;
    }

    .key-highlights,
    .why-choose-grid,
    .process-grid,
    .stats-grid,
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        padding: 30px 20px;
        min-height: auto;
    }

    .contact-card-icon {
        width: 65px;
        height: 65px;
        margin-bottom: 15px;
    }

    .contact-card-icon i {
        font-size: 30px;
    }

    .contact-card h3 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .contact-card p {
        font-size: 14px;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        height: 350px; /* Maintain standard height on small mobile */
    }

    /* MVV section for small mobile */
    .mvv-section {
        padding: 50px 0 30px 0;
    }

    /* Story section for small mobile */
    .story-section {
        padding: 30px 0 50px 0;
    }

    .story-content {
        padding: 0 16px;
        text-align: justify;
    }

    .story-content p {
        font-size: 14px;
        line-height: 1.75;
        margin-bottom: 18px;
        text-align: justify;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Timeline mobile fixes */
    .timeline::before {
        left: 25px !important;
    }

    .timeline-icon {
        left: 25px !important;
        transform: translateX(0) !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-bottom: 35px;
    }

    .timeline-content {
        width: calc(100% - 85px) !important;
        margin: 0 !important;
        margin-left: 65px !important;
        padding: 18px !important;
    }

    .timeline-content h3 {
        font-size: 15px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        margin-bottom: 8px !important;
        line-height: 1.4 !important;
    }

    .timeline-content p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    .nav-item span {
        font-size: 11px;
    }

    body {
        padding-bottom: 75px;
    }

    .whatsapp-btn {
        bottom: 80px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    /* Services page mobile optimizations */
    .services-detail-section {
        padding: 40px 0 30px;
    }

    .services-detail-grid {
        gap: 20px;
    }

    .service-detail-card {
        padding: 25px 20px;
    }

    .service-detail-icon {
        font-size: 42px;
        margin-bottom: 18px;
    }

    .service-detail-card h3 {
        font-size: 20px;
    }

    .service-detail-card > p {
        font-size: 14px;
    }

    .service-features li {
        font-size: 14px;
        padding: 7px 0;
    }

    /* Contact page mobile optimizations */
    .contact-section {
        padding: 40px 0 30px;
    }

    .faq-section {
        padding: 40px 0 20px;
    }

    .map-section {
        padding: 30px 0 20px;
    }
}

/* Banner component styles */
.banner {
  position: relative;
  width: 100%;
  /* Maintain stacking context for overlays if needed */
}
.banner-picture {
  display: block;
  width: 100%;
}
.banner-image {
  display: block;
  width: 100%;
  height: auto; /* maintain aspect ratio */
  object-fit: cover; /* ensure nice fill when placed in constrained containers */
}

/* Mobile-specific banner fixes for small screens */
@media (max-width: 394px) {
  .banner {
    width: 100%;
    overflow: visible;
  }

  .banner-picture {
    width: 100%;
    display: block;
  }

  .banner-image {
    width: 100%;
    height: auto;
    object-fit: contain; /* Prevent cropping on small mobile screens */
    object-position: center;
  }
}

/* === DESKTOP PAGE BANNER (Uniform size) === */
.desktop-banner-img {
    width: 1901px; /* exact width as requested */
    height: 327px; /* exact height as requested */
    display: block;
    margin: 0 auto;
    object-fit: cover;
    object-position: center;
}

/* Hide desktop banner on screens <= 1024px */
@media (max-width: 1024px) {
    .desktop-banner-img {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE PAGE BANNER STYLES (NEW)
   Picture element with desktop/tablet/mobile variants
   ======================================== */

/* Banner container wrapper */
.banner-container {
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}

/* Main page banner image - responsive and fluid */
.page-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* Hero banner variant for homepage with absolute positioning support */
.hero-banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Hero banner for mobile/tablet - use class name from HTML */
.hero-banner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

/* Hero section with banner support */
.hero-section .banner-container,
.hero-section picture {
    position: relative;
    width: 100%;
    display: block;
    z-index: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* Desktop: Use absolute positioning for full-screen hero */
@media (min-width: 1025px) {
    .hero-section .banner-container,
    .hero-section picture {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
    }

    .hero-banner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Ensure content stays above banner in hero sections */
.hero-section .hero-content,
.hero-section .scroll-indicator {
    position: relative;
    z-index: 2;
}

/* Responsive optimizations */
@media (min-width: 1025px) {
    /* Desktop: Optimize for large screens */
    .page-banner {
        max-height: 600px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet: Balance between mobile and desktop */
    .page-banner {
        max-height: 400px;
    }

    /* Tablet hero section optimization */
    .hero-section picture,
    .hero-section .hero-banner {
        line-height: 0;
        font-size: 0;
    }
}

@media (max-width: 767px) {
    /* Mobile hero section - set proper margin for fixed header */
    .hero-section {
        margin-top: 81px; /* Match mobile header height to prevent overlap */
        padding-top: 0;
        line-height: 0;
    }

    .hero-section picture,
    .hero-section .hero-banner {
        line-height: 0;
        font-size: 0;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Fix banner cropping on mobile - ensure full width display */
    .banner-container {
        width: 100%;
        overflow: visible;
        margin: 0 !important;
        padding: 0 !important;
    }}

