:root {
    --primary: #2f80ff;
    --bg: #050b18;
    --card: #0d1528;
    --border: rgba(255, 255, 255, .08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Background Glow */

body::before {
    content: "";
    position: fixed;
    top: -250px;
    right: -250px;


    width: 600px;
    height: 600px;

    border-radius: 50%;

    background: #2f80ff;

    filter: blur(200px);

    opacity: .06;

    pointer-events: none;

    z-index: -1;


}

body::after {
    content: "";
    position: fixed;
    bottom: -250px;
    left: -250px;


    width: 600px;
    height: 600px;

    border-radius: 50%;

    background: #2f80ff;

    filter: blur(220px);

    opacity: .05;

    pointer-events: none;

    z-index: -1;


}

/* Back Button */

.back-btn{
    position:fixed;
    top:20px;
    left:20px;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:8px;

    padding:10px 16px;

    background:rgba(15,23,42,.9);
    border:1px solid rgba(255,255,255,.1);
    border-radius:12px;

    color:#fff;
    text-decoration:none;

    z-index:999;
}

.back-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1;
    font-size:18px;
}

.back-text{
    font-size:14px;
    font-weight:600;
    line-height:1;
}

@media (max-width:768px){

    .back-text{
        display:none;
    }

    .back-btn{
        width:42px;
        height:42px;
        padding:0;
        border-radius:50%;
    }
}
.back-btn:hover {
    transform: translateY(-2px);


    border-color: rgba(47, 128, 255, .35);

    box-shadow: 0 10px 25px rgba(47, 128, 255, .15);


}

/* Hero */

.hero {
    min-height: 90vh;


    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 40px;


}

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

.badge {
    display: inline-block;


    padding: 10px 20px;

    border-radius: 30px;

    background: rgba(47, 128, 255, .15);

    color: var(--primary);

    margin-bottom: 25px;


}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);


    margin-bottom: 20px;

    line-height: 1.1;


}

.hero p {
    font-size: 1.2rem;


    opacity: .8;

    line-height: 1.8;


}

/* Sections */

.container {
    width: min(1200px, 90%);
    margin: auto;
}

section {
    padding: 120px 0;
}

section h2 {
    text-align: center;


    margin-bottom: 30px;

    font-size: 2.4rem;


}

section p {
    text-align: center;


    max-width: 850px;

    margin: auto;

    line-height: 1.9;

    opacity: .85;


}

/* Feature Grid */

.feature-grid {
    display: grid;


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

    gap: 20px;

    margin-top: 50px;


}

.feature-card {
    background: rgba(13, 21, 40, .85);


    backdrop-filter: blur(12px);

    padding: 28px;

    border-radius: 18px;

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

    text-align: center;

    transition: .3s;


}

.feature-card:hover {
    transform: translateY(-8px);


    border-color: rgba(47, 128, 255, .35);

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


}

/* Walkthrough */

.section-subtitle {
    margin-bottom: 50px !important;
}

.screenshots-grid {
    display: grid;


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

    gap: 25px;


}

.gallery-image {
    width: 100%;


    height: 650px;

    object-fit: cover;

    border-radius: 20px;

    cursor: pointer;

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

    transition: .3s;

    will-change: transform;


}

.gallery-image:hover {
    transform: translateY(-8px);


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


}

/* Results */

.results-list {
    list-style: none;


    max-width: 800px;

    margin: 40px auto 0;


}

.results-list li {
    margin-bottom: 18px;


    padding-left: 30px;

    position: relative;

    line-height: 1.8;


}

.results-list li::before {
    content: "✓";


    position: absolute;

    left: 0;

    color: var(--primary);

    font-weight: bold;


}

/* Tech Stack */

.tech-grid {
    display: flex;


    flex-wrap: wrap;

    justify-content: center;

    gap: 15px;

    margin-top: 40px;


}

.tech-grid span {
    padding: 12px 18px;


    border-radius: 30px;

    background: rgba(13, 21, 40, .85);

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


}

/* CTA */

.cta {
    text-align: center;
}

.cta a {
    display: inline-block;


    margin-top: 25px;

    padding: 14px 30px;

    border-radius: 50px;

    background: var(--primary);

    color: #fff;

    text-decoration: none;


}

/* Lightbox */

.lightbox {
    position: fixed;


    inset: 0;

    background: rgba(0, 0, 0, .95);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 9999;


}

.lightbox.active {
    display: flex;
}

#lightboxImg {
    max-width: 90%;
    max-height: 90vh;


    border-radius: 20px;


}
#imageCounter{
    font-size:.9rem;
    border:1px solid rgba(255,255,255,.08);
}
#prevBtn,
#nextBtn {
    position: absolute;


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

    color: #fff;

    border: none;

    font-size: 40px;

    cursor: pointer;

    padding: 10px 18px;

    border-radius: 12px;


}

#prevBtn {
    left: 30px;
}

#nextBtn {
    right: 30px;
}

#closeBtn {
    position: absolute;


    top: 20px;
    right: 30px;

    font-size: 40px;

    cursor: pointer;

    color: #fff;


}

/* Mobile */

@media(max-width:768px) {


    section {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding: 120px 20px 80px;
    }

    .hero p {
        font-size: 1rem;
    }

    .gallery-image {
        height: auto;
    }

    #prevBtn,
    #nextBtn {
        font-size: 28px;
    }

}