/* telomere.digital - Chrome McBling Digital Biology */
/* Colors: #f5f0e8, #e8b84b, #4a90d9, #1a1a2e, #6c757d */
/* Fonts: EB Garamond (Garamond-classic), Inter */

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

:root {
    --color-base: #1a1a2e;
    --color-blue: #4a90d9;
    --color-cream: #f5f0e8;
    --color-gold: #e8b84b;
    --color-gray: #6c757d;
    --font-display: 'EB Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --chrome-light: #e8e8e8;
    --chrome-mid: #c0c0c0;
    --chrome-dark: #a0a0a0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-base);
    color: var(--color-cream);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grain Overlay - Microscopy Texture */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.06;
    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;
}

/* Sparkle Container */
#sparkle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-gold);
    border-radius: 50%;
    animation: sparkle-anim 1.5s ease-in-out forwards;
    box-shadow: 0 0 6px var(--color-gold), 0 0 12px rgba(232, 184, 75, 0.4);
}

.sparkle::before,
.sparkle::after {
    content: '';
    position: absolute;
    background: var(--color-gold);
}

.sparkle::before {
    width: 12px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sparkle::after {
    width: 1px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes sparkle-anim {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(90deg); }
    100% { opacity: 0; transform: scale(0) rotate(180deg); }
}

/* Bio Pathway SVG Layer */
#bio-pathways {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
}

.bio-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: path-draw 8s ease-in-out forwards;
}

.helix-2 { animation-delay: 0.5s; }
.cap-left { animation-delay: 2s; stroke-dasharray: 500; stroke-dashoffset: 500; animation-duration: 3s; }
.cap-right { animation-delay: 2.5s; stroke-dasharray: 500; stroke-dashoffset: 500; animation-duration: 3s; }
.chromo-1 { animation-delay: 1s; }
.chromo-2 { animation-delay: 1.3s; }
.bridge-1 { animation-delay: 3s; stroke-dasharray: 800; stroke-dashoffset: 800; animation-duration: 4s; }
.bridge-2 { animation-delay: 3.5s; stroke-dasharray: 800; stroke-dashoffset: 800; animation-duration: 4s; }

@keyframes path-draw {
    to { stroke-dashoffset: 0; }
}

.telomere-dot {
    animation: dot-pulse 3s ease-in-out infinite;
}

.telomere-dot:nth-child(even) { animation-delay: 1s; }
.telomere-dot:nth-child(odd) { animation-delay: 0.5s; }

@keyframes dot-pulse {
    0%, 100% { opacity: 0.4; r: 2; }
    50% { opacity: 1; r: 4; }
}

.leaf {
    animation: leaf-sway 6s ease-in-out infinite;
    transform-origin: center;
}

.leaf-2 { animation-delay: 2s; }
.leaf-3 { animation-delay: 4s; }

@keyframes leaf-sway {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.1); }
}

/* Biological Layers */
.bio-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

#bio-layer-1 {
    background: radial-gradient(ellipse at 20% 50%, rgba(74, 144, 217, 0.05) 0%, transparent 50%);
}

#bio-layer-2 {
    background: radial-gradient(ellipse at 80% 30%, rgba(232, 184, 75, 0.04) 0%, transparent 50%);
}

#bio-layer-3 {
    background: radial-gradient(ellipse at 50% 80%, rgba(108, 117, 125, 0.03) 0%, transparent 50%);
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.7) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    transition: all 0.4s ease;
}

#main-nav.scrolled {
    padding: 0.6rem 3rem;
    background: rgba(26, 26, 46, 0.98);
    border-bottom-color: rgba(232, 184, 75, 0.2);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--color-gold);
    filter: drop-shadow(0 0 4px rgba(232, 184, 75, 0.4));
}

.brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-cream);
    letter-spacing: 0.02em;
}

.brand-dot {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-gray);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-blue));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-cream);
}

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

/* Chrome Button Styles */
.chrome-btn {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(192, 192, 192, 0.3);
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(232, 232, 232, 0.05));
    color: var(--color-cream);
}

.chrome-btn:hover {
    border-color: var(--color-gold);
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.15), rgba(192, 192, 192, 0.1));
    box-shadow: 0 0 20px rgba(232, 184, 75, 0.15), inset 0 0 20px rgba(232, 184, 75, 0.05);
}

.chrome-btn-primary {
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.2), rgba(192, 192, 192, 0.15), rgba(232, 184, 75, 0.1));
    border-color: rgba(232, 184, 75, 0.4);
}

.chrome-btn-primary:hover {
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.3), rgba(192, 192, 192, 0.2), rgba(232, 184, 75, 0.2));
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.2), 0 0 60px rgba(232, 184, 75, 0.1);
}

