/* ============================= */
/* Global Reset */
/* ============================= */

:root {
    --brand-blue: #2e4f88;
    --brand-blue-dark: #1f3c66;
    --brand-teal: #3f6a78;
    --brand-olive: #6b8e23;
    --brand-dark: #0f172a;
    --brand-light: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--brand-light);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================= */
/* Header */
/* ============================= */

.header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.85);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
}

.logo {
    flex: 1;
}

#navbar {
    flex: 2;
    display: flex;
    justify-content: flex-end;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-olive);
}

.btn-nav {
    background: var(--brand-blue);
    padding: 8px 16px;
    border-radius: 6px;
}

/* ============================= */
/* Mobile Menu */
/* ============================= */

.menu-toggle {
    display: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    #navbar {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

    #navbar.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ============================= */
/* Hero Section */
/* ============================= */

.hero {
    position: relative;
    padding: 160px 0;
    text-align: center;
    color: white;
    overflow: hidden;
    background: linear-gradient(135deg,
            var(--brand-blue) 0%,
            var(--brand-teal) 40%,
            var(--brand-olive) 100%);
}

/* Soft Glow Effect */
.hero::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46, 79, 136, 0.35) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 25px;
}

.hero p {
    max-width: 750px;
    margin: auto;
    margin-bottom: 35px;
    font-size: 17px;
}

    /* ================= BUTTON SYSTEM ================= */

    .hero-buttons {
        display: flex;
        gap: 20px;
        margin-top: 35px;
        flex-wrap: wrap;
    }

    .btn-primary {
        background: var(--primary-blue);
        /*border: 2px solid var(--olive);*/
        color: white;
        padding: 14px 28px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-primary:hover {
        background: var(--olive);
        transform: translateY(-2px);
    }

    .btn-secondary {
        background: var(--primary-blue);
        /*border: 2px solid var(--olive);*/
        color: var(--olive);
        padding: 12px 26px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-secondary:hover {
        background: var(--olive);
        color: var(--dark-blue);
        transform: translateY(-2px);
    }

    /* HERO-SPECIFIC BUTTON FIX */
    .hero .btn-secondary {
        /*border: 2px solid var(--olive);*/
        color: white;
    }

    .hero .btn-secondary:hover {
        background: var(--olive);
        color: white;
    }
/* ============================= */
/* Sections */
/* ============================= */

.about-preview,
.services-preview {
    padding: 100px 0;
    text-align: center;
}

/* ============================= */
/* Grid */
/* ============================= */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* ============================= */
/* Cards */
/* ============================= */

.card {
    background: white;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(46, 79, 136, 0.08), transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
    opacity: 1;
}

/* ============================= */
/* CTA */
/* ============================= */

.cta {
    background: linear-gradient(135deg,
            var(--brand-blue),
            var(--brand-teal),
            var(--brand-olive));
    color: white;
    text-align: center;
    padding: 100px 0;
}

/* ============================= */
/* Floating Social Panel */
/* ============================= */

.floating-social {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.social-float {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-float:hover {
    transform: translateX(-5px);
}

.whatsapp {
    background: #128C7E;
}

.linkedin {
    background: #1f3c88;
}

.instagram {
    background: linear-gradient(45deg, #405de6, #833ab4, #e1306c);
}

/* ============================= */
/* Scroll Progress Bar */
/* ============================= */

#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: var(--brand-olive);
    z-index: 2000;
}

/* ============================= */
/* Page Loader */
/* ============================= */

#pageLoader {
    position: fixed;
    inset: 0;
    background: var(--brand-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    border-radius: 4px;
}

.loader-line {
    width: 0%;
    height: 100%;
    background: var(--brand-olive);
    animation: loadingBar 1.5s ease forwards;
}

@keyframes loadingBar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* ============================= */
/* Page Transition */
/* ============================= */

#pageContent {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#pageContent.fade-out {
    opacity: 0;
    transform: scale(0.98);
}

/* ============================= */
/* Logo */
/* ============================= */

.logo img {
    height: 45px;
    display: block;
}

/* ============================= */
/* Job Badge */
/* ============================= */

.job-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.job-badge.fulltime {
    background: #16a34a;
}

.job-badge.internship {
    background: var(--brand-blue);
}

.job-badge.contractual {
    background: #ea580c;
}

.job-badge.parttime {
    background: #9333ea;
}

.job-badge.others {
    background: #475569;
}