/* ========================================
   WOBBLEFISH - Minimal + One Fun Element
   ======================================== */

:root {
    --color-bg: #fafafa;
    --color-text: #0a0a0a;
    --color-text-muted: #666;
    --color-accent: #0ea5e9;
    --color-accent-dark: #0284c7;
    --color-border: #e5e5e5;
    --color-card: #fff;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Nunito', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle noise texture for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 10000;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1rem; }

p {
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.label {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, #38bdf8 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-bg);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, #38bdf8 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.btn-primary span,
.btn-primary {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-logo);
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a5f;
    letter-spacing: -0.02em;
}

.logo-img {
    width: 36px;
    height: 36px;
    animation: wobble 3s ease-in-out infinite;
}

.fish-logo {
    width: 40px;
    height: auto;
    color: var(--color-text);
    animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(-5deg) translateY(-2px); }
    75% { transform: rotate(5deg) translateY(2px); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.btn-nav {
    padding: 10px 20px;
    background: var(--color-text);
    color: var(--color-bg) !important;
    border-radius: 100px;
}

.btn-nav:hover {
    background: var(--color-accent) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s var(--ease-out);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 60px;
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 25% 80%, rgba(14, 165, 233, 0.07) 0%, transparent 45%),
        var(--color-bg);
}

.hero-content {
    max-width: 800px;
}

.fish-container {
    margin-bottom: 2rem;
}

.hero-fish {
    width: 160px;
    height: auto;
    animation: swim 4s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(14, 165, 233, 0.25));
}

@keyframes swim {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(15px) rotate(5deg);
    }
    50% {
        transform: translateX(0) rotate(0deg);
    }
    75% {
        transform: translateX(-15px) rotate(-5deg);
    }
}

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

.hero-sub {
    font-size: 1.25rem;
    max-width: 540px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
}

.scroll-hint span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-text), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 40px; }
    50% { opacity: 1; height: 60px; }
}

/* Work Section */
.work {
    padding: 120px 0;
    background: var(--color-bg);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.work-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s var(--ease-out);
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent);
}

.work-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-out);
}

.work-card:hover .work-card-icon {
    background: var(--color-accent);
    transform: scale(1.1) rotate(-5deg);
}

.work-card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    transition: color 0.4s var(--ease-out);
}

.work-card:hover .work-card-icon svg {
    color: white;
}

.work-card-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.work-card h3 {
    margin-bottom: 12px;
}

.work-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.work-card-cta {
    background: linear-gradient(135deg, var(--color-text) 0%, #333 100%);
    color: var(--color-bg);
    border: none;
}

.work-card-cta .work-card-label {
    color: var(--color-accent);
}

.work-card-cta p {
    color: rgba(255, 255, 255, 0.7);
}

.dots {
    display: flex;
    gap: 6px;
    margin-top: 20px;
}

.dots span {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }

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

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background: var(--color-card);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.project-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 200px;
}

.project-logo img {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.4s var(--ease-out);
}

.project-card:hover .project-logo img {
    transform: scale(1.1);
}

/* SelectSpeak - purple background */
.project-card--selectspeak .project-logo {
    background: linear-gradient(135deg, #6467f0 0%, #5a5de8 100%);
}

.project-card--selectspeak .project-logo img {
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Dark background for light logos (ShiftEarn, CutSpec) */
.project-card--dark .project-logo {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.project-info h3 {
    font-size: 1.25rem;
    color: var(--color-text);
}

.project-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: gap 0.3s var(--ease-out);
}

.project-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.project-card:hover .project-link {
    gap: 10px;
}

.project-card:hover .project-link svg {
    transform: translate(2px, -2px);
}

/* Marquee */
.marquee-section {
    padding: 40px 0;
    background: var(--color-text);
    color: var(--color-bg);
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

.marquee-content .dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* About Section */
.about {
    padding: 120px 0;
    background: var(--color-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.value {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.value h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    color: var(--color-accent);
    min-width: 32px;
}

.value p {
    font-size: 1rem;
    color: var(--color-text);
    margin: 0;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.blob {
    position: absolute;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #38bdf8 50%, #a5f3fc 100%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    opacity: 0.2;
    animation: blobMorph 8s ease-in-out infinite, blobFloat 6s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(5deg); }
    66% { transform: translate(-15px, 15px) rotate(-5deg); }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.stats {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat {
    background: var(--color-bg);
    padding: 24px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
    transition: all 0.4s var(--ease-out);
}

.stat:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
    border-color: var(--color-accent);
}

.stat:hover .stat-number {
    color: var(--color-accent);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--color-bg);
}

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

.contact-content h2 {
    margin-bottom: 1rem;
}

.contact-content > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-alt {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.contact-alt p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out);
}

.social-links a:hover {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--color-text);
    color: var(--color-bg);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-logo);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.footer-logo .fish-logo {
    color: var(--color-bg);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
}

.footer-copy {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-visual {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .work, .about, .contact, .portfolio {
        padding: 80px 0;
    }

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

    .project-logo {
        padding: 32px;
        min-height: 160px;
    }

    .project-logo img {
        max-width: 100px;
        max-height: 100px;
    }

    .stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .stat {
        padding: 20px 24px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-fish {
        width: 80px;
    }

    .btn {
        width: 100%;
    }

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

}
