/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
:root {
    --color-primary: #1b2a53; /* Logo Dark Blue */
    --color-secondary: #ff5a1f; /* Logo Orange */
    --color-dark: #0f172a;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    --color-gray: #64748b;
    --color-gray-light: #e2e8f0;
    
    --font-primary: 'Outfit', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    content-visibility: auto; /* Skip rendering off-screen images */
}

/* Off-screen section optimization */
section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-small {
    max-width: 900px;
}

.section-padding {
    padding: 6rem 0;
}

.text-light {
    color: var(--color-white);
}

.bg-dark {
    background-color: var(--color-primary);
}

.bg-light {
    background-color: var(--color-light);
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px; /* Premium smooth edges */
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #d94a1a;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn-large {
    padding: 0.75rem 1.8rem;
    font-size: 0.95rem;
    min-width: 180px;
    width: fit-content;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-normal);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-phone {
    color: var(--color-primary);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--color-primary);
}

.navbar.scrolled .logo-img {
    height: 85px; /* Elegant shrink on scroll */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 110px;
    width: auto;
    display: block;
    background: transparent !important;
    transition: transform var(--transition-normal);
}

.logo-img:hover {
    transform: scale(1.05);
}

.footer-logo {
    height: 90px;
    width: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-normal);
}

.nav-links a:hover {
    color: var(--color-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    color: var(--color-white);
    font-weight: 700;
    font-size: 1.125rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    background-image: url('imagens/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(75deg, rgba(27, 42, 83, 0.85) 0%, rgba(27, 42, 83, 0.4) 60%, rgba(27, 42, 83, 0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin-left: 15%; /* Adjusted for better balance */
}

.hero-title {
    color: var(--color-white);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: var(--color-gray-light);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    margin-bottom: 3.5rem;
    max-width: 650px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-text p {
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-features {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-primary);
}

.about-features li::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

/* ==========================================================================
   Before/After Slider
   ========================================================================== */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 1100px; /* Increased slightly for better YouTube-like appearance */
    margin: 0 auto;
    aspect-ratio: 16/9; /* YouTube standard */
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: none;
    border-radius: 12px; /* Premium feel */
}

.ba-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-img img {
    width: 100%; /* Changed from 1000px to 100% to prevent mobile layout breaking */
    height: 100%;
    object-fit: cover;
    display: block;
}

.ba-foreground-img {
    width: 100%; /* Keep it full width so image doesn't scale */
    clip-path: inset(0 50% 0 0); /* Control reveal with clip-path instead */
    z-index: 5;
}

.ba-label {
    position: absolute;
    bottom: 2rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 10;
}

.ba-label-before {
    right: 2rem;
}

.ba-label-after {
    left: 2rem;
}

.ba-slider {
    position: absolute;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    margin: 0;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: ew-resize;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: var(--color-white);
    z-index: 15;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 25;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
    animation: dragHintWiggle 3.5s ease-in-out infinite;
}

@keyframes dragHintWiggle {
    0%, 70%, 100% { transform: translate(-50%, -50%); }
    80% { transform: translate(calc(-50% - 12px), -50%); }
    90% { transform: translate(calc(-50% + 12px), -50%); }
}

.ba-slider:hover ~ .ba-slider-handle,
.ba-slider:active ~ .ba-slider-handle {
    animation: none;
    transform: translate(-50%, -50%) scale(1.1);
}

.ba-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-top: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
}

.ba-slider-handle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    background-color: var(--color-dark);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Skeleton Loading Shimmer Effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton-bg {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #1b2a53 4%, #283a6b 25%, #1b2a53 36%);
    background-size: 1000px 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* GPU acceleration ONLY on hover — avoids reserving GPU memory for all 10+ cards at once */
.service-card:hover, .service-card:hover img {
    will-change: transform;
}

.ba-slider-handle {
    will-change: transform;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 42, 83, 0.95) 0%, rgba(27, 42, 83, 0.4) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: var(--color-white);
    transition: background 0.4s ease;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(27, 42, 83, 0.98) 0%, rgba(27, 42, 83, 0.7) 100%);
}

