:root{
--primary:#d9232e;
--dark:#0f172a;
--text:#475569;
--bg:#f5f7fb;
--card:#ffffff;
--radius:14px;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Manrope','Inter',sans-serif;
}

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

nav{
position:sticky;
top:0;
background:white;
box-shadow:0 4px 20px rgba(0,0,0,0.05);
z-index:1000;
}

.logo img{
animation: gearRotate 12s linear infinite;
}

@keyframes gearRotate{
from{ transform: rotate(0deg); }
to{ transform: rotate(360deg); }
}

.mobile-header img{
animation: gearRotate 14s linear infinite;
}

@keyframes gearRotate{
from{ transform: rotate(0deg); }
to{ transform: rotate(360deg); }
}

.stats{
background:white;
padding:50px 20px;
}

.fb-btn{
background:#1877F2 !important;
color:#fff;
display:inline-flex;
align-items:center;
justify-content:center;
gap:10px;
padding:16px 30px;
border-radius:12px;
font-weight:600;
box-shadow:none !important;
transition:all .2s ease;
}

.fb-btn:hover{
background:#166fe0 !important;
transform:translateY(-2px);
box-shadow:0 12px 26px rgba(24,119,242,0.4);
}

.menu a{
padding:8px 10px;
border-radius:12px;
border:1px solid rgba(0,0,0,0.06);
background:rgba(255,255,255,0.8);
backdrop-filter:blur(6px);
transition:.25s;
}

.menu a:hover{
background:#fff;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.mobile-menu a{
display:block;
padding:16px 20px;
border-radius:14px;
background:#ffffff;
border:1px solid rgba(0,0,0,0.05);
box-shadow:0 4px 14px rgba(0,0,0,0.04);
margin-bottom:14px;
transition:.25s;
}

.mobile-menu a:hover{
background:#f5f7fb;
box-shadow:0 6px 18px rgba(0,0,0,0.06);
transform:translateX(4px);
}

.stats-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:25px;
text-align:center;
}

.stat{
padding:25px;
border-radius:14px;
background:linear-gradient(135deg,#f8fafc,#ffffff);
box-shadow:0 8px 20px rgba(15,23,42,0.05);
}

.stat h3{
font-size:34px;
color:var(--primary);
font-weight:700;
margin-bottom:6px;
}

.stat p{
font-size:14px;
color:var(--text);
}

.nav-container{
max-width:1200px;
margin:auto;
display:flex;
align-items:center;
justify-content:flex-start;
padding:20px 24px;
position:relative;
}

.logo{
display:flex;
align-items:center;
gap:12px;
font-weight:700;
color:var(--dark);
}

.logo img{width:48px;}
.logo-text{
font-size:18px;
letter-spacing:.3px;
}

.menu{
margin-left:auto;
display:flex;
gap:34px;
}

.menu a{
text-decoration:none;
color:var(--dark);
font-weight:600;
font-size:14px;
letter-spacing:1px;
transition:.2s;
}

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

.hamburger{
display:none;
font-size:35px;
cursor:pointer;
}

.overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.35);
opacity:0;
visibility:hidden;
transition:.3s;
z-index:1500;
}

.overlay.show{opacity:1;visibility:visible;}

.mobile-menu{
position:fixed;
top:0;
left:-300px;
width:280px;
height:100%;
background:#fff;
box-shadow:4px 0 25px rgba(0,0,0,0.1);
padding:24px;
display:flex;
flex-direction:column;
gap:26px;
transition:.35s;
z-index:2000;
}

.mobile-menu.show{left:0;}

.mobile-header{
display:flex;
align-items:center;
justify-content:center;
padding-bottom:18px;
border-bottom:1px solid #eee;
position:relative;
}

.mobile-header img{width:58px;}

.close-btn{
position:absolute;
right:0;
top:0;
font-size:22px;
cursor:pointer;
}

.mobile-menu a{
text-decoration:none;
color:var(--dark);
font-weight:600;
font-size:16px;
}

.hero{
padding:110px 20px 70px;
background:linear-gradient(135deg,#eef2ff,#ffffff);
}

.hero-container{
max-width:1200px;
margin:auto;
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:center;
}

.hero h1{
font-size:44px;
font-weight:700;
color:var(--dark);
margin-bottom:20px;
}

.hero p{
font-size:18px;
margin-bottom:28px;
}

.btn{
display:inline-block;
padding:15px 28px;
background:var(--primary);
color:white;
border-radius:12px;
text-decoration:none;
font-weight:600;
transition:.2s;
box-shadow:0 6px 18px rgba(217,35,46,0.25);
}

.btn:hover{
transform:translateY(-2px);
box-shadow:0 10px 22px rgba(217,35,46,0.3);
}

.hero img{
width:100%;
border-radius:18px;
}

section{
padding:70px 20px;
}

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

.section-title{
text-align:center;
font-size:32px;
font-weight:700;
margin-bottom:42px;
color:var(--dark);
}

.services{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:24px;
}

.card{
background:var(--card);
padding:28px;
border-radius:var(--radius);
box-shadow:0 8px 24px rgba(15,23,42,0.05);
transition:.25s;
}

.card:hover{
transform:translateY(-6px);
box-shadow:0 14px 32px rgba(15,23,42,0.08);
}

.card h3{
margin-bottom:10px;
color:var(--dark);
font-size:18px;
}

.gallery{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:18px;
}

.gallery img{
width:100%;
border-radius:16px;
}

.about{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:center;
}

.about img{
width:100%;
border-radius:16px;
}

.about p{
margin-bottom:16px;
font-size:17px;
}

.contact-box{
background:white;
padding:40px;
border-radius:16px;
box-shadow:0 8px 24px rgba(15,23,42,0.05);
text-align:center;
}

.contact-box p{
margin-bottom:10px;
font-size:18px;
}

.contact-actions{
margin-top:28px;
}

#toTop{
position:fixed;
bottom:24px;
right:24px;
background:var(--primary);
color:white;
border:none;
border-radius:50%;
width:46px;
height:46px;
font-size:18px;
cursor:pointer;
display:none;
box-shadow:0 8px 20px rgba(217,35,46,0.35);
}