.chrome-btn-secondary {
    background: transparent;
    border-color: rgba(108, 117, 125, 0.4);
    color: var(--color-gray);
}

.chrome-btn-secondary:hover {
    color: var(--color-cream);
    border-color: var(--color-cream);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5rem 4rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.hero-tagline {
    margin-bottom: 1.5rem;
}

.tagline-prefix {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    background: linear-gradient(90deg, var(--color-gold), var(--chrome-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-weight: 600;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(30px);
    animation: title-reveal 0.8s ease forwards;
}

.title-line-1 {
    font-size: 4.5rem;
    color: var(--color-cream);
    animation-delay: 0.3s;
}

.title-line-2 {
    font-size: 5rem;
    background: linear-gradient(135deg, var(--color-gold), var(--chrome-mid), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation-delay: 0.5s;
}

.title-line-3 {
    font-size: 4.5rem;
    color: var(--color-blue);
    animation-delay: 0.7s;
}

@keyframes title-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-metrics {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(192, 192, 192, 0.1);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-cream);
    background: linear-gradient(135deg, var(--color-cream), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-unit {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
    background: linear-gradient(135deg, var(--color-gold), var(--chrome-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-top: 0.3rem;
}

/* Hero Visual - Telomere Model */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.telomere-model {
    position: relative;
    width: 300px;
    height: 400px;
}

.helix-strand {
    position: absolute;
    width: 200px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.strand-a {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 15px,
        rgba(74, 144, 217, 0.3) 15px,
        rgba(74, 144, 217, 0.3) 18px,
        transparent 18px,
        transparent 30px
    );
    mask-image: linear-gradient(180deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, white 10%, white 90%, transparent);
    animation: helix-rotate 8s linear infinite;
    border-left: 1px solid rgba(74, 144, 217, 0.2);
}

.strand-b {
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 15px,
        rgba(232, 184, 75, 0.3) 15px,
        rgba(232, 184, 75, 0.3) 18px,
        transparent 18px,
        transparent 30px
    );
    mask-image: linear-gradient(180deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, white 10%, white 90%, transparent);
    animation: helix-rotate 8s linear infinite reverse;
    border-right: 1px solid rgba(232, 184, 75, 0.2);
}

@keyframes helix-rotate {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

.telomere-cap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(232, 184, 75, 0.4);
    background: linear-gradient(135deg, rgba(232, 184, 75, 0.1), rgba(26, 26, 46, 0.8));
    backdrop-filter: blur(8px);
}

.cap-top { top: 0; }
.cap-bottom { bottom: 0; }

.cap-label {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(232, 184, 75, 0.4);
}

/* Section Styles */
section {
    position: relative;
    z-index: 10;
    padding: 6rem 5rem;
}

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

.section-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--color-gold);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 2px;
    margin: 0 auto;
}

.chrome-divider {
    background: linear-gradient(90deg, transparent, var(--color-gold), var(--chrome-mid), var(--color-gold), transparent);
}

/* About / Science Section */
#about {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 26, 46, 0.5) 50%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.chrome-card {
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.05), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(192, 192, 192, 0.1);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.chrome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.chrome-card:hover {
    border-color: rgba(232, 184, 75, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(232, 184, 75, 0.05);
}

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

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.icon-svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.card-text {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-gray);
    font-style: italic;
}

/* Features / Platform Section */
.features-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-panel {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.feature-panel.reverse {
    flex-direction: row-reverse;
}

.feature-visual {
    flex: 1;
}

.feature-info {
    flex: 1;
}

/* Chrome Screen (Mock UI) */
.chrome-screen {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 20, 0.98));
    border: 1px solid rgba(192, 192, 192, 0.15);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(192, 192, 192, 0.1);
}

.screen-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.08), rgba(192, 192, 192, 0.03));
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.screen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.screen-dot.red { background: #ff5f57; }
.screen-dot.yellow { background: #ffbd2e; }
.screen-dot.green { background: #28c840; }

.screen-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-gray);
    margin-left: 8px;
    letter-spacing: 0.05em;
}

.screen-body {
    padding: 1.5rem;
    min-height: 200px;
}

/* Sequence Display */
.sequence-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seq-line {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--color-blue);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: seq-appear 0.5s ease forwards;
}

.seq-line[data-seq="1"] { animation-delay: 0.2s; }
.seq-line[data-seq="2"] { animation-delay: 0.6s; }
.seq-line[data-seq="3"] { animation-delay: 1s; color: rgba(74, 144, 217, 0.5); }
.seq-line[data-seq="4"] { animation-delay: 1.5s; }

