/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    /* Light text */
    background-color: #1a202c;
    /* Dark background */
    padding-top: 80px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Fixed height as requested */
    z-index: 9999;
    background: #ffffff;
    /* Solid white */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    /* Fill navbar height */
    margin: 0 auto;
    padding: 0 20px;
    /* Remove vertical padding, rely on flex centering */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar Logo */
.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* Removed background: white to fix overflow artifact */
}

/* Specific override for the icon logo */
.nav-logo .logo-icon {
    height: 96px;
    /* 2x larger */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    gap: 5px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: #dc2626;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-login {
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #f1f5f9;
    color: #dc2626;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1877f2;
    /* Facebook Blue */
    background: #e7f5ff;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-2px);
    filter: brightness(0.95);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    /* Compact Hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 80px;
    /* Small hero logo */
    height: 80px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #dc2626;
    padding: 18px 45px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Demo Video / Imgur Embed */
.demo {
    padding: 60px 20px;
    background: #2d3748;
    /* Darker grey */
    text-align: center;
}

.imgur-container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Features */
.features {
    padding: 20px 20px;
    /* Further reduced from 40px */
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f7fafc;
    /* White text */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Slightly narrower columns */
    gap: 15px;
    /* Reduced from 20px */
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s;
    background: #2d3748;
    /* Dark card */
    border: 1px solid #4a5568;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    /* Reduced from 3rem */
    margin-bottom: 10px;
    /* Reduced from 20px */
    height: 40px;
    /* Reduced from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    /* Add brand color to icons */
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #f7fafc;
    /* White text */
}

.feature p {
    color: #a0aec0;
    /* Grey text */
    font-size: 0.9rem;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    color: #dc2626;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: #dc2626;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 10px;
    }

    .btn-login {
        display: none;
    }
}

/* Google Translate Customization - GLOBAL */
/* Hide the top banner frame - Targeting all possible iframe selectors */
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Hide the injected body styling */
body {
    top: 0px !important;
    position: static !important;
}

/* Hide the skiptranslate div ONLY if it is the banner (first child usually) */
/* We cannot safely use body > .skiptranslate because it hides the dropdown. 
   Instead, we rely on iframe hiding and body positioning override. */
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #4a5568 !important;
    margin: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    border-left: none !important;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Features */
.features {
    padding: 20px 20px;
    /* Further reduced from 40px */
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #f7fafc;
    /* White text */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Slightly narrower columns */
    gap: 15px;
    /* Reduced from 20px */
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    transition: transform 0.2s;
    background: #2d3748;
    /* Dark card */
    border: 1px solid #4a5568;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    /* Reduced from 3rem */
    margin-bottom: 10px;
    /* Reduced from 20px */
    height: 40px;
    /* Reduced from 60px */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    /* Add brand color to icons */
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #f7fafc;
    /* White text */
}

.feature p {
    color: #a0aec0;
    /* Grey text */
    font-size: 0.9rem;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #dc2626 0%, #1e40af 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    color: #dc2626;
    padding: 15px 35px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
}

.download-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background: #2d3748;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

footer a {
    color: #dc2626;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .features h2 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 10px;
    }

    .btn-login {
        display: none;
    }
}

/* Google Translate Customization - GLOBAL */
/* Hide the top banner frame - Targeting all possible iframe selectors */
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
}

/* Hide the injected body styling */
body {
    top: 0px !important;
    position: static !important;
}

/* Hide the skiptranslate div ONLY if it is the banner (first child usually) */
/* We cannot safely use body > .skiptranslate because it hides the dropdown. 
   Instead, we rely on iframe hiding and body positioning override. */
.goog-te-gadget-simple {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
}

.goog-te-gadget-simple .goog-te-menu-value {
    color: #4a5568 !important;
    margin: 0 !important;
}

.goog-te-gadget-simple .goog-te-menu-value span {
    border-left: none !important;
    color: #4a5568 !important;
    font-weight: 600 !important;
}

.goog-te-gadget-simple .goog-te-menu-value img {
    display: none !important;
    /* Hide Google Icon */
}

/* ------------------------------------------------------------
   Feature Carousel
------------------------------------------------------------ */
.carousel-section {
    padding: 20px 20px;
    background: #f8fafc;
    text-align: center;
    overflow: hidden;
}

.carousel-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #1a202c;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    height: 480px;
    /* Fixed height to prevent jumping */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
    transform: scale(0.95);
    display: flex;
    flex-direction: column;
    /* Stack info and image */
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    /* Click through inactive slides */
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    pointer-events: all;
}

.slide-info {
    margin-bottom: 20px;
}

.slide-icon {
    font-size: 3rem;
    color: #3182ce;
    margin-bottom: 10px;
}

.slide-icon-img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.slide-info h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 5px;
}

.slide-info p {
    color: #718096;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.zoom-container {
    display: inline-block;
    /* Wraps image closely */
    overflow: hidden;
    /* Clips the zoomed image */
    border-radius: 12px;
    /* Matches image radius */
    cursor: zoom-in;
    position: relative;
    max-width: 100%;
}

.slide-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease-out;
    /* Smooth zoom movement */
    display: block;
    /* Removes bottom spacing */
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 55%;
    /* Center roughly around image */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #2d3748;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: -60px;
}

.next {
    right: -60px;
}

/* Dots */
.carousel-dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #cbd5e0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: #3182ce;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: 550px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .carousel-slide h3 {
        font-size: 1.25rem;
    }

    .slide-img {
        max-height: 300px;
    }

    .carousel-section {
        padding: 40px 10px;
    }
}