.service-content {
    background-color: transparent;
    padding: 0;
    color: var(--color-white);
}

.service-content h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-secondary);
    transition: width 0.4s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.85;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-card:hover p {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Project Gallery
   ========================================================================== */
/* Project Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1080 / 1350; /* Maintaining the requested 4:5 ratio */
    cursor: pointer;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    background-color: var(--color-dark);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}





.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(27, 42, 83, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-expand-btn {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item:hover .gallery-expand-btn {
    transform: scale(1);
}

/* Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    overflow: auto; /* Allow scrolling if image is truly massive */
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh; /* Ensure it never exceeds screen height */
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 4px solid rgba(255,255,255,0.1);
    animation: zoomIn 0.3s ease-out;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3.5rem;
    font-family: serif;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2) rotate(90deg);
}

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

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    background-color: var(--color-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Softer, premium shadow */
    border-top: 5px solid var(--color-secondary);
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--color-secondary);
    opacity: 0.15;
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.stars {
    color: #ffb400;
    margin-bottom: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.testimonial-info {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.testimonial-location {
    font-size: 0.875rem;
    color: var(--color-gray);
    font-weight: 500;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-lead {
    font-size: 1.125rem;
    color: var(--color-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.info-list {
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-white);
    color: var(--color-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.info-text span {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.info-text a, .info-text p {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.info-text a:hover {
    color: var(--color-secondary);
}

.contact-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Contact Form Card */
.contact-form-card {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-title {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================================================
   WhatsApp Smart Popup
   ========================================================================== */
.wa-popup {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 350px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    z-index: 1001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-popup.active {
    display: flex;
    transform: translateY(0);
}

.wa-header {
    background: #075E54;
    padding: 1.5rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wa-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-avatar {
    position: relative;
    width: 45px;
    height: 45px;
}

.wa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}

.wa-online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4AD964;
    border: 2px solid #075E54;
    border-radius: 50%;
}

.wa-name {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.wa-status {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.wa-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.wa-close:hover { opacity: 1; }

.wa-body {
    padding: 1.5rem;
    background: #E5DDD5; /* WhatsApp Chat BG Color */
    position: relative;
}

.wa-message {
    background: #fff;
    padding: 1rem;
    border-radius: 0 15px 15px 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

.wa-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    border-width: 0 10px 10px 0;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}

.wa-input-group {
    margin-bottom: 0.75rem;
}

.wa-input-group input, .wa-input-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 0.9rem;
}

.wa-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    transition: transform 0.3s, background 0.3s;
}

.wa-submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .wa-popup {
        bottom: 90px;
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #0c1222; /* Deeper dark for premium feel */
    padding: 6rem 0 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 4rem;
}

.footer-column h4 {
    color: var(--color-white);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-column ul li a {
    color: var(--color-gray-light);
    transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
    color: var(--color-secondary);
}

.footer-description {
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%; /* Circular for premium look */
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom p {
    margin: 0;
}

/* ==========================================================================
   Floating Action
   ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px; /* Slightly larger for the PNG */
    height: 65px;
    z-index: 1000;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact:hover {
    transform: scale(1.1);
}

/* WhatsApp Smart Popup */
/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem; /* Increased padding for better breathing room */
    }
    
    .services-grid {
        gap: 1.5rem;
    }
    
    .hero-content {
        margin-left: 10%;
    }
}
.mobile-nav-phone {
    display: none;
}

@media (max-width: 850px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-content {
        margin-left: 5%;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar {
        padding: 0.5rem 0;
        background-color: transparent;
        box-shadow: none;
    }

    .navbar .logo-img {
        height: 75px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; 
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.75rem;
        color: var(--color-primary);
        font-weight: 700;
        text-transform: none;
        letter-spacing: -0.02em;
        transition: transform 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--color-secondary);
        transform: scale(1.1);
    }

    .nav-actions {
        display: none;
    }

    .mobile-nav-phone {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-weight: 700;
        font-size: 1.125rem;
        color: var(--color-white);
        text-decoration: none;
        white-space: nowrap;
        transition: color var(--transition-normal);
        z-index: 100;
    }

    .navbar.scrolled .mobile-nav-phone {
        color: var(--color-primary);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
        padding: 5px;
        margin-right: 0.5rem; /* Reduced margin to keep it balanced */
    }
    
    .mobile-menu-btn span {
        background-color: var(--color-white);
    }

    .mobile-menu-btn.active span {
        background-color: var(--color-white);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .gallery-carousel-wrapper {
        padding: 0;
    }

    .gallery-item {
        flex: 0 0 70%; /* Show part of next item to signal scrollability */
    }

    .carousel-nav {
        display: none; /* Hide arrows on touch devices */
    }

    .about-image {
        order: -1;
    }

    .hero {
        padding-top: 100px;
        background-attachment: scroll; /* Better performance on mobile */
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
        width: 100%;
        padding: 0 1rem;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center flex items horizontally */
    }

    .section-header {
        text-align: center;
        width: 100%;
    }

    .about-text {
        text-align: center;
    }

    .about-features {
        justify-content: center;
        margin-right: auto;
        margin-left: auto;
    }
    
    .about-features li {
        justify-content: center;
    }

    .contact-info {
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .info-text a, .info-text p {
        font-size: 1.125rem;
    }
    
    .contact-map {
        margin-top: 2rem;
    }

    .hero-title {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }
    
    .hero-subtitle {
        margin-bottom: 2.5rem;
        font-size: 1.125rem;
    }
    
    .hero-cta {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .service-card {
        height: 160px;
    }

    .service-overlay {
        padding: 0.75rem;
    }

    .service-content h3 {
        font-size: 0.7rem;
        margin-bottom: 0;
        line-height: 1.1;
    }

    .service-content h3::after {
        display: none;
    }

    .service-content p {
        font-size: 0.6rem;
        color: var(--color-white);
        opacity: 0.9;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-quote {
        font-size: 3.5rem;
        left: 1rem;
        top: 0.25rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
        word-wrap: break-word;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .about-features li {
        flex-direction: column;
        gap: 0.75rem;
    }
    .about-features li::before {
        display: none;
    }
    .about-features li::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        background-color: var(--color-secondary);
        border-radius: 50%;
    }
}

/* ==========================================================================
   Project Folders & Modal Gallery Navigation
   ========================================================================== */
.project-folder {
    cursor: pointer;
}

.project-folder:hover .service-overlay {
    background: linear-gradient(to top, rgba(27, 42, 83, 1) 0%, rgba(27, 42, 83, 0.6) 100%);
}

.project-folder .service-content h3 {
    margin-bottom: 0.25rem;
}



.project-folder .service-content p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    font-weight: 600;
}

/* Project Modal Gallery */
.project-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.3);
}

.project-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.project-modal-counter {
    font-size: 1.1rem;
    color: var(--color-gray-light);
    font-variant-numeric: tabular-nums;
}

.project-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.project-modal-close:hover {
    transform: scale(1.1);
    color: var(--color-secondary);
}

.project-modal-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    overflow: hidden;
    position: relative;
}

.pm-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.pm-nav:hover {
    background: var(--color-secondary);
    transform: scale(1.1);
}

.pm-image-container {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

#pm-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.pm-loader {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    border-top-color: var(--color-secondary);
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.project-modal-thumbnails {
    height: 120px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    gap: 10px;
    padding: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
}

.pm-thumb {
    height: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.pm-thumb:hover {
    opacity: 0.8;
}

.pm-thumb.active {
    opacity: 1;
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

.project-modal-thumbnails::-webkit-scrollbar {
    height: 6px;
}
.project-modal-thumbnails::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.project-modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-gray);
    border-radius: 3px;
}
