* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-yellow) 0%, #d4a31f 100%);
    border-radius: 10px;
    border: 2px solid var(--color-dark-gray);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD84D 0%, var(--color-yellow) 100%);
}

:root {
    --color-yellow: #FDC324;
    --color-dark-blue: #0C3244;
    --color-dark-gray: #252525;
    --color-white: #FFFFFF;
    --color-light-gray: #F7F7F7;
    --color-text-gray: #353535;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--color-white);
    direction: rtl;
    color: var(--color-dark-gray);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-direction: row-reverse; /* place logo to the right, nav/content to the left */
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Hide nav header on desktop */
.nav-header {
    display: none;
}

.nav-button,
.nav-link {
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 400;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-button.active {
    background-color: var(--color-dark-blue);
    color: var(--color-yellow);
    padding: 5px 10px;
    border-radius: 20px;
}

.nav-link {
    color: var(--color-text-gray);
}

.nav-link:hover {
    opacity: 0.7;
}

.logo {
    width: 152px;
    height: 59px;
    object-fit: contain;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-dark-blue);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    background-color: var(--color-yellow);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: var(--color-yellow);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Prevent body scroll when sidebar is open */
body.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background-color: var(--color-white);
}

.hero-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-direction: row-reverse; /* swap hero-image and hero-text positions */
}

.hero-image {
    flex: 1;
    max-width: 1000px;
}

.hero-image img {
    width: 100%;
    height: auto;
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* in RTL flex-start horizontally is the right side, keeps elements right-aligned */
    text-align: right;
    padding-inline-end: 40px; /* space between hero-text and section edge in RTL */
}

/* Ensure all hero-text children sit on the right edge in RTL */
.hero-text > * {
    align-self: flex-start;
}

.hero-logo {
    width: 151px;
    height: 143px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 50px;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 24px;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 32px;
}

.hero-description {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    line-height: 1.4;
    margin-bottom: 32px;
}

.cta-button {
    width: 100%;
    max-width: 462px;
    background-color: var(--color-dark-blue);
    color: var(--color-yellow);
    font-family: 'Tajawal', sans-serif;
    font-size: 20px;
    font-weight: 700;
    padding: 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12, 50, 68, 0.3);
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #0a2838 100%);
}

.cta-button:active {
    transform: translateY(0);
}

/* About Section */
.about-section {
    padding: 75px 0;
    background-color: var(--color-light-gray);
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-yellow), transparent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-yellow);
    text-align: center;
    margin-bottom: 34px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    direction: ltr; /* reverse the grid columns to swap about-text and about-images */
}

/* Ensure text inside about-content stays RTL aligned */
.about-content > * {
    direction: rtl;
}

.about-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align to right in RTL */
}

.about-description {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-dark-gray);
    text-align: right;
    margin-bottom: 81px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    align-items: flex-start; /* align items to the right in RTL */
    padding-inline-start: 0; /* remove any extra padding to align with description */
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16.9px;
    justify-content: flex-start;
}

.feature-item img {
    width: 29.04px;
    height: 29.04px;
    flex-shrink: 0;
    margin-top: 7.1px;
}

.feature-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-dark-blue);
}

.about-images {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.experience-badge {
    background-color: var(--color-dark-blue);
    border-radius: 20px;
    width: 110px;
    height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 300px;
    z-index: 10;
}

.badge-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 6px;
}

.badge-text {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-yellow);
}

.images-gallery {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 310px;
    direction: ltr; /* reverse image positions */
}

.gallery-img-1 {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 230px;
    height: 188px;
    border-radius: 10px;
    object-fit: cover;
}

.gallery-img-2 {
    position: absolute;
    top: 122px;
    inset-inline-start: 170px;
    width: 230px;
    height: 188px;
    border-radius: 10px;
    object-fit: cover;
}

.gallery-logo {
    position: absolute;
    top: 188px;
    inset-inline-start: 36px;
    width: 118px;
    height: 118px;
}

/* Services Section */
.services-section {
    padding: 28px 0;
    background-color: var(--color-white);
}

.section-title-dark {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-yellow);
    text-align: center;
    margin-bottom: 9px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title-dark::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-dark-blue), transparent);
    border-radius: 2px;
}

.section-subtitle-services {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: 32px;
    max-width: 598px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    max-width: 1120px;
    margin: 0 auto;
    direction: ltr; /* reverse grid columns to swap positions */
}

