/* ===== Base Styles ===== */
:root {
    --purple-main: #c77dff;
    --purple-dark: #9d4edd;
    --purple-light: #e0aaff;
    --cyan-accent: #80ffdb;
    --orange-accent: #ff9f1c;
    --yellow-accent: #ffee32;
    --bg-light: #faf8ff;
    --bg-dark: #1a1a2e;
    --text-dark: #2d2d44;
    --text-light: #f8f8f8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0e6ff 50%, var(--purple-light) 100%);
    padding: 2rem;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    gap: 2rem;
}

.hero-character {
    animation: float 3s ease-in-out infinite;
}

.george-main {
    width: min(350px, 80vw);
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(157, 78, 221, 0.3));
    transition: transform 0.3s ease;
}

.george-main:hover {
    transform: scale(1.05) rotate(-5deg);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--text-dark);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #666;
    margin-top: 1rem;
}

.hero-subtitle em {
    color: var(--purple-dark);
    font-style: normal;
    font-weight: 700;
}

.scroll-hint {
    margin-top: 3rem;
    text-decoration: none;
    color: var(--purple-dark);
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.scroll-hint:hover {
    transform: translateY(5px);
}

.scroll-arrow {
    animation: bounce 2s infinite;
    font-size: 1.5rem;
}

/* Floating Items */
.floating-items {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    width: 80px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

.float-coffee {
    top: 15%;
    left: 10%;
    animation: floatSlow 6s ease-in-out infinite;
}

.float-lightning {
    top: 20%;
    right: 15%;
    animation: floatSlow 5s ease-in-out infinite 1s;
}

.float-laptop {
    bottom: 20%;
    left: 15%;
    width: 100px;
    animation: floatSlow 7s ease-in-out infinite 0.5s;
}

/* ===== About Section ===== */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: white;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--purple-dark);
}

.about-text p {
    font-size: 1.25rem;
    color: #555;
}

.about-text strong {
    color: var(--purple-dark);
}

.crab-buddy {
    width: 100%;
    max-width: 400px;
    height: auto;
    animation: wobble 4s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(255, 159, 28, 0.2));
}

/* ===== Capabilities Section ===== */
.capabilities {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, white 0%, var(--bg-light) 100%);
}

.section-title {
    text-align: center;
    color: var(--purple-dark);
    margin-bottom: 4rem;
}

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

.capability-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(157, 78, 221, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.capability-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(157, 78, 221, 0.2);
    border-color: var(--purple-light);
}

.capability-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.capability-card h3 {
    color: var(--purple-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.capability-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* ===== Personality Section ===== */
.personality {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--bg-dark);
    color: var(--text-light);
}

.personality .section-content {
    grid-template-columns: 1.2fr 1fr;
}

.gang-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.personality-text h2 {
    color: var(--purple-light);
}

.vibe-list {
    list-style: none;
    margin: 2rem 0;
}

.vibe-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.vibe-emoji {
    font-size: 1.8rem;
}

.vibe-note {
    font-style: italic;
    color: var(--cyan-accent);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* ===== Connect Section ===== */
.connect {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #2d2d44 100%);
    text-align: center;
}

.connect-content {
    max-width: 800px;
    margin: 0 auto;
}

.connect h2 {
    color: var(--purple-light);
}

.connect p {
    color: #aaa;
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.connect-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.connect-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.connect-btn:hover {
    transform: translateY(-5px);
}

.connect-btn.discord {
    background: #5865f2;
    color: white;
}

.connect-btn.discord:hover {
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.connect-btn.github {
    background: #333;
    color: white;
}

.connect-btn.github:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.connect-btn.docs {
    background: var(--purple-main);
    color: white;
}

.connect-btn.docs:hover {
    box-shadow: 0 10px 30px rgba(199, 125, 255, 0.4);
}

.btn-icon {
    font-size: 1.4rem;
}

.connect-character {
    margin-top: 2rem;
}

.george-bye {
    width: 200px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 15px 30px rgba(157, 78, 221, 0.3));
}

/* ===== Footer ===== */
.footer {
    padding: 2rem;
    text-align: center;
    background: #1a1a2e;
    color: #888;
}

.footer p {
    margin: 0.5rem 0;
}

.footer a {
    color: var(--purple-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-small {
    font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

/* ===== Reveal Animations ===== */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
    opacity: 1;
    transform: translate(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .personality .section-content {
        grid-template-columns: 1fr;
    }

    .about-visual,
    .personality-visual {
        order: -1;
    }

    .crab-buddy,
    .gang-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .float-item {
        width: 50px;
    }

    .float-laptop {
        width: 70px;
    }

    .vibe-list li {
        justify-content: center;
    }

    .connect-links {
        flex-direction: column;
        align-items: center;
    }

    .connect-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1rem;
    }

    .george-main {
        width: min(280px, 90vw);
    }

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