html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Source Sans 3', sans-serif;
}

p {
    font-size: 19px !important;
}

.badge {
    font-size: 14px;
}

.container span:not(.badge):not(.spinner-border):not(.carousel-control-prev-icon):not(.carousel-control-next-icon):not(.visually-hidden):not(.navbar-toggler-icon) {
    font-size: 18px;
}

.video-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    /* Prevent it from getting too short on mobile landscape */
    overflow: hidden;
}

.video-section video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 1rem;
}

.video-title {
    font-size: clamp(2rem, 5vw, 4rem);
    /* Responsive font size */
    font-weight: 700;
    color: white;
}

.video-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Sections */
.bg-dkblue {
    background-color: #1c2129;
    /* Height is now auto via padding */
}

.bg-liblue {
    background-color: #222831;
}

.bg-dkwhite {
    background-color: #ecebe9;
}

/* Cards */
.cards-container {
    margin-top: -100px;
    /* Pull up to overlap video/header if desired, or adjust */
    position: relative;
    z-index: 10;
}

/* If we don't want the overlap, remove margin-top above */

.card-custom {
    transition: transform 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
}

.card-img-wrapper {
    width: 100%;
    aspect-ratio: 2/3;
    /* Maintain vertical aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.5);
}

.card-img-wrapper img:hover {
    filter: brightness(1);
}

.card-custom:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-img-wrapper .card-overlay-text {
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-top-orange {
    background-color: #ffa5005c;
}

.card-top-blue {
    background-color: #0042a578;
}

.card-top-green {
    background-color: #054f0078;
}

/* Large Image Section */
.img-wrapper-large {
    width: 100%;
    aspect-ratio: 4/3;
    /* or whatever fits the design */
    overflow: hidden;
    border-radius: 16px;
}

.img-wrapper-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Utilities */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.f-card-1 {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* background com blur */
.f-card-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/public/img/f-1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: -70px;
    filter: blur(12px) brightness(0.5);
    transform: scale(1.1);
    /* evita bordas cortadas */
    z-index: -1;
}


.n-card-1 {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* background com blur */
.n-card-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/public/img/n-1.jpg");
    background-size: cover;
    background-position: top;
    background-attachment: -70px;
    background-position-y: -250px;
    filter: blur(12px);
    transform: scale(1.1);
    /* evita bordas cortadas */
    z-index: -1;
}


/* Minimalist Utilities */
.fw-light {
    font-weight: 300 !important;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.img-wrapper-minimal {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.img-wrapper-minimal:hover {
    transform: translateY(-10px);
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mega Menu Styles */
.mega-menu {
    background-color: #1c2129;
    top: 100%;
    left: 0;
    margin-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mega-menu a:hover {
    color: #ffffff !important;
    /* Warning yellow on hover */
    transition: color 0.2s ease;
}

.mega-menu h6:hover {
    color: #ffffff !important;
    /* Warning yellow on hover */
    transition: color 0.2s ease;
}

.tracking-wider {
    letter-spacing: 0.1em;
}

/* Ensure navbar items are relative for normal dropdowns, but static for mega menu */
.navbar-nav .nav-item.position-static {
    position: static !important;
}

.navbar {
    background-color: #ffffff24;
}

.navbar .nav-link {
    font-size: 18px;
}

.card-overlay-text {
    background-color: #ffffff42;
    border-radius: 40px;
    padding: 15px;
}

/* Mobile adjustments for mega menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .mega-menu {
        background-color: #1c2129;
        margin-top: 1rem !important;
        border-radius: 8px;
    }

    .mega-menu .col-lg-4,
    .mega-menu .col-lg-2 {
        margin-top: 2rem;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    p {
        font-size: 16px !important;
    }

    .cards-container {
        margin-top: 0;
    }

    .video-title {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2.2rem !important;
    }

    .display-4 {
        font-size: 1.8rem !important;
    }

    .display-5 {
        font-size: 1.6rem !important;
    }

    /* Hero sections - reduce height on mobile */
    .experiences-hero,
    .about-hero {
        min-height: 35vh !important;
        padding-top: 80px;
    }

    /* Experience cards - fix image heights on mobile */
    .card .row .col-lg-5 {
        min-height: 250px !important;
    }

    /* Founder image container */
    .img-wrapper-minimal {
        min-height: 350px !important;
    }

    /* Ensure footer is readable */
    footer .list-inline-item {
        display: block;
        margin: 0.5rem 0 !important;
    }

    /* Fix padding on mobile cards */
    .card .p-5 {
        padding: 1.5rem !important;
    }

    /* Background card overlays */
    .card-overlay-text {
        border-radius: 20px;
        padding: 10px;
    }
}

/* Small phone adjustments */
@media (max-width: 576px) {
    p {
        font-size: 15px !important;
    }

    .container span:not(.badge):not(.spinner-border) {
        font-size: 16px;
    }

    .display-2 {
        font-size: 1.8rem !important;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    .display-5 {
        font-size: 1.3rem !important;
    }

    /* Fix hero padding with navbar */
    .experiences-hero,
    .about-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    /* Badges in experiences page */
    .badge.rounded-pill {
        font-size: 12px !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Fix horizontal scrolling */
    .container-fluid {
        overflow-x: hidden;
    }

    /* Buttons - bigger touch targets on mobile */
    .btn {
        min-height: 44px;
    }

    /* Reduce section padding on mobile */
    section .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    /* Fix CTA sections */
    .shadow-lg {
        padding: 1.5rem !important;
    }
}

/* reCAPTCHA Badge - Hidden */
/* Badge is hidden, privacy notice remains visible in the form */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Hover Zoom Effect */
.hover-zoom {
    transition: transform 0.3s ease;
    cursor: pointer;
}

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