:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-color: #f59e0b;
    --background-dark: #020617;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --font-family: 'Outfit', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--secondary-color);
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%;
    background-color: #0f172a;
    color: #f8fafc;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    font-size: 0.9rem;
}

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

.top-bar-right .whatsapp-icon {
    color: #25D366;
    font-size: 1.1rem;
}

.top-bar a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

@media (max-width: 768px) {
    .top-bar {
        flex-direction: row;
        gap: 5px;
        padding: 5px 5%;
        font-size: 0.8rem;
    }
    .navbar {
        top: 32px !important;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 36px;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-submit {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: white;
}

.btn-submit {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 8px;
}

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

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0f172a, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Slider Content Animations */
.hero.slide .hero-title,
.hero.slide .hero-subtitle,
.hero.slide .hero-buttons {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Title comes from top to bottom */
.hero.slide .hero-title {
    transform: translateY(-60px);
}

/* Subtitle and buttons come from bottom to top */
.hero.slide .hero-subtitle,
.hero.slide .hero-buttons {
    transform: translateY(60px);
}

/* When slide is active, move everything to original position */
.hero.slide.active .hero-title,
.hero.slide.active .hero-subtitle,
.hero.slide.active .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the timing */
.hero.slide.active .hero-title { transition-delay: 0.3s; }
.hero.slide.active .hero-subtitle { transition-delay: 0.5s; }
.hero.slide.active .hero-buttons { transition-delay: 0.7s; }

/* Services */
.services-section {
    padding: 6rem 5%;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
}

.section-title.text-left {
    text-align: left;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

/* Customize scrollbar for Webkit browsers */
.services-grid::-webkit-scrollbar {
    height: 8px;
}
.services-grid::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 4px;
}
.services-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    min-width: 380px;
    min-height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Quote */
.quote-section {
    padding: 6rem 5%;
    background-color: var(--background-dark);
    color: white;
}

.quote-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote-text p {
    color: #cbd5e1;
    font-size: 1.1rem;
}

.quote-form-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: var(--font-family);
    transition: border-color var(--transition-fast);
}

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

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    margin-top: 0.5rem;
}

.text-danger {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Footer */
footer {
    background-color: #000;
    color: white;
    padding: 3rem 5%;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-main);
    margin-left: auto;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        padding: 2rem 5%;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .quote-container {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
    gap: 5px;
}
.page-item.active .page-link,
.page-item.active span {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.page-link,
.page-item span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    background-color: var(--card-bg);
}
.page-link:hover {
    background-color: var(--secondary-color);
}