/* Custom Font */
@font-face {
    font-family: 'IM Fell English SC';
    src: url('Assets/IM_Fell_English_SC/IMFellEnglishSC-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'IM Fell English SC', 'Georgia', 'Times New Roman', serif;
    background-image: url('Assets/Lake.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #f4e9c9;
}

* {
    cursor: url('Assets/firefly32x32.png') 16 16, auto !important;
}

/* Cursor Trail Canvas */
#cursorTrail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Header Section */
.header {
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.floodmire-sign {
    max-width: 600px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

/* Main Content */
.main-content {
    text-align: center;
    width: 100%;
    max-width: 650px;
    animation: fadeIn 1.2s ease-out;
}

.pitch-text {
    font-size: 24px;
    font-weight: 600;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Email Form */
.email-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
}

#emailInput {
    width: 100%;
    padding: 18px 25px;
    font-size: 16px;
    border: 3px solid #d4af37;
    border-radius: 50px;
    background-color: #f4e9c9;
    color: #2c1810;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'IM Fell English SC', 'Georgia', 'Times New Roman', serif;
}

#emailInput::placeholder {
    color: #8b7355;
}

#emailInput:focus {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    background-color: #fff;
}

.cta-button {
    padding: 15px 50px;
    font-size: 20px;
    font-weight: bold;
    color: #2c1810;
    background-color: #d4af37;
    border: 3px solid #b8941f;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IM Fell English SC', 'Georgia', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

/* Messages */
.confirmation-message,
.error-message {
    margin-top: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    animation: slideIn 0.5s ease-out;
}

.confirmation-message {
    background-color: rgba(76, 175, 80, 0.9);
    color: #fff;
    border: 2px solid #4caf50;
}

.error-message {
    background-color: rgba(244, 67, 54, 0.9);
    color: #fff;
    border: 2px solid #f44336;
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 1.5s ease-out;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons img {
    width: 50px;
    height: 50px;
    filter: brightness(0.9);
}

.branding {
    text-align: center;
}

.logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px #ffd700);
    }
    50% {
        filter: drop-shadow(0 0 20px #ffd700);
    }
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-15px, -10px) rotate(-5deg); }
    20% { transform: translate(15px, 10px) rotate(5deg); }
    30% { transform: translate(-15px, 10px) rotate(-4deg); }
    40% { transform: translate(15px, -10px) rotate(4deg); }
    50% { transform: translate(-15px, -10px) rotate(-5deg); }
    60% { transform: translate(15px, 10px) rotate(5deg); }
    70% { transform: translate(-15px, 10px) rotate(-4deg); }
    80% { transform: translate(15px, -10px) rotate(4deg); }
    90% { transform: translate(-10px, -5px) rotate(-3deg); }
}

.floodmire-sign.shake {
    animation: shake 0.8s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

/* Responsive Design */
@media (max-width: 768px) {
    .floodmire-sign {
        max-width: 400px;
    }

    .pitch-text {
        font-size: 20px;
    }

    #emailInput {
        font-size: 14px;
        padding: 15px 20px;
    }

    .cta-button {
        font-size: 18px;
        padding: 12px 40px;
    }

    .logo {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 30px;
    }

    .floodmire-sign {
        max-width: 300px;
    }

    .pitch-text {
        font-size: 18px;
    }

    #emailInput {
        font-size: 13px;
        padding: 14px 18px;
    }

    .cta-button {
        font-size: 16px;
        padding: 10px 35px;
    }

    .social-icons img {
        width: 40px;
        height: 40px;
    }

    .logo {
        max-width: 180px;
    }
}
