/* ===================================
   EMBLA - CUSTOM STYLES
   Bootstrap 4.3.1 + Custom Design System
   =================================== */

/* Google Fonts - Geist Alternative: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Professional Slate & Blue */
    --color-background: #fafafa;
    --color-foreground: #1e293b;
    --color-primary: #475569;
    --color-primary-foreground: #ffffff;
    --color-secondary: #64748b;
    --color-secondary-foreground: #ffffff;
    --color-accent: #3b82f6;
    --color-muted: #f1f5f9;
    --color-muted-foreground: #64748b;
    --color-border: #e2e8f0;
    --color-card: #ffffff;
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max-width: 1200px;
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Support (opcional) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #0f172a;
        --color-foreground: #f8fafc;
        --color-primary: #64748b;
        --color-card: #1e293b;
        --color-muted: #1e293b;
        --color-border: #334155;
    }
}

/* ===================================
   BASE STYLES
   =================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-background);
    color: var(--color-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

    a:hover {
        color: var(--color-primary);
        text-decoration: none;
    }

/* ===================================
   HEADER / NAVBAR
   =================================== */

.navbar-custom {
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    transition: all 0.3s ease;
}

    .navbar-custom .navbar-brand {
        font-weight: 700;
        font-size: 1.25rem;
        color: var(--color-primary);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .navbar-custom .logo-icon {
        width: 32px;
        height: 32px;
        background-color: var(--color-primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

        .navbar-custom .logo-icon::after {
            content: '';
            width: 4px;
            height: 20px;
            background-color: white;
            border-radius: 2px;
        }

    .navbar-custom .nav-link {
        color: var(--color-muted-foreground);
        font-weight: 500;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        transition: color 0.3s ease;
    }

        .navbar-custom .nav-link:hover {
            color: var(--color-foreground);
        }

.navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    background: transparent;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-toggler svg {
        color: var(--color-foreground);
    }

/* Mobile menu styles */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md);
    }

        .navbar-nav .nav-link:hover {
            background-color: var(--color-muted);
        }

    .navbar-nav .ml-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
    }

    .btn-primary-custom {
        width: 100%;
    }
}

