/* ============================================
   IGCONFIDENCE - Projects Page Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    --primary-blue: #0A192F;
    --secondary-blue: #112240;
    --accent-yellow: #FFCC00;
    --text-white: #FFFFFF;
    --text-light-gray: #CCD6F6;
    --text-muted: #8892B0;
    --text-dark: #0A192F;
    --bg-light: #F7F9FC;
    --bg-white: #FFFFFF;
    --border-light: #EAECEF;
    --transition-speed: 0.3s;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    gap: 8px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.btn .arrow {
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--text-dark);
    border: 1.5px solid var(--text-dark);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.85rem 2rem;
}

.btn-outline-dark:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-color: var(--primary-blue);
}

/* ============================================
   HEADER / NAVBAR (From Services)
   ============================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--text-white);
    padding: 1.2rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: -25px;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    margin-left: auto;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 1rem 1.8rem;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-cta:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* Mobile Menu Elements (Hidden on Desktop) */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ============================================
   HERO SECTION (From Services)
   ============================================ */
.hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 4rem 5%;
    overflow: hidden;
    background-color: var(--primary-blue);
}

/* Simulated powerlines background overlay */
.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(90deg, var(--primary-blue) 30%, rgba(10, 25, 47, 0.6) 100%),
        url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Left Text Content --- */
.hero-text {
    max-width: 600px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb i {
    font-size: 0.7rem;
}

.breadcrumb .current {
    color: var(--accent-yellow);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent-yellow);
    text-underline-offset: 4px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

.main-title .highlight {
    color: var(--accent-yellow);
}

.subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-light-gray);
}

/* --- Center Engineer Image --- */
.engineer-img {
    position: absolute;
    bottom: -4rem;
    left: 58%;
    transform: translateX(-50%);
    height: 85%;
    object-fit: contain;
    z-index: 5;
    pointer-events: none;
    right: 300px;
}

/* --- Right Stats Panel --- */
.hero-stats {
    background-color: rgba(17, 34, 64, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    min-width: 280px;
}

.hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.hero-stats .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 204, 0, 0.4);
    border-radius: 8px;
    color: var(--accent-yellow);
    font-size: 1.2rem;
}

.stat-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.stat-info p {
    font-size: 0.8rem;
    color: var(--text-light-gray);
    line-height: 1.3;
}

/* ============================================
   PROJECTS SHOWCASE SECTION
   ============================================ */
.projects-showcase-section {
    background-color: #FFFFFF;
    padding: 5rem 5% 6rem;
    text-align: center;
}

.section-intro-container {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tagline {
    display: block;
    color: #004B93;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-display-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #0A192F;
    margin-bottom: 1.2rem;
}

.section-explain-text {
    color: #556275;
    font-size: 0.95rem;
    line-height: 1.6;
}

.section-title-underline {
    width: 40px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
    margin: 0.8rem auto 1.2rem auto;
}

/* Vertical Project Cards Grid */
.projects-display-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-showcase-card {
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(10, 25, 47, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.project-showcase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10, 25, 47, 0.15);
}

.project-card-image {
    flex: 0 0 46%;
    align-self: stretch;
    display: block;
    object-fit: cover;
    object-position: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border: none;
    background-color: #FFFFFF;
}

.project-card-content {
    padding: 1.5rem 2rem;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Project card icon + title row (mirrors homepage feat-projects-section) */
.project-card-content .service-heading-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    flex-wrap: nowrap;
}

.project-card-content .service-heading-row .project-card-title {
    margin-bottom: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.spec-card-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #FFFBE6;
    border: 1.5px solid #FFCC00;
    color: #FFCC00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spec-card-icon-box svg {
    width: 22px;
    height: 22px;
}

.project-card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.project-card-subtitle {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.project-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.project-card-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.project-card-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-size: 1.5rem;
    line-height: 1;
}

/* Project Image Carousel */
.project-image-carousel {
    display: flex;
    flex-direction: column;
    overflow: visible;
    background-color: #FFFFFF;
}

.project-carousel-viewport {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 200px;
    overflow: hidden;
    background-color: #F7F9FC;
}

.project-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1200ms ease-in-out;
    pointer-events: none;
}

