/* ==========================================================================
   Base & Reset
   ========================================================================== */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --accent: #f59e0b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-muted);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover {
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Top Bar
   ========================================================================== */
.top-bar {
    background-color: var(--text-main);
    color: white;
    font-size: 0.9rem;
    padding: 10px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact span {
    margin-right: 20px;
}

.top-contact i {
    color: var(--primary);
    margin-right: 8px;
}

.top-socials a {
    color: white;
    margin-left: 15px;
}

.top-socials a:hover {
    color: var(--primary);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.main-nav a:not(.btn-primary):hover {
    color: var(--primary);
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.main-nav a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Hero Slider
   ========================================================================== */
.hero-slider {
    position: relative;
    height: calc(100vh - 120px);
    min-height: 600px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 11;
    color: white;
    max-width: 800px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease-out 0.3s;
}

.slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-content h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
}

.slide-content h1 span {
    color: var(--primary-light);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--primary);
}

.prev-btn { left: 30px; }
.next-btn { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background: var(--primary-light);
    transform: scale(1.2);
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee-section {
    background: var(--gradient-primary);
    color: white;
    padding: 15px 0;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scroll-marquee 20s linear infinite;
}

.marquee-content span {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 40px;
    white-space: nowrap;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Features
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-main);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-alt);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: white;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Colorful Feature Cards */
.color-card-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
}
.color-card-1 h3, .color-card-1 p { color: white; }
.color-card-1 .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.color-card-1:hover .feature-icon {
    background: white;
    color: #d97706;
}

.color-card-2 {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
}
.color-card-2 h3, .color-card-2 p { color: white; }
.color-card-2 .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.color-card-2:hover .feature-icon {
    background: white;
    color: #059669;
}

.color-card-3 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    border: none;
}
.color-card-3 h3, .color-card-3 p { color: white; }
.color-card-3 .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
.color-card-3:hover .feature-icon {
    background: white;
    color: #6d28d9;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-right: 15px;
    background: var(--bg-alt);
    padding: 15px;
    border-radius: 12px;
}

.service-header h3 {
    font-size: 1.5rem;
}

.service-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.service-list li i {
    color: var(--primary);
    margin-top: 5px;
    margin-right: 12px;
    font-size: 0.9rem;
}

/* ==========================================================================
   Parallax
   ========================================================================== */
.parallax-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1527515637-67615024b311?q=80&w=1920&auto=format&fit=crop');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: white;
}

.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
}

.parallax-content {
    position: relative;
    z-index: 2;
}

.parallax-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.parallax-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-main);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: relative;
}

.testimonial-card::after {
    content: '\f10d';
    font-family: 'FontAwesome';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    color: var(--bg-alt);
    z-index: 0;
}

.stars {
    color: var(--accent);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.review-text {
    font-style: italic;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.client-info {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    border: 2px solid var(--primary);
}

.client-details h4 {
    margin-bottom: 2px;
}

.client-details span {
    font-size: 0.9rem;
    color: var(--primary);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-main);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-form-container {
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    background: var(--bg-alt);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.contact-info-map {
    display: flex;
    flex-direction: column;
}

.info-blocks {
    background: var(--gradient-dark);
    color: white;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    color: white;
    margin-bottom: 5px;
}

.info-item p {
    color: #cbd5e1;
}

.map-container {
    flex-grow: 1;
    min-height: 300px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--text-main);
    color: #cbd5e1;
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-light);
}

.brand-col p {
    margin-bottom: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--primary);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #cbd5e1;
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-family: var(--font-main);
}

.newsletter-form button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    background: #0b1120;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ==========================================================================
   Back to Top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on small screens */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: var(--shadow-md);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
    }
    
    .main-nav.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .main-nav a.btn-primary {
        display: inline-block;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}
