/* ==========================================================
   Happy Sad Mi
   Global Styles
========================================================== */

/* ===========================
   CSS VARIABLES
=========================== */

:root {

    /* Colors */

    --primary: #192a5d;
    --primary-light: #2c3b67;
    --secondary: #3B82F6;
    --accent: #10B981;

    /* --secondary is a decorative brand blue and only reaches ~3.7:1 on
       white, which fails WCAG AA for text. Use this darker variant for
       any text or icon that needs to be readable on a light surface. */
    --secondary-text: #2563EB;

    --dark: #0F172A;

    --light: #F8FAFC;
    --white: #FFFFFF;

    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-500: #64748B;
    --gray-700: #334155;

    /* Typography */

    --heading-font: "Poppins", sans-serif;
    --body-font: "Inter", sans-serif;

    /* Spacing */

    --section-padding: 100px;

    /* Radius */

    --radius: 14px;

    /* Shadows */

    --shadow-sm: 0 4px 12px rgba(0,0,0,.08);

    --shadow:

        0 15px 40px rgba(0,0,0,.08);

    --transition:

        all .3s ease;

}

/* ===========================
   RESET
=========================== */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

/* ==========================================================
   CONSENT BANNER
   ========================================================== */

.consent-banner{

    position:fixed;

    left:0;

    right:0;

    bottom:0;

    z-index:10000;

    background:var(--dark);

    color:var(--gray-300);

    box-shadow:0 -12px 40px rgba(0,0,0,.28);

    transform:translateY(100%);

    transition:transform .35s ease;

    /* Safety net for short/landscape viewports: never let the banner
       cover the whole screen, and let it scroll if it has to. */
    max-height:85vh;

    max-height:85dvh;

    overflow-y:auto;

    overscroll-behavior:contain;

}

.consent-banner.show{

    transform:translateY(0);

}

.consent-inner{

    width:min(1200px,92%);

    margin-inline:auto;

    padding:26px 0;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:28px;

    flex-wrap:wrap;

}

.consent-copy{

    flex:1 1 460px;

    min-width:0;

}

.consent-copy h2{

    font-size:1.15rem;

    margin-bottom:8px;

    color:var(--white);

}

.consent-copy p{

    margin:0;

    font-size:.95rem;

    line-height:1.6;

    color:var(--gray-300);

}

.consent-copy a{

    color:var(--secondary);

    font-weight:600;

    text-decoration:underline;

}

.consent-copy a:hover{

    color:var(--white);

}

.consent-actions{

    display:flex;

    gap:14px;

    flex-wrap:wrap;

}

.consent-actions .btn{

    white-space:nowrap;

}

/* The banner is dark, so the default navy primary would disappear into
   it. Invert both buttons here to keep them clearly distinguishable. */

.consent-actions .btn-primary{

    background:var(--white);

    color:var(--primary);

}

.consent-actions .btn-primary:hover{

    background:var(--gray-200);

    color:var(--primary);

    transform:translateY(-2px);

}

.consent-actions .btn-secondary{

    background:transparent;

    color:var(--white);

    box-shadow:inset 0 0 0 1px var(--gray-500);

}

.consent-actions .btn-secondary:hover{

    background:rgba(255,255,255,.1);

    color:var(--white);

    transform:translateY(-2px);

}

@media (max-width:768px){

    .consent-inner{

        padding:22px 0;

        flex-direction:column;

        align-items:stretch;

        gap:18px;

    }

    /* flex-basis resolves against the MAIN axis. Once .consent-inner
       flips to column, the 460px basis above becomes a 460px HEIGHT,
       which stretched the banner to ~77% of a phone screen and pushed
       the buttons to the bottom. Reset it for the column layout. */

    .consent-copy{

        flex:0 0 auto;

    }

    .consent-actions{

        display:grid;

        grid-template-columns:1fr 1fr;

    }

}

/* ==========================================================
   NOSCRIPT
   ========================================================== */

.noscript-banner{

    padding:16px 24px;

    background:var(--gray-100);

    border-bottom:1px solid var(--gray-200);

    color:var(--gray-700);

    text-align:center;

    font-size:.95rem;

}

.noscript-banner p{

    margin:0;

    color:inherit;

}

