:root {
  --cyan:#05c9ed; --mint:#00dfc4; --white:#f7fbff;
  --muted:#c6ddea; --glass:rgba(8,39,59,.68);
  --border:rgba(113,213,247,.48); --shadow:0 12px 32px rgba(0,9,22,.32);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}

body{
    min-height:100vh;
    position:relative;
    isolation:isolate;
    overflow-x:hidden;
    background:#07182b;
    color:var(--white);
    font-family:'Segoe UI',Arial,sans-serif;
    line-height:1.55;
}

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

.background-slide{
    position:fixed;
    inset:0;
    width:100%;
    height:100%;
    background-position:center;
    background-size:cover;
    background-repeat:no-repeat;
    z-index:-2;
    opacity:0;
    transition:opacity 3s ease-in-out;
    pointer-events:none;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    z-index:-1;
    background:linear-gradient(
        180deg,
        rgba(2,20,40,.45),
        rgba(2,20,40,.38) 55%,
        rgba(2,20,40,.62)
    );
    pointer-events:none;
}

/* GLASS EFFECT FOR MAIN CONTENT
   Header removed from this group so it can match the footer. */

.hero-text,
.glass-card,
.service-box,
.project-card,
.footer-section,
section:not(.hero):not(.projects-section) > h2,
section:not(.hero):not(.projects-section) > p,
.projects-section > h2,
.projects-section > .section-description{
    background:var(--glass);
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:var(--shadow);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
}

/* ==========================================
   HEADER — MATCHES THE FOOTER DESIGN
   ========================================== */

header{
    width:min(1184px,calc(100% - 32px));
    margin:14px auto 0;
    padding:22px 30px;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;

    background:rgba(2,25,39,.94);
    color:var(--white);

    border:1px solid var(--border);
    border-bottom:2px solid var(--cyan);
    border-radius:0;

    box-shadow:0 8px 24px rgba(0,9,22,.25);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);

    position:relative;
    z-index:10;
}

/* Company name */
header h1,
header h2,
header .logo{
    color:var(--white);
    font-size:1.45rem;
    font-weight:750;
    line-height:1.3;
}

/* Header navigation */
header nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:26px;
    flex-wrap:wrap;
}

/* Navigation links */
header nav a{
    color:var(--muted);
    text-decoration:none;
    font-size:.95rem;
    font-weight:500;
    transition:color .2s ease;
}

/* Hover and keyboard focus */
header nav a:hover,
header nav a:focus-visible{
    color:var(--cyan);
}

/* Active page, if your HTML uses this class */
header nav a.active{
    color:var(--cyan);
}

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

.login-btn,
.hero-text a{
    display:inline-block;
    padding:11px 23px;
    border-radius:8px;
    background:linear-gradient(110deg,#02bdf0,#00ddc5);
    color:white;
    text-decoration:none;
    font-weight:700;
    box-shadow:0 5px 16px rgba(0,191,230,.24);
    transition:transform .2s,filter .2s;
}

.login-btn:hover,
.hero-text a:hover{
    transform:translateY(-2px);
    filter:brightness(1.1);
}

/* ==========================================
   HERO SECTION — UNCHANGED
   ========================================== */

.hero{
    min-height:280px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:22px 16px 12px;
    text-align:center;
    background:transparent;
}

.hero-text{
    width:min(928px,100%);
    padding:26px 36px;
}

.hero-text h1{
    font-size:clamp(1.8rem,3.2vw,2.8rem);
    line-height:1.18;
    margin:7px 0 12px;
}

.hero-text p{
    color:var(--muted);
    font-size:1.05rem;
    max-width:690px;
    margin:0 auto 18px;
}

.hero-text a{margin-top:4px}

/* ==========================================
   GENERAL SECTIONS — UNCHANGED
   ========================================== */

section{
    width:min(1184px,calc(100% - 32px));
    margin:8px auto 0;
    padding:16px 20px;
    text-align:center;
    background:transparent;
}

section h2{
    font-size:clamp(1.5rem,2.3vw,2.15rem);
    line-height:1.25;
    margin-bottom:16px;
}

section p{color:var(--muted)}

section:not(.hero):not(.projects-section) > h2,
section:not(.hero):not(.projects-section) > p,
.projects-section > h2,
.projects-section > .section-description{
    width:fit-content;
    max-width:100%;
    margin:0 auto 12px;
    padding:9px 24px;
}

.glass-card{
    width:100%;
    max-width:1100px;
    margin:12px auto;
    padding:26px;
}

.glass-card h2,
.glass-card h3{margin-bottom:12px}

.glass-card p{color:var(--muted)}

/* ==========================================
   SERVICES — UNCHANGED
   ========================================== */

.services-container,
.services-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:17px;
    margin:18px auto;
    align-items:stretch;
}

