/* ============================================================
   a6c.dev - Aquarium Holographic Portfolio
   ============================================================ */

/* ---- @property for holographic animation ---- */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --holo-pos {
    syntax: '<percentage>';
    initial-value: 0%;
    inherits: false;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    color: #374151;
    background: #e5e7eb;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Noise Overlay ---- */
#noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    mix-blend-mode: overlay;
    will-change: transform;
}

#noise-overlay svg {
    width: 100%;
    height: 100%;
}

/* ---- Vertical Dot Navigation ---- */
#dot-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid transparent;
    cursor: pointer;
    position: relative;
    padding: 0;
    outline: none;
    transition: background 0.4s ease;
}

.dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from var(--angle), #06b6d4, #14b8a6, #8b5cf6, #d946ef, #f59e0b, #06b6d4);
    z-index: -1;
    animation: rotate-holo 6s linear infinite;
    mask: radial-gradient(circle, transparent 5px, black 5.5px, black 7px, transparent 7.5px);
    -webkit-mask: radial-gradient(circle, transparent 5px, black 5.5px, black 7px, transparent 7.5px);
}

.dot.active {
    background: #06b6d4;
}

.dot.active::after {
    mask: radial-gradient(circle, transparent 5px, black 5.5px, black 7px, transparent 7.5px);
    -webkit-mask: radial-gradient(circle, transparent 5px, black 5.5px, black 7px, transparent 7.5px);
}

@keyframes rotate-holo {
    from { --angle: 0deg; }
    to { --angle: 360deg; }
}

/* ---- Shared SVG Defs ---- */
#svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---- Section Base ---- */
.section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 5vw, 6rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#surface { background: #e5e7eb; }
#reef { background: #d1d5db; }
#mid-water { background: #e5e7eb; }
#deep { background: #374151; }
#abyss { background: #1f2937; }

/* ---- Section Labels & Headings ---- */
.section-label {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    color: #6b7280;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.section-label-dark {
    background: linear-gradient(135deg, #06b6d4, #14b8a6, #8b5cf6, #d946ef, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holo-shift 20s linear infinite;
    background-size: 200% 200%;
}

.section-heading {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    letter-spacing: 0em;
    color: #111827;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.section-heading-dark {
    color: #f9fafb;
}

@keyframes holo-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================================
   SECTION 1: SURFACE (HERO)
   ============================================================ */
#surface {
    align-items: center;
    text-align: center;
}

/* Caustics effect */
.caustics {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.caustics::before,
.caustics::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border-radius: 40%;
}

.caustics::before {
    background: radial-gradient(ellipse at 30% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    animation: caustic-1 20s ease-in-out infinite;
}

.caustics::after {
    background: radial-gradient(ellipse at 70% 60%, rgba(20, 184, 166, 0.05) 0%, transparent 55%);
    animation: caustic-2 25s ease-in-out infinite;
}

@keyframes caustic-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, -3%) scale(1.05); }
    50% { transform: translate(-3%, 5%) scale(0.95); }
    75% { transform: translate(3%, 2%) scale(1.02); }
}

@keyframes caustic-2 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-4%, 3%) scale(1.08) rotate(2deg); }
    66% { transform: translate(4%, -2%) scale(0.96) rotate(-1deg); }
}

