@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
--primary:#0A2348;
--secondary:#FF6B00;
--white:#ffffff;
--light:#f5f7fb;
--text:#4b5563;
}

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
scroll-behavior:smooth;
}

body{
background:var(--white);
color:var(--primary);
overflow-x:hidden;
line-height:1.6;
}

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

/* HEADER */
header{
position:sticky;
top:0;
z-index:999;
background:#fff;
box-shadow:0 2px 20px rgba(0,0,0,.08);
padding:18px 0;
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:30px;
font-weight:800;
color:var(--primary);
}

.nav ul{
display:flex;
list-style:none;
gap:25px;
}

.nav a{
text-decoration:none;
color:var(--primary);
font-weight:600;
transition:.3s;
}

.nav a:hover{
color:var(--secondary);
}

/* Hamburger */
.hamburger{
display:none;
flex-direction:column;
gap:5px;
background:none;
border:none;
cursor:pointer;
padding:5px;
z-index:1000;
}

.hamburger span{
display:block;
width:25px;
height:3px;
background:var(--primary);
border-radius:3px;
transition:.3s;
}

.hamburger.active span:nth-child(1){
transform:rotate(45deg) translate(5px,6px);
}

.hamburger.active span:nth-child(2){
opacity:0;
}

.hamburger.active span:nth-child(3){
transform:rotate(-45deg) translate(5px,-6px);
}

/* HERO */
.hero{
min-height:100vh;
display:flex;
align-items:center;
justify-content:center;
text-align:center;

background:
linear-gradient(rgba(255,255,255,.88),
rgba(255,255,255,.92)),
url("capital-bg.jpg");

background-size:cover;
background-position:center;
background-repeat:no-repeat;
}

.hero-content{
max-width:850px;
}

.tagline{
display:inline-block;
background:#fff3eb;
color:var(--secondary);
padding:8px 18px;
border-radius:30px;
font-size:14px;
font-weight:600;
margin-bottom:20px;
}

.hero h1{
font-size:65px;
font-weight:800;
line-height:1.2;
margin-bottom:20px;
color:var(--primary);
}

.hero p{
font-size:20px;
color:var(--text);
margin-bottom:35px;
}

.hero-btns{
display:flex;
justify-content:center;
gap:15px;
flex-wrap:wrap;
}

.btn{
background:var(--secondary);
color:white;
text-decoration:none;
padding:15px 35px;
border-radius:50px;
font-weight:600;
transition:.3s;
}

.btn:hover{
transform:translateY(-3px);
box-shadow:0 10px 25px rgba(255,107,0,.25);
}

.btn-outline{
padding:15px 35px;
border:2px solid var(--secondary);
border-radius:50px;
text-decoration:none;
font-weight:600;
color:var(--secondary);
transition:.3s;
}

.btn-outline:hover{
background:var(--secondary);
color:white;
}

/* SECTION TITLE */
h2{
text-align:center;
font-size:42px;
margin-bottom:50px;
color:var(--primary);
}

h2::after{
content:'';
display:block;
width:70px;
height:4px;
background:var(--secondary);
margin:10px auto 0;
border-radius:10px;
}

/* STATS */
.stats{
padding:80px 0;
background:var(--light);
}

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

.stat-box{
background:white;
padding:30px;
border-radius:18px;
text-align:center;
box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.stat-box h3{
font-size:42px;
color:var(--secondary);
margin-bottom:10px;
}

/* SERVICES */
.services{
padding:100px 0;
}

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:25px;
}

.card{
background:white;
padding:35px;
border-radius:20px;
text-align:center;
box-shadow:0 8px 25px rgba(0,0,0,.06);
transition:.3s;
}

.card:hover{
transform:translateY(-10px);
}

.card i{
font-size:45px;
color:var(--secondary);
margin-bottom:15px;
}

.card h3{
margin-bottom:10px;
}

/* PROCESS */
.process{
padding:100px 0;
background:var(--light);
}

.process-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}

.process-box{
background:white;
padding:30px;
border-radius:20px;
text-align:center;
box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.process-box span{
display:inline-flex;
width:60px;
height:60px;
align-items:center;
justify-content:center;
background:var(--secondary);
color:white;
font-size:22px;
font-weight:700;
border-radius:50%;
margin-bottom:15px;
}

/* WHY */
.why{
padding:100px 0;
}

.why-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
}

.why-box{
background:white;
padding:25px;
border-radius:15px;
text-align:center;
box-shadow:0 5px 20px rgba(0,0,0,.06);
}

/* EMI */
.emi{
padding:100px 0;
background:var(--light);
}

.emi-box{
max-width:550px;
margin:auto;
background:white;
padding:35px;
border-radius:20px;
box-shadow:0 8px 25px rgba(0,0,0,.06);
display:flex;
flex-direction:column;
gap:15px;
}

