/* ===== VARIABLES ===== */
:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-beige: #F5E9DD;
    --color-gray-light: #f9f9f9;
    --color-gray-border: #e0e0e0;
    --color-gray-text: #4a4a4a;
    --color-gray-dark: #555;
    --font-primary: 'Verdana', sans-serif;
    --font-secondary: 'Libre Baskerville', serif;
    --max-width: 1280px;
    --fs-h1: 54px;
    --fs-h2: 28px;
    --fs-h3: 24px;
    --fs-p: 16px;
    --fs-nav: 14px;
    --fs-btn: 16px;
    --fs-header: 20px;
    --transition: all 0.3s ease;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Regular */
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/fonts/libre-baskerville-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Medium */
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/fonts/libre-baskerville-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Semi-Bold */
@font-face {
    font-family: 'Libre Baskerville';
    src: url('/fonts/libre-baskerville-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
header p {
    font-family: var(--font-secondary);
    color: var(--color-black);
}

h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    font-weight: 600;
}

#Copyright h1 {
    font-size: 24px;
    line-height: 1.2;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
    font-weight: 500;
}

h3 {
    font-size: var(--fs-h3);
    line-height: 1.3;
    font-weight: 400;
}

p {
    font-size: var(--fs-p);
    line-height: 1.6;
}

/* ===== BASE ===== */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-black);
    overflow-x: hidden;
}

img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

/* ===== LAYOUT ===== */
section {
    width: 100%;
    padding: 50px 16px;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    padding: 8px 16px;
    color: var(--color-white);
    background-color: var(--color-black);
}

header p {
    font-size: var(--fs-header);
    font-weight: 600;
    color: var(--color-white);
}

.header-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== NAVIGATION ===== */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav ul {
    display: flex;
    gap: 28px;
}

nav ul li a {
    font-size: var(--fs-nav);
    color: var(--color-white);
}

