/* Color Palette */
:root {
    --deep-black: #1a1a1a;
    --soft-black: #2d2d2d;
    --pastel-violet: #b8a9c9;
    --light-lavender: #d4c8e0;
    --cool-yellow: #e8e4b8;
    --off-white: #f5f4f0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--deep-black);
    color: var(--off-white);
    min-height: 100vh;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--soft-black);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 169, 201, 0.2);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pastel-violet);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo:hover {
    color: var(--light-lavender);
}

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

.nav-links a {
    color: var(--off-white);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a.active {
    color: var(--pastel-violet);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pastel-violet);
    transition: width 0.3s ease;
}

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

/* Mobile navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--off-white);
    transition: all 0.3s ease;
}

/* Main Content */
main {
    padding-top: 80px;
    min-height: 100vh;
}

/* Hero Section - Landing Page */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
    text-align: center;
}

.hero-text {
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-text h1 {
    font-size: 2rem;
    color: var(--pastel-violet);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--off-white);
    opacity: 0.9;
}

/* Octopus Container */
.octopus-container {
    width: 300px;
    height: 300px;
    cursor: pointer;
    margin: 2rem 0;
}

.octopus-container svg {
    width: 100%;
    height: 100%;
}

/* Feed instruction */
.feed-instruction {
    font-size: 0.9rem;
    color: var(--cool-yellow);
    opacity: 0.8;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.octopus-container:hover + .feed-instruction,
.feed-instruction.highlight {
    opacity: 1;
}

/* Sponsors Section */
.sponsors-section {
    padding: 4rem 2rem;
    background: var(--soft-black);
}

.sponsors-section h2 {
    text-align: center;
    color: var(--pastel-violet);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
}

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

.sponsor-card {
    background: var(--deep-black);
    border: 1px solid rgba(184, 169, 201, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.sponsor-card:hover {
    border-color: var(--pastel-violet);
    transform: translateY(-2px);
}

.sponsor-logo {
    width: 500px;
    height: 250px;
    background: var(--soft-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    padding: 0.75rem;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-placeholder {
    color: rgba(184, 169, 201, 0.5);
    font-size: 0.75rem;
}

.sponsor-name {
    color: var(--off-white);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.sponsor-tagline {
    color: var(--off-white);
    opacity: 0.6;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.sponsor-links {
    display: flex;
    gap: 0.75rem;
}

.sponsor-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--soft-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pastel-violet);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.sponsor-link:hover {
    background: var(--pastel-violet);
    color: var(--deep-black);
    transform: scale(1.1);
}

.sponsor-link svg {
    width: 16px;
    height: 16px;
}

/* About Page */
.about-page {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h1,
.about-section h2 {
    color: var(--pastel-violet);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.about-section h1 {
    font-size: 2rem;
}

.about-section h2 {
    font-size: 1.5rem;
}

.about-section p {
    color: var(--off-white);
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--soft-black);
    border: 1px solid rgba(184, 169, 201, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
    border-color: var(--pastel-violet);
    transform: translateY(-2px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--deep-black);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pastel-violet);
}

.team-photo-placeholder {
    color: var(--pastel-violet);
    font-size: 0.8rem;
}

.team-card h3 {
    color: var(--off-white);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--cool-yellow);
    font-size: 0.9rem;
}

/* Contact Page */
.contact-page {
    background: var(--soft-black);
    padding: 3rem;
    border-radius: 8px;
    max-width: 500px;
    margin: 2rem auto;
    border: 1px solid rgba(184, 169, 201, 0.2);
}

.contact-page h1 {
    margin-bottom: 2rem;
    color: var(--pastel-violet);
    font-size: 1.8rem;
    font-weight: 400;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--off-white);
    font-size: 0.9rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(184, 169, 201, 0.3);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--deep-black);
    color: var(--off-white);
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--pastel-violet);
}

input::placeholder,
textarea::placeholder {
    color: rgba(245, 244, 240, 0.4);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 0.75rem 2rem;
    background: var(--pastel-violet);
    color: var(--deep-black);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background: var(--light-lavender);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.response-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.response-message.success {
    background: rgba(184, 169, 201, 0.2);
    color: var(--light-lavender);
    border: 1px solid var(--pastel-violet);
    display: block;
}

.response-message.error {
    background: rgba(232, 228, 184, 0.1);
    color: var(--cool-yellow);
    border: 1px solid var(--cool-yellow);
    display: block;
}

/* Octopus Animations */
@keyframes tentacle-wave-1 {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@keyframes tentacle-wave-2 {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-5deg); }
}

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

@keyframes tentacle-wave-4 {
    0%, 100% { transform: rotate(3deg); }
    50% { transform: rotate(-7deg); }
}

@keyframes happy-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-15px) scale(1.05); }
    50% { transform: translateY(-5px) scale(1.02); }
    75% { transform: translateY(-10px) scale(1.03); }
}

@keyframes eye-blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

.octopus-body {
    transition: transform 0.3s ease;
}

.octopus-body.happy {
    animation: happy-bounce 0.6s ease;
}

.tentacle {
    transform-origin: top center;
}

.tentacle-1 { animation: tentacle-wave-1 3s ease-in-out infinite; }
.tentacle-2 { animation: tentacle-wave-2 2.8s ease-in-out infinite 0.2s; }
.tentacle-3 { animation: tentacle-wave-3 3.2s ease-in-out infinite 0.4s; }
.tentacle-4 { animation: tentacle-wave-4 2.6s ease-in-out infinite 0.1s; }
.tentacle-5 { animation: tentacle-wave-1 3.1s ease-in-out infinite 0.3s; }
.tentacle-6 { animation: tentacle-wave-2 2.9s ease-in-out infinite 0.5s; }
.tentacle-7 { animation: tentacle-wave-3 2.7s ease-in-out infinite 0.15s; }
.tentacle-8 { animation: tentacle-wave-4 3.3s ease-in-out infinite 0.35s; }

.octopus-eye {
    transition: transform 0.1s ease-out;
}

.octopus-pupil {
    transition: transform 0.1s ease-out;
}

/* Footer */
footer {
    background: var(--soft-black);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(184, 169, 201, 0.2);
}

footer p {
    color: var(--off-white);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--soft-black);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(184, 169, 201, 0.2);
    }

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

    .nav-links a::after {
        display: none;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .octopus-container {
        width: 250px;
        height: 250px;
    }

    .contact-page {
        margin: 1rem;
        padding: 2rem;
    }

    .about-page {
        padding: 1rem;
    }

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

@media (max-width: 480px) {
    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-logo {
        width: 120px;
        height: 120px;
    }
}
