/* ==============================
   Golden Calendar
   Digital Astrolabe Interface
   Developed by Nemimeche Benaissa
================================ */

:root{
    --gold:#FFD700;
    --dark:#030712;
    --card-bg:rgba(17,24,39,.85);
    --text-light:#e8e8e8;
    --text-muted:#aaa;
}

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

html{
    scroll-behavior:smooth;
}

body{
    background:var(--dark);
    color:#ffffff;
    font-family:'Cairo',sans-serif;
    overflow-x:hidden;
    animation:fadeIn 1s ease;
}

/* =======================
   BACKGROUND EFFECTS
======================== */

.stars{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    left:0;
    background-image:
        radial-gradient(white 1px, transparent 1px);
    background-size:45px 45px;
    opacity:0.25;
    animation:starsMove 60s linear infinite;
    z-index:-3;
}

.orb{
    position:fixed;
    width:550px;
    height:550px;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    border-radius:50%;
    border:2px solid rgba(255,215,0,.18);
    box-shadow:
        0 0 80px rgba(255,215,0,.15),
        inset 0 0 80px rgba(255,215,0,.1);
    animation:rotateOrb 80s linear infinite;
    z-index:-2;
}

.orb::before{
    content:"";
    position:absolute;
    inset:50px;
    border-radius:50%;
    border:1px dashed rgba(255,215,0,.15);
}

@keyframes rotateOrb{
    from{ transform:translate(-50%,-50%) rotate(0deg); }
    to{ transform:translate(-50%,-50%) rotate(360deg); }
}

@keyframes starsMove{
    from{ transform:translateY(0); }
    to{ transform:translateY(-500px); }
}

@keyframes fadeIn{
    from{ opacity:0; }
    to{ opacity:1; }
}

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

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:25px 8%;
    position:relative;
}

.logo{
    font-size:35px;
    font-weight:900;
    color:var(--gold);
    text-shadow:0 0 20px var(--gold);
}

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

.navbar a{
    color:#ddd;
    text-decoration:none;
    transition:0.3s;
}

.navbar a:hover{
    color:var(--gold);
}

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

.hero{
    min-height:75vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:40px 20px;
}

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

.hero h1{
    font-size:75px;
    font-weight:900;
    color:var(--gold);
    text-shadow:0 0 35px rgba(255,215,0,.7);
}

.hero h2{
    margin-top:20px;
    font-size:35px;
    color:#fff;
}

.hero p{
    margin-top:30px;
    line-height:2;
    font-size:20px;
    color:var(--text-light);
}

.hero-buttons{
    margin-top:40px;
    display:flex;
    gap:20px;
    justify-content:center;
}

button{
    padding:15px 45px;
    border:none;
    border-radius:50px;
    background:var(--gold);
    color:#111;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:0.35s;
}

button:hover{
    transform:scale(1.08);
    box-shadow:0 0 30px var(--gold);
}

button:focus-visible{
    outline:3px solid var(--gold);
    outline-offset:3px;
}

/* ==================
   STATS
================== */

.stats{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px;
    padding:70px 20px;
}

.card{
    width:290px;
    padding:35px;
    background:var(--card-bg);
    border-radius:25px;
    text-align:center;
    border:1px solid rgba(255,215,0,.15);
    box-shadow:0 0 30px rgba(0,0,0,.4);
    transition:0.4s;
}

.card:hover{
    transform:translateY(-10px);
    border-color:var(--gold);
    box-shadow:0 0 35px rgba(255,215,0,.25);
}

.num,
#counter{
    font-size:48px;
    font-weight:900;
    color:var(--gold);
}

.txt{
    margin-top:15px;
    color:#ccc;
    font-size:18px;
}

.main{
    border:1px solid rgba(255,215,0,.5);
}

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

.about{
    max-width:1100px;
    margin:auto;
    padding:90px 25px;
    text-align:center;
}

.about h2{
    font-size:40px;
    color:var(--gold);
    margin-bottom:45px;
}

.about p{
    font-size:19px;
    line-height:2.3;
    color:var(--text-light);
    margin-bottom:30px;
}

.about strong{
    color:var(--gold);
    font-size:22px;
}

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

.features{
    padding:70px 8%;
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
    gap:30px;
}

.feature{
    background:var(--card-bg);
    padding:35px;
    border-radius:25px;
    border:1px solid rgba(255,215,0,.12);
    transition:0.35s;
}

.feature:hover{
    transform:translateY(-8px);
    box-shadow:0 0 35px rgba(255,215,0,.2);
}

.feature h3{
    color:var(--gold);
    font-size:23px;
    margin-bottom:20px;
}

.feature p{
    color:#ccc;
    line-height:2;
}

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

footer{
    text-align:center;
    padding:70px 20px;
    background:rgba(0,0,0,.25);
    margin-top:50px;
}

footer h3{
    font-size:32px;
    color:var(--gold);
}

footer p{
    margin:15px;
    color:var(--text-muted);
}

.footer-stats{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin:35px 0;
}

.footer-stats span{
    padding:10px 25px;
    border-radius:30px;
    background:#111827;
    color:var(--gold);
}

.copyright{
    color:#777;
    margin-top:30px;
}

.dev{
    margin-top:20px;
    font-size:18px;
    color:var(--gold);
}

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

@media(max-width:900px){
    .navbar{
        flex-direction:column;
        gap:20px;
    }
    .navbar ul{
        flex-wrap:wrap;
        justify-content:center;
    }
    .hero h1{
        font-size:45px;
    }
    .hero h2{
        font-size:25px;
    }
    .hero p{
        font-size:17px;
    }
}

@media(max-width:600px){
    .logo{
        font-size:28px;
    }
    .hero h1{
        font-size:38px;
    }
    .hero-buttons{
        flex-direction:column;
    }
    button{
        width:100%;
    }
    .card{
        width:100%;
    }
    .about h2{
        font-size:32px;
    }
    .orb{
        width:300px;
        height:300px;
    }
    .orb::before{
        inset:25px;
    }
}