.project-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.project-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 34px;
    padding: 9px 0 10px;
    background-color: #FFFFFF;
}

.project-carousel-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(10, 25, 47, 0.22);
    cursor: pointer;
    padding: 0;
    transition: width 250ms ease, background-color 250ms ease, transform 250ms ease;
}

.project-carousel-dot.active,
.project-carousel-dot:hover,
.project-carousel-dot:focus-visible {
    background-color: #FFCC00;
}

.project-carousel-dot.active {
    width: 22px;
    border-radius: 999px;
}

.project-carousel-dot:focus-visible {
    outline: 2px solid #0A192F;
    outline-offset: 3px;
}

/* Project Carousel Arrows */
.project-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background-color: rgba(255, 204, 0, 0.95);
    border: 2px solid #0A192F;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
    padding: 0;
}

.project-carousel-arrow:hover,
.project-carousel-arrow:active {
    background-color: #FFCC00;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.project-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.project-carousel-arrow svg {
    width: 22px;
    height: 22px;
    color: #0A192F;
    stroke-width: 2.5;
}

.project-carousel-arrow-prev {
    left: 12px;
}

.project-carousel-arrow-next {
    right: 12px;
}

/* Ensure carousel flexes like the original image in the project card */
.project-showcase-card .project-image-carousel {
    flex: 0 0 46%;
    align-self: stretch;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    background-color: #FFFFFF;
}

/* Responsive: stack carousel and content on small screens */
@media (max-width: 768px) {
    .project-showcase-card .project-image-carousel {
        flex: 0 0 auto;
        width: 100%;
        height: 260px;
        margin: 0;
        padding: 0;
        border-radius: 12px 12px 0 0;
    }

    .project-showcase-card .project-image-carousel .project-carousel-viewport {
        min-height: auto;
    }

    .project-carousel-arrow {
        width: 38px;
        height: 38px;
    }

    .project-carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .project-carousel-arrow-prev {
        left: 8px;
    }

    .project-carousel-arrow-next {
        right: 8px;
    }
}

/* ============================================
   TRUST SECTION (Preserved)
   ============================================ */
.trust-section {
    background-color: var(--bg-light);
    padding: 4rem 5% 5rem 5%;
}

.trust-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.trust-subtitle {
    color: #0056B3;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.trust-title {
    color: var(--text-dark);
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.trust-highlight {
    color: var(--primary-blue);
}

.trust-underline {
    width: 40px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
    margin: 0.8rem auto 2.5rem auto;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon {
    width: 50px;
    height: 50px;
    border: 1.5px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 22px;
    height: 22px;
}

.trust-item-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.trust-item-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    max-width: 180px;
}

/* ============================================
   CTA SECTION (From Services - mind-cta-section)
   ============================================ */
.mind-cta-section {
    background-color: var(--secondary-blue);
    padding: 3.5rem 5%;
    position: relative;
    overflow: hidden;
}

.mind-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?ixlib=rb-4.0.3&auto=format&fit=crop&w=400&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
}

.mind-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.mind-cta-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.mind-icon-halo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-yellow);
    flex-shrink: 0;
}

.mind-text-block {
    display: flex;
    flex-direction: column;
}

.mind-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.4rem;
}

