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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

/* Color variables */
:root {
    --blue: #3b465a;
    --orange: #f9ae07;
    --gray: #768065;
    --white: #ffffff;
}

/* Hero Section with Rotating Images */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.rotating-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.rotating-image.active {
    opacity: 1;
}

.hero-logo {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none;
}

.logo-image {
    max-width: 600px;
    height: auto;
    display: block;
}

.hero-text-rotator {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    text-align: center;
    width: 80%;
    max-width: 800px;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 300;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.rotating-text strong {
    font-weight: 700;
}

.rotating-text.active {
    opacity: 1;
}

.rotating-text.typing::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--white);
    font-weight: bold;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-scroll-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.scroll-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.scroll-btn:hover {
    transform: translateY(-5px);
}

.arrow-icon {
    width: 50px;
    height: auto;
    filter: brightness(0) invert(1); /* Makes the arrow white */
}

/* Content Section with Background Transition */
.content-section {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--blue) 0%, var(--white) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.content-text {
    max-width: 1000px;
    text-align: center;
    color: var(--blue);
}

.content-text h1 {
    font-size: 4.5rem;
    margin-bottom: 3rem;
    color: var(--blue);
    font-weight: bold;
}

.content-text p {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--blue);
}

.contact-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.contact-message {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    flex: 1;
    margin: 0;
    line-height: 1.3;
}

.contact-btn {
    background-color: var(--white);
    color: var(--blue);
    border: 2px solid var(--blue);
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    white-space: nowrap;
}

.contact-btn:hover {
    background-color: var(--blue);
    color: var(--white);
}

/* Contact Section */
.contact {
    background-color: var(--blue);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 200px;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 6rem;
    min-height: 100%;
}

.contact-separator {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.7;
}

/* Hide separators on mobile devices */
@media (max-width: 600px), (max-width: 768px) {
    .contact-separator {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

.contact-item {
    flex: 1;
    text-align: center;
}

.contact-item p {
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-text h1 {
        font-size: 3rem;
    }
    
    .content-text p {
        font-size: 1.4rem;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .contact-message {
        font-size: 1.1rem;
    }
    
    .contact-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item p {
        font-size: 1.1rem;
    }
    
    .contact-separator {
        display: none;
    }
    
    .logo-image {
        max-width: 400px;
    }
    
    .hero-logo {
        top: 15%;
    }
    
    .rotating-text {
        font-size: 1.8rem;
    }
    
    .hero-text-rotator {
        width: 90%;
        max-width: 600px;
        top: 45%;
    }
    
    .hero-scroll-button {
        bottom: 1rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .contact-separator {
        display: none !important;
    }
    
    .contact-info {
        gap: 1rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 600px) {
    .contact-separator {
        display: none !important;
    }
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 1rem;
}

.popup-header h2 {
    color: var(--blue);
    font-size: 1.8rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blue);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

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

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

.form-group label {
    color: var(--blue);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.submit-btn {
    background-color: var(--blue);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: var(--orange);
}

/* Force hide separators on mobile - highest priority */
@media (max-width: 600px) {
    .contact-separator {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-btn svg {
        width: 25px;
        height: 25px;
    }
}
