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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cursor Crab Animation */
.cursor-crab {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 100px;
    transition: all 0.1s ease-out;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.cursor-crab .crab-text {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-family: 'Comfortaa', cursive;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cursor-crab.idle .crab-text {
    opacity: 1;
}

.cursor-crab.moving .crab-text {
    opacity: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo .crab-logo {
    font-size: 2.5rem;
}

.logo h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 2rem;
    font-weight: 700;
    color: #e67e22;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #e67e22;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #6c5ce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="waves" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M0 50c25 0 25-25 50-25s25 25 50 25v50H0V50z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23waves)"/></svg>') repeat;
    animation: wave-move 20s linear infinite;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.crab-emblem {
    font-size: 12rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
}

.hero h1 {
    font-family: 'Comfortaa', cursive;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
    animation: fadeInUp 1s ease 0.6s both;
    /* Performance optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.6);
}

/* Wave Animation */
.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39 56.44c58-10.79 114.16-30.13 172-41.86 82.39-16.72 168.19-17.73 250.45-.39C823.78 31 906.67 72 985.66 92.83c70.05 18.48 146.53 26.09 214.34 3V0H0v27.35a600.21 600.21 0 00321.39 29.09z" fill="%23ffffff"/></svg>') repeat-x;
    animation: wave-move 10s linear infinite;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Sections */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Comfortaa', cursive;
    font-size: 3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.4)"/></svg>') repeat;
    opacity: 0.5;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.about-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    /* Performance optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.about-card p {
    color: #7f8c8d;
    line-height: 1.8;
}

/* Attractions Section */
.attractions {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8a3 100%);
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.attraction-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    /* Performance optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.attraction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.attraction-image {
    height: 200px;
    background: linear-gradient(45deg, #74b9ff, #0984e3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-image {
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.attraction-content {
    padding: 2rem;
}

.attraction-content h3 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.attraction-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Events Section */
.events {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    display: flex;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    /* Performance optimizations */
    will-change: transform, box-shadow;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.event-date {
    text-align: center;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 100px;
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
}

.event-content h3 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.event-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #81ecec 0%, #00cec9 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.contact-icon {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(230, 126, 34, 0.3);
}

.contact-item h4 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #7f8c8d;
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.2);
}

.contact-form button {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(230, 126, 34, 0.6);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo .crab-logo {
    font-size: 2rem;
}

.footer-logo h3 {
    font-family: 'Comfortaa', cursive;
    font-size: 1.5rem;
    color: #f39c12;
}

.footer-text p {
    color: #bdc3c7;
    max-width: 400px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.5);
}

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

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cursor Crab Animation */
.cursor-crab {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 6.25rem;
    transition: all 0.1s ease-out;
    transform-origin: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    opacity: 0;
    /* Performance optimizations */
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

.cursor-crab .crab-body {
    position: relative;
    display: inline-block;
    animation: crab-walk 0.8s ease-in-out infinite;
    font-size: 1em;
    /* Performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

@keyframes crab-walk {
    0%, 100% { 
        transform: rotate3d(0deg, 0, 0) scale(1) translate3d(0, 0, 0);
    }
    25% { 
        transform: rotate3d(-3deg, 0, 0) scale(1.05) translate3d(0, 0, 0);
    }
    50% { 
        transform: rotate3d(0deg, 0, 0) scale(1.1) translate3d(0, 0, 0);
    }
    75% { 
        transform: rotate3d(3deg, 0, 0) scale(1.05) translate3d(0, 0, 0);
    }
}

.cursor-crab.moving {
    animation: cursor-crab-excited 0.3s ease-in-out;
}

.cursor-crab.moving .crab-body {
    animation: crab-walk 0.4s ease-in-out infinite;
}

.cursor-crab.idle {
    transition: all 0.3s ease-out;
}

.cursor-crab.idle .crab-body {
    animation: crab-idle-walk 1.5s ease-in-out infinite;
}

@keyframes crab-idle-walk {
    0%, 100% { 
        transform: rotate3d(0deg, 0, 0) scale(1) translate3d(0, 0, 0);
    }
    25% { 
        transform: rotate(-1deg, 0, 0) scale(1.02) translate3d(0, 0, 0);
    }
    50% { 
        transform: rotate(0deg, 0, 0) scale(1.05) translate3d(0, 0, 0);
    }
    75% { 
        transform: rotate(1deg, 0, 0) scale(1.02) translate3d(0, 0, 0);
    }
}

@keyframes cursor-crab-excited {
    0% { transform: scale(1) rotate3d(0deg, 0, 0); }
    50% { transform: scale(1.3) rotate3d(10deg, 0, 0); }
    100% { transform: scale(1) rotate3d(0deg, 0, 0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .crab-emblem {
        font-size: 8rem;
    }
    
    .cursor-crab {
        font-size: 60px;
    }
    
    .cursor-crab .crab-text {
        font-size: 12px;
        top: -30px;
        padding: 4px 8px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .event-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .about-grid,
    .attractions-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .crab-emblem {
        font-size: 6rem;
    }
    
    .cursor-crab {
        font-size: 40px;
    }
    
    .cursor-crab .crab-text {
        font-size: 10px;
        top: -25px;
        padding: 3px 6px;
    }
}
