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

/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}

:root {
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
    --accent-purple: #6366f1;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

span {
    color: var(--main-color);
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(31, 36, 45, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}

.logo span {
    color: var(--main-color);
    display: inline-block;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin: 4rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/* --- Footer --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* =======================================
   HERO SECTION
   ======================================= */
.project-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 12rem 9% 6rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 238, 255, 0.1) 0%,
        rgba(99, 102, 241, 0.1) 50%,
        rgba(31, 36, 45, 1) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 238, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 90rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--main-color), var(--accent-purple));
    color: var(--bg-color);
    padding: 0.8rem 2rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeIn 0.8s ease;
}

.hero-badge i {
    font-size: 1.6rem;
}

.hero-content h1 {
    font-size: 10rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease 0.2s backwards;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--main-color), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    animation: fadeIn 0.8s ease 0.3s backwards;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    max-width: 70rem;
    margin: 0 auto 3rem;
    animation: fadeIn 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease 0.5s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--main-color);
}

.stat-label {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeIn 0.8s ease 0.6s backwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    border-radius: 4rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--main-color), #00b8d4);
    color: var(--bg-color);
    box-shadow: 0 5px 25px rgba(0, 238, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 238, 255, 0.5);
}

.btn-primary i {
    font-size: 1.8rem;
    color: var(--bg-color);
}

.btn-outline {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.btn-outline i {
    font-size: 1.8rem;
}

.btn-outline:hover i {
    color: var(--bg-color);
}

/* =======================================
   CONTAINER & SECTIONS
   ======================================= */
.container {
    max-width: 130rem;
    margin: 0 auto;
    padding: 0 9%;
}

section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.2);
    padding: 0.6rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
}

.section-badge i {
    font-size: 1.5rem;
}

.section-header h2 {
    font-size: 4rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

/* =======================================
   OVERVIEW SECTION
   ======================================= */
.project-overview {
    background: var(--second-bg-color);
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.overview-text .lead {
    font-size: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.overview-text p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.domain-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.2);
    padding: 0.8rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.domain-tag:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.domain-tag i {
    font-size: 1.6rem;
}

.domain-tag:hover i {
    color: var(--bg-color);
}

/* Pipeline Flow Visual */
.overview-visual {
    display: flex;
    justify-content: center;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--bg-color), rgba(31, 36, 45, 0.8));
    padding: 3rem 4rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.flow-item i {
    font-size: 4rem;
    color: var(--main-color);
    background: rgba(0, 238, 255, 0.1);
    padding: 2rem;
    border-radius: 50%;
}

.flow-item span {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.flow-arrow i {
    font-size: 3rem;
    color: var(--main-color);
}

/* =======================================
   ARCHITECTURE SECTION
   ======================================= */
.architecture-section {
    background: var(--bg-color);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.module-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.module-card.featured {
    border: 2px solid var(--main-color);
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.1), var(--second-bg-color));
}

.module-card.featured::before {
    opacity: 1;
    height: 4px;
}

.module-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 600;
}

.module-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 238, 255, 0.1);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.module-icon {
    margin-bottom: 1.5rem;
}

.module-icon i {
    font-size: 3.5rem;
    color: var(--main-color);
}

.module-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.module-card p {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.module-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.module-tech span {
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
}

.module-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.module-status.developed {
    color: var(--accent-green);
}

.module-status i {
    font-size: 1.4rem;
}

/* =======================================
   CONTRIBUTION SECTION
   ======================================= */
.contribution-section {
    background: var(--second-bg-color);
}

.contribution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.contribution-card {
    background: linear-gradient(135deg, var(--bg-color), rgba(31, 36, 45, 0.9));
    border-radius: 2rem;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

.contribution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contribution-card.featured {
    border: 2px solid var(--accent-green);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), var(--bg-color));
}

