/* ============================================================
   NEST360 - STYLE.CSS
   Cleaned & Optimized Production Version
   ============================================================ */

/* ===================== CSS VARIABLES ===================== */

:root {

--blue:#1B4F8A;
--blue-light:#2563EB;
--yellow:#F5A623;
--red:#D64545;
--green:#2D8C4E;

--dark:#0F1923;
--dark-2:#1A2736;
--dark-3:#243447;

--gray-800:#2D3748;
--gray-600:#4A5568;
--gray-400:#A0AEC0;
--gray-200:#E2E8F0;
--gray-100:#F7FAFC;

--white:#ffffff;

--gradient-brand:linear-gradient(135deg,var(--blue),var(--green),var(--yellow));
--gradient-dark:linear-gradient(135deg,var(--dark),var(--dark-2));

--font-heading:'Outfit',sans-serif;
--font-body:'Inter',sans-serif;

--nav-height:80px;
--section-padding:100px 0;
--container-width:1200px;

--radius-sm:8px;
--radius-md:16px;
--radius-lg:24px;

--shadow-sm:0 2px 8px rgba(0,0,0,0.08);
--shadow-md:0 8px 30px rgba(0,0,0,0.12);
--shadow-lg:0 20px 60px rgba(0,0,0,0.15);

--transition:all .3s ease;

}

/* ===================== RESET ===================== */

*,
*::before,
*::after{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
scroll-padding-top:var(--nav-height);
}

body{
font-family:var(--font-body);
font-size:16px;
line-height:1.6;
color:var(--gray-800);
background:var(--white);
overflow-x:hidden;
}

img{
max-width:100%;
height:auto;
display:block;
}

a{
text-decoration:none;
color:inherit;
}

ul{
list-style:none;
}

.container{
width:100%;
max-width:var(--container-width);
margin:auto;
padding:0 24px;
}

/* ===================== HEADINGS ===================== */
html {
scroll-behavior: smooth;
}

.section-tag{
font-size:14px;
letter-spacing:3px;
font-weight:600;
text-transform:uppercase;
color:var(--yellow);
margin-bottom:12px;
}

.section-heading{
font-family:var(--font-heading);
font-size:clamp(2rem,4vw,3rem);
font-weight:800;
line-height:1.2;
margin-bottom:20px;
color:var(--dark);
}

.highlight{
color:var(--yellow);
}

/* ===================== NAVBAR ===================== */

.navbar{
position:fixed;
top:0;
left:0;
width:100%;
height:100px;
background:rgba(5, 1, 13, 0.6);
backdrop-filter:blur(10px);
z-index:1000;
}

.navbar__container{
max-width:1400px;
margin:auto;
padding:0 40px;
height:100%;
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

.navbar-scrolled{
background:#ffffff;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
transition:0.3s;
}
/* LOGO */

.navbar__logo{
position:absolute;
left:0;
display:flex;
align-items:center;
}

.navbar__logo-img{
height:120px;
border-radius:10px;
transition:0.3s;
}

.navbar__logo-img:hover{
transform:scale(1.05);
}

/* MENU */

.navbar__list{
display:flex;
align-items:center;
gap:25px;
}

.navbar__link{
font-family:var(--font-heading);
font-size:24px;
font-weight:600;
color:var(--gray-200);
padding:14px 28px;
border-radius:8px;
position:relative;
}

.navbar__link::after{
content:'';
position:absolute;
bottom:6px;
left:50%;
transform:translateX(-50%);
width:0;
height:3px;
background:var(--yellow);
transition:.3s;
}

.navbar__link:hover,
.navbar__link.active{
color:white;
}

.navbar__link:hover::after{
width:30px;
}

/* SEARCH */

.navbar__search{
position:absolute;
right:0;
display:flex;
align-items:center;
background:rgba(255,255,255,0.08);
border:1px solid rgba(255,255,255,0.15);
border-radius:30px;
padding:4px 6px;
}

.navbar__search-input{
background:transparent;
border:none;
outline:none;
color:white;
padding:6px 12px;
width:160px;
}

.navbar__search-btn{
border:none;
background:var(--yellow);
color:white;
width:34px;
height:34px;
border-radius:50%;
cursor:pointer;
}

/* ===================== HERO ===================== */

/* ======================================================
   HERO SECTION
====================================================== */

.hero{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
}

/* Background Video */

.hero__video-wrapper{
    position:absolute;
    inset:0;
}

.hero__video{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Dark Overlay */

.hero__overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,.9));
}

/* ======================================================
   HERO CONTENT
====================================================== */

