/* Color Palette from DESIGN.md */
:root {
    --color-primary: #FF2D7B;
    --color-secondary: #00F5D4;
    --color-accent: #FFD93D;
    --color-dark: #16162A;
    --color-card: #0F0F1E;
    --color-dark-secondary: #0A0A12;
    --color-purple: #9B5DE5;
    --color-gray: #7B7B9E;
    --color-light-gray: #B8B8D0;

    --font-display: 'Righteous', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-accent: 'Exo 2', sans-serif;
    --font-body: 'IBM Plex Mono', monospace;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    background-color: var(--color-dark-secondary);
    color: var(--color-light-gray);
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Watercolor Layers - Organic diffuse gradients */
.watercolor-layer {
    position: absolute;
    mix-blend-mode: screen;
    filter: blur(40px);
    opacity: 0.6;
}

.watercolor-1 {
    top: 10%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 30% 40%, rgba(255, 45, 123, 0.4), transparent 70%);
    animation: float 12s ease-in-out infinite;
}

.watercolor-2 {
    top: 30%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at 60% 50%, rgba(0, 245, 212, 0.3), transparent 70%);
    animation: float 14s ease-in-out infinite reverse;
}

.watercolor-3 {
    bottom: 5%;
    left: 30%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle at 50% 60%, rgba(155, 93, 229, 0.3), transparent 70%);
    animation: float 16s ease-in-out infinite;
}

/* Neon Glow Layers - Additive blend for electric effect */
.neon-glow {
    position: absolute;
    mix-blend-mode: screen;
    filter: blur(60px);
    opacity: 0.4;
}

.neon-1 {
    top: 20%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, rgba(0, 245, 212, 0.6), transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.neon-2 {
    top: 45%;
    right: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at center, rgba(255, 45, 123, 0.5), transparent 70%);
    animation: pulse 4s ease-in-out infinite 0.5s;
}

.neon-3 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at center, rgba(155, 93, 229, 0.4), transparent 70%);
    animation: pulse 3.5s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(0, 30px);
    }
    75% {
        transform: translate(-20px, -10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.domain-title {
    color: var(--color-secondary);
    text-shadow: 0 0 30px rgba(0, 245, 212, 0.5), 0 0 60px rgba(255, 45, 123, 0.3);
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-subtitle {
    color: var(--color-light-gray);
    font-size: 1.5rem;
    max-width: 600px;
    font-family: var(--font-grotesk);
    letter-spacing: 0.05em;
}

.lambda-accent {
    font-size: 5rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    text-shadow: 0 0 20px rgba(255, 45, 123, 0.8);
    animation: bounce-rotate 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        text-shadow: 0 0 30px rgba(0, 245, 212, 0.5), 0 0 60px rgba(255, 45, 123, 0.3);
    }
    50% {
        text-shadow: 0 0 50px rgba(0, 245, 212, 0.8), 0 0 80px rgba(255, 45, 123, 0.5);
    }
}

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

/* Portfolio Section */
.portfolio {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(180deg, var(--color-dark-secondary) 0%, var(--color-dark) 50%, var(--color-dark-secondary) 100%);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
    max-width: 1400px;
    margin: 0 auto;
}

/* Specimen Cards */
.specimen-card {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.8) 0%, rgba(22, 22, 42, 0.9) 100%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.specimen-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.specimen-card:hover {
    border-color: rgba(0, 245, 212, 0.5);
    background: linear-gradient(135deg, rgba(123, 123, 158, 0.2) 0%, rgba(22, 22, 42, 0.7) 100%);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2), inset 0 0 20px rgba(0, 245, 212, 0.05);
    transform: translateY(-5px);
}

/* Make cards span different column counts */
.card-1 {
    grid-column: span 1;
}

.card-2 {
    grid-column: span 1;
}

.card-3 {
    grid-column: span 1;
}

.card-4 {
    grid-column: span 1;
}

.card-5 {
    grid-column: span 1;
}

.card-6 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .card-3 {
        grid-column: span 1;
    }

    .card-5 {
        grid-column: span 1;
    }
}

/* Card Visual - SVG Container */
.card-visual {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(22, 22, 42, 0.8), #0A0A12);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.creature-svg {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 180px;
    filter: drop-shadow(0 0 15px rgba(0, 245, 212, 0.3));
}

.specimen-card:hover .creature-svg {
    filter: drop-shadow(0 0 25px rgba(255, 45, 123, 0.5));
    animation: creature-glow 2s ease-in-out infinite;
}

@keyframes creature-glow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(255, 45, 123, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(0, 245, 212, 0.5));
    }
}

/* Card Title */
.card-title {
    font-size: 1.5rem;
    color: var(--color-secondary);
    font-family: var(--font-display);
    position: relative;
    z-index: 2;
}

.specimen-card:hover .card-title {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(255, 45, 123, 0.6);
}

/* Card Description */
.card-description {
    color: var(--color-light-gray);
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Footer Section */
.footer {
    background: linear-gradient(180deg, var(--color-dark-secondary) 0%, #08080F 100%);
    padding: 3rem clamp(1.5rem, 5vw, 3rem);
    border-top: 1px solid rgba(0, 245, 212, 0.1);
}

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

.footer-text {
    color: var(--color-gray);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    margin: 1.5rem auto;
}

.footer-credit {
    color: var(--color-light-gray);
    font-size: 1rem;
    font-family: var(--font-accent);
    letter-spacing: 0.05em;
}

/* Accent font styling for labels */
.card-label {
    font-family: var(--font-accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray);
}

/* Code styling */
code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #B8B8D0;
    background-color: rgba(15, 15, 30, 0.5);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* Label styling as per DESIGN.md */
label, .label {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #7B7B9E;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .lambda-accent {
        font-size: 3.5rem;
    }

    .portfolio {
        padding: 2rem 1rem;
    }

    .specimen-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .lambda-accent {
        font-size: 2.5rem;
    }

    p {
        font-size: 1rem;
    }
}