/* Ensure text inside services-grid stays RTL aligned */
.services-grid > * {
    direction: rtl;
}

.service-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.service-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    padding: 82px 25px 24px;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card-blue {
    background-color: var(--color-dark-blue);
}

.service-card-yellow {
    background-color: var(--color-yellow);
}

.service-bg-logo {
    position: absolute;
    top: 1px;
    inset-inline-start: 33px;
    width: 495px;
    height: 502px;
    opacity: 0.1;
    pointer-events: none;
}

.service-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.service-header {
    display: flex;
    flex-direction: column;
    gap: 13px;
    text-align: right;
}

.service-card-blue .service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-yellow);
}

.service-card-yellow .service-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark-blue);
}

.service-description {
    font-size: 22px;
    font-weight: 400;
    color: var(--color-white);
    opacity: 0.8;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
}

.feature-bullet {
    width: 14px;
    height: 14px;
    background-color: var(--color-yellow);
    border-radius: 7px;
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-bullet-yellow {
    background-color: var(--color-dark-blue);
}

.service-feature .feature-text {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.5;
    text-align: right;
    flex: 1;
}

/* Portfolio Section */
.portfolio-section {
    padding: 18px 0;
    background-color: var(--color-white);
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    margin-bottom: 41px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
    max-width: 1080px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    width: 100%;
    height: 241px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(253, 195, 36, 0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 16px 19px;
    gap: 5px;
}

.portfolio-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-yellow);
    white-space: nowrap;
}

.portfolio-description {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
}

/* Footer Styles */
.footer {
    background-color: var(--color-dark-blue);
    padding: 48px 0 0;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 32px;
}

.footer-about {
    padding-inline-start: 0;
}

.footer-links {
    padding-inline-start: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align to right in RTL */
    gap: 29px;
}

.footer-logo {
    width: 297px;
    height: 114px;
}

.footer-description {
    font-size: 20px;
    font-weight: 400;
    color: var(--color-white);
    line-height: 1.5;
    text-align: right;
    max-width: 403px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-yellow);
    white-space: nowrap;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* align to right in RTL */
    gap: 20px;
}

.footer-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-yellow);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 26px;
    align-items: flex-start; /* align items to the right in RTL */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    flex-direction: row-reverse; /* icon first (right), then text (left) in RTL */
}

.contact-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
}

.contact-item img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    width: 100vw; /* full viewport width */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 69px;
    background-color: var(--color-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    font-size: 24px;
    font-weight: 400;
    color: var(--color-white);
    text-align: center;
}

/* Responsive Design */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .services-grid {
        gap: 10px;
    }

    .service-card {
        padding: 60px 20px 20px;
    }

    .service-title {
        font-size: 20px !important;
    }

    .service-description,
    .service-feature .feature-text {
        font-size: 18px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-content {
        gap: 24px;
    }

    .footer-logo {
        width: 250px;
        height: auto;
    }
}

/* Mobile Landscape and Small Tablets (768px - 900px) */
@media (max-width: 900px) {
    .nav {
        gap: 16px;
    }

    .nav-button,
    .nav-link {
        font-size: 18px;
    }

    .about-content {
        gap: 30px;
    }

    .images-gallery {
        max-width: 400px;
        height: 320px;
    }

    .gallery-img-1 {
        width: 230px;
        height: 190px;
    }

    .gallery-img-2 {
        top: 130px;
        inset-inline-start: 180px;
        width: 220px;
        height: 190px;
    }

    .gallery-logo {
        top: 190px;
        inset-inline-start: 60px;
        width: 120px;
        height: 120px;
    }
}