/* Iridescent shimmer on hero background */
#surface::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(6, 182, 212, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(217, 70, 239, 0.02) 0%, transparent 50%);
    animation: shimmer-bg 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes shimmer-bg {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

/* Discus Fish Watermark */
.discus-svg {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
}

.site-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -0.02em;
    color: #111827;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Holographic outline on title */
.site-title::after {
    content: '';
    position: absolute;
    inset: -4px -8px;
    border-radius: 8px;
    background: conic-gradient(from var(--angle), #06b6d4, #14b8a6, #8b5cf6, #d946ef, #f59e0b, #06b6d4);
    z-index: -1;
    animation: rotate-holo 6s linear infinite;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    padding: 2px;
    opacity: 0.6;
}

.site-tagline {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    letter-spacing: 0.08em;
    color: #4b5563;
    text-transform: lowercase;
}

/* ============================================================
   SECTION 2: REEF (ABOUT)
   ============================================================ */
#reef {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.coral-svg {
    position: absolute;
    left: clamp(1rem, 3vw, 4rem);
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 500px;
    z-index: 2;
}

.moorish-idol-svg {
    position: absolute;
    left: clamp(1rem, 3vw, 4rem);
    bottom: clamp(4rem, 8vh, 8rem);
    width: 120px;
    height: 160px;
    z-index: 2;
    opacity: 0.6;
}

.reef-content {
    max-width: 640px;
    margin: 0 auto;
    padding-left: clamp(60px, 8vw, 120px);
    position: relative;
    z-index: 2;
}

.reef-text p {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.72;
    color: #374151;
    margin-bottom: 1.5rem;
    max-width: 640px;
}

.reef-text p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   TRANSITION ZONES
   ============================================================ */
.transition-zone {
    width: 100%;
    height: 120px;
    position: relative;
    z-index: 1;
}

.transition-zone[data-from="#e5e7eb"][data-to="#d1d5db"] {
    background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
}

.transition-zone[data-from="#d1d5db"][data-to="#e5e7eb"] {
    background: linear-gradient(to bottom, #d1d5db, #e5e7eb);
}

.transition-zone[data-from="#e5e7eb"][data-to="#374151"] {
    background: linear-gradient(to bottom, #e5e7eb, #374151);
}

.transition-zone[data-from="#374151"][data-to="#1f2937"] {
    background: linear-gradient(to bottom, #374151, #1f2937);
}

.wave-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wave-path {
    opacity: 0.7;
}

.transition-kelp {
    overflow: hidden;
}

.kelp-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ============================================================
   SECTION 3: MID-WATER (WORK/PROJECTS)
   ============================================================ */
.mid-water-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.project-bands {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.project-band {
    display: flex;
    align-items: center;
    padding: clamp(1.5rem, 3vh, 2.5rem) clamp(2rem, 5vw, 6rem);
    width: 100%;
    transition: background-color 0.3s ease;
}

.band-odd {
    background: #e5e7eb;
}

.band-even {
    background: #f3f4f6;
}

.band-title {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 0.01em;
    color: #111827;
    min-width: 180px;
    flex-shrink: 0;
}

.band-description {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.6;
    color: #374151;
    flex: 1;
    padding: 0 2rem;
}

.band-fish {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* ============================================================
   SECTION 4: DEEP (TECHNICAL/SKILLS)
   ============================================================ */
.deep-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.skill-lines {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vh, 2.5rem);
}

.skill-line {
    position: relative;
    padding-bottom: 0.75rem;
}

.skill-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    line-height: 1.6;
    color: #d1d5db;
}

.holo-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(135deg, #06b6d4, #14b8a6, #8b5cf6, #d946ef, #f59e0b);
    background-size: 200% 100%;
    animation: holo-shift 8s linear infinite;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out;
}

.holo-underline.visible {
    transform: scaleX(1);
}

/* ============================================================
   SECTION 5: ABYSS (CONTACT/FOOTER)
   ============================================================ */
#abyss {
    align-items: center;
    text-align: center;
}

.lionfish-svg {
    position: absolute;
    width: 600px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    z-index: 1;
}

.abyss-content {
    position: relative;
    z-index: 2;
}

.contact-info {
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.contact-link {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: #f9fafb;
    text-decoration: none;
    display: inline-block;
    position: relative;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #06b6d4;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #06b6d4, #8b5cf6, #d946ef);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.contact-link:hover::after {
    transform: scaleX(1);
}

.contact-info > .contact-link {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    margin-bottom: 2rem;
    display: block;
}

.contact-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.site-footer {
    margin-top: 4rem;
}

.footer-text {
    font-family: 'Albert Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

/* ============================================================
   SVG PATH ANIMATIONS
   ============================================================ */
.fish-paths path,
.fish-paths circle {
    stroke-dasharray: var(--path-length, 1000);
    stroke-dashoffset: var(--path-length, 1000);
    transition: stroke-dashoffset 0s;
}

.fish-paths.animate path,
.fish-paths.animate circle {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2s ease-in-out;
}

/* Discus fish - slower animation on load */
.discus-svg .fish-paths.animate path {
    transition: stroke-dashoffset 6s ease-in-out;
}

/* Lionfish - staggered animation */
.lionfish-paths.animate path {
    transition: stroke-dashoffset 1.5s ease-in-out;
}

.lionfish-paths.animate path:nth-child(1) { transition-delay: 0s; }
.lionfish-paths.animate path:nth-child(2) { transition-delay: 0.15s; }
.lionfish-paths.animate path:nth-child(3) { transition-delay: 0.3s; }
.lionfish-paths.animate path:nth-child(4) { transition-delay: 0.45s; }
.lionfish-paths.animate path:nth-child(5) { transition-delay: 0.6s; }
.lionfish-paths.animate path:nth-child(6) { transition-delay: 0.75s; }
.lionfish-paths.animate path:nth-child(7) { transition-delay: 0.9s; }
.lionfish-paths.animate path:nth-child(8) { transition-delay: 1.05s; }
.lionfish-paths.animate path:nth-child(9) { transition-delay: 1.2s; }
.lionfish-paths.animate path:nth-child(10) { transition-delay: 1.35s; }
.lionfish-paths.animate path:nth-child(11) { transition-delay: 1.5s; }
.lionfish-paths.animate path:nth-child(12) { transition-delay: 1.65s; }
.lionfish-paths.animate path:nth-child(13) { transition-delay: 1.8s; }
.lionfish-paths.animate path:nth-child(14) { transition-delay: 1.95s; }
.lionfish-paths.animate path:nth-child(15) { transition-delay: 2.1s; }
.lionfish-paths.animate path:nth-child(16) { transition-delay: 2.25s; }
.lionfish-paths.animate path:nth-child(17) { transition-delay: 2.4s; }
.lionfish-paths.animate path:nth-child(18) { transition-delay: 2.55s; }
.lionfish-paths.animate path:nth-child(19) { transition-delay: 2.7s; }
.lionfish-paths.animate path:nth-child(20) { transition-delay: 2.85s; }
.lionfish-paths.animate path:nth-child(21) { transition-delay: 3.0s; }
.lionfish-paths.animate path:nth-child(22) { transition-delay: 3.15s; }
.lionfish-paths.animate path:nth-child(23) { transition-delay: 3.3s; }
.lionfish-paths.animate path:nth-child(24) { transition-delay: 3.45s; }
.lionfish-paths.animate path:nth-child(25) { transition-delay: 3.6s; }
.lionfish-paths.animate path:nth-child(26) { transition-delay: 3.75s; }
.lionfish-paths.animate path:nth-child(27) { transition-delay: 3.9s; }
.lionfish-paths.animate path:nth-child(28) { transition-delay: 4.05s; }
.lionfish-paths.animate path:nth-child(29) { transition-delay: 4.2s; }
.lionfish-paths.animate path:nth-child(30) { transition-delay: 4.35s; }
.lionfish-paths.animate path:nth-child(31) { transition-delay: 4.5s; }
.lionfish-paths.animate path:nth-child(32) { transition-delay: 4.65s; }
.lionfish-paths.animate path:nth-child(33) { transition-delay: 4.8s; }
.lionfish-paths.animate path:nth-child(34) { transition-delay: 4.95s; }
.lionfish-paths.animate path:nth-child(35) { transition-delay: 5.1s; }
.lionfish-paths.animate path:nth-child(36) { transition-delay: 5.25s; }
.lionfish-paths.animate path:nth-child(37) { transition-delay: 5.4s; }
.lionfish-paths.animate path:nth-child(38) { transition-delay: 5.55s; }
.lionfish-paths.animate path:nth-child(39) { transition-delay: 5.7s; }
.lionfish-paths.animate path:nth-child(40) { transition-delay: 5.85s; }

/* Band fish icons */
.band-fish .fish-paths.animate path,
.band-fish .fish-paths.animate circle {
    transition: stroke-dashoffset 1.2s ease-in-out;
}

/* Wave paths in transitions */
.wave-path {
    stroke-dasharray: var(--path-length, 5000);
    stroke-dashoffset: var(--path-length, 5000);
    transition: stroke-dashoffset 0s;
}

.wave-path.animate {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 2s ease-in-out;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    #dot-nav {
        right: 12px;
        gap: 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .coral-svg {
        display: none;
    }

    .moorish-idol-svg {
        display: none;
    }

    .reef-content {
        padding-left: 0;
    }

    #reef {
        padding-left: clamp(1.5rem, 4vw, 3rem);
        padding-right: clamp(1.5rem, 4vw, 3rem);
    }

    .project-band {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .band-title {
        min-width: auto;
    }

    .band-description {
        padding: 0;
    }

    .band-fish {
        margin-top: 0.5rem;
    }

    .discus-svg {
        width: 280px;
        height: 280px;
    }

    .lionfish-svg {
        width: 350px;
        height: 290px;
    }

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

@media (max-width: 480px) {
    .site-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}
