@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #0A0A0A; /* Dark background matching logo */
    --text-color: #F2F2F2;
    --accent-color: #C8922E;
    --header-height: 90px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor for custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 24px;
    height: 24px;
    background-image: url('../../iimg/favicon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(200, 146, 46, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover class added via JS */
.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(200, 146, 46, 0.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E5B760;
}

@media screen and (max-width: 991px) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent; /* Transparent to merge with hero */
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    background-color: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    /* Note: Height shrinking removed */
}

.header-container {
    max-width: 1600px; /* Even wider to push button to the edge */
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px); /* Responsive padding */
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001; /* Above mobile menu */
    justify-content: flex-start;
    flex-shrink: 0; /* Prevent logo from shrinking too much */
}

.logo img {
    height: clamp(65px, 6vw, 70px); /* Responsive logo size, larger minimum for mobile */
    width: auto;
    transition: var(--transition);
    object-fit: contain;
}

.site-header.scrolled .logo img {
    /* Shrinking effect removed */
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Center the links */
    flex-grow: 1; /* Take up available space */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(15px, 2.5vw, 40px); /* Responsive gap between links */
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(11px, 1vw, 13px); /* Responsive font size */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: var(--transition);
    position: relative;
    display: inline-block;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Underline effect matching the image */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px; /* Slightly closer to text */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-link.active::after {
    width: 100%; /* Only active has underline by default in the image */
}

.nav-link:hover::after {
    width: 100%;
}

/* Header CTA Button Container */
.nav-cta {
    display: flex;
    justify-content: flex-end; /* Align button to the right */
    flex-shrink: 0;
}

/* Header CTA Button */
.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: clamp(8px, 1vw, 10px) clamp(16px, 2vw, 24px); /* Responsive padding */
    color: var(--text-color);
    text-decoration: none;
    font-size: clamp(11px, 1vw, 13px); /* Responsive font size */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent-color);
    border-radius: 50px; /* Pill shape */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Efeito de preenchimento que vem da esquerda */
.btn-header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.btn-header-cta .arrow {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.4s ease, color 0.4s ease;
}

/* Hover States */
.btn-header-cta:hover {
    color: #000; /* Texto fica preto para contrastar com o fundo dourado */
    box-shadow: 0 5px 20px rgba(200, 146, 46, 0.4);
    transform: translateY(-2px);
}

.btn-header-cta:hover::before {
    width: 100%;
}

.btn-header-cta:hover .arrow {
    color: #000;
    transform: translate(4px, -4px);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Above mobile menu */
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2),
.menu-toggle span:nth-child(3) {
    top: 11px;
}

.menu-toggle span:nth-child(4) {
    top: 22px;
}

/* Menu Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    top: 11px;
    width: 0%;
    left: 50%;
}

.menu-toggle.active span:nth-child(2) {
    transform: rotate(45deg);
    background: var(--accent-color);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    background: var(--accent-color);
}

.menu-toggle.active span:nth-child(4) {
    top: 11px;
    width: 0%;
    left: 50%;
}

/* Mobile Navigation Features */
.nav-num {
    display: none;
}

.mobile-menu-bg-glow {
    display: none;
}

.mobile-nav-footer {
    display: none;
}

/* Responsive - Mobile First Approach */
@media screen and (max-width: 991px) {
    .carousel-btn {
        display: none; /* Hide buttons on mobile, allow natural swipe */
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        padding: 0 20px; /* Reduced padding on mobile to give logo more space */
    }

    .nav-cta {
        display: none; /* Hide CTA on mobile or move it inside the menu */
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px; /* Space for close button */
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-nav.active {
        right: 0;
    }
    
    /* Prevent body scroll when mobile menu is active */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }

    .mobile-menu-bg-glow {
        display: block;
        position: absolute;
        top: 20%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(200, 146, 46, 0.08) 0%, transparent 60%);
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 0 40px;
        gap: 15px;
        z-index: 1;
        position: relative;
    }

    .nav-item {
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .main-nav.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered animation for menu items */
    .main-nav.active .nav-item:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.active .nav-item:nth-child(2) { transition-delay: 0.15s; }
    .main-nav.active .nav-item:nth-child(3) { transition-delay: 0.2s; }
    .main-nav.active .nav-item:nth-child(4) { transition-delay: 0.25s; }
    .main-nav.active .nav-item:nth-child(5) { transition-delay: 0.3s; }
    .main-nav.active .nav-item:nth-child(6) { transition-delay: 0.35s; }

    .nav-num {
        display: inline-block;
        color: var(--accent-color);
        font-size: 11px;
        font-weight: 700;
        margin-right: 15px;
        opacity: 0.7;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 10px 0;
        font-size: 28px; /* Huge typography for premium feel */
        font-weight: 800;
        width: 100%;
        border-bottom: none;
        letter-spacing: -1px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: transparent;
        color: var(--text-color);
        transform: translateX(10px);
    }

    .nav-link.active .nav-num {
        opacity: 1;
    }

    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        padding: 40px;
        margin-top: auto;
        width: 100%;
        z-index: 1;
        position: relative;
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
    }

    .main-nav.active .mobile-nav-footer {
        opacity: 1;
        transform: translateY(0);
    }

    .btn-mobile-cta {
        width: 100%;
        padding: 18px;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 30px;
    }

    .mobile-social {
        display: flex;
        gap: 15px;
        justify-content: flex-start;
    }
}