.language-switcher {
    margin-left: 8px;
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.language-switcher a {
    display: block;
    line-height: 0;
}

.language-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.language-flag:hover {
    opacity: 0.8;
}

.language-flag.active {
    opacity: 1;
}

/* Burger Menu */
.burger-menu {
    z-index: 1001;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    cursor: pointer;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    padding: 150px 16px 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1406 / 940;
    object-fit: cover; 
    object-position: center;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    contain: layout;
}

.hero-intro {
    width: 50%;
}

.hero-buttons {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

.hero-btn {
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: var(--fs-btn);
    color: var(--color-white);
    background: var(--color-black);
    cursor: pointer;
    transition: var(--transition);
}

.hero-btn:hover {
    color: var(--color-black);
    background: var(--color-white);
}

.hero-btn--secondary {
    color: var(--color-black);
    background: var(--color-white);
}

.hero-btn--secondary:hover {
    color: var(--color-white);
    background: var(--color-black);
}

.hero-btn-icon {
    width: 20px;
    height: 20px;              
    filter: invert(1);  
}

.hero-btn--secondary .hero-btn-icon,
.hero-btn:hover .hero-btn-icon {
    filter: invert(0);
}

.hero-btn--secondary:hover .hero-btn-icon {
    filter: invert(1);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    width: 100%;
    min-height: 1000px;
    justify-content: space-between;
    gap: 20px;
    background: var(--color-white);
}

.about-header {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.about-separator {
    width: 75%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid var(--color-black);
}

.about-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.about-photo {
    width: 50%;
}

.about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.about-details {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.about-softwares-grid {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 20px;
}

.about-softwares-grid li {
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-softwares-grid img {
    width: 48px;
    height: 48px;
}

.about-linkedin-logo {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.about-linkedin-logo:hover {
    transform: scale(1.1);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    width: 100%;
    min-height: 1000px;
    gap: 20px;
    background: var(--color-white);
}

.services-header {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.services-separator {
    width: 75%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid var(--color-black);
}

.services-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-photo {
    width: 100%;
    max-width: 768px;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.services-info-row {
    width: 100%;
    margin: 32px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.services-info-box {
    padding: 16px;
    border: 1px solid var(--color-black);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
    background: var(--color-white);
}

.services-info-box h2 {
    font-size: 20px;
    line-height: 1.2;
}

.services-info-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.services-prices {
    width: 100%;
    max-width: var(--max-width);
    margin: 12px auto 0;
}

.pricing-intro {
    width: 100%;
    max-width: var(--max-width);
    margin-bottom: 32px;
    padding: 24px;
    border-left: 4px solid var(--color-black);
    text-align: left;
    background: var(--color-gray-light);
}

.pricing-intro p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.pricing-intro a {
    font-weight: 600;
    text-decoration: underline;
    color: var(--color-black);
}

.tabs-nav {
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.tab-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    background: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(0);
    transition: filter 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--color-white);
    background: var(--color-black);
}

.tab-btn:hover img,
.tab-btn.active img {
    filter: invert(1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card {
    width: 100%;
    padding: 32px;
    border: 1px solid var(--color-black);
    border-radius: 16px;
    background: var(--color-beige);
}

.header-summary {
    margin-bottom: 24px;
    text-align: center;
}

.header-summary h2 {
    margin-bottom: 12px;
}

.header-summary p {
    font-size: 14px;
    color: var(--color-gray-text);
}

.price-featured {
    margin: 32px 0;
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--color-white);
    background: var(--color-black);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.price-main {
    min-width: 200px;
    flex: 1;
}

.price-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.price-amount {
    font-size: 36px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1px;
}

.price-vat {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
}

.price-terms {
    text-align: right;
}

.price-terms-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
}

.price-terms-value {
    font-size: 14px;
    line-height: 1.8;
}

.service-grid {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    padding: 20px;
    border: 1px solid var(--color-gray-border);
    border-top: 4px solid var(--color-black);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--color-gray-light);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-black);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card-body h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--color-black);
}

.service-list {
    margin-bottom: 16px;
}

.service-list li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-gray-dark);
}

.service-list li::before {
    position: absolute;
    left: 0;
    content: '\2713'; 
    font-weight: bold;
    color: var(--color-black);
}

.service-price {
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
}

.accordion {
    margin-top: 24px;
    border: 1px solid var(--color-gray-border);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-gray-light);
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #f0f0f0;
}

#accordion-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 500px;
}

.accordion-inner {
    padding: 20px;
    background: var(--color-white);
}

.addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.addon-grid div {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    background: var(--color-gray-light);
}

.addon-grid strong {
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.addon-item {
    margin-top: 4px;
    display: block;
    font-size: 13px;
    color: var(--color-gray-text);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    min-height: 375px;
    padding: 50px 16px;
    justify-content: center;
    gap: 20px;
    background-image: url('/assets/webp/gabriel-ramos-Gzgw4EmguIE-unsplash.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.portfolio-header {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.portfolio-header h2,
.portfolio-header h3 {
    color: var(--color-white);
}

.portfolio-separator {
    width: 75%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid var(--color-white);
}

.portfolio-filters {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-filters ul {
    display: flex;
    gap: 32px;
}

.portfolio-filter-logo {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.portfolio-filter-logo:hover {
    transform: scale(1.1);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    min-height: 1000px;
    justify-content: space-between;
    gap: 20px;
    background: var(--color-white);
}

.contact-header {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.contact-separator {
    width: 75%;
    margin: 20px auto;
    border: none;
    border-top: 1px solid var(--color-black);
}

.contact-content {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-content > p {
    width: 75%;
    text-align: left;
}

.contact-form {
    width: 75%;
    margin: 32px auto;
    padding: 24px;
    border: 1px solid var(--color-black);
    border-radius: 12px;
}

.form-group,
.name-field {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.name-row {
    display: flex;
    gap: 20px;
}

.name-field {
    flex: 1;
}

.form-group label,
.name-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.form-group label::after,
.name-field label::after {
    content: ' *';
    color: red;
}

.form-group input,
.form-group textarea,
.name-field input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-black);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.name-field input:focus {
    border-color: var(--color-black);
    outline: none;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 12px 24px;
    border: 1px solid var(--color-white);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-white);
    background: var(--color-black);
    cursor: pointer;
    transition: var(--transition);
}

.contact-submit-btn:hover {
    border-color: var(--color-black);
    color: var(--color-black);
    background: var(--color-white);
}

.send-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: invert(1);
    transition: filter 0.3s;
}

.contact-submit-btn:hover .send-icon {
    filter: invert(0);
}

.contact-info {
    margin-top: 20px;
}

.contact-email,
.contact-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.contact-phone {
    margin-top: 12px;
}

.contact-icon {
    width: 20px;
    height: 20px;
}

/* ===== FOOTER ===== */
footer {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background-color: var(--color-black);
}

.footer-content {
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content p {
    font-size: 14px;
    text-align: center;
    color: var(--color-white);
    white-space: nowrap;
}

.footer-break {
    display: none;
}

/* ===== RESPONSIVE ===== */

/* Tablet & Mobile (1024px and below) */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 44px;
    }

    #Copyright h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .burger-menu {
        display: flex;
    }

    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 1000;
        width: 200px;
        height: 100vh;
        padding: 80px 20px 0;
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--color-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-x: hidden;
        transition: right 0.3s ease;
    }

    #mainNav.active {
        right: 0;
    }

    #mainNav ul {
        width: 100%;
        flex: 1;
        flex-direction: column;
        gap: 24px;
    }

    #mainNav ul li {
        width: 100%;
    }

    #mainNav ul li a {
        display: block;
        color: var(--color-black);
    }

    .language-switcher {
        width: calc(100% + 40px);
        margin: 0 -20px;
        padding: 20px;
        border-left: none;
        background-color: var(--color-black);
    }

    .hero-section {
        background-attachment: scroll;
    }

    .hero-intro {
        width: 70%;
    }

    .hero-btn {
        font-size: 14px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-photo,
    .about-details {
        width: 100%;
    }

    .about-photo {
        order: -1;
    }

    .about-softwares-grid li {
        min-width: 70px;
        padding: 12px 16px;
    }
    
    .about-softwares-grid img {
        width: 36px;
        height: 36px;
    }
    
    .about-linkedin-logo {
        width: 36px;
        height: 36px;
    }

    .portfolio-section {
	background-attachment: scroll;
    }

    .portfolio-filter-logo {
    width: 36px;
    height: 36px;
    }

    .contact-form {
        width:75%;
        padding: 20px;
    }

    .name-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* Mobile (768px and below) */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 34px;
    }

    #Copyright h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 16px;
    }

    p {
        font-size: 12px;
    }

    .hero-intro {
        width: 100%;
    }

    .hero-buttons {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .hero-btn {
        font-size: 12px;
}

    .about-softwares-grid li {
        min-width: 55px;
        padding: 8px 12px;
    }

    .about-softwares-grid img {
        width: 28px;
        height: 28px;
    }
    
    .about-linkedin-logo {
        width: 28px;
        height: 28px;
    }

    .services-info-row {
        grid-template-columns: 1fr;
    }

    .services-info-box {
        max-width: 98vw;
    }

    .price-featured {
        flex-direction: column;
    }

    .price-terms {
        width: 100%;
        text-align: left;
    }

    .service-grid,
    .addon-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filter-logo {
    width: 28px;
    height: 28px;
    }

    .contact-content > p {
        width: 100%;
    }

    .contact-form {
        width:100%;
        padding: 12px;
    }

    .name-row {
        gap: 8px;
    }

    .footer-break {
        display: block;
    }

    .footer-dash {
        display: none;
    }
}

/* Small Mobile (600px and below) */
@media screen and (max-width: 600px) {
    .about-softwares-grid li {
        min-width: 50px;
        padding: 4px 8px;
    }

    .contact-form {
        padding: 10px;
    }

    .name-row {
        gap: 6px;
    }
}