/* --- Variables & Reset --- */
:root {
    --primary-color: #0073e6;
    --secondary-color: #0A66C2;
    --text-color: #333;
    --bg-color: #fff;
    --header-bg: rgba(255, 255, 255, 0.95);
    --border-color: #ddd;
    --transition-speed: 0.3s;
    --font-family: Verdana, sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul li a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

nav ul li a:hover {
    color: var(--primary-color);
    background: rgba(0, 115, 230, 0.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all var(--transition-speed);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform var(--transition-speed) ease-in-out;
        z-index: 999;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    nav ul.show {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }
}

/* --- Hero Section --- */
.slider {
    position: relative;
    height: 80vh;
    /* Fallback */
    height: 80dvh;
    overflow: hidden;
    margin-top: 70px;
}

.hero {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero.active {
    opacity: 1;
    z-index: 1;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%);
    z-index: -1;
}

.hero-text {
    position: relative;
    color: white;
    padding: 20px;
    max-width: 800px;
    z-index: 2;
}

.hero-text h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .slider {
        height: 60vh;
        height: 60dvh;
    }
}

/* --- Logo Slider --- */
.logo-slider {
    overflow: hidden;
    background-color: #fff;
    padding: 40px 0;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Base gap */
    animation: scroll 30s linear infinite;
    width: max-content;
}

.logo-track img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-speed);
}

.logo-track img:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


@media (max-width: 600px) {
    .logo-track {
        gap: 30px;
        animation-duration: 20s;
    }

    .logo-track img {
        height: 40px;
    }
}

/* --- Footer --- */
footer {
    background: #111;
    color: #eee;
    padding: 40px 20px;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    /* Center alignment */
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 30px;
}

footer img {
    width: 150px;
    border-radius: 8px;
    background: white;
    /* Make logo pop on dark bg */
    padding: 5px;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    transition: background var(--transition-speed);
}

.social a:hover {
    background: #004d99;
}

.note {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 768px) {
    footer .container {
        flex-direction: column;
        text-align: center;
    }
}

/* --- About Us Page --- */
#about-us {
    position: relative;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: 70px;
    background: url('vision2.jpg') no-repeat center center/cover;
}

#about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

#about-us>div {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

#about-us h2 {
    font-size: clamp(2rem, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
}

#about-us p {
    font-size: clamp(1rem, 2.5vw, 20px);
    font-weight: 600;
    line-height: 1.7;
    color: #fff;
}

/* Leadership Section */
#about-us-leadership {
    background-color: #d4dff3;
    padding: 80px 20px;
    text-align: center;
}

#about-us-leadership h2 {
    font-size: clamp(2rem, 5vw, 42px);
    font-weight: 700;
    color: #000;
}

#about-us-leadership p.intro {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    margin: 30px auto 50px;
    color: black;
    max-width: 900px;
}

.leaders-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    /* Reduced from 140px for better fit on smaller screens */
}

.leader {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 220px;
}

.leader img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.leader a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* --- Services & Partners Common --- */
.content-section {
    background-color: #d4dff3;
    padding: 60px 20px;
    margin-top: 70px;
    /* Offset for fixed header */
}

.t-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.text-col {
    flex: 1;
    min-width: 300px;
    color: #000;
}

.img-col {
    flex: 1;
    min-width: 300px;
    text-align: right;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.img-col img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: clamp(2rem, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-weight: 400;
    line-height: 1.6;
    font-size: 18px;
    margin-bottom: 30px;
}

.service-list {
    list-style: none;
    padding-left: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 2.2;
}

.partner-item {
    margin-bottom: 30px;
}

.partner-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.partner-item p {
    font-size: 16px;
    line-height: 1.6;
}

/* --- Case Studies --- */
#case-studies {
    background-color: #d4dff3;
    padding: 60px 20px;
    margin-top: 70px;
    min-height: 80vh;
}

.case-study-tiles {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
    justify-content: center;
}

.tile {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    min-height: 250px;
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
}

.tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.tile h3 {
    font-size: 24px;
    margin: 0;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.tile-digital {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}

.tile-data {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.tile-cloud {
    background: linear-gradient(135deg, #134E5E 0%, #71B280 100%);
}

/* Case Study Detail Pages */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    animation: fadeIn 0.8s ease-out;
}

.case-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: white;
    padding: 20px;
}

.card-header h4 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.industry-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.description {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tech-pill {
    background: #f0f4f8;
    color: #334e68;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #bcccdc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Contact Page --- */
/* ---------- CONTACT SECTION (User Preference) ---------- */
#contact {
    background-color: #d4dff3;
    padding: 60px 20px;
    margin-top: 80px;
    text-align: center;
    min-height: 80vh;
}

.contact-wide-container {
    max-width: 1500px;
    margin: 0 auto;
    text-align: center;
}

#contact img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

#contact h2 {
    font-size: 36px;
    font-weight: 700;
    margin-top: 30px;
    color: #000;
}

#contact p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
    color: #000;
}

.contact-details-box {
    text-align: center;
    margin-top: 20px;
}

.contact-details-text {
    font-size: 18px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-email-link:hover {
    color: var(--primary-color);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #333;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
}

/* --- Mobile Responsive Queries (Global) --- */
@media (max-width: 768px) {

    /* Header */
    header .nav-container {
        padding: 5px 15px;
    }

    /* Hero/Slider */
    .slider {
        height: 60dvh;
        margin-top: 60px;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    /* Content Layouts */
    .t-container,
    .case-study-tiles,
    .leaders-grid {
        flex-direction: column;
        align-items: center;
    }

    .text-col,
    .img-col {
        width: 100%;
        text-align: left;
    }

    .img-col {
        margin-top: 20px;
        order: -1;
        /* Show image first on mobile usually looks better, user can adjust */
    }

    .section-title {
        font-size: 28px;
    }

    /* Footer */
    footer .container {
        flex-direction: column;
        text-align: center;
    }

    /* Contact */
    #contact-container {
        padding: 20px;
    }
}