/* Add some padding to body to compensate for fixed header */
body {
    padding-top: 0; /* Removed to allow hero to hit the very top */
}

/* Hero Banner Section - Fullscreen Image */
.hero.hero-fullscreen {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
    overflow: hidden;
    background-color: var(--bg-color);
    padding: 120px 20px 40px; /* Top padding to clear header */
}

/* Fullscreen Background Image */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: right top; /* Fix: Anchor strictly to the right so it doesn't get cut off */
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

@media screen and (min-width: 1600px) {
    .hero-bg-image {
        /* On ultrawide screens, ensure the image doesn't scale up too much and cut off the head */
        background-size: contain; 
        background-position: right bottom;
    }
}

/* Gradient Overlay to ensure text readability on the left */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Adjusted gradient: stronger on the far left, transparent much earlier to show the image clearly */
    background: linear-gradient(90deg, 
        rgba(5, 5, 5, 1) 0%, 
        rgba(5, 5, 5, 0.9) 25%, 
        rgba(5, 5, 5, 0.6) 45%, 
        rgba(5, 5, 5, 0) 65%);
    z-index: 2;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px; /* Match header width */
    width: 100%;
    margin: 0 auto;
    padding: 0 40px; /* Match header padding */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Ensure it stays left */
    position: relative;
    z-index: 3;
    height: 100%;
}

/* Hero Content (Left) */
.hero-content {
    flex: 1;
    max-width: 600px; /* Keep it contained on the left */
    padding-top: 50px;
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-subtitle-wrapper .lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-subtitle-wrapper .lines::before,
.hero-subtitle-wrapper .lines::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
}

.hero-subtitle-wrapper .lines::after {
    width: 15px; /* Second line slightly shorter like the image */
}

