/* ===================================
   HostelSphere - Smart Hostel Portal
   Developed by Ritika Chourasia
=================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
scroll-behavior:smooth;
}

body{
background:#f5f9ff;
color:#333;
}

/* ================= NAVBAR ================= */

header{
position:fixed;
top:0;
left:0;
width:100%;
background:#ffffff;
box-shadow:0 5px 15px rgba(0,0,0,.08);
z-index:1000;
}

.navbar{
width:90%;
margin:auto;
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 0;
}

.logo{
display:flex;
align-items:center;
gap:12px;
}

.logo img{
width:55px;
height:55px;
}

.logo h2{
color:#0d6efd;
font-size:28px;
font-weight:bold;
}

.nav-links{
display:flex;
list-style:none;
gap:30px;
}

.nav-links li a{
text-decoration:none;
font-size:17px;
font-weight:600;
color:#444;
transition:.3s;
}

.nav-links li a:hover{
color:#0d6efd;
}

.nav-btn{
display:flex;
gap:15px;
}

.login-btn{

background:#0d6efd;
color:#fff;
padding:10px 22px;
border-radius:8px;
text-decoration:none;
font-weight:bold;
transition:.3s;

}

.login-btn:hover{

background:#084298;

}

.register-btn{

background:#198754;
color:#fff;
padding:10px 22px;
border-radius:8px;
text-decoration:none;
font-weight:bold;
transition:.3s;

}

.register-btn:hover{

background:#146c43;

}

/* ================= HERO ================= */