.seq-line.highlight {
    color: var(--color-gold);
    text-shadow: 0 0 8px rgba(232, 184, 75, 0.3);
}

@keyframes seq-appear {
    to { opacity: 1; }
}

/* Chart Display */
.chart-display {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 180px;
    padding-top: 1rem;
}

.chart-bar {
    width: 40px;
    background: linear-gradient(180deg, var(--color-gold), var(--color-blue));
    border-radius: 2px 2px 0 0;
    position: relative;
    height: 0;
    transition: height 1s ease;
    box-shadow: 0 0 10px rgba(74, 144, 217, 0.2);
}

.chart-bar::after {
    content: attr(data-label);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 0.6rem;
    color: var(--color-gray);
    white-space: nowrap;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.feature-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-item {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-cream);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--color-gold);
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 6px rgba(232, 184, 75, 0.5);
}

/* Data Section */
#data {
    background: linear-gradient(180deg, transparent, rgba(74, 144, 217, 0.03), transparent);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.chrome-tile {
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.06), rgba(26, 26, 46, 0.9));
    border: 1px solid rgba(192, 192, 192, 0.1);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.chrome-tile:hover {
    border-color: rgba(232, 184, 75, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(232, 184, 75, 0.05);
}

.tile-sparkle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chrome-tile:hover .tile-sparkle {
    opacity: 1;
}

.tile-sparkle::before,
.tile-sparkle::after {
    content: '';
    position: absolute;
    background: var(--color-gold);
}

.tile-sparkle::before {
    width: 12px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tile-sparkle::after {
    width: 1px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tile-value {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-cream), var(--color-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tile-unit {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-gold);
}

.tile-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    margin-top: 0.5rem;
}

/* Degradation Chart */
.data-visualization {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.03), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(192, 192, 192, 0.08);
    padding: 2rem;
}

.viz-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--color-cream);
    text-align: center;
    margin-bottom: 1rem;
}

#degradation-chart {
    width: 100%;
    height: auto;
}

.chart-label {
    font-family: var(--font-body);
    font-size: 10px;
    fill: var(--color-gray);
}

.chart-label.critical {
    fill: var(--color-gold);
    font-size: 9px;
}

.chart-label-axis {
    font-family: var(--font-body);
    font-size: 11px;
    fill: var(--color-gray);
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.chart-line.animated {
    animation: chart-draw 2s ease forwards;
}

.chart-area {
    opacity: 0;
}

.chart-area.animated {
    animation: chart-fill-appear 2s ease forwards;
    animation-delay: 0.5s;
}

@keyframes chart-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes chart-fill-appear {
    to { opacity: 1; }
}

.chart-point {
    opacity: 0;
}

.chart-point.animated {
    animation: point-appear 0.4s ease forwards;
}

/* Contact Section */
#contact {
    background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.5));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.contact-text {
    font-family: var(--font-display);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray);
    font-style: italic;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-icon {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.detail-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-cream);
}

/* Form Styles */
.chrome-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
}

.chrome-input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: rgba(192, 192, 192, 0.04);
    border: 1px solid rgba(192, 192, 192, 0.15);
    padding: 0.8rem 1rem;
    color: var(--color-cream);
    transition: all 0.3s ease;
    outline: none;
}

.chrome-input::placeholder {
    color: rgba(108, 117, 125, 0.5);
}

.chrome-input:hover {
    border-color: rgba(192, 192, 192, 0.3);
}

.chrome-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 15px rgba(232, 184, 75, 0.1);
    background: rgba(232, 184, 75, 0.03);
}

select.chrome-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236c757d'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

select.chrome-input option {
    background: var(--color-base);
    color: var(--color-cream);
}

textarea.chrome-input {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Footer */
#main-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(192, 192, 192, 0.08);
    padding: 3rem 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(192, 192, 192, 0.05);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(108, 117, 125, 0.6);
}

.footer-sequence {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: rgba(74, 144, 217, 0.3);
}

/* Scroll-triggered 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) {
    section { padding: 4rem 3rem; }
    #hero { padding: 6rem 3rem 3rem; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .data-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-panel,
    .feature-panel.reverse { flex-direction: column; }
}

@media (max-width: 768px) {
    #hero { flex-direction: column; padding: 6rem 2rem 3rem; }
    .hero-title .title-line-1,
    .hero-title .title-line-3 { font-size: 3rem; }
    .hero-title .title-line-2 { font-size: 3.5rem; }
    .hero-metrics { flex-direction: column; gap: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .data-grid { grid-template-columns: 1fr 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    #main-nav { padding: 0.8rem 1.5rem; }
    .nav-links { display: none; }
    section { padding: 3rem 1.5rem; }
    #main-footer { padding: 2rem 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
    .data-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
}
