/* GLOBAL */

*,
*::before,
*::after{

box-sizing:border-box;

}

html{

font-family:Arial, sans-serif;

margin:0;

background:linear-gradient(135deg,#081b2e,#0e2a44,#153a5b);

color:white;

overflow-x:hidden;

}

body{
  font-family:Arial, sans-serif;
  margin:0;
  background:linear-gradient(135deg,#081b2e,#0e2a44,#153a5b);
  color:white;
}

/* NAVBAR */

.navbar{

position:-webkit-sticky;
position:sticky;

top:0;

width:100%;

background:rgba(8,25,44,0.9);

backdrop-filter:blur(10px);

border-bottom:1px solid rgba(255,255,255,0.08);

z-index:1000;

}

@media (max-width: 768px) {
  .navbar {
    position: static;
    top: auto;
  }
}

.nav-container{

max-width:1200px;

margin:auto;

display:flex;

justify-content:space-between;

align-items:center;

padding:15px 20px;

}

.logo{

font-size:20px;

font-weight:bold;

color:#4cc9ff;

text-decoration:none;

}

.nav-brand{
  text-decoration:none;
  color:inherit;
  display:flex;
  align-items:center;
  flex-shrink:0;
}

.nav-brand-glass{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 12px 30px rgba(0,0,0,0.22);
  box-sizing:border-box;
}

.nav-brand-icon{
  width:22px;
  height:22px;
  border-radius:8px;
}

.nav-brand-text{
  font-weight:800;
  letter-spacing:0.01em;
  white-space:nowrap;
  color:white;
}

/* NAV MENU */

.nav-menu{

display:flex;

gap:25px;

list-style:none;

margin:0;

padding:0;

padding:8px 10px;
border-radius:18px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.10);
backdrop-filter: blur(12px);
box-sizing:border-box;

}

.nav-menu li{

list-style:none;

}

.nav-menu a{

text-decoration:none;

color:white;

font-size:14px;

opacity:0.85;

transition:0.2s;

}

.nav-menu a:hover{

color:#4cc9ff;

opacity:1;

}

/* HERO */

.hero{

text-align:center;

padding:120px 20px 80px;

background:linear-gradient(135deg,#0b1f35,#1b3b5c,#274e73);

}

.hero h1{

font-size:40px;

margin-bottom:10px;

}

.hero p{

max-width:600px;

margin:auto;

opacity:0.8;

}

.hero-line{

width:80px;

height:4px;

background:#4cc9ff;

margin:20px auto;

border-radius:10px;

}

/* CONTAINER */

.container{

max-width:900px;

margin:auto;

padding:20px;

}

/* CALCULATOR CARD */

.calc-card{

background:rgba(255,255,255,0.05);

padding:30px;

border-radius:15px;

backdrop-filter:blur(10px);

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

display:flex;

flex-direction:column;

gap:12px;

margin-bottom:25px;

}

.calc-card input{

padding:12px;

border-radius:8px;

border:none;

outline:none;

}

.calc-card button{

padding:12px;

border:none;

border-radius:10px;

background:linear-gradient(90deg,#2dd4ff,#3a86ff);

color:white;

font-size:16px;

cursor:pointer;

transition:0.2s;

}

.calc-card button{

width:100%;

}

.calc-card button:hover{

transform:translateY(-2px);

box-shadow:0 6px 20px rgba(80,160,255,0.5);

}

/* RESULT */

.result-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(200px,1fr));

gap:20px;

margin-bottom:30px;

}

.result-card{

background:rgba(255,255,255,0.05);

padding:25px;

border-radius:12px;

text-align:center;

}

.result-card span{

font-size:14px;

opacity:0.7;

}

.result-card h3{

font-size:30px;

margin-top:5px;

color:#4cc9ff;

}

/* INFO */

.info-box{

background:rgba(255,255,255,0.04);

padding:25px;

border-radius:12px;

line-height:1.6;

}

.qadha-guide{

margin-top:28px;

padding:28px;

border-radius:16px;

background:linear-gradient(135deg,rgba(76,201,255,0.14),rgba(255,255,255,0.04));

border:1px solid rgba(255,255,255,0.08);

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

}

.guide-header{

margin-bottom:20px;

}

.guide-kicker{

display:inline-block;

margin-bottom:8px;

padding:6px 12px;

border-radius:999px;

background:rgba(76,201,255,0.14);

color:#8fe4ff;

font-size:12px;

font-weight:700;

letter-spacing:0.08em;

text-transform:uppercase;

}

.guide-header h3{

margin:0 0 10px;

font-size:28px;

}

.guide-header p{

margin:0;

max-width:700px;

opacity:0.84;

line-height:1.7;

}

.guide-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:18px;

}