.hero__content{
    position:relative;
    z-index:2;
    max-width:800px;
    padding:0 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

/* Heading */

.hero__heading{
    font-family:var(--font-heading);
    font-size:clamp(2.5rem, 6vw, 4rem);
    color:#ffffff;
    margin-bottom:20px;
    line-height:1.2;
}

/* Subheading */

.hero__subheading{
    color:var(--gray-400);
    margin-bottom:30px;
    max-width:650px;
}

/* ======================================================
   HERO BUTTONS
====================================================== */

.hero__buttons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

/* Explore Services Button */

.hero__cta{
    display:inline-flex;
    align-items:center;
    gap:10px;
    padding:16px 22px;
    background:var(--yellow);
    color:var(--dark);
    border-radius:40px;
    font-weight:600;
    transition:0.3s ease;
}

.hero__cta:hover{
    background:#ffffff;
    transform:translateY(-3px);
}

/* Demo Button */

.demo-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 20px;
    border:none;
    background:#ffffff;
    color:#111;
    border-radius:30px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s ease;
}

.demo-btn:hover{
    background:#f5f5f5;
}

/* ======================================================
   VIDEO MODAL
====================================================== */

.video-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.85);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.video-container video{
    width:80%;
    max-width:900px;
    border-radius:10px;
}

.close-video{
    position:absolute;
    top:30px;
    right:40px;
    font-size:40px;
    color:#ffffff;
    cursor:pointer;
}

/* ======================================================
   SECTION HEADERS
====================================================== */

.services,
.portfolio{
    text-align:center;
}

.section-heading{
    font-size:42px;
    font-weight:700;
    margin-bottom:15px;
}

.section-tag{
    font-size:20px;
    letter-spacing:3px;
    font-weight:600;
    text-transform:uppercase;
    color:#555;
    margin-bottom:12px;
}

.services p,
.portfolio__subtitle{
    font-size:20px;
    max-width:900px;
    margin:0 auto 40px auto;
    line-height:1.7;
    color:#555;
}
/* ===================== ABOUT ===================== */

.about{
    padding:50px 0;   /* smaller top spacing */
}

.about__grid{
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
gap:40px;
}

.about__description{
font-size:20px;
line-height:1.8;
}

/* section description  */

.section-description{
font-size:22px;
max-width:900px;
margin:0 auto 40px auto;
line-height:1.8;
color:#555;
text-align:center;
}
.about__features{
display:flex;
gap:40px;
flex-wrap:wrap;
justify-content:center;
margin-top:30px;
}

.about__image{
max-width:500px;
border-radius:10px;
}

/* ===================== TEAM ===================== */

.team{
padding:80px 0;
background:#d8f0f4;
text-align:center;
}
.team-subtitle{
font-size:18px;
color:#777;
margin-bottom:50px;   /* space below the paragraph */
}
.team-grid{
max-width:1300px;
margin:auto;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:30px;
}

.team-card{
background:white;
border-radius:12px;
overflow:hidden;
box-shadow:var(--shadow-sm);
transition:.3s;
}

.team-card:hover{
transform:translateY(-8px);
}

.team-img{
height:260px;
overflow:hidden;
}

.team-img img{
width:100%;
height:100%;
object-fit:cover;
object-position:top;
}

.team-content{
padding:20px;
text-align:left;
}

/* ===================== SERVICES ===================== */

.services{
padding:40px 0;
background:var(--gray-100);
}

/* services description */

.services__description{
font-size:17px;
max-width:720px;
margin:0 auto 30px auto;
line-height:1.6;
color:#555;
}

/* services grid */

.services__grid{
display:grid;
grid-template-columns:repeat(3, 1fr);
gap:22px;          /* little more spacing */
max-width:1200px;  /* increased horizontal width */
margin:auto;
}

/* service card */

.service-card{
background:#d8f0f4;
border-radius:12px;
padding:18px;
transition:all .3s ease;
border:1px solid rgba(0,0,0,0.05);
text-align:center;   /* centers all text inside */
}

/* number */

.service-card__number{
font-size:16px;
font-weight:600;
margin-bottom:4px;
opacity:.7;
}

/* icon */

.service-card__icon{
font-size:22px;
margin-bottom:10px;
display:flex;
justify-content:center;
}

.service-card__arrow{
margin-top:10px;
display:flex;
justify-content:center;
}

/* title */

.service-card__title{
font-size:16px;
margin-bottom:6px;
font-weight:600;
}

/* description */

