/* 
   Main Stylesheet for Visualiza Website
   Based on the design of unlock-e.com
*/

/* ===== Base Styles ===== */
:root {
    /* Color Palette */
    --primary-color: #0047ab;       /* Un azul intenso como color principal */
    --secondary-color: #00b8ff;     /* Azul más claro para acentos */
    --dark-blue: #002147;           /* Azul oscuro para fondos */
    --light-blue: #e0f7ff;          /* Azul muy claro para fondos sutiles */
    --dark-color: #111;
    --light-color: #fff;
    --grey: #888;
    --light-grey: #e9e9e9;
    --dark-grey: #333;
    
    /* Typography */
    --body-font: 'Montserrat', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout Helpers ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .highlight-text {
        font-size: 2.5rem !important;
    }
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-color);
}

.highlight-text {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
}

.highlight-sm {
    font-size: 2rem;
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 71, 171, 0.2);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 71,171, 0.3);
}

/* ===== Preloader ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader-logo {
    width: 150px;
    animation: pulse 1.5s infinite ease-in-out;
}

.preloader-logo img {
    width: 100%;
    height: auto;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: transparent;
    z-index: 100;
    transition: background-color var(--transition-medium), padding var(--transition-medium);
}

header.scrolled {
    background-color: rgba(0, 33, 71, 0.7);
    padding: 15px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    margin: 0 10px;
    width: calc(100% - 20px);
}

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

.logo {
    width: 150px;
    transition: width var(--transition-medium);
}

header.scrolled .logo {
    width: 120px;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-fast);
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

/* Mobile menu toggle styles - UPDATED */
header .mobile-menu-toggle {
    display: none !important; /* Hide by default on all screen sizes */
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

/* Mobile styles - UPDATED */
@media (max-width: 992px) {
    header .mobile-menu-toggle {
        display: block !important; /* Only show on mobile */
    }
    
    header nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.95);
        padding: 80px 0 20px;
        z-index: 999;
    }

    header nav.active {
        display: flex !important;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    header nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    header nav ul li a {
        display: block;
        padding: 10px 0;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (min-width: 993px) {
    header .mobile-menu-toggle {
        display: none !important; /* Explicitly hide on desktop */
    }
    
    header nav {
        display: flex !important; /* Always show on desktop */
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-video,
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video video,
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.7);
    z-index: -1;
}

.hero-text {
    text-align: center;
    color: var(--light-color);
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
    opacity: 0.8;
}

.hero-text h2 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--light-color);
    text-shadow: 0 0 20px rgba(0, 184, 255, 0.5);
}

/* ===== About Section ===== */
.about {
    position: relative;
    padding: calc(var(--spacing-sm) + 10px) 0 var(--spacing-xl); /* Padding menor arriba */
    margin-top: -20px; /* Reduce space at top */
    overflow: hidden;
    background-color: var(--light-color);
    display: flex; /* Usar flexbox para centrar verticalmente */
    align-items: center; /* Centrar verticalmente */
    min-height: 80vh; /* Establecer altura mínima para centrar mejor */
}

.about-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 184, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    z-index: 0;
}

.section-content {
    position: relative;
    z-index: 1;
    padding-top: 20px; /* Añadir un poco de padding en la parte superior */
}

.about-heading {
    margin-bottom: var(--spacing-md);
    text-align: center; /* Centrar el texto */
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 1px var(--dark-blue);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.text-filled {
    color: var(--dark-blue);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-top: -10px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Reducir el gap */
    align-items: center;
    max-width: 1100px; /* Limitar el ancho máximo */
    margin: 0 auto; /* Centrar horizontalmente */
}

.about-image {
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
    position: relative;
}

.image-wrapper:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.video-still,
.image-still {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.2);
    transition: transform 0.8s ease;
}

.image-wrapper:hover .video-still,
.image-wrapper:hover .image-still {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 71,171, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-wrapper:hover .play-icon {
    transform: scale(1);
}

.play-icon i {
    color: var(--light-color);
    font-size: 1.5rem;
    margin-left: 5px;
}

.about-info {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar verticalmente el contenido */
}

.subtitle {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

.description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.description-secondary {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    opacity: 0.8;
}

.highlight {
    font-weight: 600;
    color: var(--primary-color);
}

.buttons-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: 4px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 71, 171, 0.2);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .text-outline, .text-filled {
        font-size: 2.5rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about {
        min-height: auto; /* Quitar altura mínima en móviles */
        padding-top: var(--spacing-md); /* Aumentar un poco el padding en móviles */
        padding-bottom: var(--spacing-lg);
    }
    
    .about-heading {
        margin-bottom: var(--spacing-sm); /* Menor espacio abajo en móviles */
    }
}

/* ===== Services Overview ===== */
.services-overview {
    position: relative;
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    margin-top: -20px; /* Reduce space at top */
    color: var(--light-color);
    overflow: hidden;
    min-height: 600px; /* Ensure minimum height to display content properly */
}

.services-image,
.services-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;

}

