:root {
    --primary-blue: #1a4f7c;
    --accent-orange: #e67e22;
    --text-white: #ffffff;
    --text-dark: #333333;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: var(--text-dark);
    line-height: 1.6;
}

section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1200px;
    height: 4px;
    background-color: var(--accent-orange);
}

/* Header Styles */
.main-header {
    display: flex;
    align-items: stretch;
    background-color: var(--bg-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 100px;
}

.brand-container {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    flex-shrink: 0;
    background-color: var(--bg-white);
}

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

.main-logo {
    height: 70px;
    width: auto;
    margin-right: 1.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    letter-spacing: 1px;
    margin-bottom: 0;
}

.brand-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: capitalize;
}

/* Nav Section (Blue Bar) */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-blue);
    flex-grow: 1;
    padding: 0 2rem;
    color: var(--text-white);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links li a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

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

.nav-links li a:hover {
    color: var(--accent-orange);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: var(--text-white);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
    background-color: var(--accent-orange);
    color: var(--text-white);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin: auto 2rem;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 10px;
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links li a {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        background-color: var(--primary-blue);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        padding: 4rem 2rem;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .social-links {
        margin-top: 2rem;
    }

    /* Animation for Hamburger */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--text-white);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--text-white);
    }
}

@media (max-width: 600px) {
    .brand-container {
        padding: 1rem;
    }
    .main-logo {
        height: 50px;
        margin-right: 1rem;
    }
    .brand-name {
        font-size: 1.2rem;
    }
    .brand-tagline {
        font-size: 0.7rem;
    }
    .mobile-menu-toggle {
        margin: auto 1rem;
    }
}

/* Hero Section Styles */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    background-image: url('img/01_inicio_empaques.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-logo-container {
    position: relative;
    z-index: 2;
    max-width: 200px;
}

.hero-white-logo {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-white);
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Responsive Hero */
@media (max-width: 1024px) {
    .hero {
        padding: 3rem;
        height: 60vh;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 2rem;
        height: 50vh;
        min-height: 400px;
        justify-content: center;
        gap: 2rem;
    }
    .hero-logo-container {
        max-width: 150px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem;
        height: 45vh;
    }
    .hero-logo-container {
        max-width: 120px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Solutions Slider Section */
.solutions-slider-section {
    padding: 6rem 0;
    background-color: #fff;
    overflow: hidden;
}

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

.solutions-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.solutions-header {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 3rem;
}

.title-decoration {
    display: flex;
    flex-shrink: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50vw - 50%);
}

.title-decoration .blue-square {
    width: 55px;
    background-color: var(--primary-blue);
}

.title-decoration .orange-square {
    width: 18px;
    background-color: var(--accent-orange);
}

.solutions-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 0;
}

.solutions-description p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Slider Styles */
.slider-wrapper {
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 1.5rem;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

/* Slider Nav */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.slider-nav:hover {
    background: var(--primary-blue);
    color: #fff;
}

.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Category Buttons */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cat-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    background-color: var(--accent-orange);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.cat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.cat-btn.active {
    background-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(26, 79, 124, 0.3);
}

/* Responsive Solutions */
@media (max-width: 1100px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .solutions-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .solutions-slider-section {
        padding: 4rem 1rem;
    }
    .solutions-title {
        font-size: 1.8rem;
    }
    .cat-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        min-width: 120px;
    }
}


/* About Us Section */
.about-us-section {
    padding: 6rem 2rem;
    background-color: var(--bg-white);
}

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

.video-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1;
    margin-bottom: 2rem;
    background-color: #000;
}

.video-container video {
    width: 100%;
    display: block;
    max-height: 70vh;
    object-fit: cover;
}

.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
    grid-column: 1 / -1;
}

.mvv-col {
    padding: 0 1rem;
}

.border-col {
    border-left: 2px solid var(--accent-orange);
}

.mvv-col h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.mvv-col p {
    color: var(--primary-blue);
    line-height: 1.6;
    font-size: 1rem;
}

.simple-values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-values-list li {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Responsive About Us */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .video-container video {
        max-height: 50vh;
    }
    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .border-col {
        border-left: none;
        border-top: 2px solid var(--accent-orange);
        padding-top: 2rem;
        padding-left: 0;
    }
}

@media (max-width: 600px) {
    .about-us-section {
        padding: 4rem 1rem;
    }
}


/* Featured Products Styles */
.featured-products {
    padding: 5rem 2rem;
    background-color: #fcfcfc;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
}



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

