:root {
    --bg-color: #ffffff;
    --primary-orange: #fdd41b;
    --primary-green: #305a19;
    --font-family: 'Montserrat', sans-serif;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #ffffff, #fffdf0, #fcfefc, #f5fbf3);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
}

/* Subtle tech grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(48, 90, 25, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 90, 25, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    pointer-events: none;
    height: 100vh;
}

.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    animation: fadeIn 1s ease-out;
}

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

.main-slogan {
    width: 100%;
    max-width: 950px;
    padding-left: 100px;
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 0;
    color: #000;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
    letter-spacing: -1px;
}

.orange-box {
    background-color: var(--primary-orange);
    width: 950px;
    height: 340px; 
    border-radius: 60px;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 70px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}

.mascot {
    position: absolute;
    right: 0;
    bottom: -100px;
    width: clamp(250px, 32vw, 380px);
    height: auto;
    z-index: 2;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}


.content-wrapper {
    width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--primary-green);
}

.orange-box .logo {
    width: clamp(180px, 30vw, 220px);
    height: auto;
    margin-bottom: 15px;
}

.city-selector {
    margin-bottom: 20px;
    width: 100%;
}

.city-selector p {
    font-size: clamp(1rem, 4vw, 1.4rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    opacity: 0.95;
}

.select-wrapper {
    width: 100%;
    position: relative;
    max-width: 340px;
    margin: 0 auto;
}

.custom-select {
    width: 100%;
    padding: 8px 25px;
    border: 1.5px solid rgba(48, 90, 25, 0.8);
    background: rgba(48, 90, 25, 0.08);
    border-radius: 15px;
    color: var(--primary-green);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.custom-select:hover {
    background: rgba(48, 90, 25, 0.15);
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(48, 90, 25, 0.3);
    transform: translateY(-2px);
}

.arrow-icon {
    position: absolute;
    right: 20px;
    top: 40%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.2rem;
    opacity: 0.8;
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--primary-orange);
    width: 95%;
    max-width: 600px;
    padding: 40px;
    border-radius: 30px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--primary-green);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    color: var(--primary-green);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 900;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.city-grid::-webkit-scrollbar {
    width: 6px;
}
.city-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.city-btn {
    padding: 12px;
    background: rgba(48, 90, 25, 0.08);
    border: 1px solid rgba(48, 90, 25, 0.2);
    border-radius: 15px;
    font-weight: 700;
    color: var(--primary-green);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.city-btn:hover {
    background: var(--primary-green);
    color: #fdd41b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-green);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(48, 90, 25, 0.7);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--primary-green);
}



.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: -5px;
    opacity: 1;
}

.area-code {
    font-size: 0.7rem;
}

.phone {
    font-size: 3.8rem; /* Slightly smaller for a cleaner look */
    font-weight: 900;
    letter-spacing: -1.5px;
}



@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@media (max-width: 1100px) {
    .orange-box {
        width: 92%;
        height: auto;
        padding: 40px 20px;
        flex-direction: column;
        align-items: center;
        border-radius: 35px;
        margin-top: 20px;
    }
    .content-wrapper {
        width: 100%;
        text-align: center;
    }
    .logo {
        margin: 0 auto 30px;
    }
    .logo img {
        height: 48px !important;
    }
    .mascot {
        position: static;
        width: 100%;
        max-width: 380px;
        margin-top: 20px;
        margin-bottom: -40px;
    }
    .phone {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
    }
    .main-slogan {
        justify-content: center;
        text-align: center;
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        padding: 0 15px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .text-rotate-container {
        font-size: 0.9em;
        padding: 2px 12px;
    }
}

@media (max-width: 600px) {
    .city-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .modal-content {
        padding: 30px 15px;
    }
    .modal-content h2 {
        font-size: 1.4rem;
    }
    .hero {
        padding: 20px 0;
    }
    .orange-box {
        border-radius: 25px;
        padding: 35px 15px;
    }
}


/* RotatingText Component Styles */

.text-rotate-container {
    display: inline-flex;
    overflow: hidden;
    background-color: rgba(48, 90, 25, 0.12); /* Light green pill */
    color: var(--primary-green);
    padding: 4px 18px;
    border-radius: 20px;
    position: relative;
    height: 1.5em; /* Match line height */
    align-items: center;
}

.text-rotate-element {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.6s ease;
}

.text-rotate-element.enter {
    transform: translateY(0);
    opacity: 1;
}

.text-rotate-element.exit {
    transform: translateY(-120%);
    opacity: 0;
}

.text-rotate-space {
    display: inline-block;
    width: 0.3em;
}

