/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;
    background:#050816;
    color:white;
    overflow-x:hidden;

}

/* ===========================
   BACKGROUND
=========================== */

.background{

    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;

}

.background img{

    width: 100%;
    height: 100%;
    object-fit: cover;

}

.background::after{

    content: "";

    position: absolute;
    inset: 0;

    background: rgba(5,8,22,.65);

}

/* ===========================
   NAVBAR
=========================== */

header{

    position:fixed;

    top:0;

    width:100%;

    z-index:1000;

    padding:20px 7%;

}

.navbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:16px 35px;

    border-radius:60px;

    backdrop-filter:blur(18px);

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

}

.logo{

    font-size:32px;

    font-family:'Cinzel',serif;

    color:#FFD54F;

    letter-spacing:2px;

}

.nav-links{

    display:flex;

    list-style:none;

    gap:40px;

}

.nav-links a{

    color:white;

    text-decoration:none;

    transition:.35s;

    font-weight:500;

}

.nav-links a:hover{

    color:#FFD54F;

}

/* ===========================
   HERO
=========================== */

.hero{

    min-height:55vh;

    display:flex;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    text-align:center;

    padding-top:120px;

}

.hero h1{

    font-size:72px;

    font-family:'Cinzel',serif;

    margin-bottom:18px;

}

.hero p{

    width:700px;

    max-width:90%;

    color:#c9c9c9;

    line-height:1.8;

    font-size:18px;

}

/* ===========================
   CARDS
=========================== */

.cards{

    width:90%;

    margin:auto;

    display:flex;

    justify-content:center;

    align-items:center;

    gap:35px;

    margin-top:40px;

    margin-bottom:80px;

    flex-wrap:wrap;

}

.card{

    position:relative;

    width:360px;

    height:560px;

    border-radius:30px;

    overflow:hidden;

    text-decoration:none;

    background-size:cover;

    background-position:center;

    transition:.5s;

    box-shadow:0 20px 45px rgba(0,0,0,.35);

}

/* YOUR IMAGES */

.temple{

    background-image:url("images/imgmandir.jpeg");

}

.article{

    background-image:url("images/article.png");

}

.astrology{

    background-image:url("images/astrol.jpeg");

}
/* ===========================
   CARD OVERLAY
=========================== */

.overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:35px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,.95) 8%,
        rgba(0,0,0,.55) 40%,
        rgba(0,0,0,.15) 70%,
        rgba(0,0,0,0) 100%
    );

    transition:.4s;

}

.overlay h2{

    font-family:'Cinzel',serif;

    font-size:38px;

    color:#fff;

    margin-bottom:12px;

}

.overlay p{

    font-size:16px;

    line-height:1.8;

    color:#e8e8e8;

    margin-bottom:28px;

}

.overlay button{

    width:max-content;

    border:none;

    outline:none;

    padding:14px 28px;

    border-radius:50px;

    background:#ffffff;

    color:#111;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.35s;

}

/* ===========================
   HOVER EFFECTS
=========================== */

.card:hover{

    transform:translateY(-15px) scale(1.03);

    box-shadow:
    0 25px 60px rgba(0,0,0,.5),
    0 0 35px rgba(255,212,79,.45);

}

.card::before{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(255,255,255,.05);

    opacity:0;

    transition:.4s;

}

.card:hover::before{

    opacity:1;

}

.card:hover{

    background-size:110%;

}

.card:hover button{

    background:#FFD54F;

    color:#111;

    transform:translateX(8px);

}

/* ===========================
   FOOTER
=========================== */

footer{

    text-align:center;

    padding:60px 20px;

    border-top:1px solid rgba(255,255,255,.08);

    background:#03040d;

}

footer h3{

    font-family:'Cinzel',serif;

    font-size:34px;

    color:#FFD54F;

    margin-bottom:12px;

}

footer p{

    color:#bbb;

    letter-spacing:2px;

}
/* ===========================
   DROPDOWN SOCIAL MENU
=========================== */

.social-icons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

/* button */
.icon-btn{
    background:rgba(255,255,255,.08);
    color:white;
    border:1px solid rgba(255,255,255,.1);
    padding:10px 14px;
    border-radius:10px;
    cursor:pointer;
    transition:.3s;
    font-size:14px;
}

.icon-btn:hover{
    background:#FFD54F;
    color:#111;
}

/* dropdown container */
.dropdown{
    position:relative;
    display:inline-block;
}

/* THIS IS THE MAIN FIX */
.dropdown:hover .dropdown-content{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
/* hidden menu */
.dropdown-content{
    position:absolute;
    top:100%;
    left:0;

    background:#050816;
    border:1px solid rgba(255,255,255,.1);
    border-radius:10px;
    min-width:180px;
    z-index:1000;

    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:.2s ease;

    padding:5px 0;
}

/* links */
.dropdown-content a{
    display:block;
    padding:10px;
    color:white;
    text-decoration:none;
    font-size:13px;
    transition:.3s;
}

.dropdown-content a:hover{
    background:#FFD54F;
    color:#111;
}

/* show on hover */
.dropdown:hover .dropdown-content{
    display:block;
}
/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1150px){

.cards{

    gap:25px;

}

.card{

    width:320px;

    height:500px;

}

.hero h1{

    font-size:58px;

}

}

@media(max-width:900px){

.navbar{

    flex-direction:column;

    gap:18px;

    border-radius:25px;

}

.nav-links{

    gap:22px;

}

.hero{

    min-height:45vh;

}

.hero h1{

    font-size:46px;

}

.cards{

    flex-direction:column;

}

.card{

    width:92%;

    max-width:400px;

}

}

@media(max-width:600px){

.logo{

    font-size:24px;

}

.hero h1{

    font-size:36px;

}

.hero p{

    font-size:15px;

}

.overlay h2{

    font-size:28px;

}

.overlay p{

    font-size:14px;

}

.overlay button{

    padding:12px 22px;

}

}
