/* =========================
   GLOBAL
========================= */

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

body {
    margin: 0;
    font-family: Arial,sans-serif;
    color: #ffffff;
    background: #06061b;
    overflow-x: hidden;
}

    /* Background Foreground Image */

    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-image: url("../assets/images/ForeGround.png");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(8,10,35,.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.header-container {
    max-width: 1450px;
    margin: 0 auto;
    height: 80px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

    .nav-menu a {
        color: #d7d7d7;
        text-decoration: none;
        transition: .3s;
    }

        .nav-menu a:hover {
            color: #9d7cff;
        }

.header-btn {
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(90deg,#8a4dff,#2e8cff);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: bold;
    transition: .3s;
}

    .header-btn:hover {
        transform: translateY(-2px);
    }

/* =========================
   PAGE
========================= */

.ai-page {
    max-width: 1450px;
    margin: auto;
    padding: 120px 30px 60px;
}

.breadcrumb {
    color: #b699ff;
    margin-bottom: 25px;
}

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

.hero-layout {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 30px;
}

.hero-card,
.featured-card,
.projects,
.technologies {
    background: rgba(20,24,60,.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 28px;
}

.hero-icon {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    background: rgba(255,255,255,.05);
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-card h1 {
    font-size: 58px;
    margin-bottom: 10px;
}

.hero-card p {
    line-height: 1.7;
    color: #dddddd;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
    margin-top: 25px;
}

.stat {
    background: rgba(255,255,255,.05);
    padding: 15px;
    border-radius: 14px;
    text-align: center;
}

    .stat strong {
        display: block;
        font-size: 30px;
        color: #8db3ff;
    }

/* =========================
   FEATURED
========================= */

.badge {
    display: inline-block;
    background: #6d4cff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    margin-bottom: 18px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    align-items: center;
}

.preview {
    position: relative;
    width: 100%;
    height: 430px;
    overflow: hidden;
    border-radius: 18px;
}

.preview-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

    .preview-slider img {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 0;
        transition: opacity .8s ease-in-out;
    }

        .preview-slider img.active {
            opacity: 1;
        }

.details h2 {
    font-size: 42px;
    margin: 0;
}

.details h3 {
    color: #b694ff;
    font-weight: normal;
    margin-top: 5px;
}

.details p {
    line-height: 1.8;
    color: #dddddd;
    margin: 20px 0;
}

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

.btn {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 12px;
    font-weight: bold;
}

.primary {
    background: linear-gradient(90deg,#8a4dff,#2e8cff);
    color: #ffffff;
}

.secondary {
    color: #d8c8ff;
    border: 1px solid rgba(255,255,255,.12);
}

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

.projects {
    margin-top: 30px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 18px;
}

.project-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255,255,255,.04);
    border-radius: 18px;
}

.icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(255,255,255,.05);
    border-radius: 14px;
    flex-shrink: 0;
}

.project-card h3 {
    margin-bottom: 8px;
    font-size: 24px;
}

.project-card p {
    color: #d7d7d7;
    line-height: 1.6;
}

.project-card a {
    color: #c46fff;
    text-decoration: none;
}

/* =========================
   TECHNOLOGIES
========================= */

.technologies {
    margin-top: 30px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 14px;
}

.tech {
    background: rgba(255,255,255,.05);
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    white-space: nowrap;
}

/* =========================
   BACK LINK
========================= */

.back {
    text-align: center;
    margin-top: 35px;
}

    .back a {
        color: #c28cff;
        text-decoration: none;
    }

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

@media(max-width:1100px) {

    .hero-layout {
        grid-template-columns: 1fr;
    }

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

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

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

@media(max-width:768px) {

    .header-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .ai-page {
        padding: 160px 20px 50px;
    }

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

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

    .hero-card h1 {
        font-size: 42px;
    }

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