/* ===================================
   PT NUSA DAYA KOMPONEN
   Automation, Liberated
=================================== */

:root{

--primary:#6A28FF;
--secondary:#9D4DFF;
--accent:#0095FF;

--dark:#070B1F;
--surface:#111633;
--surface2:#161D3A;

--white:#FFFFFF;
--text:#C8CDE0;

}

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{

font-family:'Poppins',sans-serif;
background:var(--dark);
color:var(--white);
overflow-x:hidden;

}

/* ===================================
NAVBAR
=================================== */

.navbar{

background:rgba(7,11,31,.85);
backdrop-filter:blur(20px);
padding:8px 0;
transition:.3s;

}

.navbar-brand{

display:flex;
align-items:center;
gap:10px;
padding:0;
margin:0;
text-decoration:none;

}

.navbar-logo{

display:block;
position:relative;
width:68px;
height:38px;
overflow:hidden;
flex-shrink:0;

}

.navbar-brand img{

position:absolute;
top:-7px;
left:0;
width:68px;
height:auto;

filter:drop-shadow(0 0 12px rgba(157,77,255,.35));
transition:transform .3s ease, filter .3s ease;

}

.navbar-brand:hover img{

transform:scale(1.04);
filter:drop-shadow(0 0 18px rgba(157,77,255,.6));

}

.navbar-brand-text{

color:var(--white);
font-size:21px;
font-weight:800;
letter-spacing:3px;
line-height:1;

text-shadow:0 0 14px rgba(157,77,255,.45);

}

.nav-link{

color:white !important;
font-weight:500;
margin-left:20px;
position:relative;

}

.nav-link:after{

content:'';
position:absolute;
left:0;
bottom:-5px;
width:0;
height:2px;

background:var(--secondary);

transition:.3s;

}

.nav-link:hover:after{

width:100%;

}

/* ===================================
HERO
=================================== */

.hero{

height:100vh;
position:relative;
display:flex;
align-items:center;

overflow:hidden;

}

.hero video{

position:absolute;

width:100%;
height:100%;

object-fit:cover;

top:0;
left:0;

z-index:-3;
opacity:1;
transition:opacity .45s ease;

}

.hero video.is-changing{

opacity:0;

}

.overlay{

position:absolute;

width:100%;
height:100%;

background:
linear-gradient(
90deg,
rgba(7,11,31,.95),
rgba(7,11,31,.65)
);

z-index:-2;

}

.hero::before{

content:'';

position:absolute;

width:700px;
height:700px;

background:
radial-gradient(
circle,
rgba(106,40,255,.35),
transparent 70%
);

top:-250px;
right:-250px;

filter:blur(40px);

z-index:-1;

}

.hero-content{

max-width:850px;

}

.hero h5{

color:var(--secondary);

font-weight:600;

letter-spacing:4px;

margin-bottom:15px;

}

.hero h1{

font-size:72px;
font-weight:800;
line-height:1.1;

margin-bottom:25px;

}

.hero p{

font-size:20px;

line-height:1.9;

color:var(--text);

max-width:700px;

margin-bottom:40px;

}

.hero-btn .btn{

padding:15px 35px;

border-radius:50px;

font-weight:600;

margin-right:15px;

}

/* ===================================
RUNNING TEXT
=================================== */

.running-text{

position:absolute;
left:0;
bottom:0;
width:100%;
overflow:hidden;

background:rgba(7,11,31,.72);
border-top:1px solid rgba(157,77,255,.45);
border-bottom:1px solid rgba(157,77,255,.25);
backdrop-filter:blur(12px);

}

.running-text-track{

display:flex;
width:max-content;
animation:runningText 22s linear infinite;
will-change:transform;

}

.running-text-group{

display:flex;
flex-shrink:0;
align-items:center;

}

.running-text span{

display:flex;
align-items:center;
gap:30px;
padding:16px 35px;

color:var(--white);
font-size:15px;
font-weight:700;
letter-spacing:4px;
white-space:nowrap;

}

