/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

#hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: linear-gradient(to bottom, rgba(20, 20, 108, 0.3), rgba(255, 255, 255, 0.1));
    color: #ffffff;
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: linear-gradient(to bottom, rgba(20, 20, 108, 0.7), rgba(255, 255, 255, 0.3));
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

header .logo img {
    height: 75px; /* Adjust as needed */
    transition: transform 0.3s ease;
}

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

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; /* Ensure it's a flex container for desktop */
}

header nav ul li {
    display: inline;
    margin-left: 20px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 50px;
    position: relative;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    border: 1px solid rgba(255,255,255,0.3);
}

header nav ul li a:hover {
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.3));
    transform: translateY(-2px);
}

header nav ul li a.active {
    background: linear-gradient(45deg, #55b2e9, #4096d1);
    color: #ffffff;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    padding: 150px 0;
    color: #ffffff;
}

.hero-overlay {
    display: none; /* No longer needed */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: #55b2e9;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary:hover {
    background: #4096d1;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* About Us Section */
.about-us {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05);
}

.about-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white overlay */
    z-index: -1;
}

.about-us .container {
    position: relative;
    z-index: 1;
}

.about-us h2 {
    font-size: 3em;
    margin-bottom: 40px;
    color: #14146c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-us p {
    font-size: 1.2em;
    line-height: 2;
    max-width: 900px;
    margin: 0 auto 25px;
    color: #555;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f4f4f4;
    text-align: center;
}

.services h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #14146c;
    font-weight: 600;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-item-horizontal {
    display: flex;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    align-items: center;
}

.service-item-horizontal:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.service-item-horizontal .service-image {
    flex: 1;
}

.service-item-horizontal .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
}

.service-item-horizontal .service-content {
    flex: 2;
    padding: 40px;
    text-align: left;
}

.service-item-horizontal.align-right {
    flex-direction: row-reverse;
}

.service-item-horizontal.align-right .service-image img {
    border-radius: 0 15px 15px 0;
}

.service-item-horizontal.align-right .service-content {
    text-align: right;
}

.service-item-horizontal h3 {
    color: #14146c;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.8em;
}

.service-item-horizontal p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f4f4f4;
    text-align: center;
}