/* Tablets Portrait (max-width: 768px) */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex;
        order: 2; /* Place hamburger on the right on mobile */
    }

    /* Transform nav into sidebar */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(180deg, var(--color-dark-blue) 0%, #0a2938 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 60px 30px 30px;
        gap: 0;
        z-index: 999;
        transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav.active {
        right: 0;
    }

    /* Nav Header in Sidebar */
    .nav-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0 30px;
        border-bottom: 2px solid rgba(253, 195, 36, 0.3);
        margin-bottom: 20px;
        opacity: 0;
    }

    .nav.active .nav-header {
        animation: fadeIn 0.6s ease forwards;
        animation-delay: 0.05s;
    }

    .nav-sidebar-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
        filter: drop-shadow(0 4px 10px rgba(253, 195, 36, 0.3));
        object-fit: contain;
    }

    .nav-sidebar-title {
        font-size: 20px;
        font-weight: 600;
        color: var(--color-yellow);
        margin: 0;
        text-align: center;
    }

    /* Animate nav items when sidebar opens */
    .nav.active .nav-button,
    .nav.active .nav-link {
        animation: slideInFromRight 0.5s ease forwards;
    }

    .nav.active .nav-button:nth-child(1),
    .nav.active .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav.active .nav-button:nth-child(2),
    .nav.active .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav.active .nav-button:nth-child(3),
    .nav.active .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav.active .nav-button:nth-child(4),
    .nav.active .nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav.active .nav-button:nth-child(5),
    .nav.active .nav-link:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-button,
    .nav-link {
        width: 100%;
        text-align: right;
        padding: 18px 20px;
        font-size: 22px;
        color: var(--color-white);
        border-bottom: 1px solid rgba(253, 195, 36, 0.2);
        transition: all 0.3s ease;
        border-radius: 0;
        background: transparent;
        opacity: 0;
    }

    .nav-button:hover,
    .nav-link:hover {
        background-color: rgba(253, 195, 36, 0.1);
        padding-right: 30px;
        color: var(--color-yellow);
    }

    .nav-button.active {
        background: linear-gradient(90deg, transparent 0%, rgba(253, 195, 36, 0.2) 100%);
        color: var(--color-yellow);
        border-right: 4px solid var(--color-yellow);
        padding-right: 16px;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 20px;
        align-items: center;
    }

    .logo {
        order: -1; /* Place logo on the left on mobile */
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 28px;
        text-align: center;
    }

    .hero-description {
        font-size: 16px;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        order: 2;
        align-items: center;
        text-align: center;
    }

    .about-description {
        text-align: center;
        margin-bottom: 40px;
    }

    .features-list {
        align-items: center;
    }

    .feature-item {
        justify-content: center;
    }

    .about-images {
        order: 1;
        display: flex;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-image:nth-child(1) {
        order: 1;
    }

    .service-card-blue {
        order: 2;
    }

    .service-card-yellow {
        order: 3;
    }

    .service-image:nth-child(4) {
        order: 4;
    }

    .service-card-blue,
    .service-card-yellow {
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-about {
        order: 1;
        align-items: center;
    }

    .footer-links {
        order: 2;
        align-items: center;
    }

    .footer-contact {
        order: 3;
        align-items: center;
    }

    .footer-logo {
        margin: 0 auto;
    }

    .footer-links ul {
        text-align: center;
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        padding: 15px;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
    }

    .logo {
        width: 120px;
        height: auto;
    }

    .hamburger {
        width: 28px;
        height: 22px;
    }

    .hamburger-line {
        height: 2.5px;
    }

    /* Sidebar adjustments for smaller screens */
    .nav {
        width: 260px;
        padding: 50px 20px 20px;
    }

    .nav-sidebar-logo {
        width: 70px;
        height: 70px;
        object-fit: contain;
    }

    .nav-sidebar-title {
        font-size: 18px;
    }

    .nav-button,
    .nav-link {
        font-size: 20px;
        padding: 16px 18px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-content {
        align-items: center;
    }

    .hero-image {
        margin-top: 60px;
    }

    .hero-text {
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-inline-end: 0;
        padding: 0 20px;
        margin-top: 60px;
    }

    .hero-text > * {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-logo {
        display: none;
    }

    .hero-title {
        font-size: 28px;
        text-align: center;
        width: 100%;
        white-space: normal;
    }

    .hero-subtitle {
        font-size: 22px;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 24px;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }

    .cta-button {
        font-size: 18px;
        max-width: 90%;
        width: 90%;
        margin: 0 auto;
        display: block;
        align-self: center;
    }

    .about-section {
        padding: 50px 0;
    }

    .about-content {
        text-align: center;
    }

    .about-text {
        align-items: center;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
        text-align: center;
    }

    .section-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
        text-align: center;
    }

    .about-description {
        font-size: 16px;
        margin-bottom: 30px;
        text-align: center;
    }

    .feature-text {
        font-size: 16px;
    }

    .feature-item img {
        width: 24px;
        height: 24px;
    }

    .about-images {
        display: flex;
        justify-content: center;
    }

    .experience-badge {
        width: 120px;
        height: 120px;
        left: 200px;
    }

    .badge-number {
        font-size: 40px;
    }

    .badge-text {
        font-size: 20px;
    }

    .images-gallery {
        max-width: 100%;
        height: 280px;
        margin: 0 auto;
    }

    .gallery-img-1 {
        width: 180px;
        height: 150px;
    }

    .gallery-img-2 {
        top: 130px;
        inset-inline-start: 150px;
        width: 180px;
        height: 150px;
    }

    .gallery-logo {
        top: 160px;
        inset-inline-start: 50px;
        width: 100px;
        height: 100px;
    }

    .services-section {
        text-align: center;
    }

    .section-title-dark {
        font-size: 26px;
        text-align: center;
    }

    .section-subtitle-services {
        font-size: 16px;
        text-align: center;
    }

    .service-card {
        padding: 40px 15px 15px;
        text-align: center;
    }

    .service-title {
        font-size: 18px !important;
        text-align: center;
    }

    .service-description {
        font-size: 16px;
        text-align: center;
    }

    .service-feature .feature-text {
        font-size: 14px;
    }

    .feature-bullet {
        width: 12px;
        height: 12px;
    }

    .portfolio-section {
        text-align: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }

    .portfolio-item {
        height: 220px;
    }

    .portfolio-title {
        font-size: 18px;
    }

    .portfolio-description {
        font-size: 14px;
    }

    .footer {
        padding: 32px 0 0;
        text-align: center;
    }

    .footer-content {
        text-align: center;
    }

    .footer-about,
    .footer-links,
    .footer-contact {
        align-items: center;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-logo {
        width: 200px;
        margin: 0 auto;
    }

    .footer-description {
        font-size: 16px;
        text-align: center;
    }

    .footer-title {
        font-size: 18px;
        text-align: center;
    }

    .footer-link,
    .contact-text {
        font-size: 16px;
    }

    .footer-links ul {
        text-align: center;
    }

    .footer-nav {
        align-items: center;
    }

    .contact-list {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-bottom {
        height: 60px;
    }

    .copyright {
        font-size: 18px;
    }
}

/* Extra Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .nav-button,
    .nav-link {
        font-size: 14px;
    }

    .hero-title {
        font-size: 24px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 20px;
        text-align: center;
    }

    .hero-description {
        font-size: 13px;
        text-align: center;
    }

    .cta-button {
        font-size: 16px;
    }

    .section-title,
    .section-title-dark {
        font-size: 22px;
        text-align: center;
    }

    .section-subtitle,
    .section-subtitle-services {
        font-size: 15px;
        text-align: center;
    }

    .feature-text {
        font-size: 14px;
    }

    .images-gallery {
        height: 240px;
        margin: 0 auto;
    }

    .gallery-img-1,
    .gallery-img-2 {
        width: 150px;
        height: 130px;
    }

    .gallery-logo {
        width: 80px;
        height: 80px;
        top: 140px;
    }

    .service-title {
        font-size: 16px !important;
    }

    .service-description {
        font-size: 14px;
    }

    .service-feature .feature-text {
        font-size: 13px;
    }

    .portfolio-title {
        font-size: 16px;
    }

    .portfolio-description {
        font-size: 13px;
    }
}

/* Animations */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(80px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Initial state - hidden */
.hero-text,
.hero-image,
.about-text,
.about-images,
.section-title,
.section-title-dark,
.section-subtitle,
.section-subtitle-services,
.service-card,
.service-image,
.portfolio-item {
    opacity: 0;
}

/* Replay elements retain visibility baseline after first reveal */
/* Replay visibility rule removed (using section-based one-time animations) */

/* Apply animations when visible */
.hero-text.animate {
    animation: fadeInRight 0.6s ease-out forwards;
}

.hero-image.animate {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.about-text.animate {
    animation: fadeInRight 0.8s ease-out forwards;
}

.about-images.animate {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.section-title.animate,
.section-title-dark.animate {
    animation: fadeInUp 0.5s ease-out forwards;
}

.section-subtitle.animate,
.section-subtitle-services.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card.animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(2).animate {
    animation-delay: 0.2s;
}

.service-card:nth-child(3).animate {
    animation-delay: 0.4s;
}

.service-image.animate {
    animation: fadeIn 0.7s ease-out forwards;
}

.portfolio-item.animate {
    animation: portfolioIn 0.55s cubic-bezier(0.22, 0.9, 0.3, 1) forwards;
}

.portfolio-item:nth-child(1).animate { animation-delay: 0.1s; }
.portfolio-item:nth-child(2).animate { animation-delay: 0.2s; }
.portfolio-item:nth-child(3).animate { animation-delay: 0.3s; }
.portfolio-item:nth-child(4).animate { animation-delay: 0.4s; }
.portfolio-item:nth-child(5).animate { animation-delay: 0.5s; }
.portfolio-item:nth-child(6).animate { animation-delay: 0.6s; }
.portfolio-item:nth-child(7).animate { animation-delay: 0.7s; }
.portfolio-item:nth-child(8).animate { animation-delay: 0.8s; }
.portfolio-item:nth-child(9).animate { animation-delay: 0.9s; }

@keyframes portfolioIn {
    0% { opacity: 0; transform: translateY(35px) scale(0.98); }
    60% { opacity: 0.7; transform: translateY(-4px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.portfolio-item {
    will-change: transform, opacity;
    transition: box-shadow 0.3s ease;
}

.portfolio-item:hover {
    box-shadow: 0 10px 28px rgba(12, 50, 68, 0.18);
}

/* Animated Background Elements */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Bubbles */
.bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    box-shadow: 0 0 30px rgba(253, 195, 36, 0.5);
}

.bubble-1 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at 30% 30%, var(--color-yellow), rgba(253, 195, 36, 0.3));
    border: 4px solid var(--color-yellow);
    top: 15%;
    right: 10%;
    animation: bubbleFloat1 15s ease-in-out infinite;
}

.bubble-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, var(--color-dark-blue), rgba(12, 50, 68, 0.3));
    border: 4px solid var(--color-dark-blue);
    top: 50%;
    left: 5%;
    animation: bubbleFloat2 18s ease-in-out infinite;
}

.bubble-3 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--color-yellow), rgba(253, 195, 36, 0.3));
    border: 3px solid var(--color-yellow);
    bottom: 20%;
    right: 15%;
    animation: bubbleFloat3 12s ease-in-out infinite;
}

.bubble-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle at 30% 30%, var(--color-dark-blue), rgba(12, 50, 68, 0.3));
    border: 4px solid var(--color-dark-blue);
    top: 70%;
    right: 30%;
    animation: bubbleFloat4 20s ease-in-out infinite;
}