input,
select{
width:100%;
padding:15px;
border:1px solid #ddd;
border-radius:10px;
font-size:15px;
}

input:focus,
select:focus{
outline:none;
border-color:var(--secondary);
}

button{
background:var(--secondary);
color:white;
padding:15px;
border:none;
border-radius:10px;
font-weight:600;
cursor:pointer;
}

/* TESTIMONIALS */
.testimonials{
padding:100px 0;
}

/* CONTACT */
.contact{
padding:100px 0;
background:var(--light);
}

.contact-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
}

.form-box,
.address-box{
background:white;
padding:35px;
border-radius:20px;
box-shadow:0 8px 25px rgba(0,0,0,.06);
}

.form-box form{
display:flex;
flex-direction:column;
gap:15px;
}

.address-box h3{
margin-bottom:15px;
}

.address-box p{
margin-bottom:10px;
}

/* MAP */
.map iframe{
width:100%;
height:400px;
border:none;
pointer-events:none;
}

/* FOOTER */
footer{
background:var(--primary);
color:white;
text-align:center;
padding:35px 20px;
}

.disclaimer{
opacity:.8;
font-size:13px;
margin-top:10px;
}

/* WHATSAPP */
.whatsapp{
position:fixed;
right:20px;
bottom:20px;
width:65px;
height:65px;
background:#25D366;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:30px;
color:white;
text-decoration:none;
z-index:999;
animation:pulse 2s infinite;
}

@keyframes pulse{
0%{ box-shadow:0 0 0 0 rgba(37,211,102,.7); }
70%{ box-shadow:0 0 0 20px rgba(37,211,102,0); }
100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}

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

.hero h1{ font-size:38px; }
.hero p{ font-size:17px; }
.hero-logo{ max-width:180px; margin-bottom:20px; }
.hamburger{ display:flex; }

.nav{
flex-direction:row;
flex-wrap:wrap;
gap:10px;
position:relative;
}

.nav .nav-links{
display:none;
width:100%;
flex-direction:column;
align-items:center;
gap:10px;
padding-top:10px;
background:#fff;
position:absolute;
top:100%;
left:0;
right:0;
box-shadow:0 5px 20px rgba(0,0,0,.1);
padding:15px;
margin-top:10px;
border-radius:10px;
}

.nav .nav-links.active{ display:flex; }

.nav ul{
flex-wrap:wrap;
justify-content:center;
}

.contact-grid{
grid-template-columns:1fr;
}

h2{
font-size:32px;
}
}

/* PREMIUM ANIMATIONS */
.hero-content{
animation:fadeUp 1s ease;
}

@keyframes fadeUp{
0%{ opacity:0; transform:translateY(60px); }
100%{ opacity:1; transform:translateY(0); }
}

.nav a{
position:relative;
}

.nav a::after{
content:'';
position:absolute;
left:0;
bottom:-5px;
width:0;
height:3px;
background:#FF6B00;
transition:.3s;
}

.nav a:hover::after{
width:100%;
}

.card{
transition:all .4s ease;
cursor:pointer;
}

.card:hover{
transform:translateY(-12px) scale(1.03);
box-shadow:0 20px 40px rgba(255,107,0,.20);
}

.card i{
transition:.3s;
}

.card:hover i{
transform:scale(1.2);
}

.stat-box{
transition:.4s;
}

.stat-box:hover{
transform:translateY(-10px);
box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.why-box{
transition:.3s;
}

.why-box:hover{
background:#FF6B00;
color:#fff;
transform:translateY(-8px);
}

.btn,
.btn-outline,
button{
position:relative;
overflow:hidden;
transition:.3s;
}

.btn:hover,
button:hover{
transform:translateY(-3px);
}

.btn::before,
button::before{
content:'';
position:absolute;
top:0;
left:-100%;
width:100%;
height:100%;
background:rgba(255,255,255,.25);
transition:.5s;
}

.btn:hover::before,
button:hover::before{
left:100%;
}

input,
select{
transition:.3s;
}

input:focus,
select:focus{
border-color:#FF6B00;
box-shadow:0 0 0 4px rgba(255,107,0,.15);
}

.address-box{
transition:.4s;
}

.address-box:hover{
transform:translateY(-5px);
}

::-webkit-scrollbar{
width:10px;
}

::-webkit-scrollbar-track{
background:#f1f1f1;
}

::-webkit-scrollbar-thumb{
background:#FF6B00;
border-radius:10px;
}

::-webkit-scrollbar-thumb:hover{
background:#e05f00;
}

.cursor{
position:fixed;
width:20px;
height:20px;
background:#FF6B00;
border-radius:50%;
pointer-events:none;
transform:translate(-50%,-50%);
z-index:99999;
box-shadow:0 0 20px #FF6B00;
transition:transform .08s linear;
}

.cursor.active{
width:40px;
height:40px;
background:rgba(255,107,0,.25);
border:2px solid #FF6B00;
}

/* EMI CALCULATOR UPGRADE */
.chart-box{
display:none;
margin:10px 0;
text-align:center;
background:#fff;
padding:20px;
border-radius:15px;
}

#pieChart{
width:220px !important;
height:220px !important;
margin:auto;
display:block;
}