.featured-badge {
    position: absolute;
    top: -1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contribution-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contribution-icon {
    width: 6rem;
    height: 6rem;
    background: rgba(0, 238, 255, 0.1);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contribution-icon i {
    font-size: 3rem;
    color: var(--main-color);
}

.status-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.status-badge.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.contribution-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contribution-card p {
    font-size: 1.4rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.feature-list li i {
    font-size: 1.6rem;
    color: var(--accent-green);
}

.view-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-code-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 238, 255, 0.4);
}

.view-code-btn i {
    font-size: 1.8rem;
    color: var(--bg-color);
}

/* =======================================
   TECH SECTION
   ======================================= */
.tech-section {
    background: var(--bg-color);
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.tech-category {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-category h4 {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.tech-category h4 i {
    font-size: 2rem;
    color: var(--main-color);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-list span {
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    padding: 0.6rem 1.2rem;
    border-radius: 3rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-list span:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

/* =======================================
   SCREENSHOTS SECTION
   ======================================= */
.screenshots-section {
    background: var(--second-bg-color);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.screenshot-card {
    background: linear-gradient(135deg, var(--bg-color), rgba(31, 36, 45, 0.9));
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.4s ease;
}

.screenshot-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(0, 238, 255, 0.15);
    border-color: rgba(0, 238, 255, 0.3);
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.screenshot-card:hover img {
    transform: scale(1.05);
}

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(31, 36, 45, 0.95), transparent);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.screenshot-label i {
    font-size: 2rem;
    color: var(--main-color);
}

.screenshot-label span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
}

/* =======================================
   CTA SECTION
   ======================================= */
.cta-section {
    background: linear-gradient(135deg, var(--bg-color), var(--second-bg-color));
    padding: 10rem 0;
}

.cta-content {
    text-align: center;
    max-width: 70rem;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.8rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =======================================
   ANIMATIONS
   ======================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================================
   MEDIA QUERIES
   ======================================= */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 3%;
    }

    .container {
        padding: 0 3%;
    }

    .project-hero-section {
        padding: 12rem 3% 6rem;
    }

    .hero-content h1 {
        font-size: 7rem;
    }

    .overview-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .pipeline-flow {
        flex-direction: column;
        padding: 2rem;
    }

    .flow-arrow i {
        transform: rotate(90deg);
    }

    .contribution-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .hero-content h1 {
        font-size: 5rem;
    }

    .hero-tagline {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-header h2 {
        font-size: 3rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 3rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Extra small devices (phones, 480px and down) */
@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .project-hero-section {
        padding: 10rem 2% 4rem;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .hero-badge {
        font-size: 1.2rem;
        padding: 0.6rem 1.4rem;
    }

    .stat-number {
        font-size: 3rem;
    }

    .stat-label {
        font-size: 1.2rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1.3rem;
    }

    .container {
        padding: 0 2%;
    }

    section {
        padding: 5rem 0;
    }

    .section-header h2 {
        font-size: 2.6rem;
    }

    .section-badge {
        font-size: 1.1rem;
    }

    .overview-text .lead {
        font-size: 1.6rem;
    }

    .overview-text p {
        font-size: 1.4rem;
    }

    .domain-tag {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .flow-item i {
        font-size: 3rem;
        padding: 1.5rem;
    }

    .flow-item span {
        font-size: 1.2rem;
    }

    .module-card {
        padding: 2rem;
    }

    .module-card h3 {
        font-size: 1.6rem;
    }

    .module-card p {
        font-size: 1.2rem;
    }

    .module-tech span {
        font-size: 0.9rem;
    }

    .contribution-card {
        padding: 2.5rem;
    }

    .contribution-card h3 {
        font-size: 1.8rem;
    }

    .contribution-card p {
        font-size: 1.3rem;
    }

    .feature-list li {
        font-size: 1.2rem;
    }

    .tech-category {
        padding: 2rem;
    }

    .tech-category h4 {
        font-size: 1.4rem;
    }

    .tech-list span {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .cta-content h2 {
        font-size: 2.6rem;
    }

    .cta-content p {
        font-size: 1.4rem;
    }

    .footer-text p {
        font-size: 1.3rem;
    }
}
