/* ==========================================================
   RESET
========================================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Inter,Segoe UI,Arial,sans-serif;
    transition:background .3s,color .3s;
}

/* ==========================================================
   THEMES
========================================================== */

:root{

    --bg:#111111;
    --bg2:#181818;
    --card:#222222;

    --text:#ffffff;
    --text2:#cfcfcf;

    --border:#323232;

    --purple:#8b5cf6;
    --purple-hover:#a970ff;

}

/* LIGHT MODE */

html[data-theme="light"]{

    --bg:#f5f5f5;
    --bg2:#ffffff;
    --card:#ffffff;

    --text:#181818;
    --text2:#555555;

    --border:#dddddd;

}

/* ==========================================================
   BODY
========================================================== */

body{

    background:var(--bg);
    color:var(--text);

}

/* ==========================================================
   TOP BAR
========================================================== */

.topbar{

    background:var(--bg2);

    border-bottom:1px solid var(--border);

    padding:10px 8%;

}

.top-links{

    display:flex;

    justify-content:flex-end;

    gap:20px;

    flex-wrap:wrap;

}

.top-links a{

    color:var(--text2);

    text-decoration:none;

    transition:.25s;

}

.top-links a:hover{

    color:var(--purple);

}

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

header{

    position:sticky;

    top:0;

    z-index:999;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 8%;

    backdrop-filter:blur(18px);

    background:rgba(20,20,20,.75);

    border-bottom:1px solid var(--border);

}

html[data-theme="light"] header{

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

}

.logo img{

    height:55px;

}

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

nav{

    display:flex;

    gap:30px;

}

nav a{

    color:var(--text);

    text-decoration:none;

    font-weight:600;

    transition:.25s;

}

nav a:hover{

    color:var(--purple);

}

.active{

    color:var(--purple);

}

/* ==========================================================
   THEME BUTTON
========================================================== */

#themeToggle{

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    font-size:20px;

    transition:.25s;

}

#themeToggle:hover{

    transform:scale(1.1);

    background:var(--purple);

    color:white;

}

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

.hero{

    text-align:center;

}

.hero-banner{

    width:100%;

    max-height:550px;

    object-fit:cover;

    display:block;

}

.hero-content{

    width:min(900px,90%);

    margin:auto;

    padding:70px 0;

}

.hero h1{

    font-size:4rem;

    margin-bottom:20px;

}

.hero p{

    font-size:1.2rem;

    color:var(--text2);

    margin-bottom:40px;

}

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

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.button{

    text-decoration:none;

    padding:15px 30px;

    border-radius:12px;

    font-weight:bold;

    transition:.25s;

}

.primary{

    background:var(--purple);

    color:white;

}

.primary:hover{

    background:var(--purple-hover);

    transform:translateY(-3px);

}

.secondary{

    border:2px solid var(--purple);

    color:var(--purple);

}

.secondary:hover{

    background:var(--purple);

    color:white;

}

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

section{

    width:min(1300px,90%);

    margin:auto;

    margin-top:90px;

}

section h2{

    font-size:2.2rem;

    margin-bottom:35px;

}

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

.features{

    display:grid;

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

    gap:25px;

}

.feature-card{

    display:grid;

    background:var(--card);

    padding:30px;

    border-radius:18px;

    border:1px solid var(--border);

    transition:.25s;

}

.feature-card:hover{

    transform:translateY(-6px);

    border-color:var(--purple);

}

.feature-card h2{

    color:var(--purple);

    font-size:1.4rem;

    margin-bottom:15px;

}

.feature-card p{

    color:var(--text2);

}

/* ==========================================================
   NEWS
========================================================== */

.news-card{

    background:var(--card);

    padding:30px;

    border-radius:18px;

    border:1px solid var(--border);

}

.news-card h3{

    margin-bottom:15px;

}

.news-card span{

    display:block;

    margin-top:20px;

    color:var(--purple);

}

/* ==========================================================
   PROJECTS
========================================================== */

.project-grid{

    display:grid;

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

    gap:25px;

}

.project-card{

    background:var(--card);

    padding:30px;

    border-radius:18px;

    border:1px solid var(--border);

    transition:.25s;

}

.project-card:hover{

    transform:translateY(-6px);

    border-color:var(--purple);

}

.project-card p{

    color:var(--text2);

    margin:20px 0;

}

.project-card a{

    text-decoration:none;

    color:var(--purple);

    font-weight:bold;

}

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

.stats{

    display:grid;

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

    gap:20px;

}

.stat{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:18px;

    text-align:center;

    padding:35px;

}

.stat h2{

    color:var(--purple);

    font-size:3rem;

}

/* ==========================================================
   CTA
========================================================== */

.cta{

    text-align:center;

    padding-bottom:80px;

}

.cta p{

    margin:25px 0 40px;

    color:var(--text2);

}

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

footer{

    margin-top:100px;

    padding:60px 8%;

    text-align:center;

    background:var(--bg2);

    border-top:1px solid var(--border);

}

footer img{

    height:55px;

    margin-bottom:25px;

}

.footer-links{

    display:flex;

    justify-content:center;

    gap:30px;

    flex-wrap:wrap;

    margin-bottom:25px;

}

.footer-links a{

    text-decoration:none;

    color:var(--text2);

}

.footer-links a:hover{

    color:var(--purple);

}

footer p{

    color:var(--text2);

}

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

.hidden{

    opacity:0;

    transform:translateY(35px);

    transition:.7s;

}

.show{

    opacity:1;

    transform:translateY(0);

}

/* ==========================================================
   BACK TO TOP
========================================================== */

#backToTop{

    position:fixed;

    bottom:25px;

    right:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:var(--purple);

    color:white;

    font-size:20px;

    cursor:pointer;

    opacity:0;

    pointer-events:none;

    transition:.25s;

}

#backToTop:hover{

    transform:translateY(-3px);

}

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

@media(max-width:900px){

header{

    flex-direction:column;

    gap:20px;

}

nav{

    flex-wrap:wrap;

    justify-content:center;

}

.hero h1{

    font-size:2.8rem;

}

}

@media(max-width:600px){

.hero h1{

    font-size:2.2rem;

}

.hero-buttons{

    flex-direction:column;

}

.button{

    width:100%;

}

.top-links{

    justify-content:center;

}

}