.noscript-banner a{

    color:var(--secondary);

    font-weight:600;

    text-decoration:underline;

}

body{

    font-family:var(--body-font);

    color:var(--gray-700);

    background:var(--white);

    line-height:1.7;

}

img{

    display:block;

    width:100%;

}

a{

    text-decoration:none;

    color:inherit;

}

ul{

    list-style:none;

}

button{

    border:none;

    cursor:pointer;

    font-family:inherit;

}

input,
textarea{

    font-family:inherit;

}

/* ==========================================================
   ACCESSIBILITY PRIMITIVES
   ========================================================== */

/* Visible keyboard focus for every interactive element.
   :focus-visible keeps the ring off mouse clicks. */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{

    outline:3px solid var(--secondary);

    outline-offset:3px;

    border-radius:4px;

}

/* Available to screen readers, invisible on screen. Used for
   form labels, section landmarks and icon-only button names. */

.visually-hidden{

    position:absolute;

    width:1px;

    height:1px;

    padding:0;

    margin:-1px;

    overflow:hidden;

    clip:rect(0 0 0 0);

    clip-path:inset(50%);

    white-space:nowrap;

    border:0;

}

/* ===========================
   CONTAINER
=========================== */

.container{

    width:min(1200px,92%);

    margin:auto;

}

/* ===========================
   TYPOGRAPHY
=========================== */

h1,h2,h3,h4{

    font-family:var(--heading-font);

    color:var(--dark);

    line-height:1.2;

}

h1{

    font-size:clamp(2.5rem,5vw,4.5rem);

}

h2{

    font-size:clamp(2rem,4vw,3rem);

}

h3{

    font-size:1.4rem;

}

p{

    color:var(--gray-500);

}

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

.section{

    padding:var(--section-padding) 0;

}

.section-alt{

    background:var(--gray-100);

}

.section-title{

    text-align:center;

    margin-bottom:30px;

}

.hero-image{
    animation:float 6s ease-in-out infinite;
}

.bg_img{

    width:100%;

    display:block;

    aspect-ratio:1/1;

    object-fit:cover;

    object-position:center 28%;

    background:var(--white);

    border-radius:20px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:transform .4s ease, box-shadow .4s ease;

}

.bg_img:hover{

    transform:translateY(-4px);

    box-shadow:0 18px 40px rgba(0,0,0,.15);

}
.section-title span{

    color:var(--secondary-text);

    font-weight:700;

    letter-spacing:2px;

    font-size:.9rem;

}

.section-title h2{

    margin:15px 0;

}

.section-title p{

    max-width:650px;

    margin:auto;

}

/* ===========================
   BUTTONS
=========================== */

.btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:15px 30px;

    border-radius:50px;

    transition:var(--transition);

    font-weight:600;

}

.btn-primary{

    background:var(--primary);

    color:white;

}

.btn-primary:hover{

    background:var(--primary-light);

    transform:translateY(-3px);

}

.btn-secondary{

  background:var(--light);

  color:black;

}

.btn-secondary:hover{

    background:var(--gray-200);

    transform:translateY(-3px);
    color:black;

}

/* ===========================
   HEADER
=========================== */

.skip-link{

    position:absolute;

    top:-100px;

    left:16px;

    z-index:2000;

    padding:14px 22px;

    border-radius:0 0 var(--radius) var(--radius);

    background:var(--primary);

    color:var(--white);

    font-weight:600;

    transition:top .25s ease;

}

.skip-link:focus{

    top:0;

}

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    z-index:999;

    background:rgba(255,255,255,.92);

    backdrop-filter:blur(14px);

    box-shadow:var(--shadow-sm);

}

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    height:80px;

}

.logo{

    font-family:var(--heading-font);

    font-size:1.8rem;

    font-weight:700;

    color:var(--primary);

}

.logo span{

    color:var(--secondary);

}

.nav-links{

    display:flex;

    gap:35px;

}

.nav-links a{

    display:flex;

    align-items:center;

    min-height:44px;

    transition:var(--transition);

    font-weight:500;

}

.nav-links a:hover{

    color:var(--secondary);

}

/* Between 769px and ~1000px the full 8-item nav no longer fits beside the
   logo and the last links get clipped by the fixed header (the header is
   position:fixed, so this never shows up as a page scrollbar -- the links
   are simply unreachable). Tighten spacing rather than dropping to the
   hamburger this early, so tablets still get the desktop nav. */