.service-card__description{
font-size:13px;
line-height:1.5;
color:#2b2a2a;
}

/* hover */

.service-card:hover{
transform:translateY(-4px);
box-shadow:0 8px 18px rgba(0,0,0,0.08);
}

/* ================= PROCESS HEADER CENTER ================= */

.process-header{
text-align:center;     /* centers all text */
max-width:700px;       /* keeps text nicely aligned */
margin:0 auto 50px auto;
}
/* ===================== PROCESS TIMELINE ===================== */
.process-timeline{
position:relative;
padding:80px 0;
background-image:url("assets/timelinebg.jpg"); /* your image */
background-size:cover;
background-position:center;
background-repeat:no-repeat;
}

/* dark overlay for readability */

.process-timeline::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0, 0, 0, 0.282); /* overlay */
z-index:0;
}
.process-timeline .container{
position:relative;
z-index:1;
}

.process-subtitle{
max-width:650px;
margin:12px auto 60px;
color:#322f2f;
font-size:20px;
}

.timeline{
position:relative;
max-width:900px;
margin:auto;
}

/* center line */

.timeline::after{
content:"";
position:absolute;
width:3px;
background:#0d4cd2;
top:0;
bottom:0;
left:50%;
margin-left:-1.5px;
}

/* timeline item */

.timeline-item{
padding:15px 30px;
position:relative;
width:50%;
}

.timeline-item.left{
left:0;
}

.timeline-item.right{
left:50%;
}

/* content */

.timeline-content{
background:#d8f0f4;
padding:25px 30px;
border-radius:12px;
box-shadow:0 10px 30px rgba(0,0,0,0.06);
position:relative;
transition:0.3s;
}

.timeline-content:hover{
transform:translateY(-5px);
box-shadow:0 12px 30px rgba(0,0,0,0.08);
}

/* step number */

.step{
font-size:26px;
font-weight:700;
color:#2563EB;
display:block;
margin-bottom:6px;
}

/* title */

.timeline-content h3{
font-size:16px;
margin-bottom:5px;
}

/* text */

.timeline-content p{
font-size:14px;
color:#666;
line-height:1.5;
}

/* icon */

.timeline-icon{
font-size:18px;
color:#2563EB;
margin-top:8px;
}

/* responsive */

@media(max-width:768px){

.timeline::after{
left:20px;
}

.timeline-item{
width:100%;
padding-left:60px;
padding-right:15px;
}

.timeline-item.right{
left:0;
}

.timeline-content{
max-width:100%;
}

}
/* ===================== PORTFOLIO ===================== */

.portfolio{
padding:40px 0;
}

/* description text */
.portfolio__subtitle{
max-width:900px;
margin:20px auto 40px;
line-height:1.7;
color:#555;
text-align:center;
}

/* GRID */

.portfolio__grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
max-width:1400px;
margin:auto;
align-items:start;
}

/* CARD */

.portfolio__item{
position:relative;
border-radius:12px;
overflow:hidden;
height:320px;
display:block;
transition:.3s;
}

.portfolio__item:hover{
transform:translateY(-6px);
box-shadow:var(--shadow-md);
}

/* IMAGE */

.portfolio__image{
width:100%;
height:100%;
object-fit:cover;
transition:transform .6s;
}

.portfolio__item:hover .portfolio__image{
transform:scale(1.08);
}

/* OVERLAY */

.portfolio__overlay{
position:absolute;
bottom:0;
left:0;
width:100%;
padding:18px;
background:linear-gradient(transparent,rgba(0,0,0,.85));
}

/* TITLE */

.portfolio__title{
color:#fff;
font-size:18px;
font-weight:600;
margin-top:5px;
}

/* CATEGORY */

.portfolio__category{
font-size:14px;
color:#ddd;
}

/* DESCRIPTION */

.portfolio__desc{
font-size:13px;
color:#ccc;
margin-top:3px;
}

/* ===================== SECOND CARD FIX ===================== */

/* wrapper keeps card + map link aligned */

.portfolio__item-wrapper{
display:flex;
flex-direction:column;
}

/* remove overlay black background only from second card */

.portfolio__item-wrapper .portfolio__overlay{
background:none;
}

/* MAP LINK */

.map-link{
display:inline-block;
margin-top:12px;
padding:10px 14px;
font-size:14px;
background:#f5a623;
color:white;
border-radius:6px;
text-decoration:none;
transition:.3s;
}

.map-link:hover{
background:#d88912;
}

/* ================= FLOATING CONTACT SIDEBAR ================= */