.running-text span::after{

content:'';
width:8px;
height:8px;
border-radius:50%;

background:var(--secondary);
box-shadow:0 0 15px var(--secondary);

}

@keyframes runningText{

to{
transform:translateX(-50%);
}

}

/* ===================================
BUTTONS
=================================== */

.btn-primary{

background:
linear-gradient(
135deg,
var(--primary),
var(--secondary)
);

border:none;

}

.btn-primary:hover{

transform:translateY(-3px);

}

.btn-outline-light:hover{

background:var(--secondary);
border-color:var(--secondary);

}

/* ===================================
DOWNLOAD MODAL
=================================== */

.download-modal{

position:relative;
padding:40px;

color:var(--white);
background:
linear-gradient(
145deg,
rgba(17,22,51,.98),
rgba(7,11,31,.98)
);

border:1px solid rgba(157,77,255,.45);
border-radius:24px;

box-shadow:
0 25px 70px rgba(0,0,0,.55),
0 0 35px rgba(157,77,255,.2);

}

.download-modal .btn-close{

position:absolute;
top:20px;
right:20px;

}

.download-modal h2{

padding-right:30px;
margin-bottom:12px;
font-size:28px;
font-weight:700;

}

.download-modal p,
.download-modal .form-check-label{

color:var(--text);

}

.download-modal .form-control{

margin-bottom:18px;
padding:13px 16px;

color:var(--white);
background:rgba(255,255,255,.07);
border:1px solid rgba(255,255,255,.16);

}

.download-modal .form-control:focus{

color:var(--white);
background:rgba(255,255,255,.1);
border-color:var(--secondary);
box-shadow:0 0 0 .2rem rgba(157,77,255,.18);

}

.download-modal .form-control::placeholder{

color:#8d93aa;

}

.download-modal .form-check{

margin-bottom:24px;

}

/* ===================================
SECTION
=================================== */

section{

padding:120px 0;

position:relative;

}

.section-title{

font-size:52px;
font-weight:800;

margin-bottom:60px;

text-align:center;

}

.section-title span{

color:var(--secondary);

}

/* ===================================
ABOUT
=================================== */

#about{

background:
linear-gradient(
90deg,
rgba(7,11,31,.96),
rgba(11,16,40,.88)
),
url('../img/project-automation.png') center/cover no-repeat;

background-attachment:fixed;

}

#about::before{

content:'';
position:absolute;
inset:0;

background:
radial-gradient(
circle at 80% 50%,
rgba(106,40,255,.2),
transparent 45%
);

pointer-events:none;

}

#about .container{

position:relative;
z-index:1;

}

#about img{

border-radius:20px;
width:100%;
max-height:480px;
object-fit:cover;

box-shadow:
0 20px 50px rgba(0,0,0,.5),
0 0 30px rgba(157,77,255,.18);

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

}

#about h2{

font-size:50px;
font-weight:700;

margin-bottom:25px;

}

#about h2 span{

color:var(--secondary);

}

#about p{

line-height:2;

color:var(--text);

}

#about ul{

padding-left:20px;

}

#about li{

margin-bottom:10px;
color:var(--text);

}

/* ===================================
SERVICE CARD
=================================== */

.service-card{

background:
linear-gradient(
180deg,
var(--surface),
var(--surface2)
);

border-radius:20px;

height:100%;
overflow:hidden;

border:
1px solid rgba(255,255,255,.05);

transition:.4s;

margin-bottom:30px;

}

.service-image{

position:relative;
height:190px;
overflow:hidden;

}

.service-image::after{

content:'';
position:absolute;
inset:0;

background:
linear-gradient(
180deg,
transparent 45%,
rgba(17,22,51,.95)
);

}

.service-image img{

width:100%;
height:100%;
object-fit:cover;

transition:transform .6s ease;

}

.service-card:hover .service-image img{

transform:scale(1.08);

}

.service-content{

padding:28px 30px 32px;

}