.hero{

padding:140px 8% 80px;

display:flex;

justify-content:space-between;

align-items:center;

gap:60px;

background:linear-gradient(135deg,#eef5ff,#ffffff);

}

.hero-content{

flex:1;

}

.hero-content h1{

font-size:50px;

color:#0d6efd;

margin-bottom:15px;

}

.hero-content h2{

font-size:32px;

margin-bottom:25px;

color:#222;

}

.hero-content p{

font-size:19px;

line-height:1.8;

color:#666;

margin-bottom:35px;

}

.hero-buttons{

display:flex;

gap:20px;

}

.primary-btn{

display:inline-block;

background:#0d6efd;

padding:14px 30px;

color:#fff;

text-decoration:none;

border-radius:8px;

font-size:17px;

font-weight:bold;

transition:.3s;

}

.primary-btn:hover{

background:#084298;

transform:translateY(-3px);

}

.secondary-btn{

display:inline-block;

background:#198754;

padding:14px 30px;

color:#fff;

text-decoration:none;

border-radius:8px;

font-size:17px;

font-weight:bold;

transition:.3s;

}

.secondary-btn:hover{

background:#146c43;

transform:translateY(-3px);

}

.hero-image{

flex:1;

text-align:center;

}

.hero-image img{

width:100%;

max-width:600px;

animation:float 4s ease-in-out infinite;

}

@keyframes float{

0%{

transform:translateY(0);

}

50%{

transform:translateY(-15px);

}

100%{

transform:translateY(0);

}

}
/* ===================================
   FEATURES SECTION
=================================== */

.features{

padding:80px 8%;

background:#ffffff;

text-align:center;

}

.features h2{

font-size:38px;

color:#0d6efd;

margin-bottom:50px;

}

.feature-container{

display:grid;

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

gap:30px;

}

.feature-card{

background:#f8fbff;

padding:35px 25px;

border-radius:15px;

box-shadow:0 8px 20px rgba(0,0,0,.08);

transition:.4s;

cursor:pointer;

}

.feature-card:hover{

transform:translateY(-10px);

box-shadow:0 15px 35px rgba(13,110,253,.25);

}

.feature-card i{

font-size:50px;

color:#0d6efd;

margin-bottom:20px;

}

.feature-card h3{

font-size:24px;

margin-bottom:15px;

color:#222;

}

.feature-card p{

font-size:16px;

line-height:1.8;

color:#666;

}

/* ===================================
   ABOUT PROJECT
=================================== */

.about-home{

padding:90px 10%;

background:#eef6ff;

text-align:center;

}

.about-home h2{

font-size:40px;

color:#0d6efd;

margin-bottom:25px;

}

.about-home p{

font-size:18px;

line-height:2;

color:#555;

max-width:950px;

margin:auto;

margin-bottom:35px;

}

/* ===================================
   STATISTICS
=================================== */

.stats{

padding:80px 8%;

display:grid;

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

gap:30px;

background:#ffffff;

}

.stat-card{

background:linear-gradient(135deg,#0d6efd,#3b82f6);

color:white;

padding:40px;

border-radius:15px;

text-align:center;

transition:.4s;

box-shadow:0 10px 20px rgba(0,0,0,.15);

}

.stat-card:hover{

transform:scale(1.05);

}

.stat-card h1{

font-size:48px;

margin-bottom:15px;

}

.stat-card p{

font-size:20px;

font-weight:bold;

letter-spacing:1px;

}
/* ===================================
   DEVELOPER SECTION
=================================== */

.developer-home{

padding:90px 8%;

background:#eef5ff;

text-align:center;

}

.developer-home h2{

font-size:40px;

color:#0d6efd;

margin-bottom:20px;

}

.developer-home p{

font-size:19px;

line-height:2;

color:#555;

margin-bottom:30px;

}

/* ===================================
   CONTACT SECTION
=================================== */

.contact{

padding:80px 8%;

text-align:center;

background:#ffffff;

}

.contact h2{

font-size:38px;

color:#0d6efd;

margin-bottom:20px;

}

.contact p{

font-size:18px;

color:#666;

margin-bottom:15px;

}

.contact-icons{

margin-top:25px;

}

.contact-icons a{

display:inline-block;

margin:12px;

width:55px;

height:55px;

line-height:55px;

background:#0d6efd;

color:white;

font-size:22px;

border-radius:50%;

transition:.3s;

text-decoration:none;

}

.contact-icons a:hover{

background:#198754;

transform:translateY(-8px);

}

/* ===================================
   FOOTER
=================================== */

footer{

background:#0d6efd;

color:white;

text-align:center;

padding:35px;

}

footer p{

margin:8px 0;

font-size:17px;

}

/* ===================================
   SCROLLBAR
=================================== */

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-thumb{

background:#0d6efd;

border-radius:20px;

}

::-webkit-scrollbar-track{

background:#eaf2ff;

}

/* ===================================
   RESPONSIVE
=================================== */

@media(max-width:992px){

.hero{

flex-direction:column;

text-align:center;

padding-top:150px;

}

.hero-content h1{

font-size:40px;

}

.hero-content h2{

font-size:28px;

}

.hero-image img{

max-width:450px;

}

.hero-buttons{

justify-content:center;

}

}

@media(max-width:768px){

.navbar{

flex-direction:column;

gap:20px;

}

.nav-links{

flex-direction:column;

align-items:center;

gap:15px;

}

.nav-btn{

flex-direction:column;

width:100%;

}

.login-btn,
.register-btn{

text-align:center;

}

.hero-content h1{

font-size:34px;

}

.hero-content h2{

font-size:24px;

}

.hero-content p{

font-size:17px;

}

.features h2,
.about-home h2,
.contact h2,
.developer-home h2{

font-size:30px;

}

}

@media(max-width:500px){

.logo h2{

font-size:22px;

}

.logo img{

width:45px;

height:45px;

}

.hero{

padding:130px 20px 60px;

}

.hero-content h1{

font-size:28px;

}

.hero-content h2{

font-size:22px;

}

.hero-content p{

font-size:15px;

}

.primary-btn,
.secondary-btn{

padding:12px 20px;

font-size:15px;

}

.feature-card{

padding:25px;

}

.stat-card h1{

font-size:38px;

}

.stat-card p{

font-size:16px;

}

}
/*=========================
ABOUT SECTION
==========================*/

.about{
    padding:80px 8%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    background:#f5f9ff;
    flex-wrap:wrap;
}

.about-image{
    flex:1;
    text-align:center;
}

.about-image img{
    width:100%;
    max-width:480px;
    height:auto;
    border-radius:20px;
    box-shadow:0 15px 35px rgba(0,0,0,.15);
}

.about-content{
    flex:1;
}

.about-content h2{
    font-size:42px;
    color:#1565c0;
    margin-bottom:20px;
}

.about-content p{
    font-size:18px;
    color:#555;
    line-height:1.8;
    margin-bottom:20px;
}

.about-content ul{
    list-style:none;
}

.about-content ul li{
    margin:12px 0;
    font-size:18px;
}

.about-content ul li i{
    color:#1abc9c;
    margin-right:10px;
}

/*=========================
DEVELOPER
==========================*/

.developer{
    padding:80px 8%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    flex-wrap:wrap;
}

.developer-image{
    flex:1;
    text-align:center;
}

.developer-image img{
    width:100%;
    max-width:380px;
    border-radius:50%;
    border:8px solid white;
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.developer-content{
    flex:1;
}

.developer-content h2{
    color:#1565c0;
    font-size:42px;
    margin-bottom:15px;
}

.developer-content h3{
    font-size:28px;
    margin-bottom:15px;
}

.developer-content p{
    font-size:18px;
    line-height:1.8;
    color:#555;
}

.developer-content .btn{
    display:inline-block;
    margin-top:25px;
}

/*=========================
RESPONSIVE
==========================*/

@media(max-width:992px){

.about,
.developer{

    flex-direction:column;

    text-align:center;

}

.about-content,
.developer-content{

    width:100%;

}

.about-image img{

    max-width:350px;

}

.developer-image img{

    max-width:260px;

}

}