.service-box{
    padding:25px 19px;
    margin:12px auto;
    width:100%;
    max-width:450px;
    transition:transform .25s,background .25s;
}

.services-container .service-box,
.services-grid .service-box{
    margin:0;
    max-width:none;
}

.service-box:hover,
.project-card:hover{
    transform:translateY(-5px);
    background:rgba(8,48,72,.82);
}

.service-box h3{
    font-size:1.15rem;
    margin:12px 0;
    color:var(--white);
}

.service-box p{
    font-size:.94rem;
    color:var(--muted);
}

.service-box i,
.service-box .icon,
.project-icon{
    color:var(--cyan);
    font-size:2rem;
}

/* ==========================================
   PROJECTS — UNCHANGED
   ========================================== */

.projects-section{
    padding:22px 20px 18px;
}

.projects-container{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:17px;
    margin:16px auto 0;
}

.project-card{
    padding:22px 18px;
    text-align:left;
    min-width:0;
    transition:transform .25s,background .25s;
}

.project-card h3{
    font-size:1.12rem;
    color:var(--white);
    margin-bottom:5px;
}

.project-card h4,
.project-card span{
    color:var(--cyan);
    font-size:.92rem;
}

.project-card p{
    font-size:.92rem;
    line-height:1.55;
    margin:9px 0;
}

.project-card img{
    width:95px;
    aspect-ratio:1.2;
    object-fit:cover;
    border-radius:8px;
    float:left;
    margin:0 14px 8px 0;
}

.project-card::after{
    content:"";
    display:block;
    clear:both;
}

/* ==========================================
   WHATSAPP — UNCHANGED
   ========================================== */

.whatsapp{margin-top:16px}

.whatsapp-btn{
    display:inline-block;
    padding:11px 20px;
    background:#16c95c;
    color:white;
    border-radius:8px;
    text-decoration:none;
    font-weight:650;
    transition:filter .2s;
}

.whatsapp-btn:hover{filter:brightness(1.12)}

/* ==========================================
   SOCIAL ICONS — UNCHANGED
   ========================================== */

.social-icons{
    display:flex;
    gap:12px;
    align-items:center;
    flex-wrap:wrap;
    margin-top:12px;
}

.social-icons a{color:var(--cyan)}

.social-icons a img{
    width:24px;
    transition:transform .2s;
}

.social-icons a:hover img{transform:scale(1.15)}

/* ==========================================
   FOOTER — UNCHANGED
   ========================================== */

footer{
    margin-top:16px;
    padding:18px max(16px,calc((100% - 1184px)/2));
    background:rgba(2,25,39,.86);
    border-top:1px solid var(--border);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
}

.footer-container{
    display:flex;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;
    gap:17px;
    max-width:1140px;
    margin:0 auto;
    text-align:left;
}

.footer-section{
    width:305px;
    max-width:100%;
    margin:0;
    padding:20px;
    flex:0 1 305px;
}

.footer-section h3,
.footer-section h4{
    color:var(--cyan);
    font-size:1rem;
    margin-bottom:10px;
}

.footer-section p,
.footer-section a{
    font-size:.9rem;
    line-height:1.7;
}

.footer-section p{color:var(--muted)}

.footer-section a{
    text-decoration:none;
    color:var(--cyan);
}

.footer-section a:hover{text-decoration:underline}

.footer-bottom{
    text-align:center;
    margin-top:16px;
    padding:12px;
    border-top:1px solid rgba(255,255,255,.18);
    color:var(--muted);
    font-size:.82rem;
}

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

@media(max-width:950px){

    .services-container,
    .services-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .projects-container{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .footer-container{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:768px){

    header{
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:20px;
        gap:15px;
    }

    header nav{
        justify-content:center;
        gap:16px;
    }

    .footer-container{
        justify-content:center;
        align-items:center;
    }

    .footer-section{
        width:100%;
        max-width:400px;
        flex:1 1 100%;
    }
}

@media(max-width:650px){

    header{
        width:calc(100% - 20px);
        margin:10px auto 0;
        padding:18px 14px;
    }

    header h1,
    header h2,
    header .logo{
        font-size:1.25rem;
    }

    header nav{gap:12px}

    header nav a{font-size:.88rem}

    .hero{min-height:380px}

    .hero-text{padding:28px 20px}

    section{padding:16px 10px}

    .services-container,
    .services-grid,
    .projects-container,
    .footer-container{
        grid-template-columns:1fr;
    }

    .project-card{text-align:left}

    .footer-section{text-align:left}
}

/* REDUCED MOTION — UNCHANGED */

@media(prefers-reduced-motion:reduce){

    *,
    *::before,
    *::after{
        scroll-behavior:auto!important;
        transition-duration:.01ms!important;
        animation-duration:.01ms!important;
    }
}
