/* Base Styles */
:root {
    --primary: #4361ee;
    --primary-light: #4cc9f0;
    --secondary: #3f37c9;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --success: #25D366;
    --danger: #FF6B6B;
    --warning: #FFC107;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
}

.preloader p {
    margin-top: 20px;
    font-weight: 500;
    color: var(--primary);
}

.loader-circle {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-line {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: var(--primary);
    animation: spin 1.5s linear infinite;
}

.loader-line:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-line:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-line:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
}

.contact-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    background: var(--dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    white-space: nowrap;
}

.contact-btn:hover::before {
    opacity: 1;
    right: 65px;
}

.whatsapp { background: var(--success); }
.email { background: var(--primary); }
.phone { background: var(--secondary); }

.contact-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: var(--gradient);
    color: white;
    border-radius: 8px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-button {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.contact-hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(67, 97, 238, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
}

.contact-orb {
    position: relative;
    width: 400px;
    height: 400px;
    margin-left: auto;
}

.orb-core {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    top: 55%;
    left: 30%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px rgba(67, 97, 238, 0.5);
}


.orb-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(67, 97, 238, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 5s ease-in-out infinite;
}

.orb-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(67, 97, 238, 0.7));
    animation: floatParticle 8s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, 20px);
    }
    50% {
        transform: translate(-20px, 10px);
    }
    75% {
        transform: translate(10px, -20px);
    }
}

/* Contact Channels */
.contact-channels {
    padding: 100px 0;
    background-color: #f5f7ff;
}

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.channel-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.channel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.channel-card:hover::before {
    height: 100%;
}

.channel-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.whatsapp { background: var(--success); }
.email { background: var(--primary); }
.phone { background: var(--secondary); }
.chat { background: var(--warning); }

.channel-card:hover .channel-icon {
    transform: rotateY(180deg);
}

.channel-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.channel-card p {
    color: var(--gray);
    margin-bottom: 15px;
    transition: var(--transition);
}

.channel-link {
    display: inline-block;
    font-weight: 500;
    margin-bottom: 20px;
    transition: var(--transition);
}

.livechat-btn {
    background: var(--warning);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.channel-hover {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    text-align: center;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0;
}

.channel-card:hover .channel-hover {
    bottom: 0;
    opacity: 1;
}

/* Contact Form Section */
.contact-form-section {
    padding: 100px 0;
}

.form-container {
    display: flex;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}

.form-content {
    flex: 1;
    padding: 60px;
}

.form-visual {
    flex: 1;
    background: linear-gradient(135deg, #4361ee 0%, #4cc9f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    background: transparent;
    transition: var(--transition);
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.form-group select {
    appearance: none;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--gray);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group input:valid,
.form-group select:focus,
.form-group select:valid,
.form-group textarea:focus,
.form-group textarea:valid {
    outline: none;
    border-bottom-color: var(--primary);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -15px;
    font-size: 12px;
    color: var(--primary);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.form-group input:focus ~ .form-line,
.form-group input:valid ~ .form-line,
.form-group select:focus ~ .form-line,
.form-group select:valid ~ .form-line,
.form-group textarea:focus ~ .form-line,
.form-group textarea:valid ~ .form-line {
    width: 100%;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(67, 97, 238, 0.4);
}

.visual-mockup {
    width: 80%;
    height: 300px;
    position: relative;
}

.mockup-chat {
    position: absolute;
    width: 100%;
    height: 100%;
}

.chat-bubble {
    position: absolute;
    max-width: 70%;
    padding: 15px;
    border-radius: 15px;
    background: white;
    font-size: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.customer {
    bottom: 50px;
    left: 0;
    animation: floatBubble 4s ease-in-out infinite;
}

.agent {
    bottom: 120px;
    right: 0;
    animation: floatBubble 5s ease-in-out infinite 0.5s;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.typing-indicator .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: typingPulse 1.5s infinite ease-in-out;
}

.typing-indicator .dot:nth-child(1) { animation-delay: 0s; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.3s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes typingPulse {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: #f5f7ff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--gray);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Live Chat Popup */
.live-chat-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    z-index: 100;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.live-chat-popup.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.chat-header {
    padding: 15px 20px;
    background: var(--gradient);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.chat-header h3 {
    font-size: 18px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    padding: 20px;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.message.agent {
    align-items: flex-start;
}

.message.customer {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    background: var(--light-gray);
    position: relative;
}

.message.agent .message-content {
    background: var(--primary);
    color: white;
}

.message-time {
    font-size: 10px;
    color: var(--gray);
    margin-top: 5px;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
}

.chat-input button {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

/* Floating Chat Button */
.floating-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 25px rgba(67, 97, 238, 0.4);
    cursor: pointer;
    z-index: 99;
    transition: var(--transition);
}

.floating-chat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(67, 97, 238, 0.5);
}

.chat-icon {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--danger);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    animation: pulseBadge 1.5s infinite;
}

.chat-text {
    font-weight: 500;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-desc {
    color: #aaa;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #aaa;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: #aaa;
    transition: var(--transition);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-image {
        position: relative;
        width: 100%;
        max-width: 100%;
        transform: none;
        margin-top: 50px;
    }
    
    .contact-orb {
        width: 300px;
        height: 300px;
        margin: 0 auto;
        display: none;
    }

}

@media (max-width: 992px) {
    .form-container {
        flex-direction: column;
    }
    
    .form-content, .form-visual {
        padding: 40px;
    }
    
    .form-visual {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-hero {
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .floating-chat {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .chat-text {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .form-content, .form-visual {
        padding: 30px 20px;
    }
    
    .floating-contact {
        right: 15px;
        bottom: 100px;
    }
    
    .contact-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}