.guide-card{

padding:20px;

border-radius:14px;

background:rgba(6,18,31,0.42);

border:1px solid rgba(255,255,255,0.08);

}

.guide-card h4{

margin:0 0 10px;

color:#8fe4ff;

font-size:18px;

}

.guide-card p{

margin:0;

opacity:0.88;

line-height:1.7;

}

blockquote{

margin-top:15px;

padding-left:15px;

border-left:3px solid #4cc9ff;

opacity:0.9;

}

/* PRE FOOTER */

.pre-footer{

margin-top:60px;

padding:60px 20px;

background:linear-gradient(135deg,#0a1f34,#0f2e4c);

}

.pre-footer-grid{

max-width:1100px;

margin:auto;

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:40px;

}

.pf-box h3{

color:#4cc9ff;

margin-bottom:10px;

}

.pf-box ul{

list-style:none;

padding-left:0;

margin:0;

}

/* FOOTER */

.footer{

padding:20px;

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

display:flex;

justify-content:center;

gap:20px;

flex-wrap:wrap;

}

.footer a{

color:white;

text-decoration:none;

font-size:14px;

opacity:0.8;

}

.footer a:hover{

color:#4cc9ff;

}

.footer-bottom{

text-align:center;

padding:15px;

font-size:14px;

opacity:0.7;

}

/* SCROLL TO TOP */

.scroll-to-top{
   position: fixed;

   left: 18px;
   bottom: 26px;

   width: 42px;
   height: 36px;

   border: none;
   border-radius: 10px;

   display: flex;
   align-items: center;
   justify-content: center;

   cursor: pointer;

   background: linear-gradient(135deg,#ef4444,#dc2626);

   color: white;

   box-shadow:
     0 6px 16px rgba(0,0,0,0.25),
     0 3px 8px rgba(239,68,68,0.35);

   opacity: 0;
   visibility: hidden;

   transform: translateY(14px);
   transition: all 0.28s ease;

   z-index: 999;
   pointer-events: none;
 }

 .scroll-to-top svg{
   width: 16px;
   height: 16px;
 }

 .scroll-to-top.show{
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
   pointer-events: auto;
 }

 .scroll-to-top:hover{
   transform: translateY(-2px);
   box-shadow:
     0 10px 22px rgba(0,0,0,0.3),
     0 6px 14px rgba(239,68,68,0.45);
 }

 .scroll-to-top:active{
   transform: scale(0.95);
 }

/* MOBILE */

@media(max-width:700px){

.nav-menu{

gap:12px;

font-size:12px;

flex-wrap:wrap;

}

.nav-container{
 
flex-direction:column;
 
align-items:flex-start;
 
gap:10px;
 
}

.nav-brand{
  width:100%;
  justify-content:center;
}

.nav-brand-glass{
  width:100%;
  justify-content:center;
  padding:9px 12px;
}

.nav-menu{
 
width:100%;
 
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:10px;
overflow:hidden;
padding:10px 10px;
border-radius:18px;
background:rgba(255,255,255,0.05);
border:1px solid rgba(255,255,255,0.10);
backdrop-filter: blur(12px);
box-sizing:border-box;
min-width:0;
 
}

.nav-menu a{
 
white-space:normal;
padding:10px 8px;
border-radius:14px;
background: rgba(255,255,255,0.04);
display:flex;
justify-content:center;
width:100%;
min-width:0;
box-sizing:border-box;
 
}

.nav-menu::-webkit-scrollbar{
 
display:none;
 
}

.hero h1{

font-size:28px;

}

.hero{
 
padding:90px 16px 60px;
 
}

.calc-card{
 
padding:18px;
 
}

.result-card h3{
 
font-size:24px;
 
}

.qadha-guide{

padding:22px 18px;

}

.guide-header h3{

font-size:24px;

}

}