.hero-subtitle {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Adjusted for multiline */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--accent-color);
    display: inline; /* Keep inline for the new text flow */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.hero-description {
    font-size: 1.05rem;
    color: #D0D0D0; /* Slightly lighter gray */
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
    max-width: 500px;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px; /* Space between buttons and stats */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

.btn .arrow {
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translate(2px, -2px);
}

.btn-primary {
    background-color: #C8922E; /* Exact gold color */
    color: #fff;
    box-shadow: 0 4px 15px rgba(200, 146, 46, 0.2);
}

.btn-primary:hover {
    background-color: #DDA642;
    box-shadow: 0 6px 20px rgba(200, 146, 46, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--accent-color); /* Gold border */
}

.btn-outline .arrow {
    color: var(--accent-color);
}

.btn-outline:hover {
    background-color: rgba(200, 146, 46, 0.1);
    transform: translateY(-2px);
}

/* Hero Stats Section */
.hero-stats {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle separator if needed, or remove */
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-text {
    font-size: 10px;
    line-height: 1.4;
    color: #A0A0A0;
    letter-spacing: 0.5px;
}

.stat-text strong {
    color: var(--text-color);
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 60px 20px 80px; /* Reduced top padding to pull it closer to the hero */
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 50px;
}

.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.subtitle-wrapper.justify-center {
    justify-content: center;
}

.subtitle-wrapper.justify-start {
    justify-content: flex-start;
}

.text-left {
    text-align: left;
}

.subtitle-wrapper .lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subtitle-wrapper .lines::before,
.subtitle-wrapper .lines::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
}

.subtitle-wrapper .lines::after {
    width: 15px;
}

.subtitle {
    color: var(--accent-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: -0.5px;
    text-align: center;
}

.section-title .highlight {
    color: var(--accent-color);
}

/* Services Grid (Now Carousel) */
.services-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 20px; /* Make room for the arrows inside the wrapper */
}

.services-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 15px 5px; /* Padding for hover shadows */
    scroll-behavior: smooth;
    /* Ensure it doesn't overflow its parent hiding the right arrow */
    width: 100%;
    /* Fade/Blur effect on entry and exit */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.services-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.service-card {
    flex: 0 0 220px; /* Fixed very compact width for carousel */
    scroll-snap-align: start;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px 20px; /* Much more compact padding */
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(200, 146, 46, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 146, 46, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.card-icon {
    margin-bottom: 15px;
    transition: var(--transition);
}

.card-icon svg {
    width: 26px; /* Smaller icon */
    height: 26px;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
}

.card-title {
    font-size: 0.95rem; /* Smaller text */
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.card-desc {
    color: #A0A0A0;
    font-size: 0.8rem; /* Smaller text */
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 11px; /* Smaller text */
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.card-link .arrow {
    font-size: 12px;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.service-card:hover .card-link {
    color: #E5B760;
}

.service-card:hover .card-link .arrow {
    transform: translate(2px, -2px);
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50; /* Forcing it very high to not be hidden */
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(200, 146, 46, 0.4);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

/* Google Reviews Customization */
.google-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.google-stars {
    color: #fbbc04;
    font-size: 16px;
    letter-spacing: 2px;
}

.google-icon {
    width: 24px;
    height: 24px;
}

.google-icon svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   TECH CAROUSEL SECTION
   ========================================================================== */
.tech-carousel-section {
    padding: 30px 0 60px; /* Increased top padding slightly for hover space */
    background-color: var(--bg-color);
    overflow-x: hidden; /* Only hide horizontal overflow, let vertical breathe */
    overflow-y: visible; /* Allow items to pop up on hover */
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(200, 146, 46, 0.05); /* subtle divider */
    margin-top: 30px;
}

/* Gradient fades replaced by mask-image on carousel-container */
/* Removed ::before and ::after to avoid click blocking and redundant fades */

.carousel-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 10px; /* Add breathing room for the top row hover */
    /* Fade/Blur effect on entry and exit */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.tech-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

/* Animations */
.row-1 {
    animation: scroll-left 40s linear infinite;
}

.row-2 {
    animation: scroll-right 40s linear infinite;
    transform: translateX(-50%); /* Start position for right-scrolling */
}

.tech-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); } /* -50% because we duplicated items */
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-50% - 10px)); }
    100% { transform: translateX(0); }
}

.tech-item {
    padding: 0 10px;
}

.tech-box {
    display: flex;
    align-items: center;
    gap: 12px; /* reduced gap */
    background: rgba(15, 15, 15, 0.8); /* Dark background matching the site */
    border: 1px solid rgba(255, 255, 255, 0.05); /* subtle border */
    padding: 10px 16px; /* more compact padding */
    border-radius: 8px; /* less rounded, more techy */
    min-width: 240px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: default;
    height: 100%;
}

.tech-box:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(200, 146, 46, 0.4); /* gold border on hover */
    box-shadow: 0 8px 20px rgba(200, 146, 46, 0.15);
    background: rgba(20, 20, 20, 1);
}

.tech-box .icon {
    font-size: 20px; /* smaller icon */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.tech-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-info strong {
    font-size: 0.9rem; /* smaller text */
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
    margin-bottom: 2px;
}

.tech-info span {
    font-size: 0.65rem; /* smaller text */
    color: var(--accent-color); /* gold subtext */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
    padding: 60px 0 20px; /* Reduced bottom padding */
    position: relative;
    background-color: var(--bg-color); /* Solid dark base */
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    overflow: hidden; /* Contains the glowing orbs */
}

/* Animated Glowing Orbs Background */
.portfolio-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.portfolio-bg-glow.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(200, 146, 46, 0.12) 0%, transparent 70%);
    top: -200px;
    right: -150px;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.portfolio-bg-glow.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 146, 46, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: floatGlowReverse 20s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes floatGlowReverse {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.2); }
    100% { transform: translate(0, 0) scale(1); }
}

