/* Base variables */
:root {
    --primary: #0C5678;
    --secondary: #3C0061;
    --light: #f9fbfd;
    --dark: #1a1a1a;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* ================= Animations ================= */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* ================= Header ================= */
header {
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* Use the background image directly without blending to avoid color tint */
    background-image: url("../assets/images/background-header.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 60px 0;
    position: relative;
}

header.header-lefty {
    background-image: url("../assets/images/background-header-lefty.png");
}

/* neutral overlay for legibility (no color tint) */
header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.22);
    pointer-events: none;
}

header .container {
    position: relative;
    z-index: 1;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.title h1 {
    font-size: 2.6rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-top: 18px;
}

/* Ensure the hero tagline respects line breaks and can wrap on narrow screens */
#hero-tagline {
    /* respect explicit newlines (from JS or plain text) and <br/> */
    white-space: pre-line;
    /* allow long words or URLs to break if needed */
    overflow-wrap: anywhere;
}

.lang-toggle {
    /* Hidden: translation buttons are not shown in the UI */
    display: none;
    gap: 8px;
}

.lang-btn {
    background: rgba(255,255,255,0.12);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.lang-btn.active {
    background: rgba(255,255,255,0.22);
}

/* Profile Photo */
.profile-photo {
    width: 260px;
    height: 260px;
    background-color: rgba(255,255,255,0.12);
    background-image: url("../assets/images/profile.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: auto;
    border: 4px solid rgba(255,255,255,0.24);
    animation: float 6s ease-in-out infinite;
}

.profile-photo.profile-photo--lefty {
    background-image: url("images/app_icon-lefty.png");
    border-radius: 24px;
}

/* ================= Sections ================= */
h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary);
}

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

.experience-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.experience-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

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

.project-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* ================= Lefty Support Page ================= */
.lefty-section {
    padding: 32px 20px;
}

.header-lefty + .lefty-section {
    margin-top: -72px;
    position: relative;
    z-index: 2;
}

.lefty-section-alt {
    background: rgba(12, 86, 120, 0.04);
}

.lefty-sections {
    max-width: 900px;
}

.lefty-card {
    background: white;
    border-radius: 18px;
    padding: 34px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.lefty-card h2 {
    text-align: left;
    margin-bottom: 14px;
    font-size: 2rem;
}

.lefty-lead {
    font-size: 1.05rem;
    margin-bottom: 18px;
    color: var(--dark);
}

.lefty-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 8px 0 20px;
}

.lefty-list li {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 10px 0 10px 30px;
    border-left: none;
    border-bottom: 1px solid rgba(12, 86, 120, 0.14);
    font-weight: 500;
    text-align: left;
}

.lefty-list li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
}

.lefty-list-negative li::before {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--secondary);
}

.lefty-list li:last-child {
    border-bottom: none;
}

.lefty-mail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.lefty-mail-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.lefty-mail-link::after {
    display: none;
}

.lefty-mail-link:hover {
    opacity: 0.85;
}

.lefty-contact-section {
    background: transparent;
}

.lefty-contact-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(12, 86, 120, 0.1), rgba(60, 0, 97, 0.08));
    border: 1px solid rgba(12, 86, 120, 0.18);
    box-shadow: 0 14px 34px rgba(12, 86, 120, 0.12);
}

.lefty-contact-card h2 {
    text-align: center;
}

.lefty-contact-card .lefty-lead {
    margin-left: auto;
    margin-right: auto;
}

.lefty-contact-card .lefty-mail-link {
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.75);
}

.faq-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.faq-item {
    border: 1px solid rgba(12, 86, 120, 0.14);
    border-radius: 12px;
    background: var(--light);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary);
    padding: 14px 16px;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--secondary);
    font-weight: 800;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    padding: 0 16px 14px;
    color: var(--dark);
}

/* App Icon */
.app-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 800;
    transition: all 0.3s ease;
    /* ensure image icons cover the box when used */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* subtle outer shadow to lift the icon */
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.project-card:hover .app-icon {
    transform: scale(1.1) rotate(3deg);
    /* stronger shadow on hover for a lifted effect */
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

/* Specific app icon images (located in assets/images/) */
.app-icon--parlito {
    background: url("images/app_icon-parlito.png") center/cover no-repeat;
    background-color: transparent; /* hide the gradient */
}

.app-icon--lefty {
    background: url("images/app_icon-lefty.png") center/cover no-repeat;
    background-color: transparent; /* hide the gradient */
}

/* Badges */
.badges {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    background: transparent; /* remove solid background as requested */
    color: var(--primary);    /* use the page primary color */
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

.header-lefty .store-badge {
    color: white;
}

.header-lefty .store-badge::after {
    background: white;
}

/* ================= Links ================= */
a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    left: 0;
    bottom: -3px;
    transition: 0.3s;
}

a:hover::after {
    width: 100%;
}

/* ================= Contact ================= */
.contact-box {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
}

.contact-box a {
    color: white;
}

/* Social links (icons) */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.15s ease;
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.social-link:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.16);
}

/* Contact email styling */
.contact-email {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.06);
    padding: 0 12px;
    border-radius: 10px;
    font-weight: 700;
    height: 44px; /* match .social-link height */
}

.contact-email svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.contact-email:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
}

/* ================= Footer ================= */
footer {
    text-align: center;
    padding: 30px;
    font-size: 0.9rem;
    color: #777;
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
    }

    .hero-top {
        flex-direction: column;
        gap: 12px;
    }

    .lefty-card {
        padding: 24px;
    }

    .lefty-card h2 {
        font-size: 1.7rem;
    }

    .header-lefty + .lefty-section {
        margin-top: -40px;
    }
}