.service-card:hover{

transform:translateY(-10px);

border-color:var(--secondary);

box-shadow:
0 0 30px rgba(157,77,255,.35);

}

.service-card h3{

font-size:22px;

margin-bottom:15px;

color:var(--secondary);

}

.service-card p{

color:var(--text);

line-height:1.8;

}

/* ===================================
PROJECTS
=================================== */

#projects{

background:#0B1028;

}

.project-card{

background:var(--surface);

border-radius:20px;

overflow:hidden;

transition:.4s;

margin-bottom:30px;

}

.project-card:hover{

transform:translateY(-10px);

box-shadow:
0 0 35px rgba(157,77,255,.35);

}

.project-card img{

width:100%;
height:260px;

object-fit:cover;
transition:transform .6s ease, filter .6s ease;

}

.project-card:hover img{

transform:scale(1.06);
filter:saturate(1.12);

}

.project-card h3{

padding:25px;

font-size:22px;

}

/* ===================================
CONTACT
=================================== */

#contact{

text-align:center;

background:
linear-gradient(
180deg,
rgba(7,11,31,.9),
rgba(7,11,31,.96)
),
url('../img/project-painting.png') center/cover no-repeat;

background-attachment:fixed;

}

#contact::before{

content:'';
position:absolute;
inset:0;

background:
radial-gradient(
circle at 50% 45%,
rgba(106,40,255,.22),
transparent 48%
);

pointer-events:none;

}

#contact .container{

position:relative;
z-index:1;
max-width:760px;

padding:55px 45px;

background:rgba(7,11,31,.68);
border:1px solid rgba(255,255,255,.12);
border-radius:24px;
backdrop-filter:blur(12px);

box-shadow:
0 25px 60px rgba(0,0,0,.4),
0 0 35px rgba(157,77,255,.16);

}

#contact h2{

font-size:52px;
font-weight:800;

margin-bottom:30px;

}

#contact p{

font-size:18px;
line-height:2;

color:var(--text);

}

/* ===================================
WHATSAPP
=================================== */

.wa-btn{

position:fixed;

right:25px;
bottom:25px;

width:65px;
height:65px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

background:#25D366;

color:white;

font-weight:700;

text-decoration:none;

z-index:999;

box-shadow:
0 10px 30px rgba(0,0,0,.3);

transition:.3s;

}

.wa-btn:hover{

transform:scale(1.1);

color:white;

}

/* ===================================
FOOTER
=================================== */

footer{

background:#050814;

padding:30px 0;

text-align:center;

color:#888;

}

/* ===================================
SCROLLBAR
=================================== */

::-webkit-scrollbar{

width:8px;

}

::-webkit-scrollbar-track{

background:#070B1F;

}

::-webkit-scrollbar-thumb{

background:var(--secondary);

border-radius:20px;

}

/* ===================================
RESPONSIVE
=================================== */

@media(max-width:992px){

.hero h1{

font-size:52px;

}

.hero p{

font-size:18px;

}

.section-title{

font-size:40px;

}

}

@media(max-width:768px){

.navbar{

padding:6px 0;

}

.download-modal{

padding:34px 24px 28px;

}

.navbar-logo{

width:54px;
height:31px;

}

.navbar-brand img{

top:-5px;
width:54px;

}

.navbar-brand{

gap:7px;

}

.navbar-brand-text{

font-size:15px;
letter-spacing:2px;

}

.hero{

text-align:center;

}

.hero h1{

font-size:40px;

}

.hero p{

font-size:16px;

}

.hero-btn .btn{

display:block;
margin-bottom:15px;

}

#about{

background-attachment:scroll;

}

#contact{

background-attachment:scroll;

}

#contact .container{

padding:40px 24px;

}

.running-text span{

padding:13px 25px;
font-size:12px;
letter-spacing:3px;

}

section{

padding:90px 20px;

}

#about h2{

font-size:36px;

}

.section-title{

font-size:34px;

}

}

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

.running-text-track{

animation-play-state:paused;

}

}
