/* ===================================================
   Student Residences Budapest
   Premium Style v3
=================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f5f7fb;
    color:#333;
    line-height:1.7;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

/* ================= CONTAINER ================= */

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

/* ================= HEADER ================= */

.header{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    background:rgba(255,255,255,.88);

    backdrop-filter:blur(18px);

    -webkit-backdrop-filter:blur(18px);

    box-shadow:0 10px 35px rgba(0,0,0,.08);

    z-index:1000;

    transition:.35s;

}

.header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}

.logo img{

    height:90px;

    transition:.35s;

}

.logo img:hover{

    transform:scale(1.05);

}

/* ================= NAVIGATION ================= */

nav ul{

    display:flex;

    gap:38px;

    list-style:none;

}

nav a{

    text-decoration:none;

    color:#0D4D9E;

    font-weight:600;

    position:relative;

    transition:.3s;

}

nav a::after{

    content:"";

    position:absolute;

    bottom:-7px;

    left:0;

    width:0;

    height:2px;

    background:#0D4D9E;

    transition:.35s;

}

nav a:hover{

    color:#1565c0;

}

nav a:hover::after{

    width:100%;

}

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

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

    background:

    linear-gradient(rgba(0,0,0,.50),rgba(0,0,0,.50)),

    url("hero.jpg");

    background-size:cover;

    background-position:center center;

    background-repeat:no-repeat;

}

.hero-content{

    max-width:850px;

    padding:20px;

    animation:fadeUp 1.1s ease;

}

.hero h1{

    font-size:76px;

    line-height:1.1;

    margin-bottom:28px;

    text-shadow:0 5px 18px rgba(0,0,0,.35);

}

.hero p{

    font-size:23px;

    font-weight:300;

    margin-bottom:45px;

}

/* ================= BUTTONS ================= */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:22px;

    flex-wrap:wrap;

}

.btn{

    background:white;

    color:#0D4D9E;

    padding:16px 40px;

    border-radius:40px;

    text-decoration:none;

    font-weight:600;

    box-shadow:0 12px 30px rgba(0,0,0,.20);

    transition:.35s;

}

.btn:hover{

    transform:translateY(-5px);

    box-shadow:0 18px 40px rgba(0,0,0,.28);

}

.btn-outline{

    border:2px solid white;

    color:white;

    padding:16px 40px;

    border-radius:40px;

    text-decoration:none;

    font-weight:600;

    transition:.35s;

}

.btn-outline:hover{

    background:white;

    color:#0D4D9E;

}

/* ================= SECTIONS ================= */

section{

    padding:100px 0;

}

.section-title{

    text-align:center;

    font-size:42px;

    margin-bottom:60px;

    color:#0D4D9E;

}

/* ================= CARDS ================= */

.cards{

    display:grid;

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

    gap:35px;

}

.card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    transition:.35s;

}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 22px 55px rgba(0,0,0,.16);

}

.card img{

    width:100%;

    height:280px;

    object-fit:cover;

    object-position:center;

    transition:.5s;

}

.card:hover img{

    transform:scale(1.08);

}

.card-content{

    padding:30px;

}

.card h3{

    color:#0D4D9E;

    font-size:24px;

    margin-bottom:15px;

}

.card p{

    color:#666;

    margin-bottom:22px;

}

.card a{

    display:inline-block;

    text-decoration:none;

    background:#0D4D9E;

    color:white;

    padding:13px 24px;

    border-radius:30px;

    transition:.35s;

}

.card a:hover{

    background:#1565c0;

}
/* ================= GALLERY ================= */

.gallery{

    display:grid;

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

    gap:25px;

}

.gallery img{

    width:100%;

    height:280px;

    object-fit:cover;

    border-radius:18px;

    box-shadow:0 12px 28px rgba(0,0,0,.10);

    transition:.35s;

    cursor:pointer;

}

.gallery img:hover{

    transform:scale(1.04);

    box-shadow:0 20px 45px rgba(0,0,0,.18);

}

/* ================= FEATURES ================= */

.feature-grid{

    display:grid;

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

    gap:22px;

}

.feature-item{

    background:white;

    padding:25px;

    border-radius:18px;

    text-align:center;

    font-size:18px;

    font-weight:500;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.3s;

}

.feature-item:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.15);

}

/* ================= PRICE SECTION ================= */

#prices .cards{

    margin-top:15px;

}

#prices .card{

    text-align:center;

    padding:35px 25px;

}

#prices h2{

    color:#0D4D9E;

    margin:18px 0;

    font-size:34px;

}

#prices h3{

    font-size:24px;

}

#prices p{

    color:#666;

}

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

.contact-box{

    max-width:720px;

    margin:auto;

    background:white;

    padding:50px;

    border-radius:22px;

    box-shadow:0 15px 35px rgba(0,0,0,.08);

    text-align:center;

}

.contact-box h2{

    color:#0D4D9E;

    margin-bottom:15px;

}

.contact-box h3{

    color:#0D4D9E;

    margin-bottom:25px;

}

.contact-box p{

    font-size:18px;

    margin-bottom:18px;

}

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

footer{

    background:#0D4D9E;

    color:white;

    text-align:center;

    padding:55px 20px;

}

footer p{

    opacity:.95;

    margin:8px 0;

}

/* ================= ANIMATIONS ================= */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(45px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#0D4D9E;

    border-radius:50px;

}

::-webkit-scrollbar-track{

    background:#eef2f7;

}

/* ================= MOBILE ================= */

@media(max-width:900px){

.header .container{

    flex-direction:column;

    padding:15px 0;

}

.logo img{

    height:75px;

}

nav ul{

    flex-wrap:wrap;

    justify-content:center;

    gap:18px;

    margin-top:18px;

}

.hero h1{

    font-size:48px;

}

.hero p{

    font-size:19px;

}

.cards{

    grid-template-columns:1fr;

}

.gallery{

    grid-template-columns:1fr;

}

.section-title{

    font-size:34px;

}

}

@media(max-width:600px){

.hero{

    min-height:85vh;

    padding:120px 20px 70px;

}

.hero h1{

    font-size:36px;

}

.hero p{

    font-size:17px;

}

.hero-buttons{

    flex-direction:column;

    align-items:center;

}

.btn,

.btn-outline{

    width:100%;

    max-width:300px;

    text-align:center;

}

.logo img{

    height:60px;

}

.card img{

    height:220px;

}

.gallery img{

    height:220px;

}

.contact-box{

    padding:30px 20px;

}

.section-title{

    font-size:30px;

}

}
