/* ==========================================
   StartupFinder - Developers Page
   Part 1
========================================== */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset */

:root{
    --bg:#f5f7fb;
    --card:#ffffff;
    --text:#222;
    --text-muted:rgba(34,34,34,.65);
    --primary:#4f46e5;
    --shadow:0 10px 30px rgba(0,0,0,.08);
    --tag-bg:#eef2ff;
}

body.dark{
    --bg:#0f172a;
    --card:#1e293b;
    --text:#f8fafc;
    --text-muted:rgba(248,250,252,.65);
    --primary:#818cf8;
    --shadow:0 10px 30px rgba(0,0,0,.45);
    --tag-bg:rgba(129,140,248,.15);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:var(--bg);
    color:var(--text);
    transition:background .4s ease, color .4s ease;
}
main{
    flex:1;
}

/* =======================
   Navbar
======================= */

header{
    width:100%;
    position:sticky;
    top:0;
    z-index:1000;
    background:var(--card);
    box-shadow:var(--shadow);
}

.nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 40px;
    background:var(--card);
    box-shadow:var(--shadow);
    position:sticky;
    top:0;
    z-index:1000;
    transition:background .4s ease, box-shadow .4s ease;
}

.logo{
    color:var(--primary);
    font-size:28px;
    font-weight:700;
}

.nav-links{
    display:flex;
    align-items:center;
    gap:25px;
}

.nav-links a{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
    transition:.3s;
    position:relative;
    padding-bottom:4px;
}

.nav-links a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:0%;
    height:2px;
    background:var(--primary);
    transition:width .3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after{
    width:100%;
}

.nav-links a:hover,
.nav-links a.active{
    color:var(--primary);
}
/* Space between links and theme button */
.theme-btn{
    margin-left:20px;
}

.theme-btn{
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#4f46e5,#7c3aed);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .35s ease;
    box-shadow:0 8px 20px rgba(79,70,229,.35);
}

.theme-btn:hover{
    transform:rotate(180deg) scale(1.1);
    box-shadow:0 12px 28px rgba(79,70,229,.5);
}

.theme-btn:active{
    transform:scale(.9);
}

.theme-btn.spin{
    animation:spinOnce .5s ease;
}

@keyframes spinOnce{
    from{ transform:rotate(0deg) scale(1); }
    to{ transform:rotate(360deg) scale(1); }
}

.menu-btn{
    display:none;
    font-size:24px;
    cursor:pointer;
    color:var(--text);
    margin-left:15px;
}

/* =======================
   Hero Section
======================= */

.hero{

    text-align:center;

    padding:100px 20px;

    background:linear-gradient(135deg,#4f46e5,#7c3aed);

    color:#fff;

}

.hero h1{

    font-size:50px;

    margin-bottom:20px;

    opacity:0;
    transform:translateY(20px);
    animation:heroIn .7s ease forwards;

}

.hero p{

    max-width:700px;

    margin:auto;

    line-height:1.8;

    font-size:18px;

    opacity:0;
    transform:translateY(20px);
    animation:heroIn .7s ease .15s forwards;

}

@keyframes heroIn{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =======================
   Search Box
======================= */

.search-section{

    max-width:900px;

    margin:50px auto 0;

    padding:0 20px;

}

.search-box{

    display:flex;

    background:var(--card);

    border-radius:12px;

    overflow:hidden;

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

    transition:box-shadow .3s ease, background .4s ease;

}

.search-box:focus-within{
    box-shadow:0 8px 25px rgba(79,70,229,.25);
}

.search-box input{

    flex:1;

    border:none;

    outline:none;

    padding:18px;

    font-size:16px;

    background:var(--card);

    color:var(--text);

}

.search-box button{

    border:none;

    background:var(--primary);

    color:#fff;

    padding:0 30px;

    cursor:pointer;

    transition:.3s;

    display:flex;
    align-items:center;
    gap:8px;
    position:relative;
    overflow:hidden;

}

.search-box button:hover{

    background:#4338ca;

}

.no-results{
    display:none;
    text-align:center;
    margin-top:25px;
    color:var(--text-muted);
    font-size:15px;
}

.no-results.show{
    display:block;
    animation:heroIn .4s ease forwards;
}

/* =======================
   Filter Buttons
======================= */

.filters{

    max-width:1200px;

    margin:40px auto;

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    padding:0 20px;

}

.filters button{

    border:none;

    padding:12px 22px;

    border-radius:30px;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    font-weight:600;

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

    transition:.3s;

    position:relative;
    overflow:hidden;

}

.filters button:hover{

    background:var(--primary);

    color:#fff;

    transform:translateY(-2px);

}

.filters .active{

    background:var(--primary);

    color:#fff;

}

/* ==========================================
   StartupFinder - Developers Page
   Part 2
========================================== */

/* =======================
   Developers Grid
======================= */

.developers-grid{

    max-width:1200px;

    margin:60px auto;

    padding:0 20px;

    display:grid;

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

    gap:30px;

}

/* =======================
   Developer Card
======================= */

.developer-card{

    background:var(--card);

    border-radius:20px;

    padding:30px;

    text-align:center;

    box-shadow:var(--shadow);

    transition:transform .35s ease, box-shadow .35s ease, background .4s ease;

    position:relative;

    overflow:hidden;

    opacity:0;
    transform:translateY(40px);

}

.developer-card.revealed{
    animation:fadeUp .6s ease forwards;
}

.developer-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(
        90deg,
        #4f46e5,
        #7c3aed,
        #06b6d4
    );

}

.developer-card:hover{

    transform:translateY(-10px);

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

}

/* hidden by the filter/search logic */
.developer-card.hidden-card{
    display:none;
}

/* =======================
   Profile Image
======================= */

.developer-card img{

    width:120px;

    height:120px;

    border-radius:50%;

    object-fit:cover;

    border:5px solid var(--tag-bg);

    margin-bottom:20px;

    transition:transform .35s ease, border-color .4s ease;

}

.developer-card:hover img{
    transform:scale(1.06);
}

/* =======================
   Name
======================= */

.developer-card h2{

    font-size:24px;

    margin-bottom:10px;

    color:var(--text);

}

/* =======================
   Role
======================= */

.role{

    color:var(--primary);

    font-weight:600;

    margin-bottom:20px;

}

/* =======================
   Skills
======================= */

.skills{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:20px;

}

.skills span{

    background:var(--tag-bg);

    color:var(--primary);

    padding:8px 14px;

    border-radius:30px;

    font-size:13px;

    font-weight:600;

    transition:.3s;

}

.skills span:hover{

    background:var(--primary);

    color:#fff;

    transform:translateY(-2px);

}

/* =======================
   Rating & Location
======================= */

.info{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:20px 0;

    color:var(--text-muted);

    font-size:15px;

}

/* =======================
   Button
======================= */

.developer-card button{

    width:100%;

    padding:14px;

    border:none;

    border-radius:12px;

    background:var(--primary);

    color:#fff;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

    position:relative;
    overflow:hidden;

}

.developer-card button:hover{

    background:#4338ca;

    transform:scale(1.03);

}

/* =======================
   Card Animation
======================= */

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* Ripple (added by JS) */
.ripple{
    position:absolute;
    border-radius:50%;
    background:rgba(255,255,255,.6);
    transform:scale(0);
    animation:rippleAnim .6s ease-out;
    pointer-events:none;
}

@keyframes rippleAnim{
    to{
        transform:scale(4);
        opacity:0;
    }
}

/* ==========================================
   StartupFinder - Developers Page
   Part 3
========================================== */

/* ==========================
   Pagination
========================== */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:12px;
    margin:70px 0;
    flex-wrap:wrap;
}

