/* ============================================
   EASYSERV - NetWise Corporate Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Rajdhani:wght@600;700&display=swap');

:root {
    /* Palette - NetWise Tech Corporate */
    --bg-body: #ffffff;
    --bg-dark: #0B1B35;
    /* Deep Navy */
    --bg-light: #F3F4F6;
    /* Light Gray */
    --bg-surface: #ffffff;

    --primary: #0B1B35;
    /* Navy Blue - Main Brand Color */
    --secondary: #3B82F6;
    /* Bright Tech Blue - Action/Highlight */
    --accent: #FF5722;
    /* Orange - CTAs/Points of Interest */

    /* Text */
    --text-primary: #0B1B35;
    --text-secondary: #64748B;
    --text-light: #94A3B8;
    --text-inverse: #ffffff;

    /* Shadows - Structured & Sharp */
    --shadow-card: 0 0 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(11, 27, 53, 0.1);

    /* Specs */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    /* Slightly squarer than before */

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --ease-tech: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    /* Common in tech themes */
    letter-spacing: 0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s var(--ease-tech);
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Buttons - Boxy & Solid */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    /* Squarer buttons */
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s var(--ease-tech);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent);
    /* Color shift on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Section Utilities */
.section-padding {
    padding: 7rem 0;
}

.section-title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

/* Tech Underline */
.title-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

.title-wrapper .section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto 0;
}

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

/* ============================================
   NAVIGATION - Dark Corporate Header
   ============================================ */

.navbar {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand img {
    height: 45px;
    filter: brightness(0) invert(1);
    /* Force white logo */
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    height: 100%;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -28px;
    /* Align with bottom of navbar */
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    margin: 6px 0;
}

/* ============================================
   HERO SECTION - Corporate Tech
   ============================================ */

.hero {
    background-color: var(--bg-dark);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Tech Pattern Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        radial-gradient(var(--secondary) 1px, transparent 1px),
        radial-gradient(var(--secondary) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    opacity: 0.05;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1));
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #ffffff;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-logo-img {
    height: 80px;
    margin-bottom: 2rem;
    display: none;
    /* Hidden in this design, opting for text/cleaner look */
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background: #ffffff;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    z-index: 1;
}

.about-image img {
    border-radius: var(--radius-sm);
    box-shadow: 20px 20px 0 var(--bg-light);
    /* Offset block shadow */
}

.about-image::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--secondary) 2px, transparent 2px);
    background-size: 10px 10px;
    z-index: -1;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* ============================================
   PILLARS / SERVICES - Grid Layout
   ============================================ */

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

.pillar-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--ease-tech);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.pillar-card:hover::before {
    width: 100%;
}

.pillar-image {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: background-color 0.3s;
}

.pillar-card:hover .pillar-image {
    background-color: var(--secondary);
}

.pillar-card:hover .pillar-image img {
    filter: brightness(0) invert(1);
}

/* ============================================
   SOLUTIONS REDESIGN (Rubriques)
   ============================================ */

.solution-rubrique {
    padding: 7rem 0;
    overflow: hidden;
}

.rubrique-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Reverse layout for alternate sections */
.solution-rubrique:nth-child(even) .rubrique-content {
    direction: rtl;
    /* Trick to swap columns visually */
}

.solution-rubrique:nth-child(even) .rubrique-content>* {
    direction: ltr;
    /* Reset text direction */
}

.rubrique-text h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.rubrique-subtitle {
    font-size: 1.25rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    display: block;
}

.rubrique-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.rubrique-image {
    position: relative;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

/* Feature Lists */
.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.rubrique-gains {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
    border-left: 4px solid var(--secondary);
}

.rubrique-gains h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (max-width: 900px) {
    .rubrique-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .solution-rubrique:nth-child(even) .rubrique-content {
        direction: ltr;
    }

    .solution-rubrique {
        padding: 4rem 0;
    }
}

.pillar-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background-color: var(--secondary);
    background-image: linear-gradient(135deg, var(--secondary) 0%, #2563eb 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Circle Deco */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    border: 50px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-title {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #050f1e;
    /* Even darker Navy */
    color: #ffffff;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    height: 40px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.footer-contact strong {
    color: #ffffff;
}

.footer-contact a {
    color: var(--secondary);
}

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

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

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.25rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        height: auto;
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: block;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   CLIENTS MARQUEE (Carousel)
   ============================================ */
.clients-marquee-section {
    background: #ffffff;
    padding: 3rem 0;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    padding-left: 4rem;
    /* Initial offset */
}

/* Pause on hover for better UX */
.marquee-content:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 50px;
    /* Uniform height */
    width: auto;
    /* filter: grayscale(100%) opacity(0.6); Removed for full color */
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-logo:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Move by half the width (since we duplicate content) */
    }
}

/* ============================================
   FOOTER (CDMA Style)
   ============================================ */

.footer {
    background-color: #0B1B35;
    /* Deep Navy */
    color: #ffffff;
    padding: 4rem 0 0 0;
    font-size: 0.95rem;
    text-align: left;
    /* Reset alignment */
}

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

/* ============================================
   CONTACT PAGE SPECIFIC
   ============================================ */

.contact-section {
    padding: 7rem 0;
    background: var(--bg-surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

/* Info Cards (Left Side) */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    transition: all 0.3s var(--ease-tech);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary);
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.contact-card:hover .contact-card-icon {
    background: var(--secondary);
    color: #ffffff;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-card a:hover {
    color: var(--secondary);
}

.mission-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2f4d 100%);
    color: white;
    border: none;
}

.mission-card h3 {
    color: white;
}

.mission-card p {
    color: rgba(255, 255, 255, 0.8);
}

/* Form Section (Right Side) */
.contact-form-wrapper {
    background: #ffffff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid #e2e8f0;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
    background: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: #cbd5e1;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .contact-form-wrapper {
        padding: 2rem;
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-contact-info p {
    color: #CBD5E1;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.footer-contact-info a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: var(--secondary);
}

.footer-bottom {
    background-color: #050E1D;
    /* Darker shade for copyright */
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    color: #64748B;
    font-size: 0.9rem;
    margin: 0;
}