.product-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    aspect-ratio: 16 / 7;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.product-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-name {
    color: var(--text-white);
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.product-name span {
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
}

/* Hover Effects */
.product-card:hover .product-bg {
    transform: scale(1.05);
}

.product-card:hover .product-overlay {
    background-color: rgba(26, 79, 124, 0.6); /* Brand blue overlay */
}

/* Responsive Grid */
@media (max-width: 992px) {
    .products-grid {
        gap: 1.5rem;
    }
    .product-name {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 2rem;
    }
    .product-card {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .featured-products {
        padding: 3rem 1rem;
    }
    .product-name {
        font-size: 1.2rem;
    }
}

/* Product List Section (Catalogo) */
.product-list-section {
    padding: 6rem 2rem;
    background-color: #fff;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.product-row {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.product-image {
    width: 40%;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.product-info {
    width: 60%;
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--accent-orange);
}

.product-info-col {
    flex: 1;
}

.product-title {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
}

.product-feature-title {
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.product-features, .product-subtypes {
    list-style: none;
    padding: 0;
    color: var(--primary-blue);
    margin: 0;
}

.product-features li, .product-subtypes li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.product-subtypes {
    padding-left: 1.5rem;
}

.product-desc {
    color: var(--primary-blue);
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-highlight-box {
    background-color: var(--accent-orange);
    color: white;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
}

.product-highlight-box h5 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.product-highlight-box p {
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Product List */
@media (max-width: 992px) {
    .product-row {
        flex-direction: column;
        gap: 2rem;
    }
    .product-image {
        width: 100%;
    }
    .product-info {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .product-info {
        flex-direction: column;
        gap: 2rem;
    }
    .product-list-section {
        padding: 4rem 1rem;
    }
}

/* Aplicaciones Section */
.applications-section {
    padding: 6rem 2rem;
    background-color: #fcfcfc;
}

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

.app-card {
    display: flex;
    flex-direction: column;
}

.app-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-overlay h3 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin: 0;
}

.app-content {
    flex: 1;
}

.app-subtitle {
    color: var(--accent-orange);
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.app-content p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Applications */
@media (max-width: 992px) {
    .app-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
    .applications-section {
        padding: 4rem 1rem;
    }
}

/* Tech Section */
.tech-section {
    padding: 6rem 2rem;
    background-color: var(--bg-white);
}

.tech-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.tech-info {
    display: flex;
    flex-direction: column;
}

.tech-subtitle {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.tech-list li {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.tech-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

.orange-bullets li {
    color: #555;
}

.orange-bullets li::before {
    color: var(--accent-orange);
}

.tech-highlight-box {
    background-color: var(--accent-orange);
    padding: 2.5rem;
}

.tech-highlight-box h4 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.white-bullets li {
    color: white;
}

.white-bullets li::before {
    color: white;
}

/* Responsive Tech */
@media (max-width: 992px) {
    .tech-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
@media (max-width: 600px) {
    .tech-section {
        padding: 4rem 1rem;
    }
    .tech-highlight-box {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 6rem 2rem;
    background-color: var(--bg-white);
}

.map-container {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-item i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item p {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
}

.contact-link {
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .contact-section {
        padding: 4rem 1rem;
    }
}

/* Footer Styles */
.main-footer {
    background-color: var(--primary-blue);
    padding: 4rem 2rem;
    color: white;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    height: 100px;
    margin-bottom: 1rem;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.footer-brand-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.footer-social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-item:hover {
    opacity: 0.8;
}

.footer-icon-wrapper {
    width: 35px;
    height: 35px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.footer-social-text {
    font-size: 1rem;
    font-weight: 600;
}

.privacy-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    align-self: flex-end;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-social-links {
        align-items: center;
    }
    
    .privacy-link {
        align-self: center;
    }
}

/* Privacy Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--accent-orange);
    background-color: var(--bg-white);
    border-radius: 10px 10px 0 0;
}

.modal-logo {
    height: 50px;
    width: auto;
}

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

.modal-close:hover {
    color: var(--accent-orange);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    color: var(--text-dark);
}

.modal-body h3, .modal-body h4 {
    color: var(--primary-blue);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p, .modal-body ul, .modal-body ol {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-body ul, .modal-body ol {
    padding-left: 2rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-logo {
        height: 40px;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

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

.slide-up {
    transform: translateY(40px);
}

.slide-left {
    transform: translateX(-40px);
}

.slide-right {
    transform: translateX(40px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0);
}

/* Optional Staggered Delays for grid items */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