.btn-primary-custom {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

    .btn-primary-custom:hover {
        background-color: var(--color-secondary);
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(to bottom, var(--color-background), var(--color-muted));
}

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

        .hero-section h1 .text-primary-custom {
            color: var(--color-primary);
        }

    .hero-section .lead {
        font-size: 1.125rem;
        color: var(--color-muted-foreground);
        line-height: 1.75;
        max-width: 600px;
    }

.hero-visual {
    height: 400px;
    background: linear-gradient(135deg, rgba(71, 85, 105, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-visual-main {
    flex: 1;
    background-color: rgba(71, 85, 105, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-visual-icon {
    text-align: center;
}

    .hero-visual-icon svg {
        width: 48px;
        height: 48px;
        color: var(--color-primary);
    }

.hero-visual-footer {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    height: 64px;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.hero-bar {
    height: 8px;
    border-radius: 4px;
}

/* ===================================
   SECTIONS
   =================================== */

section {
    padding: 5rem 0;
}

.section-bg-muted {
    background-color: var(--color-muted);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* ===================================
   CARDS
   =================================== */

.card-custom {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

    .card-custom:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--color-primary);
    }

.card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(71, 85, 105, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

    .card-icon svg {
        width: 24px;
        height: 24px;
        color: var(--color-primary);
    }

.card-custom h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-custom p {
    color: var(--color-muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about-highlight {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .about-highlight svg {
        width: 20px;
        height: 20px;
        color: var(--color-primary);
        flex-shrink: 0;
        margin-top: 4px;
    }

.about-info-box {
    background-color: var(--color-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

    .about-info-box h6 {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--color-primary);
        letter-spacing: 0.05em;
        margin-bottom: 0.5rem;
    }

    .about-info-box p {
        color: var(--color-muted-foreground);
        margin-bottom: 1.5rem;
    }

        .about-info-box p:last-child {
            margin-bottom: 0;
        }

/* ===================================
   HOW WE WORK
   =================================== */

.step-card {
    background-color: rgba(71, 85, 105, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    position: relative;
    height: 100%;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(71, 85, 105, 0.2);
    margin-bottom: 1rem;
}

.step-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

    .step-icon-wrapper svg {
        width: 24px;
        height: 24px;
        color: white;
    }

.step-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--color-muted-foreground);
    line-height: 1.6;
}

/* ===================================
   PROJECTS
   =================================== */

.project-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

    .project-card:hover {
        box-shadow: var(--shadow-lg);
    }

.project-tag {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.project-result {
    background-color: rgba(71, 85, 105, 0.1);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

    .project-result p {
        margin: 0;
        color: var(--color-primary);
        font-weight: 600;
    }

/* ===================================
   STACK / TECH TAGS
   =================================== */

.tech-category {
    margin-bottom: 2rem;
}

    .tech-category h6 {
        font-size: 0.75rem;
        font-weight: 700;
        color: var(--color-primary);
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
        text-transform: uppercase;
    }

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-muted);
    color: var(--color-muted-foreground);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

    .tech-tag:hover {
        border-color: var(--color-primary);
        color: var(--color-foreground);
    }

/* ===================================
   TESTIMONIALS
   =================================== */

.testimonial-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

    .testimonial-card:hover {
        box-shadow: var(--shadow-lg);
    }

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-star {
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.testimonial-company {
    font-size: 0.875rem;
    color: var(--color-primary);
}

/* ===================================
   FAQ
   =================================== */

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 1.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .faq-question:hover {
        border-color: var(--color-primary);
        color: var(--color-primary);
    }

.faq-answer {
    background-color: var(--color-muted);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1.5rem;
    display: none;
}

    .faq-answer.show {
        display: block;
    }

    .faq-answer p {
        color: var(--color-muted-foreground);
        line-height: 1.75;
        margin: 0;
    }

/* ===================================
   CONTACT FORM
   =================================== */

.contact-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

    .contact-card svg {
        width: 32px;
        height: 32px;
        color: var(--color-primary);
        margin-bottom: 0.75rem;
    }

    .contact-card .small {
        color: var(--color-muted-foreground);
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .contact-card a {
        font-weight: 600;
        color: var(--color-foreground);
    }

        .contact-card a:hover {
            color: var(--color-primary);
        }

.contact-form {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

    .contact-form .form-control {
        padding: 0.75rem 1rem;
        background-color: var(--color-background);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-lg);
        transition: border-color 0.3s ease;
    }

        .contact-form .form-control:focus {
            border-color: var(--color-primary);
            box-shadow: none;
            outline: none;
        }

/* ===================================
   FOOTER
   =================================== */

.footer-custom {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
    padding: 3rem 0 1.5rem;
}

    .footer-custom h6 {
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .footer-custom a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.875rem;
        display: block;
        margin-bottom: 0.5rem;
        transition: color 0.3s ease;
    }

        .footer-custom a:hover {
            color: white;
        }

.footer-social {
    display: flex;
    gap: 1rem;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease;
    }

        .footer-social a:hover {
            background-color: rgba(255, 255, 255, 0.3);
        }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    margin-top: 3rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   ANIMATIONS
   =================================== */

.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn-outline-custom {
    border: 1px solid var(--color-border);
    color: var(--color-foreground);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-outline-custom:hover {
        background-color: var(--color-muted);
        color: var(--color-foreground);
        border-color: var(--color-primary);
    }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-visual {
        height: 300px;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.text-primary-custom {
    color: var(--color-primary) !important;
}

.text-muted-custom {
    color: var(--color-muted-foreground) !important;
}

.bg-muted-custom {
    background-color: var(--color-muted) !important;
}

.bg-card-custom {
    background-color: var(--color-card) !important;
}