.contact-sidebar{
position:fixed;
right:-320px;
bottom:80px;
width:300px;
background:#0f2b63;
color:#fff;
padding:25px;
border-radius:14px 0 0 14px;
box-shadow:0 10px 30px rgba(0,0,0,0.2);
transition:0.4s;
z-index:999;
}

.contact-sidebar.active{
right:0;
}

.sidebar__logo{
width:80px;
margin-bottom:10px;
}

.contact-sidebar h3{
margin-top:15px;
font-size:16px;
letter-spacing:1px;
}

.contact-sidebar p{
font-size:14px;
margin:6px 0;
opacity:.9;
}

.sidebar__socials{
display:flex;
gap:12px;
margin-top:10px;
}

.sidebar__socials a{
width:36px;
height:36px;
display:flex;
align-items:center;
justify-content:center;
background:#fff;
color:#0f2b63;
border-radius:50%;
font-size:16px;
transition:.3s;
}

.sidebar__socials a:hover{
transform:scale(1.1);
}

.sidebar-close{
position:absolute;
top:10px;
right:10px;
background:none;
border:none;
font-size:22px;
color:#fff;
cursor:pointer;
}

/* Toggle Button */

.sidebar-toggle{
position:fixed;
bottom:80px;
right:20px;
width:50px;
height:50px;
border-radius:50%;
border:none;
background:#0f2b63;
color:#fff;
font-size:20px;
cursor:pointer;
box-shadow:0 10px 20px rgba(0,0,0,0.2);
z-index:1000;
transition:.3s;
}

.sidebar-toggle:hover{
transform:scale(1.1);
}

/* ================= WHATSAPP FLOAT ================= */

.whatsapp-float{
position:fixed;
bottom:20px;
right:20px;
width:55px;
height:55px;
background:#25D366;
color:#fff;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
box-shadow:0 10px 25px rgba(0,0,0,0.2);
z-index:1000;
transition:.3s;
}

.whatsapp-float:hover{
transform:scale(1.1);
}
/* ===================== FOOTER ===================== */

.footer{
background:var(--dark);
padding:80px 0 0;
color:var(--gray-400);
}

.footer__grid{
display:grid;
grid-template-columns:1.5fr 1fr 1fr 1.2fr;
gap:50px;
padding-bottom:60px;
border-bottom:1px solid rgba(255,255,255,.08);
}

/* Footer Brand Alignment */

.footer__brand{
display:flex;
flex-direction:column;
align-items:center;   /* centers logo + text */
text-align:center;
}

.footer__logo{
height:130px;
margin-bottom:16px;
display:block;
margin-left:auto;
margin-right:auto;
}

.footer__tagline{
max-width:300px;
margin:0 auto 20px auto;
}

.footer__socials{
display:flex;
gap:12px;
}

.footer__social-link{
width:40px;
height:40px;
display:flex;
align-items:center;
justify-content:center;
border-radius:10px;
background:rgba(255,255,255,0.06);
transition:.3s;
}

.footer__social-link:hover{
background:var(--yellow);
color:black;
}

.footer__bottom{
text-align:center;
padding:24px 0;
font-size:.85rem;
}

/* FORM */

.footer__enquiry form{
display:flex;
flex-direction:column;
gap:12px;
}

/* row for name & email */
.form-row{
display:flex;
gap:10px;
}

.form-row input{
flex:1;
}

/* input fields */

.footer__enquiry input,
.footer__enquiry textarea{
padding:12px;
border:none;
border-radius:6px;
font-size:14px;
outline:none;
width:100%;
}

/* textarea height */

.footer__enquiry textarea{
min-height:90px;
resize:none;
}

/* button */

.footer__enquiry button{
width:120px;
padding:10px;
border:none;
background:#4CAF50;
color:white;
border-radius:6px;
cursor:pointer;
align-self:center;
transition:0.3s;
}

/* button hover */

.footer__enquiry button:hover{
background:#3e8e41;
}
#formStatus{
font-size:14px;
text-align:center;
margin-top:5px;
color:#4CAF50;
}
/* ===================== RESPONSIVE ===================== */

@media(max-width:1024px){

.services__grid{
grid-template-columns:repeat(2,1fr);
}

.portfolio__grid{
grid-template-columns:repeat(2,1fr);
}

.footer__grid{
grid-template-columns:1fr 1fr;
}

}

@media(max-width:768px){

.services__grid{
grid-template-columns:1fr;
}

.portfolio__grid{
grid-template-columns:1fr;
}

.team-grid{
grid-template-columns:1fr;
}

}
