/* =========================================================
   DOMAIN COLLECTION PAGES CSS — Obsidian Emerald & Amber
   ai-ml.html, document-ai.html, webapps.html, analytics.html, automation.html
========================================================= */

body {
    overflow-x: hidden;
}

.page {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 100vh;
    padding: 32px clamp(24px, 5vw, 95px) 84px;
}

.top-nav {
    width: 100%;
    max-width: 1850px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.domain-indicator {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(209, 250, 229, 0.48);
}

.domain-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10e89f;
    box-shadow: 0 0 15px #10e89f;
}

/* HERO HEADER */
.hero {
    width: 100%;
    max-width: 1850px;
    margin: clamp(45px, 6vh, 72px) auto clamp(42px, 5vh, 64px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 44px;
}

.hero-left {
    max-width: 1080px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
    font-size: clamp(10px, 0.72vw, 13px);
    font-weight: 700;
    letter-spacing: 3.8px;
    text-transform: uppercase;
    color: rgba(209, 250, 229, 0.48);
}

.eyebrow-line {
    width: 52px;
    height: 1px;
    background: linear-gradient(90deg, #10e89f, #f5b041, transparent);
}

.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(34px, 6.2vw, 128px);
    line-height: 0.90;
    font-weight: 700;
    letter-spacing: clamp(-5px, -0.35vw, -1.5px);
    margin-bottom: 26px;
    overflow-wrap: break-word;
    background: linear-gradient(110deg, #ffffff 15%, #e2fdf4 36%, #34d399 60%, #f5b041 84%, #ffffff);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 6s linear infinite;
}

.hero-description {
    max-width: 780px;
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.78;
    color: rgba(203, 213, 225, 0.62);
}

.project-count {
    flex-shrink: 0;
    text-align: right;
}

.count-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(72px, 6.5vw, 128px);
    font-weight: 700;
    line-height: 0.82;
    color: rgba(16, 232, 159, 0.06);
    -webkit-text-stroke: 1px rgba(110, 231, 183, 0.28);
}

.count-label {
    margin-top: 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(245, 176, 65, 0.55);
}

.divider {
    width: 100%;
    max-width: 1850px;
    height: 1px;
    margin: 0 auto 48px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), rgba(16, 232, 159, 0.42), rgba(245, 176, 65, 0.28), transparent);
}

/* PROJECT GRID */
.projects-grid {
    width: 100%;
    max-width: 1850px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 2vw, 36px);
}

.projects-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(110, 231, 183, 0.14);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(16, 26, 28, 0.82), rgba(8, 12, 14, 0.54));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(110, 231, 183, 0.08);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.42s cubic-bezier(.2, .8, .2, 1), border-color 0.38s ease, box-shadow 0.38s ease;
}

.card-spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 232, 159, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .card-spotlight {
    opacity: 1;
}

.project-card::after {
    content: "";
    position: absolute;
    left: 10%;
    top: 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 232, 159, 0.85), rgba(245, 176, 65, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-11px);
    border-color: rgba(16, 232, 159, 0.58);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.52), 0 0 60px rgba(16, 232, 159, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0a1012;
}

.project-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.75s cubic-bezier(.2, .8, .2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.06);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 10, 0.78), transparent 52%);
    pointer-events: none;
}

.project-number {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(110, 231, 183, 0.25);
    border-radius: 50%;
    background: rgba(5, 8, 10, 0.72);
    backdrop-filter: blur(12px);
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #6ee7b7;
}

.website-badge {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 3;
    padding: 8px 13px;
    border: 1px solid rgba(245, 176, 65, 0.28);
    border-radius: 100px;
    background: rgba(5, 8, 10, 0.74);
    backdrop-filter: blur(12px);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #fde68a;
}

.project-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 1.8vw, 32px);
}

.project-type {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #34d399;
}

.project-type-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10e89f;
    box-shadow: 0 0 12px #10e89f;
}

.project-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(24px, 1.7vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #ffffff;
    margin-bottom: 12px;
}

.project-description {
    font-size: clamp(13px, 0.88vw, 15px);
    line-height: 1.65;
    color: rgba(203, 213, 225, 0.62);
    margin-bottom: 18px;
    flex: 1;
}

.project-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 20px;
}

.meta-pill {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(110, 231, 183, 0.16);
    background: rgba(16, 232, 159, 0.06);
    font-size: 10px;
    font-weight: 600;
    color: rgba(236, 253, 245, 0.78);
}

.explore-project {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
    border: 1px solid rgba(110, 231, 183, 0.18);
    border-radius: 16px;
    background: rgba(16, 232, 159, 0.06);
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-card:hover .explore-project {
    background: linear-gradient(135deg, rgba(16, 232, 159, 0.28), rgba(245, 176, 65, 0.18));
    border-color: rgba(16, 232, 159, 0.65);
}

.explore-project svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}

.project-card:hover .explore-project svg {
    transform: translateX(5px);
}

.footer {
    width: 100%;
    max-width: 1850px;
    margin: 72px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(110, 231, 183, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(203, 213, 225, 0.36);
}

@media (max-width: 1180px) {
    .projects-grid,
    .projects-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .hero-title {
        letter-spacing: -2.5px;
    }
    .project-count {
        text-align: left;
    }
    .projects-grid,
    .projects-grid--two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .domain-indicator {
        display: none;
    }
}