/* Subtle grid/mesh pattern overlay */
.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.portfolio-section .section-container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 0 40px;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.portfolio-title-wrapper .section-title {
    margin-bottom: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px; /* Reduzido para ficar mais compacto e elegante */
    gap: 30px; /* Espaçamento premium */
    width: 100%;
}

.portfolio-card:nth-child(1) {
    grid-column: span 2;
}

.portfolio-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; /* Borda premium */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 146, 46, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 146, 46, 0.1);
}

.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    transition: background-position 8s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.5s ease;
}

.portfolio-card:hover .card-image {
    background-position: bottom center;
    transform: scale(1.03); /* Subtle zoom on hover */
}

.card-actions-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .card-actions-overlay {
    opacity: 1;
    transform: translateX(0);
}

.card-footer-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    border-top: none;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.portfolio-card:hover .card-footer-info {
    opacity: 1;
    transform: translateY(0);
}

.logo-box-new {
    width: 38px;
    height: 38px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.card-text-new {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-text-new h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
    letter-spacing: 0.5px;
}

.card-text-new span {
    font-size: 0.7rem;
    color: #a0a0a0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.btn-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5; /* Light grey for the eye icon */
    color: #000;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon svg {
    width: 16px;
    height: 16px;
}

.btn-icon.gold {
    background: var(--accent-color);
    color: #000;
}

.btn-icon:hover {
    filter: brightness(0.9);
}

.portfolio-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.portfolio-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-pagination .dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-color);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Added subtle divider top */
    margin-top: 50px; /* Added spacing from previous section */
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent); /* Golden highlight on the divider */
}

.testimonials-section .section-container {
    max-width: 100%;
    padding: 0 40px;
}

.testimonials-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.testimonials-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-grow: 1;
    overflow: hidden;
}

.testimonials-header {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    order: 2; /* Forces it to the right */
}

.testimonials-header .subtitle {
    margin-bottom: 15px;
    font-size: 11px;
}

.testimonials-header .section-title {
    font-size: 2rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    flex-grow: 1;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 10px 5px;
    order: 1; /* Forces it to the left */
    /* Optional fade mask */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    color: var(--accent-color);
    font-size: 4rem;
    font-family: Georgia, serif;
    line-height: 0.5;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 0.85rem;
    color: #D0D0D0;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.7rem;
    color: #888;
}

.testimonials-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.testimonials-btn:hover {
    background: var(--accent-color);
    color: #000;
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

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

.blog-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 146, 46, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(200, 146, 46, 0.05);
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px; /* Mais compacto */
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.blog-content {
    padding: 20px; /* Mais compacto */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.blog-title {
    font-size: 1.05rem; /* Menor e mais direto */
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--accent-color);
}

.blog-excerpt {
    font-size: 0.85rem;
    color: #A0A0A0;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limita a 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.blog-read-more .arrow {
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: #E5B760;
}

.blog-read-more:hover .arrow {
    transform: translate(2px, -2px);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 80px 0;
    background-color: #050505; /* Slightly darker than normal bg */
    position: relative;
    border-top: 1px solid rgba(200, 146, 46, 0.15); /* Gold top border */
    border-bottom: 1px solid rgba(200, 146, 46, 0.15); /* Gold bottom border */
    overflow: hidden;
}

/* Background Graphic "Z" and Glows */
.cta-bg-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Base line crossing the entire section */
.cta-bg-graphic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(200, 146, 46, 0.3) 20%, rgba(200, 146, 46, 0.3) 80%, transparent 100%);
    z-index: 1;
}

/* Abstract Shapes / Z */
.z-shape {
    position: absolute;
    width: 450px;
    height: 100%;
    top: 0;
    z-index: 2;
}

.z-shape.left-z {
    left: -5%;
}

.z-shape.right-z {
    right: -5%;
}

.cta-glow-point {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 146, 46, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(40px);
}

.cta-glow-point.point-1 {
    top: -50px;
    left: -50px;
}

.cta-glow-point.point-2 {
    bottom: -100px;
    left: 40%;
}

.cta-glow-point.point-3 {
    top: 20%;
    right: -50px;
}

.cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-content {
    flex: 1;
}

.cta-content .subtitle {
    font-size: 11px;
}

