/*
 * Global styles for the MLDeep one‑pager.
 * The palette uses deep purples with lighter gradients for a modern, tech‑focused aesthetic.
 */

:root {
    --primary-color: #8255ff;
    --secondary-color: #5741d9;
    /* Background gradient colors (dark at top to slightly lighter purple at bottom) */
    --background-start: #0d0536;
    --background-end: #46248f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-light: #e4e6f1;
    --text-muted: #bab8d2;
    --footer-bg: #0a0226;
    --footer-border: rgba(255, 255, 255, 0.08);
}

/* Smooth in-page scrolls */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Futura', sans-serif;
    color: var(--text-light);
    background: linear-gradient(180deg, var(--background-start), var(--background-end));
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* Header and navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 20, 0.75);
    backdrop-filter: blur(5px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    /* display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 600;
    gap: 0.4rem;
    color: var(--primary-color); */
    gap: 0.4rem;
}

/* Logo sizing in navbar */
.logo img.logo-img {
    height: auto;
    min-width: auto;
    max-width: 150px;
    display: block;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

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

.small-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 500;
    transition: background 0.3s ease;
}

.small-btn:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero section */
.hero {
    padding-top: 8rem; /* to offset fixed header */
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

/* Icons row in hero section */
.hero-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 50px rgba(250, 250, 250, 0.3);
}

.hero-icon img {
    width: 50%;
    height: 50%;
    object-fit: contain;
    filter: invert(1);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-clip: text; /* standard property for compatibility */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    color: var(--primary-color);
}

.stat h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Sections */
section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

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

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Style for service/expertise/why card icons */
.card .icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    /* Use same gradient as hero icons to keep consistency */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 50px rgba(250, 250, 250, 0.3);
}

/* Ensure embedded SVGs scale nicely and invert color to white */
.card .icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: invert(1);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card ul li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1;
}

/* Add styling for paragraph inside card (for Why Choose cards) */
.card p {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Expertise cards share same card styles */

/* About section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1 1 350px;
    min-width: 300px;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.vision {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
}

.vision h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: #fff;
}

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

.about-stats {
    flex: 1 1 350px;
    min-width: 300px;
    display: grid;
    /* Use a fixed 2x2 grid for the statistics cards */
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

/* Circular container for statistic icons */
.icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(250, 250, 250, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7rem;
}

/* Scale and recolor embedded SVGs inside statistic circles */
.icon-circle img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: invert(1);
}

.stat-box h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.stat-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.small-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    flex: 1 1 0;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-info {
    flex: 1 1 0;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.info-item .icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 0.15rem;
}

.info-item h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.info-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Custom icons for contact section */
.info-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 50px rgba(250, 250, 250, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    /* space between icon and text */
}

.info-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: invert(1);
    /* make SVG white against the purple background */
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding-top: 3rem;
    padding-bottom: 1rem;
    color: var(--text-muted);
}

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

.footer .logo {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.8rem;
}

.footer ul {
    list-style: none;
}

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

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

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

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

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

/* Footer bottom content is centered and stacked */
.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Social icons in footer columns */
.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.footer-col.follow .social-icons a {
    color: var(--primary-color);
}

.footer-col.follow .social-icons a:hover {
    color: #fff;
}

/* Social list styles for follow column */
.footer-col.follow .social-list {
    list-style: none;
    margin-top: 0.5rem;
}

.footer-col.follow .social-list li {
    margin-bottom: 0.5rem;
}

.footer-col.follow .social-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col.follow .social-list a i {
    color: var(--primary-color);
    font-size: 1rem;
}

.footer-col.follow .social-list a:hover {
    color: var(--primary-color);
}

/* Inline icon badges for social links */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

.social-icon.linkedin {
    background-color: #0077b5;
}

.social-icon.twitter {
    background-color: #1da1f2;
}

.social-icon.github {
    background-color: #333333;
}

.social-icon.facebook {
    background-color: #1877f2;
}

/* Responsive tweaks */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .stats {
        gap: 1.5rem;
    }
    section {
        padding: 4rem 0;
    }
    .contact-wrapper {
        flex-direction: column;
    }
    .about-content {
        flex-direction: column;
    }
}

@media (min-width: 900px) {
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* perfect halves */
        gap: 3rem;
        align-items: start;
    }

    .contact-form,
    .contact-info {
        min-width: 0;
        /* prevents overflow in grid children */
    }
}