/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 29, 41, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 130px;
}

.language-dropdown-btn:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: var(--accent-blue);
}

.language-dropdown-btn .icon {
    font-size: 1.1rem;
}

.language-dropdown-btn .dropdown-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.language-dropdown-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--secondary-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    min-width: 180px;
    z-index: 1001;
}

.language-dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.language-option:hover {
    background: rgba(74, 144, 226, 0.1);
}

.language-option .flag {
    font-size: 1.2rem;
}

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2a2e3d 100%);
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/background.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 250px;
    height: 150px;
    object-fit: contain;
}

.landing-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 12px;
    min-width: 140px;
    border: 1px solid rgba(74, 144, 226, 0.2);
    backdrop-filter: blur(10px);
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content */
.landing-main {
    padding: 4rem 20px;
    background: var(--primary-dark);
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--secondary-dark);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.feature-card-header {
    padding: 1.5rem 1.5rem 1rem;
    background: rgba(74, 144, 226, 0.05);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-bluetwo) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.feature-image {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(26, 29, 41, 0.9) 100%);
}

.feature-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

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

.feature-list li {
    padding: 8px 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li:before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #252836 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid var(--border);
    margin-top: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 220px;
    justify-content: center;
}

.cta-button.btn-primary {
    background: linear-gradient(135deg, var(--theyellow) 0%, #f5b642 100%);
    color: var(--primary-dark);
}

.cta-button.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(245, 201, 100, 0.4);
}

.cta-button.btn-secondary {
    background: rgba(74, 144, 226, 0.1);
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.cta-button.btn-secondary:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
    font-size: 0.95rem;
}

.benefit i {
    font-size: 1.1rem;
}

/* Footer */
.landing-footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 20px 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo-img {
    width: 200px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.footer-column h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-3px);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Tablet Landscape (821px to 1024px) */
@media (min-width: 821px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-image {
        height: 300px;
    }

    .landing-hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-item {
        min-width: 120px;
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-buttons {
        flex-direction: row;
    }

    .cta-button {
        min-width: 200px;
    }
}

/* Tablet Portrait (601px to 820px) */
@media (min-width: 601px) and (max-width: 820px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-image {
        height: 280px;
    }

    .feature-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    .landing-hero {
        padding: 80px 20px 40px;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 110px;
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile (up to 600px) */
@media (max-width: 600px) {
    .language-selector {
        top: 10px;
        right: 10px;
    }

    .language-dropdown-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 110px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-image {
        height: 250px;
    }

    .feature-card-header {
        flex-direction: row;
        align-items: center;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .landing-hero {
        padding: 70px 15px 30px;
    }

    .hero-logo {
        width: 200px;
        height: 120px;
    }

    .landing-hero h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 250px;
        padding: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .landing-main {
        padding: 2rem 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .cta-section {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .cta-content > p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-column h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Special iPad Pro (1024px) portrait optimization */
@media (width: 1024px) and (height: 1366px) and (orientation: portrait) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .feature-image {
        height: 320px;
    }

    .landing-hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .cta-buttons {
        flex-direction: row;
    }

    .cta-button {
        min-width: 220px;
    }
}

/* Special iPad Pro (1366px) landscape optimization */
@media (width: 1366px) and (height: 1024px) and (orientation: landscape) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .feature-image {
        height: 380px;
    }

    .landing-hero h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        gap: 4rem;
    }

    .stat-item {
        min-width: 160px;
        padding: 2rem;
    }

    .stat-value {
        font-size: 2.8rem;
    }
}

/* Ensure proper text contrast on very small screens */
@media (max-width: 400px) {
    .landing-hero h1 {
        font-size: 1.4rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .feature-list li {
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 1.4rem;
    }
}