.pagination button{

    width:45px;
    height:45px;

    border:none;

    border-radius:50%;

    background:var(--card);

    color:var(--text);

    cursor:pointer;

    font-weight:600;

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

    transition:.3s;

    position:relative;
    overflow:hidden;

}

.pagination button:hover{

    background:var(--primary);

    color:#fff;

    transform:translateY(-3px);

}

.pagination .active{

    background:var(--primary);

    color:#fff;

}

/* ==========================
   Join Section
========================== */

.join-section{

    max-width:1100px;

    margin:80px auto;

    padding:60px 30px;

    text-align:center;

    color:#fff;

    border-radius:20px;

    background:linear-gradient(135deg,#4f46e5,#7c3aed);

}

.join-section h2{

    font-size:40px;

    margin-bottom:20px;

}

.join-section p{

    max-width:700px;

    margin:auto;

    line-height:1.8;

    margin-bottom:30px;

}

.join-btn{

    display:inline-block;

    padding:15px 35px;

    background:#fff;

    color:#4f46e5;

    text-decoration:none;

    font-weight:600;

    border-radius:10px;

    transition:.3s;

    position:relative;
    overflow:hidden;

}

.join-btn:hover{

    transform:translateY(-4px);

    background:#111827;

    color:#fff;

}

/* ==========================
   Footer
========================== */

footer{

    background:#111827;

    color:#fff;

    margin-top:auto;

    padding:60px 20px;

}

.footer-container{

    max-width:1200px;

    margin:auto;

    display:grid;

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

    gap:40px;

}

.footer-container h3,
.footer-container h4{

    margin-bottom:20px;

}

.footer-container p{

    color:#ddd;

    line-height:1.8;

}

.footer-container a{

    color:#ddd;

    text-decoration:none;

    transition:.3s;

}

.footer-container a:hover{

    color:#fff;
    padding-left:4px;

}

.footer-container i{

    color:#4f46e5;

    margin-right:10px;

}

footer hr{

    margin:40px 0 20px;

    border:1px solid rgba(255,255,255,.12);

}

footer .copyright{

    text-align:center;

    color:#bbb;

}

/* ==========================
   Responsive
========================== */

@media(max-width:992px){

.hero h1{

    font-size:42px;

}

.hero p{

    font-size:16px;

}

}

@media(max-width:768px){

.menu-btn{
    display:block;
}

.nav-links{
    display:none;
}

.nav-links.open{
    display:flex;
    flex-direction:column;
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:var(--card);
    padding:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
    gap:15px;
    z-index:999;
}

.search-box{

    flex-direction:column;

}

.search-box button{

    width:100%;

    padding:16px;

    justify-content:center;

}

.join-section{

    margin:50px 20px;

    padding:40px 20px;

}

.join-section h2{

    font-size:32px;

}

}

@media(max-width:576px){

.hero{

    padding:70px 20px;

}

.hero h1{

    font-size:32px;

}

.filters{

    gap:10px;

}

.filters button{

    padding:10px 16px;

    font-size:14px;

}

.developer-card{

    padding:20px;

}

.developer-card img{

    width:100px;

    height:100px;

}

.developer-card h2{

    font-size:20px;

}

.info{

    flex-direction:column;

    gap:10px;

}

.footer-container{

    text-align:center;

}

}

@media (prefers-reduced-motion:reduce){
    *{
        animation-duration:0.001ms !important;
        animation-iteration-count:1 !important;
        transition-duration:0.001ms !important;
    }
}