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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #FEFAF4;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#gridCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 40px;
}

.logo-container {
    margin-bottom: 80px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 120px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 12px rgba(255, 140, 68, 0.08));
}

.header {
    font-size: 64px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 28px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Line break controls */
.mobile-break {
    display: none;
}

.desktop-break {
    display: inline;
}

/* Animated dots */
.dots {
    display: inline-block;
}

.dot {
    animation: dotPulse 1.5s ease-in-out infinite;
    opacity: 0;
    color: #000000;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
    animation-name: dotPulseOrange;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%, 20% {
        opacity: 0;
        color: #000000;
    }
    40%, 60% {
        opacity: 1;
        color: #000000;
    }
    80%, 100% {
        opacity: 0;
        color: #000000;
    }
}

@keyframes dotPulseOrange {
    0%, 20% {
        opacity: 0;
        color: #000000;
    }
    40% {
        opacity: 1;
        color: #ff8c44;
    }
    60% {
        opacity: 1;
        color: #ff8c44;
    }
    80%, 100% {
        opacity: 0;
        color: #000000;
    }
}

.subheader {
    font-size: 22px;
    font-weight: 400;
    color: #666666;
    line-height: 1.65;
    letter-spacing: -0.01em;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .header {
        font-size: 42px;
    }

    .subheader {
        font-size: 18px;
    }

    .logo {
        max-width: 100px;
    }

    .logo-container {
        margin-bottom: 60px;
    }

    /* Swap line breaks for mobile */
    .mobile-break {
        display: inline;
    }

    .desktop-break {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        font-size: 32px;
    }

    .subheader {
        font-size: 16px;
    }

    .logo {
        max-width: 80px;
    }

    .container {
        padding: 20px;
    }

    .logo-container {
        margin-bottom: 50px;
    }

    /* Ensure mobile breaks show on small screens */
    .mobile-break {
        display: inline;
    }

    .desktop-break {
        display: none;
    }
}

/* Contact Button */
.contact-button {
    margin-top: 50px;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    background-color: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    font-family: inherit;
}

.contact-button:hover {
    border-color: #ff8c44;
    color: #ff8c44;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: relative;
    background-color: #FEFAF4;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease-out;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: #666666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #000000;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-size: 15px;
    font-family: inherit;
    color: #000000;
    background-color: #ffffff;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999999;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff8c44;
    box-shadow: 0 0 0 3px rgba(255, 140, 68, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-button {
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #ff8c44;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.submit-button:hover {
    background-color: #ff7a2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 68, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive - Modal */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 24px;
    }

    .modal-title {
        font-size: 24px;
    }

    .contact-button {
        padding: 12px 28px;
        font-size: 15px;
    }
}
