/* ==========================================================================
   CSS Variables & Tokens - Light/Grounded Theme
   ========================================================================== */
:root {
    /* Colors - Mature Corporate Palette */
    --bg-main: #ffffff;
    --bg-secondary: #f8f9fa;
    /* Soft slate-grey for alternating sections */
    --bg-card: #ffffff;

    --primary-color: #3D7377;
    /* Muted Teal from Logo */
    --primary-hover: #2d5659;
    --secondary-color: #DDAF5B;
    /* Mustard Gold from Logo */
    --secondary-hover: #bf954a;

    --text-heading: #1e2b3c;
    /* Deep slate for maximum legibility & maturity */
    --text-body: #4a5568;
    /* Readable comfortable grey */
    --text-light: #718096;

    --border-color: #e2e8f0;
    --border-accent: rgba(61, 115, 119, 0.2);

    /* Box shadows for grounded, realistic feel */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 3rem;
}

section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

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

::selection {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

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

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

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

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

.logo img {
    height: 85px;
    width: auto;
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-heading);
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* --- Mobile Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    z-index: 1100;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger -> X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

/* ==========================================================================
   Hero Section & Slideshow
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 130px;
    overflow: hidden;
}

/* Slideshow background */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 43, 60, 0.88) 0%, rgba(61, 115, 119, 0.7) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 750px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(221, 175, 91, 0.2);
    color: var(--secondary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(221, 175, 91, 0.4);
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.8rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.hero-title span {
    color: var(--secondary-color);
}

/* Hide the hard <br> on smaller screens via CSS */
.hero-title br {
    content: '';
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-actions .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--secondary-color);
    margin-bottom: 0.2rem;
}

.stat-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(61, 115, 119, 0.1);
    /* Light teal bg */
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.service-card h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.service-list {
    margin-top: 1rem;
}

.service-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-list li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ==========================================================================
   Industries Visual Strip
   ========================================================================== */
.industries-strip {
    background: var(--text-heading);
    padding: clamp(3rem, 5vw, 5rem) 0;
    overflow: hidden;
}

.industries-strip .section-title::after {
    background-color: var(--secondary-color);
}

.industries-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.industry-card {
    position: relative;
    height: clamp(160px, 18vw, 220px);
    border-radius: 12px;
    overflow: hidden;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.industry-card:hover img {
    transform: scale(1.08);
}

.industry-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.6s ease;
}

.about-image:hover .about-img {
    transform: scale(1.03);
}

.highlight-box {
    background: rgba(221, 175, 91, 0.05);
    /* very light gold */
    border-left: 4px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-heading);
}

/* ==========================================================================
   Select Projects Timeline
   ========================================================================== */
.projects-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.project-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.8rem;
    transition: var(--transition);
}

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

.project-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
}

.project-tag.overseas {
    background: rgba(61, 115, 119, 0.12);
    color: var(--primary-color);
}

.project-tag.india {
    background: rgba(221, 175, 91, 0.15);
    color: #b8963e;
}

.project-item h3 {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}

.project-item p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ==========================================================================
   Insights / Blog Section
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    height: clamp(150px, 18vw, 200px);
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    margin-bottom: 0.8rem;
    color: var(--text-heading);
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.blog-author {
    font-weight: 600;
    color: var(--primary-color);
}

.blog-cta {
    border: 2px dashed var(--border-color);
    background: transparent;
}

/* ==========================================================================
   Footer — Responsive grid
   ========================================================================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card animations */
.services-grid.visible .service-card:nth-child(1) {
    transition-delay: 0s;
}

.services-grid.visible .service-card:nth-child(2) {
    transition-delay: 0.15s;
}

.services-grid.visible .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid.visible .service-card:nth-child(4) {
    transition-delay: 0.45s;
}

.services-grid .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.services-grid.visible .service-card {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Micro-Interactions & Polish
   ========================================================================== */

/* Subtle nav link underline animation */
.nav-links a:not(.btn) {
    position: relative;
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Badge subtle pulse */
.badge {
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(221, 175, 91, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(221, 175, 91, 0);
    }
}

/* Highlight box left-border glow */
.highlight-box {
    transition: border-color 0.3s ease, background 0.3s ease;
}

.highlight-box:hover {
    border-left-color: var(--primary-color);
    background: rgba(61, 115, 119, 0.05);
}

/* Button ripple-like focus */
.btn:active {
    transform: translateY(0) scale(0.98);
}

/* Stat numbers subtle color shift on hover */
.stat-item:hover .stat-number {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

/* Footer link hover */
footer p:hover {
    color: #e2e8f0;
    transition: color 0.3s ease;
}

/* ==========================================================================
   Responsive — Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a:not(.btn) {
        font-size: 0.88rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-stats {
        gap: 1.5rem 3rem;
    }

    .industries-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .industry-card {
        height: 200px;
    }
}

/* ==========================================================================
   Responsive — Mobile Nav & Layout (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Mobile nav drawer */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 1.05rem !important;
    }

    .nav-links a.btn {
        text-align: center;
        width: 100%;
    }

    /* Show overlay when menu is open */
    .mobile-menu-overlay.active {
        display: block;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(1.7rem, 5vw, 2.2rem);
    }

    /* Hide hard line break on mobile */
    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-stats {
        gap: 1.5rem 2rem;
    }

    .hero-actions {
        margin-bottom: 2.5rem;
    }

    /* Logo shrink */
    .logo img {
        height: 60px;
    }

    /* Grids go single column */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-timeline {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Industries — 2-column on tablets */
    .industries-gallery {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }

    .industry-card {
        height: 180px;
    }

    /* Footer single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Section padding reduction */
    section {
        padding: clamp(2.5rem, 5vw, 4rem) 0;
    }

    .service-card {
        padding: 1.8rem;
    }
}

/* ==========================================================================
   Responsive — Small Mobile (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }

    .industries-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .industry-card {
        height: 180px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .project-item {
        padding: 1.3rem;
    }

    .blog-content {
        padding: 1.2rem;
    }

    .highlight-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}

/* ==========================================================================
   Ambient Edge Glow — Premium page border lighting effect
   ========================================================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow:
        inset 6px 0 25px rgba(61, 115, 119, 0.45),
        inset -6px 0 25px rgba(61, 115, 119, 0.45),
        inset 0 4px 18px rgba(221, 175, 91, 0.2),
        inset 0 -4px 18px rgba(221, 175, 91, 0.2);
}

@media (max-width: 768px) {
    body::before {
        box-shadow:
            inset 8px 0 30px rgba(61, 115, 119, 0.55),
            inset -8px 0 30px rgba(61, 115, 119, 0.55),
            inset 0 5px 20px rgba(221, 175, 91, 0.25),
            inset 0 -5px 20px rgba(221, 175, 91, 0.25);
    }
}