.services-image img,
.services-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* Ensure the image is centered */
    transform: scale(1.05); /* Slight scale to prevent white edges during animations */
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.8);
    z-index: -2;
    backdrop-filter: blur(10px);
    
}

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

.services-info {
    max-width: 600px;
    margin-top: var(--spacing-lg);
}

/* Services section responsive fixes */
@media (max-width: 768px) {
  .services-overview {
    min-height: 700px; /* Increase minimum height on mobile to accommodate more content */
    padding: var(--spacing-md) 0 var(--spacing-lg); /* Adjust padding */
  }
  
  .services-image img {
    object-position: 70% center; /* Shift focus of image to ensure important parts are visible */
  }
  
  .right-align {
    align-items: flex-start;
    text-align: left;
  }
  
  .services-info {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .services-overview {
    min-height: 750px; /* Further increase on smaller screens */
  }
  
  .services-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,33,71,0.9) 0%, rgba(0,33,71,0.6) 100%);
    z-index: 1;
  }
}

/* ===== Portfolio Preview ===== */
.portfolio-preview {
    padding: var(--spacing-lg) 0 0; /* Eliminar padding inferior */
    margin-top: -20px; /* Reduce space at top */
    background-color: var(--light-color);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md); /* Reducido de lg a md */
}

.portfolio-title {
    flex: 1;
}

.portfolio-info {
    flex: 1;
    padding-left: var(--spacing-md);
}

.portfolio-gallery {
    position: relative;
    height: auto; /* Cambiado de 600px a auto */
    max-height: 540px; /* Añade altura máxima */
    overflow: hidden;
    margin-bottom: 0; /* Asegura que no haya margen inferior */
}

.portfolio-image,
.portfolio-video {
    position: relative; /* Cambiado de absolute a relative */
    width: 100%;
    height: 100%;
    display: block; /* Asegurar que se comporte como bloque */
}

.portfolio-image img,
.portfolio-video video {
    width: 100%;
    height: auto; /* Cambiado de 100% a auto */
    max-height: 500px;
    object-fit: cover;
    display: block; /* Asegura que no haya espacio extra */
}

/* Fix para la sección de portfolio */
.portfolio-preview {
    padding-bottom: 0 !important;
    margin-bottom: 100px !important;
    border-bottom: none !important;
}


.portfolio-gallery {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Fix para la transición entre secciones */
.portfolio-preview + .statistics {
    margin-top: 0 !important;
    padding-top: var(--spacing-md) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Aseguramos que las capas se superpongan correctamente */
.portfolio-preview {
    position: relative !important;
    z-index: 0 !important;
}

/* Estilos para el carrusel del portfolio */
.portfolio-gallery {
    padding: 0 !important;
    overflow: visible !important;
}



/* Media queries para responsividad */
@media (max-width: 992px) {
    .portfolio-gallery {
        max-height: 400px !important;
        margin-bottom: 250px !important;
    }
    
    .portfolio-image img {
        max-height: 400px !important;
    }
    
    .portfolio-header {
        margin-bottom: var(--spacing-sm) !important;
    }
}

@media (max-width: 768px) {
    .portfolio-gallery {
        max-height: 300px !important;
        margin-bottom: 0px !important;

    }

    .portfolio-image img {
        max-height: 300px !important;
    }
    
    .portfolio-header {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-info {
        padding-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .portfolio-gallery {
        max-height: 200px !important;
        margin-bottom: -100px !important;

    }
    
    .portfolio-image img {
        max-height: 200px !important;
    }
}


/* ===== Statistics Section ===== */
.statistics {
    position: relative;
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    margin-top: 0; /* Eliminado el margen negativo */
    overflow: hidden;
}

.stats-image,
.stats-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.stats-image img,
.stats-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glass-overlay {
    background: rgba(0, 33, 71, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stats-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--light-color);
}

.stats-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(90deg, var(--secondary-color), var(--light-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 184, 255, 0.3));
}

.company-logo {
    max-width: 200px;
    margin: 0 auto;
}

.company-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 184, 255, 0.4));
}

.stats-counters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--light-color);
}

@media (max-width: 992px) {
    .stats-counters {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-counters {
        grid-template-columns: 1fr;
    }
    
    .stats-title {
        font-size: 2.5rem;
    }
}

.counter-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.counter-box:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--secondary-color), var(--light-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
}