.bubble-5 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, var(--color-yellow), rgba(253, 195, 36, 0.3));
    border: 3px solid var(--color-yellow);
    bottom: 40%;
    left: 15%;
    animation: bubbleFloat5 14s ease-in-out infinite;
}

/* Code Symbols */
.code-symbol {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    opacity: 0.18;
    pointer-events: none;
    text-shadow: 0 0 15px currentColor;
}

.code-1 {
    font-size: 80px;
    color: var(--color-yellow);
    top: 25%;
    left: 20%;
    animation: codeFloat1 10s ease-in-out infinite;
}

.code-2 {
    font-size: 100px;
    color: var(--color-dark-blue);
    top: 5%;
    right: 25%;
    animation: codeFloat2 12s ease-in-out infinite;
}

.code-3 {
    font-size: 60px;
    color: var(--color-yellow);
    bottom: 30%;
    left: 8%;
    animation: codeFloat3 15s ease-in-out infinite;
}

.code-4 {
    font-size: 70px;
    color: var(--color-dark-blue);
    top: 60%;
    right: 8%;
    animation: codeFloat4 14s ease-in-out infinite;
}

.code-5 {
    font-size: 90px;
    color: var(--color-yellow);
    bottom: 15%;
    right: 35%;
    animation: codeFloat5 11s ease-in-out infinite;
}