.mind-subtitle {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   FOOTER (From Services)
   ============================================ */

/* --- Footer CTA Banner --- */
.footer-cta-wrapper {
    background-color: var(--secondary-blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-content-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 750px;
}

.cta-icon-ring {
    width: 65px;
    height: 65px;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cta-icon-ring svg {
    width: 30px;
    height: 30px;
}

.cta-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.cta-subtext {
    color: var(--text-light-gray);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.cta-button {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 1rem 1.8rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.cta-button svg {
    width: 18px;
    height: 18px;
}

.cta-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

/* --- Main Footer Content --- */
.site-footer {
    background-color: var(--primary-blue);
    color: var(--text-white);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 4%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-col-title {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: var(--text-light-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-yellow);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.footer-logo .logo-icon {
    width: 28px;
    height: 28px;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-title {
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1.1;
}

.footer-logo .logo-subtitle {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-desc {
    color: var(--text-light-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-circle {
    width: 36px;
    height: 36px;
    background-color: var(--text-white);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-circle svg {
    width: 18px;
    height: 18px;
}

.social-circle:hover {
    background-color: var(--accent-yellow);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-light-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-list a {
    color: var(--text-light-gray);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-list a:hover {
    color: var(--accent-yellow);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-yellow);
    flex-shrink: 0;
    margin-top: 2px;
}


.legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: var(--text-white);
}

.separator {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Portrait layout */
@media screen and (orientation: portrait) {
    .main-title {
        font-size: 3.5rem;
    }

    .engineer-img {
        left: 55%;
        height: 75%;
    }

    .hero-stats {
        padding: 2rem;
        min-width: 240px;
    }

    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

/* Portrait layout refinements */
@media screen and (orientation: portrait) {
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }
}

/* Portrait compact layout */
@media screen and (orientation: portrait) {
    .hero {
        padding-top: 3rem;
        padding-bottom: 3rem;
        min-height: auto;
    }

    .hero-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .engineer-img {
        display: none;
    }

    .hero-stats {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        border-left: none;
        border-top: 2px solid var(--accent-yellow);
    }

    .hero-stats .stat-item {
        flex: 1 1 45%;
        border-bottom: none;
        padding-bottom: 0;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .mind-cta-container {
        flex-direction: column;
        text-align: center;
    }

    .mind-cta-left {
        flex-direction: column;
    }
}

/* Portrait mobile layout */
@media screen and (orientation: portrait) {
    .hamburger {
        display: block;
        position: relative;
        width: 26px;
        height: 18px;
        cursor: pointer;
        align-self: center;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 7.5px;
    }

    .hamburger span:nth-child(3) {
        top: 15px;
    }

    #menu-toggle:checked~.hamburger span:nth-child(1) {
        top: 7.5px;
        transform: rotate(45deg);
    }

    #menu-toggle:checked~.hamburger span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle:checked~.hamburger span:nth-child(3) {
        top: 7.5px;
        transform: rotate(-45deg);
    }

    .btn-cta {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-white);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 100;
        gap: 0;
    }

    .nav-links a {
        padding: 0.6rem 5%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links a.active {
        border-bottom: 1px solid #f3f4f6;
        color: var(--accent-yellow);
        background-color: #fafafa;
    }

    #menu-toggle:checked~.nav-links {
        max-height: 340px;
    }

    .hero {
        padding: 6.5rem 5% 3rem 5%;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .section-display-title {
        font-size: 1.6rem;
    }


    .trust-section {
        background: #F6F8FB;
        padding: 0 12px 22px;
    }

    .trust-container {
        max-width: 1280px;
    }

    .trust-subtitle {
        display: none;
    }

    .trust-title {
        position: relative;
        max-width: 310px;
        margin: 0 auto;
        padding-bottom: 14px;
        color: var(--primary-blue);
        font-family: var(--font-heading);
        font-size: 20px;
        font-weight: 800;
        line-height: 1.35;
        letter-spacing: -0.4px;
    }

    .trust-title::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 28px;
        height: 2px;
        background: var(--accent-yellow);
        transform: translateX(-50%);
    }

    .trust-underline {
        display: none;
    }

    .trust-grid {
        display: block;
        grid-template-columns: none;
        gap: 0;
        margin-top: 10px;
        padding: 0 12px;
        background: var(--bg-white);
        border: 1px solid #E9EEF5;
        border-radius: 6px;
        box-shadow: 0 8px 26px rgba(10, 25, 47, 0.06);
        overflow: hidden;
    }

    .trust-item {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 16px;
        align-items: flex-start;
        text-align: left;
        padding: 17px 0;
        border-bottom: 1px solid #E8EDF3;
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    .trust-icon {
        grid-row: 1 / span 2;
        width: 38px;
        height: 38px;
        margin: 2px 0 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .trust-icon svg {
        width: 34px;
        height: 34px;
        color: var(--primary-blue);
        stroke: var(--primary-blue);
    }

    .trust-item-title {
        grid-column: 2;
        margin-bottom: 7px;
        color: var(--primary-blue);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
    }

    .trust-item-desc {
        grid-column: 2;
        max-width: none;
        color: var(--primary-blue);
        font-size: 12px;
        line-height: 1.75;
    }

    .mind-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .mind-cta-left {
        flex-direction: column;
    }

    .mind-title {
        font-size: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-col:nth-child(1) {
        order: 1;
    }

    .footer-col:nth-child(4) {
        order: 2;
    }

    .footer-col:nth-child(2) {
        order: 3;
    }

    .footer-col:nth-child(3) {
        order: 4;
    }

}

/* Portrait narrow-content refinements */
@media screen and (orientation: portrait) {
    .navbar {
        padding: 0.8rem 4%;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-stats .stat-item {
        padding-bottom: 1.5rem;
    }

    .trust-grid {
        grid-template-columns: none;
    }

    .mind-title {
        font-size: 1.2rem;
    }

    .mind-subtitle {
        font-size: 0.85rem;
    }
}

/* =========================================================
   ORIENTATION-FIRST RESPONSIVE SYSTEM
   Portrait = mobile layout. Landscape = desktop layout.
   Width is used only for fluid scaling/overflow protection.
   ========================================================= */
html {
    --page-gutter: clamp(1rem, 4vw, 5rem);
    --section-gap: clamp(2.5rem, 6vmin, 6rem);
}

*,
*::before,
*::after {
    min-width: 0;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

.hero-container,
.hero-content,
.hero-text,
.hero-visuals,
.about-container,
.about-details-grid,
.projects-display-grid,
.contact-content-grid,
.certs-grid,
.footer-grid {
    min-width: 0;
}

.main-title,
.section-title,
.section-main-heading,
.hero-title,
.contact-title {
    overflow-wrap: anywhere;
}

@media screen and (orientation: landscape) {
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .hamburger {
        display: none !important;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .nav-links a {
        border-bottom: 0;
    }

    .btn-cta {
        display: flex;
    }
}

@media screen and (orientation: portrait) {
    .navbar {
        padding: 1rem 5%;
    }

    .hamburger {
        display: block;
    }

    .btn-cta {
        display: none;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--text-white, #fff);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 60;
        gap: 0;
    }

    .nav-links a {
        padding: 0.6rem 5%;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-links a.active {
        border-bottom: 1px solid #f3f4f6;
        color: var(--accent-yellow, #ffcc00);
        background-color: #fafafa;
    }

    #menu-toggle:checked~.nav-links {
        max-height: 340px;
    }

    .button-group,
    .footer-cta-container,
    .cta-content-left,
    .mind-cta-container,
    .mind-cta-left {
        flex-direction: column;
    }

    .footer-cta-container {
        text-align: center;
    }

    .cta-heading {
        font-size: 1.3rem;
    }

    .cta-subtext {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    .button-group .btn {
        width: 100%;
    }

    .project-showcase-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        overflow: hidden;
    }

    .project-card-image {
        width: 100%;
        height: 260px;
        object-fit: cover;
        object-position: center;
        margin: 0;
        padding: 0;
        border: none;
        background-color: #FFFFFF;
    }

    .project-card-content {
        padding: 1.5rem;
        width: 100%;
    }

    .project-card-title {
        font-size: 1.05rem;
        margin-bottom: 0.8rem;
    }

    .project-card-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .project-card-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .project-card-list {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .project-card-list li {
        margin-bottom: 0.6rem;
    }

    .project-card-list li::before {
        font-size: 1.2rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.whatsapp-float img {
    width: 56px;
    height: 56px;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.whatsapp-float .whatsapp-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: #fff;
    color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-float.whatsapp-hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float img {
        width: 48px;
        height: 48px;
    }
}