.plus, .thousand {
    font-size: 1.5rem;
    vertical-align: super;
    margin-right: 5px;
}

.counter-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--light-color));
    transition: width 1s ease;
}

.counter-box:hover .counter-bar {
    width: 100%;
}

/* ===== Improved Glass Effects ===== */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 80%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.glass:hover::before {
    opacity: 1;
}

/* Modern Button Styles */
.btn-modern {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 71,171, 0.3);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.btn-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 71, 171, 0.5);
    color: var(--light-color);
}

.btn-modern:hover::before {
    transform: translateX(100%);
}

/* Improved Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 2s ease-in-out 1s forwards;
    opacity: 0;
    cursor: pointer;
}

.scroll-text {
    color: var(--light-color);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 500;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light-color);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow:after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--light-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== Page Header ===== */
.page-header {
    height: 30vh;
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    color: var(--light-color);
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    z-index: 2;
    margin-top: 60px; /* To account for fixed header */
}

/* ===== About Page Specific ===== */
.about-mission {
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-color: var(--light-color);
}

.about-overview {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-grey);
}

.about-services {
    padding: 80px 0;
    background-color: var(--dark-blue);
    color: var(--light-color);
    overflow: hidden;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-text {
    padding-right: 30px;
}

.services-text .title {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: var(--light-color);
    position: relative;
}

.services-text .title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin-top: 15px;
}

.services-text .description {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 95%;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 25px;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.service-item:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-item i {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-item:hover i {
    transform: scale(1.2);
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--light-color);
    font-weight: 600;
}

.service-item p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.services-image {
    width: 100%;
    height: 100%;
    min-height: 300px;
    max-height: 350px;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative; 
margin-bottom: 100px;
    z-index: 1;
}

.services-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 184, 255, 0.3) 0%, rgba(0, 33, 71, 0) 50%);
    z-index: 2;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
}

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

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: var(--light-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--light-color);
}

@media (max-width: 992px) {
    .services-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-text {
        padding-right: 0;
    }

    .services-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .services-text .title {
        font-size: 2rem;
    }

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

    .services-image {
        height: 300px;
    }
}

/* ===== Services Page Specific ===== */
.service-block {
    padding: var(--spacing-xl) 0;
}

.service-block.alt-bg {
    background-color: var(--light-grey);
}

.service-block.video-bg,
.service-block.image-bg {
    position: relative;
    color: var(--light-color);
    overflow: hidden;
}

.background-video,
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-video:after,
.background-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 33, 71, 0.7);
    z-index: -1;
}

.background-video video,
.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.service-info {
    max-width: 800px;
}

/* ===== Portfolio Page Specific ===== */
.portfolio-item {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-color);
}

.portfolio-item:nth-child(odd) {
    background-color: var(--light-grey);
}

.portfolio-item-header {
    margin-bottom: var(--spacing-md);
}

.portfolio-item-description {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 900px;
    margin-bottom: var(--spacing-lg);
}

.portfolio-item-video,
.portfolio-item-image {
    height: 500px;
    overflow: hidden;
}

.portfolio-item-video video,
.portfolio-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Showreel Section ===== */
.showreel {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    margin-top: -20px; /* Reduce space at top */
    position: relative;
    background-color: var(--dark-color);
    overflow: hidden;
}

.showreel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 71, 171, 0.3) 0%, rgba(17, 17, 17, 1) 70%);
    z-index: 0;
}

.showreel-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.showreel-label {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.showreel-label span {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    line-height: 1;
    opacity: 0.9;
    display: inline-block;
    position: relative;
    white-space: nowrap;
}

.showreel-video {
    max-width: 900px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.video-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: none;
    object-fit: cover;
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    cursor: pointer;
    z-index: 2;
}

.video-container:hover .video-overlay {
    opacity: 0.6;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 71, 171, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 3;
}

.play-button i {
    color: var(--light-color);
    font-size: 2rem;
    margin-left: 5px; /* Slightly offset to center visually */
}

.video-container:hover .play-button {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 71, 171, 0.7);
}