@media (max-width:1024px){

    .nav-links{

        gap:22px;

    }

    .logo{

        font-size:1.5rem;

    }

}

@media (max-width:880px){

    .nav-links{

        gap:15px;

    }

    .nav-links a{

        font-size:.9rem;

    }

    .logo{

        font-size:1.35rem;

    }

}

.menu-btn{

    display:none;

    background:none;

    font-size:1.5rem;

}

/* ===========================
   HERO
=========================== */

.hero {
    padding-top: 140px;
    padding-bottom: 100px;

    --hero-overlay:

        linear-gradient(

            color-mix(in srgb, var(--primary) 78%, transparent),

            color-mix(in srgb, #275D84 78%, transparent),

            color-mix(in srgb, var(--secondary) 78%, transparent)

        );

    background:

        var(--hero-overlay),

        url("../images/team/bg-1.webp") center / cover no-repeat;

    color: white;
}

.hero-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:70px;

    align-items:center;

}

.hero h1{

    color:white;

    margin:20px 0;

}

.hero h1 span{

    display:block;

    color:#A5F3FC;

}

.hero p{

    color:rgba(255,255,255,.9);

}

.badge{

    display:inline-block;

    background:rgba(255,255,255,.15);

    padding:10px 18px;

    border-radius:30px;

    font-size:.9rem;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin:35px 0;

}

.hero-stats{

    display:flex;

    gap:20px;

    margin-top:50px;

}

.stat-card{

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(12px);

    padding:25px;

    border-radius:var(--radius);

    text-align:center;

    flex:1;

}

.stat-card h2{

    color:white;

}

.stat-card p{

    color:white;

    margin-top:10px;

}

/* ===========================
   GRID HELPERS
=========================== */

.about-grid{

    display:grid;

    grid-template-columns:1.15fr .85fr;

    gap:50px;

    align-items:start;

}

.about-grid h3{

    margin-bottom:15px;

    /* Left-aligned to match the paragraphs beneath it. A centred heading
       over left-aligned body copy looks accidental in a narrow column. */

    text-align:left;

}

.about-copy p + p{

    margin-top:18px;

}

.contact-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

}

.services-grid,
.tech-grid,
.portfolio-grid,
.testimonial-grid,
.stats-grid{

    display:grid;

    gap:30px;

}

/* The min() clamp is what stops these tracks forcing a horizontal
   scrollbar on phones: a bare minmax(500px, 1fr) floor would make the
   card 500px wide inside a ~330px container. Never remove it. */

.services-grid{

    grid-template-columns:repeat(auto-fit,minmax(min(350px,100%),1fr));

}

.tech-grid{

    grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));

}

.portfolio-grid{

    grid-template-columns:repeat(auto-fit,minmax(min(500px,100%),1fr));

}

/* ===========================================
   TEAM SLIDER
=========================================== */

.team-slider{
    position:relative;
}

.testimonial-grid{

    grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));

}

.stats-grid{

    grid-template-columns:repeat(4,1fr);

}

/* ===========================================
    TEAM GALLERY
   =========================================== */

.team-gallery{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(350px,100%),1fr));
    gap:24px;
    margin-top:40px;
}

/* Cards */

.team-gallery .team-card{
    background:var(--white);
    border-radius:18px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    transition:.3s ease;
}

.team-gallery .team-card:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow);
}

/* Image */

.team-gallery .team-card img{
    width:140px;
    height:140px;
    border-radius:50%;
    object-fit:cover;
    display:block;
    margin:0 auto 25px;
    border:5px solid var(--gray-100);
    box-shadow:0 8px 20px rgba(0,0,0,.12);
}

/* Content */

.team-gallery .team-card h3{
    margin-bottom:6px;
    font-size:1.25rem;
}

.team-gallery .team-card p{
    color:var(--gray-500);
    font-size:.95rem;
}

/* Website link */

.team-gallery .team-card a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    margin-top:auto;
    border-radius:50px;
    background:var(--gray-100);
    color:var(--primary);
    font-weight:600;
    transition:.3s ease;
}

.team-gallery .team-card a:hover{
    background:var(--primary);
    color:var(--white);
}

