/* sbom.day - Luxury SBOM Portfolio */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter (variable) */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== NOISE OVERLAY ===== */
#noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== HEADER ===== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 48px;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

#site-header.scrolled {
    background-color: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px 48px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-mark {
    font-size: 28px;
    color: #e8b84b;
    line-height: 1;
}

.logo-text {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5f0e8;
}

.header-nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #f5f0e8;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #e8b84b;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== HERO ===== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 120px 48px 80px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-leaf {
    position: absolute;
    pointer-events: none;
    animation: leafFloat 12s ease-in-out infinite;
}

.hero-leaf-1 {
    top: -60px;
    left: -180px;
    width: 200px;
    transform: rotate(-15deg);
}

.hero-leaf-2 {
    bottom: -40px;
    right: -160px;
    width: 180px;
    transform: rotate(20deg);
    animation-delay: -6s;
}

@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
}

.hero-title-line {
    display: block;
    line-height: 1.1;
}

.hero-title-thin {
    font-size: 24px;
    font-weight: 200;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 8px;
}

.hero-title-heavy {
    font-size: 96px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #f5f0e8;
    margin-bottom: 8px;
}

.hero-title-accent {
    font-size: 48px;
    font-weight: 100;
    font-style: italic;
    color: #e8b84b;
    letter-spacing: 4px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.8;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-cta {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid #e8b84b;
    color: #e8b84b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.hero-cta:hover {
    background-color: #e8b84b;
    color: #1a1a2e;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, #6c757d);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.scroll-text {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6c757d;
}

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #e8b84b;
    margin-bottom: 16px;
}

.section-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #f5f0e8;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    font-weight: 300;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== PORTFOLIO GRID ===== */
#portfolio {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.portfolio-item {
    position: relative;
    background-color: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.06);
    padding: 40px 32px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    border-color: rgba(232, 184, 75, 0.3);
    transform: translateY(-4px);
}

.portfolio-item-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 584px;
}

.portfolio-item-wide {
    grid-column: span 2;
}

.item-blur-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-item .item-content {
    position: relative;
    z-index: 2;
    filter: blur(2px);
    transition: filter 0.5s ease;
}

.portfolio-item:hover .item-content {
    filter: blur(0px);
}

.item-leaf {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.portfolio-item:hover .item-leaf {
    opacity: 1;
}

.item-number {
    display: block;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #e8b84b;
    margin-bottom: 16px;
}

.item-title {
    font-size: 32px;
    font-weight: 800;
    color: #f5f0e8;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.portfolio-item-large .item-title {
    font-size: 48px;
}

.item-version {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    color: #4a90d9;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding: 2px 8px;
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 2px;
}

.item-desc {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #6c757d;
    margin-bottom: 20px;
}

.item-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.meta-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5f0e8;
    padding: 4px 12px;
    background-color: rgba(245, 240, 232, 0.08);
}

.meta-license {
    font-size: 11px;
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 0.5px;
}

/* ===== ABOUT ===== */
#about {
    padding: 120px 48px;
    background-color: rgba(245, 240, 232, 0.02);
}

.about-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-left {
    position: relative;
}

.about-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #f5f0e8;
    margin-bottom: 40px;
}

.about-leaf-decoration {
    width: 200px;
    opacity: 0.6;
}

.about-lead {
    font-size: 22px;
    font-weight: 300;
    line-height: 1.7;
    color: #f5f0e8;
    margin-bottom: 24px;
}

.about-body {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: #6c757d;
    margin-bottom: 48px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: #e8b84b;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.5;
}

/* ===== MANIFEST ===== */
#manifest {
    padding: 120px 48px;
    max-width: 1400px;
    margin: 0 auto;
}

.manifest-table {
    border: 1px solid rgba(245, 240, 232, 0.08);
}

.manifest-header-row,
.manifest-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 2fr 2fr;
    padding: 16px 24px;
    gap: 16px;
    align-items: center;
}

.manifest-header-row {
    background-color: rgba(245, 240, 232, 0.04);
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
}

.manifest-header-row .manifest-col {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6c757d;
}

.manifest-row {
    border-bottom: 1px solid rgba(245, 240, 232, 0.04);
    transition: background-color 0.3s ease;
}

.manifest-row:last-child {
    border-bottom: none;
}

.manifest-row:hover {
    background-color: rgba(232, 184, 75, 0.04);
}

.manifest-col {
    font-size: 14px;
    font-weight: 300;
    color: #f5f0e8;
}

.manifest-col-name {
    font-weight: 600;
}

.manifest-col-version {
    color: #4a90d9;
    font-family: "Inter", monospace;
}

.manifest-col-license {
    color: #e8b84b;
    font-size: 12px;
    font-weight: 400;
}

.manifest-col-supplier {
    color: #6c757d;
}

.manifest-col-hash {
    color: #6c757d;
    font-family: "Inter", monospace;
    font-size: 12px;
    opacity: 0.6;
}

/* ===== CONTACT ===== */
#contact {
    padding: 160px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-leaf {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    opacity: 0.4;
    z-index: 0;
}

.contact-title {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -2px;
    color: #f5f0e8;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.contact-desc {
    font-size: 18px;
    font-weight: 300;
    color: #6c757d;
    line-height: 1.8;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.contact-cta {
    display: inline-block;
    font-size: 24px;
    font-weight: 200;
    color: #e8b84b;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(232, 184, 75, 0.3);
    transition: border-color 0.3s ease, letter-spacing 0.3s ease;
    position: relative;
    z-index: 1;
}

.contact-cta:hover {
    border-color: #e8b84b;
    letter-spacing: 4px;
}

.contact-footer {
    margin-top: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.footer-copy,
.footer-tagline {
    font-size: 12px;
    font-weight: 300;
    color: #6c757d;
    letter-spacing: 1px;
}

.footer-sep {
    color: rgba(108, 117, 125, 0.4);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .portfolio-item-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 320px;
    }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .hero-title-heavy {
        font-size: 64px;
    }
    .section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    #site-header {
        padding: 16px 24px;
    }
    .header-nav {
        gap: 20px;
    }
    .nav-link {
        font-size: 11px;
    }
    #hero {
        padding: 100px 24px 60px;
    }
    .hero-title-thin {
        font-size: 16px;
        letter-spacing: 4px;
    }
    .hero-title-heavy {
        font-size: 48px;
    }
    .hero-title-accent {
        font-size: 32px;
    }
    #portfolio,
    #about,
    #manifest {
        padding: 80px 24px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item-large,
    .portfolio-item-wide {
        grid-column: span 1;
    }
    .about-stats {
        grid-template-columns: 1fr;
    }
    .manifest-header-row,
    .manifest-row {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .manifest-col-supplier,
    .manifest-col-hash {
        display: none;
    }
    .contact-title {
        font-size: 40px;
    }
    .stat-number {
        font-size: 36px;
    }
}