.showreel-caption {
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--light-color);
    opacity: 0.8;
    font-style: italic;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .showreel-label span {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .showreel-label span {
        font-size: 2.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
    
    .showreel-caption {
        font-size: 0.9rem;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 4rem;
    }
    
    .highlight-text {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-header, .team-members {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .portfolio-info {
        padding-left: 0;
    }
    
    .stats-counters {
        flex-wrap: wrap;
    }
    
    .counter-box {
        flex-basis: 40%;
        margin-bottom: var(--spacing-md);
    }
    
    .about-services {
        padding: 50px 0;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .services-text {
        padding-right: 0;
        order: 1;
    }
    
    .services-image {
        order: 0;
        height: 300px;
    }
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background-color: rgba(0, 33, 71, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 80px 30px;
        transition: right var(--transition-medium);
        z-index: 99;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    nav ul li a {
        font-size: 1.2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 3rem;
    }
    
    .highlight-text {
        font-size: 2.5rem;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-links, .footer-links-right {
        justify-content: center;
        width: 100%;
    }
    
    .counter-box {
        flex-basis: 100%;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .highlight-text {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
    
    .portfolio-item-video, .team-video,
    .portfolio-item-image, .team-image {
        height: 300px;
    }
}

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

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Portfolio Grid ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Team Section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

/* ===== Footer Responsiveness ===== */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Footer Styles ===== */
.glass-footer {
    position: relative;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    background-color: var(--dark-blue);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 71, 171, 0.2) 0%, rgba(0, 33, 71, 1) 100%);
    z-index: -1;
}

.footer-content {
    color: var(--light-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.contact-info {
    max-width: 350px;
}

.contact-header {
    margin-bottom: var(--spacing-sm);
}

.connect {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.7;
}

.connect-us {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: -10px;
}

.phone {
    font-size: 1.5rem;
    font-weight: 600;
    margin: var(--spacing-sm) 0;
}

.email {
    font-size: 1rem;
    opacity: 0.8;
    position: relative;
    display: inline-block;
}

.hover-effect::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.hover-effect:hover::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: var(--spacing-md);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
}

.social-icon i {
    font-size: 1.2rem;
    color: var(--light-color);
    position: relative;
    z-index: 2;
}

.icon-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: left 0.3s ease;
    z-index: 1;
}

.social-icon:hover .icon-bg {
    left: 0;
}

.footer-logo {
    max-width: 200px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 184, 255, 0.3));
}

.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin-bottom: var(--spacing-md);
}

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

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

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

.copyright {
    text-align: right;
    font-size: 0.8rem;
    opacity: 0.7;
}

.made-with {
    margin-top: 5px;
}

.fa-heart {
    color: #e25555;
}

.pulse {
    animation: pulse-heart 1.5s infinite;
}

@keyframes pulse-heart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@media (max-width: 992px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-links {
        justify-content: center;
        margin-bottom: var(--spacing-sm);
    }
    
    .copyright {
        text-align: center;
    }
    
    .contact-info {
        max-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===== Team Section ===== */
/* ===== Simple Team Section ===== */
.simple-team-section {
    padding: 80px 0;
    background-color: #001428;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.simple-team-section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.simple-team-section h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #00b8ff;
    margin: 20px auto 0;
}

.simple-team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.simple-team-member {
    width: 320px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.simple-team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.simple-team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 0.5s ease;
}

.simple-team-member:hover img {
    transform: scale(1.05);
}

.simple-member-info {
    padding: 25px 20px;
    text-align: center;
    position: relative;
}

.simple-member-info:before {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #00b8ff;
    margin: 0 auto 15px;
}

.simple-member-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
}

.simple-position {
    color: #00b8ff;
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
    font-weight: 500;
}

.simple-member-info p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.simple-team-group {
    position: relative;
    max-width: 1000px;
    margin: 20px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.simple-team-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.simple-team-group img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.simple-team-group:hover img {
    transform: scale(1.02);
}

.simple-team-group p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    padding: 30px 20px 20px;
    margin: 0;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    z-index: 2;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .simple-team-section {
        padding: 60px 0;
    }
    
    .simple-team-section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .simple-team-section h2:after {
        margin: 15px auto 0;
        width: 60px;
    }
    
    .simple-team-members {
        flex-direction: column;
        align-items: center;
        margin-bottom: 40px;
        gap: 30px;
    }
    
    .simple-team-member {
        width: 90%;
        max-width: 350px;
    }
    
    .simple-team-member img {
        height: 250px;
    }
    
    .simple-team-group p {
        padding: 20px 15px 15px;
        font-size: 1.1rem;
    }
    
    .simple-team-group p {
        padding: 10px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    #portfolio-preview {
        margin-bottom: 350px !important;
    }
  
}

/* Eliminé el margin negativo que causaba superposición */
.services-image {
    margin-top: 0; /* Era -200px antes */
}

/* En móviles: imagen aparece DESPUÉS del texto */
@media (max-width: 768px) {
    .services-image {
        order: 2; /* Era order: 0 antes */
        height: 250px;
        margin-top: 0;
    }
}