.code-6 {
    font-size: 75px;
    color: var(--color-dark-blue);
    top: 40%;
    left: 12%;
    animation: codeFloat6 13s ease-in-out infinite;
}

/* Bubble Float Animations */
@keyframes bubbleFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -40px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 30px) scale(0.9);
    }
}

@keyframes bubbleFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, -50px) scale(1.15);
    }
}

@keyframes bubbleFloat3 {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-60px) scale(1.2);
    }
}

@keyframes bubbleFloat4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-35px, 45px) scale(0.95);
    }
    66% {
        transform: translate(25px, -35px) scale(1.1);
    }
}

@keyframes bubbleFloat5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(40px, -40px) rotate(180deg);
    }
}

/* Code Symbol Animations */
@keyframes codeFloat1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
        opacity: 0.25;
    }
}

@keyframes codeFloat2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translate(-25px, 35px) rotate(-15deg);
        opacity: 0.25;
    }
}

@keyframes codeFloat3 {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translateX(30px) rotate(20deg);
        opacity: 0.22;
    }
}

@keyframes codeFloat4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translate(35px, -25px) rotate(-10deg);
        opacity: 0.25;
    }
}

@keyframes codeFloat5 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translateY(40px) rotate(15deg);
        opacity: 0.22;
    }
}