.contact h2 {
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #14146c;
    font-weight: 600;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info .info-item i {
    font-size: 1.5em;
    color: #55b2e9;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-info .info-item p {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.contact-form {
    flex: 2;
    min-width: 300px;
    max-width: 600px;
    margin: 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1em;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #55b2e9;
    box-shadow: 0 0 10px rgba(85, 178, 233, 0.5);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background: #55b2e9;
    color: #ffffff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-form button:hover {
    background: #4096d1;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background: #14146c;
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    margin: 0;
    color: #ffffff;
    margin-bottom: 10px;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #55b2e9;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 108, 0.95); /* Dark blue with transparency */
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-banner p {
    margin: 0;
    flex-grow: 1;
    padding-right: 20px;
}

.cookie-banner a {
    color: #55b2e9;
    text-decoration: underline;
}

.cookie-banner button {
    background-color: #55b2e9;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
    background-color: #4096d1;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 3px 3px 6px #999;
}

.whatsapp-float i {
    margin-top: 0;
}

/* Floating Social Links */
.social-float {
    position: fixed;
    bottom: 120px; /* Adjust to be above WhatsApp button */
    right: 40px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-float a {
    background-color: rgba(20, 20, 108, 0.8);
    color: #FFF;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 1px 1px 2px #999;
    transition: all 0.3s ease;
}

.social-float a:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 4px #999;
}

.social-float a.fa-facebook-f {
    background-color: #3b5998;
}

.social-float a.fa-youtube {
    background-color: #c4302b;
}

.social-float a.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* News Banner */
.news-banner {
    position: fixed;
    bottom: 20px;
    left: 0; /* Position at left edge */
    width: 300px;
    background-color: rgba(20, 20, 108, 0.95); /* Dark blue with transparency */
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    transition: transform 0.5s ease-out, visibility 0.5s ease-out; /* Animate transform and visibility */
    display: flex; /* Ensure it's a flex container */
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateX(-100%) !important; /* Hidden by default, force it */
    visibility: hidden !important; /* Hidden by default, force it */
}

.news-banner.show {
    transform: translateX(20px) !important; /* Show with offset from left, force it */
    visibility: visible !important; /* Show, force it */
}

.news-banner .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 2001; /* Ensure it's above the banner */
    display: block; /* Ensure the button is always displayed */
}

.news-banner p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.news-banner .neon-text {
    color: #55b2e9; /* Celeste color */
    text-shadow: 
        0 0 5px #55b2e9,
        0 0 10px #55b2e9,
        0 0 20px #55b2e9,
        0 0 40px #55b2e9,
        0 0 80px #55b2e9;
}

.news-banner .btn-banner {
    display: inline-block;
    background-color: #55b2e9;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.news-banner .btn-banner:hover {
    background-color: #4096d1;
}

/* Extra small devices (phones, 859px and down) */
@media only screen and (max-width: 859px) {
    .container {
        width: 95%;
        padding: 10px 0;
    }

    header .container {
        flex-direction: row;
        text-align: center;
    }

    header nav {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(20, 20, 108, 0.98); /* Slightly less transparent */
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    header nav.active {
        display: flex; /* Show mobile nav */
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        margin: 10px 0;
    }

    header nav ul li a {
        display: block;
        text-align: center;
        padding: 10px 0;
        background: none; /* Remove button background */
        border: none;
        color: #ffffff; /* Ensure text color is white */
    }

    .menu-toggle {
        display: flex; /* Show hamburger icon */
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .about-us {
        padding: 60px 0;
    }

    .about-us h2 {
        font-size: 2em;
    }

    .about-us p {
        font-size: 0.9em;
    }

    .services {
        padding: 60px 0;
    }

    .services h2 {
        font-size: 2em;
    }

    .service-grid {
        grid-template-columns: 1fr; /* Single column for phones */
        gap: 20px;
    }

    .contact {
        padding: 60px 0;
    }

    .contact h2 {
        font-size: 2em;
    }

    .contact-content {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info, .contact-form {
        min-width: unset;
        width: 100%;
        padding: 20px;
        box-sizing: border-box; /* Ensure padding is included in width */
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .social-float {
        bottom: 90px;
        right: 20px;
        gap: 10px;
    }

    .social-float a {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .news-banner {
        width: 100% !important; /* Force full width */
        left: 0 !important;
        right: 0 !important;
        bottom: 10px;
        transform: translateX(0);
        padding: 15px 20px; /* Add horizontal padding */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .news-banner.show {
        transform: translateX(0) !important; /* Show from left edge */
    }

    .cookie-banner {
        padding: 10px 15px;
        font-size: 0.85em; /* Slightly smaller font */
    }

    .cookie-banner button {
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

/* Small devices (portrait tablets and large phones, 860px to 1024px) */
@media only screen and (min-width: 860px) and (max-width: 1024px) {
    header nav {
        display: flex; /* Show desktop nav */
    }

    .menu-toggle {
        display: none; /* Hide hamburger icon */
    }

    .container {
        width: 90%;
    }

    header .logo img {
        height: 70px;
    }

    header nav ul li {
        margin-left: 15px;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .about-us h2, .services h2, .contact h2 {
        font-size: 2.2em;
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for tablets */
        gap: 30px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info, .contact-form {
        min-width: unset;
        width: 100%;
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .whatsapp-float {
        bottom: 30px;
        right: 30px;
    }

    .social-float {
        bottom: 100px;
        right: 30px;
    }

    .news-banner {
        width: 300px;
        left: 20px;
        bottom: 20px;
    }

    .news-banner.show {
        left: 20px;
    }

    .cookie-banner {
        padding: 12px 18px;
        font-size: 0.95em;
    }
}

/* Large devices (laptops/desktops, 1025px and up) */
@media only screen and (min-width: 1025px) {
    header nav {
        display: flex; /* Ensure desktop nav is visible */
    }

    .menu-toggle {
        display: none; /* Ensure hamburger is hidden */
    }

    .service-grid {
        grid-template-columns: repeat(5, 1fr); /* Five columns for large screens */
    }
}