/* MOBILE */
@media(max-width:900px){

.menu{display:none;}

.nav-container{
height:64px;
display:flex;
align-items:center;
justify-content:center;
}

.hamburger{
display:block;
position:absolute;
left:18px;
top:50%;
transform:translateY(-50%);
}

.logo{
position:absolute;
left:50%;
top:50%;
transform:translate(-50%,-50%);
}

.logo img{width:46px;}
.logo-text{display:none;}

.hero{
padding:55px 18px 40px;
}

.hero-container{
display:flex;
flex-direction:column-reverse;
gap:18px;
}

.hero h1{
font-size:30px;
}

.hero p{
font-size:15px;
}

section{
padding:50px 18px;
}

.section-title{
font-size:35px;
margin-bottom:26px;
}

.about{
grid-template-columns:1fr;
gap:22px;
}

.card{
padding:22px;
}

.hero .btn{
display:block;
margin:20px auto 0;
text-align:center;
}

.contact-box{
padding:28px;
}

.theme-switch{
position:absolute;
right:18px;
top:50%;
transform:translateY(-50%);
margin-left:0;
}

}

body.dark{
    --bg:#0b1220;
    --card:#0f172a;
    --text:#94a3b8;
    --dark:#f1f5f9;
}

body.dark{
    background:var(--bg);
    color:var(--text);
}

body.dark nav{
    background:#020617;
    box-shadow:0 6px 30px rgba(0,0,0,0.6);
}

body.dark .card,
body.dark .contact-box,
body.dark .stat{
    background:#020617;
    box-shadow:0 8px 24px rgba(0,0,0,0.45);
}

body.dark .hero{
    background:linear-gradient(135deg,#020617,#020617);
}

body.dark .mobile-menu{
    background:#020617;
}

body.dark .mobile-menu a{
    background:#020617;
    border:1px solid rgba(255,255,255,0.05);
    color:#cbd5f5;
}

footer{
background:#0f172a;
color:#94a3b8;
text-align:center;
padding:26px 20px;
font-size:14px;
letter-spacing:.3px;
}

footer strong{
color:#e2e8f0;
}

footer .powered{
opacity:.7;
margin-left:6px;
}

body.dark footer{
background:#020617;
color:#64748b;
}

.theme-switch{
    margin-left:20px;
    cursor:pointer;
}

.switch-track{
    width:64px;
    height:32px;
    background:#e2e8f0;
    border-radius:40px;
    position:relative;
    display:flex;
    align-items:center;
    padding:0 6px;
    transition:.3s;
}

.switch-thumb{
    width:24px;
    height:24px;
    background:white;
    border-radius:50%;
    position:absolute;
    left:4px;
    transition:.3s cubic-bezier(.4,0,.2,1);
    box-shadow:0 4px 10px rgba(0,0,0,0.2);
}

.icon{
    font-size:14px;
    z-index:2;
}

.sun{ margin-right:auto; }
.moon{ margin-left:auto; }

body.dark .switch-track{
    background:#1e293b;
}

body.dark .switch-thumb{
    left:36px;
    background:#0f172a;
    box-shadow:0 4px 12px rgba(0,0,0,0.6);
}

.mobile-theme{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:auto;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,0.08);
    color:#94a3b8;
    font-size:14px;
}

.mobile-brand{
display:flex;
flex-direction:column;
align-items:center;
gap:6px;
}

.brand-title{
font-size:16px;
font-weight:700;
color:var(--dark);
letter-spacing:0.5px;
}

/* DARK MODE */
body.dark .brand-title{
color:#e2e8f0;
}

/* WELCOME POPUP */
.welcome-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(15,23,42,0.45);
backdrop-filter:blur(6px);
display:flex;
align-items:center;
justify-content:center;
z-index:5000;
opacity:0;
visibility:hidden;
transition:.35s ease;
}

.welcome-overlay.show{
opacity:1;
visibility:visible;
}

.welcome-box{
background:white;
padding:42px 32px;
border-radius:18px;
text-align:center;
max-width:420px;
width:90%;
box-shadow:0 30px 60px rgba(0,0,0,0.15);
animation:popupFade .4s ease;
}

@keyframes popupFade{
from{transform:translateY(20px);opacity:0}
to{transform:translateY(0);opacity:1}
}

.welcome-logo{
width:70px;
margin-bottom:14px;
animation:gearRotate 12s linear infinite;
}

.welcome-box h2{
color:#0f172a;
margin-bottom:10px;
font-weight:700;
}

.welcome-box p{
font-size:15px;
color:#64748b;
margin-bottom:24px;
line-height:1.5;
}

.welcome-btn{
background:#d9232e;
color:white;
border:none;
padding:14px 28px;
border-radius:12px;
font-weight:600;
cursor:pointer;
transition:.25s;
box-shadow:0 8px 20px rgba(217,35,46,0.25);
}

.welcome-btn:hover{
transform:translateY(-2px);
box-shadow:0 12px 28px rgba(217,35,46,0.35);
}

/* DARK MODE */
body.dark .welcome-box{
background:#020617;
}

body.dark .welcome-box h2{
color:#f1f5f9;
}

body.dark .welcome-box p{
color:#94a3b8;
}