@keyframes codeFloat6 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.18;
    }
    50% {
        transform: translate(-30px, -35px) rotate(-20deg);
        opacity: 0.25;
    }
}

/* Hero Bubble Animations */
@keyframes heroFloat1 {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes heroFloat2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(20px, -25px);
    }
    66% {

/* ================= Animated Lines Background ================= */
.lines-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

/* hide on small screens */
@media (max-width: 768px) {
    .lines-bg { display: none; }
}

.lines-bg .line {
    position: absolute;
    top: -120px; /* start above so movement feels continuous */
    width: 2px;
    height: 140%;
    background: linear-gradient(to bottom, rgba(253,195,36,0) 0%, rgba(253,195,36,0.6) 50%, rgba(253,195,36,0) 100%);
    filter: drop-shadow(0 0 6px rgba(253,195,36,0.5));
    opacity: 0.35;
    animation: lineSlide 9s linear infinite;
    mix-blend-mode: screen;
    transform-origin: center top;
}

/* individual positioning & speeds */
.line-1 { left: 8%;  animation-duration: 10s; animation-delay: 0s;   transform: rotate(4deg) scaleY(1.05); }
.line-2 { left: 22%; animation-duration: 12s; animation-delay: 1s;   transform: rotate(-6deg) scaleY(1.1); }
.line-3 { left: 38%; animation-duration: 11s; animation-delay: 2.2s; transform: rotate(3deg) scaleY(1.15); }
.line-4 { left: 56%; animation-duration: 13s; animation-delay: 1.4s; transform: rotate(-5deg) scaleY(1.08); }
.line-5 { left: 74%; animation-duration: 9.5s; animation-delay: 0.6s; transform: rotate(5deg) scaleY(1.12); }
.line-6 { left: 89%; animation-duration: 14s; animation-delay: 3s;   transform: rotate(-4deg) scaleY(1.18); }

@keyframes lineSlide {
    0% { transform: translateY(0) scaleY(1) rotate(var(--r,0deg)); opacity: 0; }
    10% { opacity: 0.4; }
    50% { opacity: 0.6; }
    90% { opacity: 0.35; }
    100% { transform: translateY(120px) scaleY(1) rotate(var(--r,0deg)); opacity: 0; }
}

/* Optional subtle horizontal parallax */
.lines-bg { animation: linesParallax 30s linear infinite alternate; }
@keyframes linesParallax {
    0% { transform: translateX(0); }
    100% { transform: translateX(-40px); }
}

        transform: translate(-15px, 20px);
    }
}

@keyframes heroFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-25px, -20px) scale(1.15);
    }
}

@keyframes heroFloat4 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

@keyframes heroFloat5 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -20px);
    }
    75% {
        transform: translate(-10px, 15px);
    }
}

@keyframes heroFloat6 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -30px) rotate(180deg);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #1EBE57 50%, #128C7E 100%);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: whatsappPulse 2.5s ease-in-out infinite;
    cursor: pointer;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: ripple 2.5s ease-out infinite;
}

.whatsapp-float svg {
    width: 36px;
    height: 36px;
    fill: #fff;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.7), 0 0 0 0 rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
    transform: scale(0.9);
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-yellow);
    border-radius: 50%;
    opacity: 0.3;
    box-shadow: 0 0 10px var(--color-yellow);
}

.particle-1 {
    top: 20%;
    right: 10%;
    animation: float1 8s ease-in-out infinite;
}

.particle-2 {
    top: 60%;
    right: 80%;
    animation: float2 10s ease-in-out infinite;
}

.particle-3 {
    top: 40%;
    right: 30%;
    animation: float3 12s ease-in-out infinite;
}

.particle-4 {
    top: 75%;
    right: 60%;
    animation: float1 9s ease-in-out infinite;
}

.particle-5 {
    top: 15%;
    right: 50%;
    animation: float2 11s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -40px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-40px, -30px);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(-25px, 35px);
    }
    66% {
        transform: translate(35px, -25px);
    }
}

/* Mobile WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}