.rounded-icon {
    background-color: #444;
    /* dark gray circle */
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    font-size: 2rem;
    /* emoji size */
    transition: transform 0.3s ease;
}

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

body {
    background-color: #0d1117;
    color: #ffffff;
    overflow-x: hidden;
}

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

.red-hat-display-uniquifier {
    font-family: "Red Hat Display", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    padding: 0.5rem 1rem;
}

.cal-sans-regular {
    font-family: "Cal Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.wave-shape {
    background: linear-gradient(135deg, #1e3a8a, #3498db);
    height: 300px;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.curved-section {
    clip-path: ellipse(150% 100% at 50% 0%);
    background: linear-gradient(135deg, #1e3a8a, #3498db);
    height: 300px;
}

@keyframes easeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.pop-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pop-in-left.visible {
    animation: easeInLeft 0.8s ease-out forwards;
}

@keyframes easeInRight {
    0% {
        opacity: 0;
        transform: translateX(150px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.pop-in-rigth {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pop-in-rigth.visible {
    animation: easeInRight 0.8s ease-out forwards;
}

@keyframes popInCenter {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }

    80% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.pop-in {
    opacity: 0;
    transform: scale(0.5);
    transition: none;
    will-change: transform, opacity;
}

.pop-in.visible {
    animation: popInCenter 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    will-change: opacity;
}

.fade-in.visible {
    animation: fadeIn 1.1s ease-out forwards;
}

.rounded-bottom {
    border-radius: 10px;
    overflow: hidden;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    margin: 0 auto;
}

.section {
    padding: 60px 0;
}

.section-heading {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.bg-primary-light {
    background-color: #0d1117;
}

.bg-accent {
    background-color: #f7b330;
    color: #0a0a0a;
}

/* Hero Section */

.hero-section {
    position: relative;
    /* Ensure height is substantial, adjust as needed */
    min-height: 80vh;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center;
    overflow: hidden;
}

.video-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below content */
}

.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video covers the whole area without stretching */
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Between video and content */
    /* Dark gradient from top (or mostly transparent) to bottom (solid dark) */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        /* Lightly dark at the top for title */ rgba(0, 0, 0, 0.8) 100%
            /* Solid dark at the bottom for smooth transition */
    );
}

.hero-content {
    /* Keep existing styles */
    position: relative;
    z-index: 3;
    padding: 4rem 0;
}

.hero-content h1 {
    
    font-family: "Century Gothic", Tahoma, sans-serif; 
    
    font-weight: 300 !important; 
    
    letter-spacing: 0.5px;
    color: #e9e7ca;
}

.hero-content p {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button-modern {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid white; /* Simple white border */
    background: transparent; /* Transparent background */
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px; /* Slightly rounded corners */
}

.cta-button-modern:hover {
    background: white; /* Solid white background on hover */
    color: #000; /* Text turns black */
    border-color: white;
}

/* END Hero Section */

/* Services Section */
.service-detail-section .lead {
    color: #70c5ff; /* Vibrant Blue Accent */
}

.service-detail-section img {
    border-radius: 12px;
    box-shadow: 0 1px 10px rgba(255, 193, 7, 0.3);
}

.cta-button-modern-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #a5a296; /* Yellow Accent */
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.cta-button-modern-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 253, 249, 0.5);
}
/* END Services Section */

/* Products section */
.products-wrapper {
    padding: 40px 0;
}

.cta-button-product {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #ffc107; /* Your accent color */
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    /* Limit width to prevent it from spanning the whole column */
    max-width: 250px;
    text-align: center;
}

.cta-button-product:hover {
    background-color: #e0ac05; /* Slightly darker shade on hover */
}

.product-inner-card {
    /* Base de la tarjeta - incluye estilos de .product-card eliminada */
    border: 1px solid #ffc107;
    border-radius: 6px;
    
    /* MARGEN INFERIOR constante entre productos */
    margin-bottom: 50px; 
    
    /* GLOW SIEMPRE VISIBLE */
    box-shadow: 
        0 15px 30px rgba(255, 193, 7, 0.15), /* Sombra principal */
        0 0 10px rgba(255, 193, 7, 0.5);   /* El brillo */
    
    /* Configura la transición para suavizar el efecto hover (transform y screenshot) */
    transition: transform 0.3s ease-in-out;
}

/* El estado hover ahora solo maneja la animación de elevación */
.product-inner-card:hover {
    /* Eleva la tarjeta para feedback visual */
    transform: translateY(-5px); 
}

/* ... Resto del CSS sin cambios en las clases que siguen ... */

.product-image-container {
    padding: 0 !important;
    overflow: hidden;
}

@media (min-width: 992px) {
    .product-image-container {
        padding: 15px !important;
    }
}

.product-details {
    /* Ensure text is readable and aligned */
    padding-left: 40px !important;
}

.product-screenshot {
    /* Optional: Add a subtle border or shadow to frame the screenshot */
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

/* El zoom en la imagen al hacer hover sobre la tarjeta */
.product-inner-card:hover .product-screenshot {
    transform: scale(1.02);
}

.product-tag {
    font-size: 0.9em;
    font-weight: 700;
    color: #ffc107; /* Accent color */
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.product-separator {
    /* Clean separator line */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* END Products section */


/* Projects Section */
.client-projects-section {
    padding: 60px 0; /* Use a consistent vertical padding */
    color: white; /* Ensure text remains white/light */
}

.blue-gradient-bg {
    /* Applying your suggested gradient */
    background: linear-gradient(135deg, #1e3a8a, #3498db);
}

/* Update text and icon colors within this section if needed, 
    to ensure high contrast against the new blue background */
.client-projects-section .client-title {
    color: #fff; /* White title text */
}

.client-projects-section .project-bullets i {
    color: #ffc107; /* Keep the accent color for icons */
}
.project-showcase-card {
    /* Use a dark background (if site is light) or a light border (if site is dark) */
    background-color: #111111;
    border-radius: 12px;
    overflow: hidden; /* Ensures the visual aligns cleanly */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

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

.client-logo {
    width: 50px; /* Smaller, modern logo size */
    height: auto;
    border-radius: 50%; /* If circular logo */
}

.client-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.project-visual-wrapper {
    /* Apply a distinct background to the visual side, if needed */
    background-color: #000;
    padding: 0 !important;
}

.project-visual {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.project-bullets {
    margin-top: 15px;
    list-style: none;
    padding-left: 0;
    color: #ccc;
}

.project-bullets i {
    color: #ffc107; /* Your accent color */
}

/* Reusing the modern CTA styling from the previous section */
.cta-button-project {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #ffc107;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
/* END Projects Section */

/* Video Section */
.modern-cta-section {
    /* Use generous padding to make it a distinct block */
    padding: 80px 0;
    /* Optional: Add a subtle shadow to the whole section for depth */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Ensure all text inside is white/light for contrast against the dark background */
.modern-cta-section .text-white {
    color: white !important;
}

/* Styling for the Video Container itself */
.video-player-container {
    max-width: 900px;
}

.ratio.ratio-16x9 {
    /* The shadow and rounded corners now highlight the video iframe */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.video-player-container iframe {
    /* Ensure the iframe itself inherits the rounded corners */
    border-radius: 8px;
    border: none; /* Remove default iframe border */
}

.cta-button-modern-secondary-video {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.cta-button-modern-secondary-video:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}
/* END Video Section */

/* Info Sections */
.info-section {
    padding: 60px 0;
    /* Optional: Add a light background to separate it from surrounding dark sections */
    /* background-color: #111111; */
}

.info-section .section-heading {
    /* Ensure heading is clear and legible */
    font-size: 2.5rem;
}

/* Style for the new CTA Link */
.cta-button-link {
    display: inline-block;
    color: #ffc107; /* Use your accent color */
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease;
}

.cta-button-link:hover {
    color: #ffc107;
    border-bottom: 2px solid #ffc107; /* Highlight on hover */
}

/* Enhancing the "Why Choose CML" header */
.feature-points {
    margin-top: 30px;
}

.feature-points h4 {
    /* Use the accent color for these key points */
    color: #ffc107;
}
/* END Info Sections */