/* Responsive */

@media (max-width:768px){

    .team-gallery{
        grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
    }

}

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

.footer{

    background:var(--dark);

    color:white;

    padding:80px 0 30px;

}

.footer-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:40px;

    margin-bottom:40px;

}

.footer h2,
.footer h3,
.footer h4{

    color:white;

    margin-bottom:20px;

}

.footer-brand{

    font-size:1.6rem;

}

.footer-heading{

    font-size:1.05rem;

    text-transform:uppercase;

    letter-spacing:.08em;

}

.footer p,
.footer li{

    color:var(--gray-300);

    margin-bottom:10px;

}





.footer-bottom{

    text-align:center;

    border-top:1px solid rgba(255,255,255,.1);

    padding-top:25px;

}

.process-section{
    background:#f8fbff;
}

.process-flow{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:0;
    margin-top:70px;
}

.process-step{
    width:170px;
    text-align:center;
    position:relative;
    padding-bottom:30px;
}

.circle{
    width:70px;
    height:70px;
    margin:auto;
    border-radius:50%;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:bold;
    font-size:1.2rem;
    box-shadow:0 12px 25px rgba(37,99,235,.25);
    transition:.3s;
}

.process-step:hover .circle{
    transform:translateY(-8px) scale(1.08);
}

.connector{
    width:80px;
    height:4px;
    background:#cbd5e1;
    margin-top:33px;
    position:relative;
}

.connector::after{
    content:"";
    position:absolute;
    right:-8px;
    top:50%;
    transform:translateY(-50%);
    border-left:10px solid #cbd5e1;
    border-top:6px solid transparent;
    border-bottom:6px solid transparent;
}

.process-step h3{
    margin-top:18px;
    margin-bottom:10px;
    color:var(--dark);
}

@media(max-width:992px){

    .process-flow{
        flex-direction:column;
        align-items:center;
    }

    .connector{
        width:4px;
        height:60px;
        margin:15px 0;
    }

    .connector::after{
        left:50%;
        top:auto;
        bottom:-10px;
        transform:translateX(-50%);
        border-left:6px solid transparent;
        border-right:6px solid transparent;
        border-top:10px solid #cbd5e1;
        border-bottom:none;
    }

}

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

@media (max-width:992px){

    .hero-grid,
    .about-grid,
    .contact-grid{

        grid-template-columns:1fr;

    }

    /* Single column: the copy now spans the section, so a centred
       lead-in reads as deliberate. */

    .about-grid h3{

        text-align:center;

    }

    .stats-grid{

        grid-template-columns:repeat(2,1fr);

    }

    .footer-grid{

        grid-template-columns:1fr 1fr;

    }

}

@media (max-width:768px){

    .nav-links{

        display:none;

    }

    .menu-btn{

        display:block;

    }

    .hero{

        text-align:center;

    }

    .hero-buttons{

        justify-content:center;

        flex-wrap:wrap;

    }

    .hero-stats{

        flex-direction:column;

    }

    .stats-grid{

        grid-template-columns:1fr;

    }

    .footer-grid{

        grid-template-columns:1fr;

    }

}

@media (max-width:480px){

    :root{

        --section-padding:70px;

    }

    .btn{

        width:100%;

    }

}

/* ===========================================
   APP.JS SUPPORT
=========================================== */

.header.scrolled{

    background:rgba(255,255,255,.98);

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.nav-links a.active{

    color:var(--secondary);

    font-weight:600;

}

@media (max-width:768px){

    .nav-links{

        position:absolute;

        top:80px;
        left:0;

        width:100%;

        background:white;

        flex-direction:column;

        padding:30px;

        display:none;

        box-shadow:0 15px 40px rgba(0,0,0,.08);

    }

    .nav-links.mobile-open{

        display:flex;

    }

}

@media (max-width:768px){

    .nav-links li{

        width:100%;

    }

    .nav-links a{

        display:flex;

        align-items:center;

        min-height:44px;

    }

}

/* ===========================================
   INITIAL REVEAL SUPPORT
=========================================== */

.section-title,
.service-card,
.process-card,
.tech-card,
.project-card,
.team-card,
.testimonial-card,
.stats-card,
.info-card,
.contact-form,
.contact-info{

    will-change: transform, opacity;

}