* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(212, 168, 83, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #1a2b4a;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(212, 168, 83, 0.03) 35px, rgba(212, 168, 83, 0.03) 70px),
        linear-gradient(135deg, #1a2b4a 0%, #0f1a2e 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 3px #d4a853;
    overflow: visible;
    border: 3px solid #d4a853;
    touch-action: pan-y;
}

header {
    background: #1a2b4a;
    background-image: 
        linear-gradient(135deg, #1a2b4a 0%, #0f1a2e 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 168, 83, 0.05) 10px, rgba(212, 168, 83, 0.05) 20px);
    color: #d4a853;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    touch-action: auto;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    pointer-events: none;
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4a853;
    pointer-events: none;
}

.logo {
    width: 180px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 8px 20px rgba(212, 168, 83, 0.6));
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
    touch-action: pan-y;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(212, 168, 83, 0.9);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    touch-action: pan-y pan-x pinch-zoom;
    isolation: isolate;
    pointer-events: none;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    touch-action: auto;
    position: relative;
    overflow: visible;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.email-btn {
    background: #d4a853;
    color: #1a2b4a;
    border-color: #d4a853;
}

.email-btn:hover {
    background: transparent;
    color: #d4a853;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 168, 83, 0.3);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background: transparent;
    color: #25D366;
    border-color: #25D366;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.hero-btn i {
    font-size: 1.3rem;
    pointer-events: none;
}

.hero-btn span {
    pointer-events: none;
}

.intro {
    padding: 40px;
    text-align: center;
    touch-action: pan-y;
}

.intro p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: linear-gradient(135deg, #d4a853 0%, #b8903f 100%);
    color: #1a2b4a;
    border: 3px solid #1a2b4a;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(212, 168, 83, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.services {
    padding: 40px;
    background: #f8f9fa;
    touch-action: pan-y;
}

.services:nth-child(odd) {
    background: white;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #1a2b4a;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4a853, #b8903f);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(212, 168, 83, 0.3);
    border-color: #d4a853;
}

.service-card.highlight {
    background: #1a2b4a;
    background-image: 
        linear-gradient(135deg, #1a2b4a 0%, #0f1a2e 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 168, 83, 0.05) 10px, rgba(212, 168, 83, 0.05) 20px);
    color: #d4a853;
    border: 4px solid #d4a853;
    box-shadow: 0 8px 25px rgba(212, 168, 83, 0.4);
}

.service-card.highlight h3,
.service-card.highlight p {
    color: #d4a853;
}

.icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #1a2b4a;
    transition: all 0.3s ease;
}

.service-card:hover .icon {
    color: #d4a853;
    transform: scale(1.1);
}

.service-card.highlight .icon {
    color: #d4a853;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #1a2b4a;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    height: 90vh;
    max-height: 800px;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    padding: 25px 30px;
    margin: 0;
    background: linear-gradient(135deg, #1a2b4a 0%, #0f1a2e 100%);
    color: #d4a853;
    border-radius: 20px 20px 0 0;
    text-align: center;
    font-size: 1.5rem;
}

.modal-content iframe {
    flex: 1;
    width: 100%;
    border: none;
    border-radius: 0 0 20px 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    transition: all 0.3s ease;
    font-size: 18px;
    touch-action: pan-y;
}

.modal-close:hover {
    background: #d4a853;
    color: #1a2b4a;
    transform: rotate(90deg);
}

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    background: white;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chatbot-container.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chatbot-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.chatbot-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    touch-action: pan-y;
}

.chatbot-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.chatbot-close i {
    font-size: 16px;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a853 0%, #b8903f 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 168, 83, 0.4);
    color: #1a2b4a;
    font-size: 24px;
    touch-action: pan-y;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.6);
}

.chatbot-toggle.hidden {
    opacity: 0;
    transform: scale(0);
    pointer-events: none;
}

.footer {
    background: #1a2b4a;
    background-image: 
        linear-gradient(135deg, #1a2b4a 0%, #0f1a2e 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212, 168, 83, 0.05) 10px, rgba(212, 168, 83, 0.05) 20px);
    padding: 30px 20px;
    text-align: center;
    color: rgba(212, 168, 83, 0.7);
    font-size: 0.9rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #d4a853;
    pointer-events: none;
}

.footer p {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #d4a853;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.footer-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-logo {
    height: 30px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-link:hover .footer-logo {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(212, 168, 83, 0.8));
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-width: 2px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 2px #d4a853;
    }
    
    header {
        padding: 40px 15px;
    }
    
    .logo {
        width: 100px;
        animation: none;
    }
    
    header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 30px;
        font-size: 1.05rem;
        min-height: 48px;
    }
    
    .intro {
        padding: 30px 20px;
    }
    
    .intro p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 16px 30px;
        font-size: 1.05rem;
        min-height: 48px;
    }
    
    .services {
        padding: 30px 15px;
    }
    
    .services h2 {
        font-size: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card:hover {
        transform: translateY(-3px);
    }
    
    .icon {
        font-size: 3rem;
    }
    
    .chatbot-container {
        width: calc(100% - 20px);
        height: 70vh;
        max-height: 500px;
        bottom: 10px;
        right: 10px;
        left: 10px;
        border-radius: 12px;
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
        font-size: 22px;
        bottom: 15px;
        right: 15px;
    }
    
    .modal-content {
        width: 95%;
        height: 90vh;
        border-radius: 15px;
    }
    
    .modal-content h2 {
        font-size: 1.1rem;
        padding: 18px 15px;
    }
    
    .footer {
        padding: 25px 15px;
    }
    
    .footer-link {
        font-size: 1rem;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .footer-logo {
        height: 25px;
    }
    
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.5s !important;
        transition-duration: 0.2s !important;
    }
    
    .logo {
        animation: none !important;
    }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 30px 15px;
    }
    
    .logo {
        width: 80px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .hero-btn {
        max-width: 180px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .chatbot-container {
        height: 80vh;
    }
}
