:root {
    --primary: #012e5f;
    --primary-mid: #3b6ca9;
    --primary-dark: #001d3a;
    --primary-hover: #d9e5f5;
    --secondary: #26a69a;
    --positive: #21ba45;
    --warning: #f2bb13;
    --negative: #c1440e;
    --grey-1: #f5f5f5;
    --grey-5: #9e9e9e;
    --font-color: #1d2b36;
    --shadow: rgba(0, 0, 0, 0.05);
    --light-shadow: rgba(11, 61, 122, 0.03);
}

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

body {
    font-family: 'IBM Plex Sans', sans-serif;
    line-height: 1.6;
    color: var(--font-color);
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-cta {
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--primary-mid);
    transform: translateY(-2px);
    color: white;
}

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

.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    background: var(--secondary);
    color: white;
    padding: 18px 36px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(38, 166, 154, 0.3);
}

.hero-cta:hover {
    background: #229a8f;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(38, 166, 154, 0.4);
    color: white;
}

.hero-cta i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background: var(--grey-1);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    margin-bottom: 60px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.problem-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 3rem;
    color: var(--negative);
    margin-bottom: 20px;
}

.problem-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Solution Section */
.solution {
    padding: 100px 0;
    background: white;
}

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

.solution-text h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.solution-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.solution-features {
    list-style: none;
    margin-top: 30px;
}

.solution-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: left;
}

.solution-features i {
    color: var(--positive);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Gallery Styles */
.gallery-container {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 400px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item.main {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(1, 46, 95, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    background: rgba(1, 46, 95, 0.7);
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

.gallery-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: modalFadeIn 0.3s ease-out;
}

.modal-image {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--secondary);
}

.modal-prev {
    left: -70px;
}

.modal-next {
    right: -70px;
}

.modal-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* Mobile navigation arrows */
.modal-nav-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    top: unset;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.modal-nav-mobile:active {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(0.95);
}

.modal-prev-mobile {
    left: 20px;
}

.modal-next-mobile {
    right: 20px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: var(--grey-1);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--grey-5);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 20px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(1, 46, 95, 0.3);
}

.cta-button:hover {
    background: var(--primary-mid);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(1, 46, 95, 0.4);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

/* Animations */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Responsive */
@media (max-width: 900px) {
    .hero-content,
    .solution-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-content {
        padding: 10px 0;
    }

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

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    /* Gallery mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        gap: 10px;
    }

    .gallery-item.main {
        grid-row: 1;
    }

    .gallery-item {
        height: 200px;
    }

    /* Modal mobile */
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 0;
    }

    .modal-image {
        max-height: calc(100vh - 80px);
        max-width: 95vw;
        width: auto;
        height: auto;
    }

    .modal-close {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10001;
        background: rgba(0, 0, 0, 0.7);
    }

    /* Hide desktop arrows on mobile */
    .modal-nav {
        display: none;
    }

    /* Show mobile arrows */
    .modal-nav-mobile {
        display: flex;
    }

    .modal-counter {
        bottom: 30px;
        background: rgba(0, 0, 0, 0.7);
        position: fixed;
        left: 50%;
        transform: translateX(-50%);
    }
}