#result{
text-align:center;
font-size:24px;
font-weight:700;
color:#0A2348;
margin:10px 0 15px;
}

#showSchedule{
margin-top:10px !important;
width:100%;
}

#scheduleContainer{
display:none;
margin-top:20px;
overflow-x:auto;
}

#scheduleTable{
width:100%;
border-collapse:collapse;
background:#fff;
border-radius:12px;
overflow:hidden;
}

#scheduleTable th{
background:#0A2348;
color:#fff;
padding:12px;
font-size:14px;
}

#scheduleTable td{
padding:10px;
text-align:center;
border:1px solid #eee;
font-size:14px;
}

#scheduleTable tr:nth-child(even){
background:#f8f9fc;
}

#exportExcel{
margin-bottom:15px;
background:#16a34a;
}

#exportExcel:hover{
background:#15803d;
}

@media(max-width:768px){
#pieChart{ max-width:220px; max-height:220px; }
#scheduleTable th, #scheduleTable td{ font-size:12px; padding:8px; }
}

.logo img{
height:70px;
width:auto;
display:block;
}

.hero-logo{
width:60%;
max-width:400px;
display:block;
margin:0 auto 30px;
}

.apply-btn{
background:#ff7a00;
color:#fff;
border:none;
padding:18px 50px;
font-size:18px;
font-weight:700;
border-radius:999px;
cursor:pointer;
transition:all .3s ease;
box-shadow:0 6px 15px rgba(255,122,0,.35);
display:inline-block;
min-width:260px;
text-align:center;
}

.apply-btn:hover{
background:#e66a00;
transform:scale(1.05);
box-shadow:0 8px 20px rgba(255,122,0,.45);
}

.apply-btn:active{
transform:scale(.98);
}

.hero img{
animation:float 4s ease-in-out infinite;
}

@keyframes float{
0%{ transform:translateY(0); }
50%{ transform:translateY(-15px); }
100%{ transform:translateY(0); }
}

/* ===== Loan Form (used by apply.html) ===== */
.loan-container{
display:flex;
justify-content:center;
align-items:center;
padding:30px 15px;
}

.loan-form{
width:100%;
max-width:430px;
background:#fff;
padding:30px;
border-radius:20px;
box-shadow:0 15px 40px rgba(0,0,0,.08);
border-top:5px solid #ff7a00;
margin:auto;
}

.loan-logo{
display:block;
height:55px;
margin:0 auto 20px;
}

.loan-title{
text-align:center;
color:#0B4EA2;
font-size:30px;
font-weight:700;
margin-bottom:10px;
}

.loan-subtitle{
text-align:center;
color:#666;
font-size:15px;
line-height:1.6;
margin-bottom:25px;
}

.loan-group{
margin-bottom:18px;
}

.loan-label{
display:block;
margin-bottom:8px;
font-size:14px;
font-weight:600;
color:#333;
}

.loan-input{
width:100%;
height:52px;
padding:0 16px;
border:1px solid #ddd;
border-radius:12px;
font-size:15px;
outline:none;
transition:.3s;
}

.loan-input:focus{
border-color:#0B4EA2;
box-shadow:0 0 0 4px rgba(11,78,162,.12);
}

.loan-btn{
width:100%;
height:54px;
border:none;
border-radius:50px;
background:linear-gradient(90deg,#ff7a00,#ff9800);
color:#fff;
font-size:17px;
font-weight:600;
cursor:pointer;
transition:.3s;
}

.loan-btn:hover{
transform:translateY(-2px);
box-shadow:0 8px 18px rgba(255,122,0,.30);
}

.loan-btn:active{
transform:scale(.98);
}

.loan-secure{
text-align:center;
margin-top:18px;
font-size:13px;
color:#666;
}

@media (max-width:768px){
.loan-form{ padding:25px; }
.loan-logo{ height:48px; }
.loan-title{ font-size:26px; }
.loan-btn{ font-size:16px; }
}

@media (max-width:480px){
.loan-container{ padding:15px; }
.loan-form{ padding:20px; border-radius:16px; }
.loan-input{ height:50px; font-size:14px; }
.loan-btn{ height:50px; }
}