.cta-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.cta-title .highlight {
    color: var(--accent-color);
}

.cta-desc {
    color: #A0A0A0;
    font-size: 1rem;
    line-height: 1.6;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-left: 60px;
}

.btn-cta {
    padding: 16px 40px;
    font-size: 14px;
    border-radius: 6px;
    background-color: #DDA642; /* Slightly softer gold matching image */
    color: #000;
}

.btn-cta:hover {
    background-color: #C8922E;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cta-contact-info span {
    font-size: 0.85rem;
    color: #888;
}

.cta-email {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.cta-email:hover {
    color: #E5B760;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.site-footer {
    background-color: #0A0A0A; /* Solid dark base matching image */
    position: relative;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(200, 146, 46, 0.15); /* Gold line on top */
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 50%;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(200, 146, 46, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 30%;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 146, 46, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Coluna 1: Logo e Descrição */
.brand-col .footer-logo {
    display: inline-block;
    margin-bottom: 25px;
}

.brand-col .footer-logo img {
    height: 70px; /* Increased logo size for better visibility */
    width: auto;
    object-fit: contain;
}

.brand-col .footer-desc {
    color: #A0A0A0;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 250px; /* Keep text compact below logo */
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    color: var(--accent-color);
    border: 1px solid rgba(200, 146, 46, 0.3);
    transition: var(--transition);
}

.social-icon svg {
    width: 16px;
    height: 16px;
}

.social-icon:hover {
    background-color: var(--accent-color);
    color: #000;
}

/* Títulos das colunas */
.footer-title {
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 25px;
    height: 1px; /* Thinner line for more elegant look */
    background-color: var(--text-color); /* Changed to white/light grey matching reference */
}

/* Links de Navegação e Serviços */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #A0A0A0;
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Lista de Contato */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #A0A0A0;
    font-size: 0.85rem;
}

.contact-icon {
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
}

/* Copyright */
.footer-bottom {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: #666;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    margin: 0;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.footer-legal .separator {
    color: #444;
}

/* Responsive adjustments for new sections */
@media screen and (max-width: 991px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .hero.hero-fullscreen {
        padding: 0px 0px 40px; /* Completely removed top padding */
        min-height: 100vh; 
        height: auto;
        margin-top: -var(--header-height); /* Pull the section up behind the header */
        padding-top: calc(var(--header-height) + 20px); /* Add padding to push content below header */
    }

    .hero-container {
        justify-content: flex-end; /* Push content to the bottom */
        text-align: left;
        margin-top: 35vh; /* Push it MUCH further down */
        padding: 0 15px;
        padding-bottom: 20px; /* Add some padding at the bottom */
    }

    /* Hero Mobile Improvements - Back to PC Standard */
    .hero-bg-image {
        background-position: center top; /* Center the face for mobile portrait */
        opacity: 0.9; /* Made much brighter to show the background */
        background-size: cover;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left align like PC */
        background: transparent; /* Remove black box */
        padding: 0; /* Removed padding */
        border-radius: 0;
        border: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        margin-top: 0;
    }

    .hero-subtitle-wrapper {
        margin-bottom: 10px; /* Reduced gap */
    }

    .hero-title {
        text-align: left;
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Slightly smaller to fit better below face */
        max-width: 100%; /* Use full width */
    }
    
    .hero-description {
        text-align: left;
        margin-bottom: 20px; /* Reduced gap */
        font-size: 0.95rem; /* Slightly smaller */
        max-width: 100%; /* Use full width */
    }

    .hero-actions {
        width: 100%;
        flex-direction: column;
        gap: 10px; /* Reduced gap */
        margin-bottom: 30px; /* Reduced gap */
    }
    
    .hero-actions .btn {
        width: 100%;
        padding: 16px;
    }

    .hero-stats {
        width: 100%;
        flex-direction: row; /* Put stats in same line */
        justify-content: space-between; /* Spread them evenly */
        gap: 10px;
        align-items: flex-start;
        border-top: 1px solid rgba(255,255,255,0.05); /* Added subtle border back */
        padding-top: 20px;
        flex-wrap: wrap; /* Allow wrapping if screen is too small */
    }

    .stat-item {
        width: auto; /* Allow them to shrink */
        flex: 1; /* Distribute space equally */
        justify-content: center; /* Center content of each stat */
        align-items: center; /* Center vertically */
        flex-direction: column; /* Stack icon and text vertically for mobile */
        gap: 10px;
        text-align: center; /* Center text */
    }

    .stat-icon {
        width: 40px; /* Slightly smaller icons for mobile row */
        height: 40px;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-text {
        text-align: center; /* Center text */
        font-size: 0.75rem; /* Smaller text to fit in a row */
    }
    
    .stat-text strong {
        font-size: 1rem; /* Adjust strong text size */
    }

    /* Adjust gradient so text is readable but image shows clearly */
    .hero-gradient-overlay {
        background: linear-gradient(180deg, rgba(5, 5, 5, 0.05) 0%, rgba(5, 5, 5, 0.1) 40%, rgba(5, 5, 5, 0.95) 75%, rgba(5, 5, 5, 1) 100%); /* Gradient pushed further down */
    }

    /* Services Mobile */
    .services-carousel-wrapper {
        padding: 0;
    }
    
    .services-carousel-wrapper .carousel-btn {
        display: none; /* Hide buttons on mobile */
    }
    
    .services-grid {
        gap: 15px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory; /* Enable smooth snapping */
    }
    
    .service-card {
        scroll-snap-align: start; /* Snap to start of card */
    }

    /* Portfolio Mobile */
    .portfolio-section .section-container {
        padding: 0 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* Reset to 1 column on mobile */
        grid-auto-rows: 350px; /* Slightly taller on mobile but still compact */
    }

    .portfolio-card:nth-child(n) {
        grid-column: span 1 !important; /* All cards take full width on mobile */
        grid-row: span 1 !important;
    }

    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .portfolio-title-wrapper .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Make text smaller on mobile */
    }

    .portfolio-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Testimonials Mobile */
    .testimonials-section {
        margin-top: 30px; /* Less margin on mobile */
        padding-top: 60px; /* Less padding on mobile */
    }

    .testimonials-section .section-container {
        padding: 0; /* Remove padding to allow full width scroll */
    }

    .testimonials-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .testimonials-content {
        flex-direction: column;
        width: 100%;
    }

    .testimonials-header {
        flex: none;
        align-items: center;
        text-align: center;
        margin-bottom: 20px;
        order: 1; /* Title first on mobile */
        padding: 0 20px; /* Add padding back just for the title */
    }

    .testimonials-track {
        order: 2; /* Track second on mobile */
        padding: 0 15px; /* Add padding to the track so first card isn't cut off */
        gap: 15px; /* Add gap between cards */
        scroll-snap-type: x mandatory; /* Ensure smooth snapping on mobile */
        width: 100%;
        overflow-x: auto;
    }

    .testimonial-card {
        flex: 0 0 85vw; /* Make cards take 85vw of screen width on mobile */
        scroll-snap-align: center; /* Center the card when snapped */
        max-width: 320px; /* Prevent it from getting too large on big phones */
    }

    .testimonials-header .section-title {
        text-align: center;
    }
    
    .testimonials-btn {
        display: none; /* Hide buttons on mobile to allow touch scroll */
    }

    /* CTA Mobile */
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cta-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-action {
        margin-left: 0;
        align-items: center;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 40px;
        text-align: center; /* Center everything on mobile */
    }
    
    .brand-col {
        grid-column: span 1;
        text-align: center; /* Align back to center */
        display: flex;
        flex-direction: column;
        align-items: center; /* Align all items to the center */
    }
    
    .brand-col .footer-logo {
        display: flex;
        justify-content: center; /* Align logo to the center */
        margin-left: 0px; /* Reset margin */
    }
    
    .brand-col .footer-desc {
        text-align: center; /* Ensure text aligns center */
        padding-left: 0px; /* Remove padding */
    }
    
    .social-links {
        justify-content: center; /* Align icons to the center */
        width: 100%;
    }

    .footer-title::after {
        left: 50%; /* Center the little line under the title */
        transform: translateX(-50%);
    }

    .footer-links a {
        display: inline-block; /* Helps with hover transforms when centered */
    }
    
    .footer-links a:hover {
        transform: scale(1.05); /* Just scale, don't move right on mobile */
    }

    .footer-contact-list li {
        justify-content: center; /* Center the icons and text */
    }
}

@media screen and (max-width: 576px) {
    /* Styles are already handled in the 991px block for better responsiveness */
}
