/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0097B2;
    --primary-dark: #007A92;
    --primary-light: #33AAC2;
    --secondary-color: #2E7D32;
    --accent-color: #FFB300;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #FAFAFA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    height: 70px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 30px; /* control logo size here instead */
    width: auto; /* maintains aspect ratio */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.mobile-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 10px;
}

.mobile-menu.active {
    display: flex;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5f7 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(45deg, var(--primary-color) 0, var(--primary-color) 1px, transparent 0, transparent 50%),
        repeating-linear-gradient(-45deg, var(--primary-color) 0, var(--primary-color) 1px, transparent 0, transparent 50%);
    background-size: 30px 30px;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 151, 178, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 151, 178, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* Phone Mockup */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 20px;
}

.preview-header {
    margin-bottom: 20px;
}

.preview-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.task-icon {
    font-size: 28px;
}

.task-name {
    font-weight: 600;
    color: var(--text-dark);
}

.task-time {
    font-size: 14px;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

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

.feature-card {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Ranks Section */
.ranks {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5f7 100%);
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.rank-card {
    padding: 25px;
    background: white;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.rank-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.rank-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.rank-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.rank-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Download Section */
.download {
    padding: 80px 0;
    background: white;
}

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

.download-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.download-text p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--text-dark);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.store-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.store-text {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}

.store-name {
    font-size: 18px;
    font-weight: 600;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .phone-mockup {
        display: none;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-buttons {
        justify-content: center;
    }

    .download-features {
        align-items: center;
    }

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
        width: 100%;
    }

    .store-button {
        width: 100%;
        justify-content: center;
    }
}

/* Hero Language Selector Styles */
.hero-language-selector {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 999;
    max-width: 250px;
}

.hero-language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 151, 178, 0.2);
    border-radius: 12px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 120px;
    justify-content: space-between;
}

.hero-language-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 151, 178, 0.25);
}

.hero-language-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 151, 178, 0.2);
}

.hero-language-btn .flag {
    font-size: 22px;
    line-height: 1;
}

.hero-language-btn svg {
    stroke: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hero-language-btn:hover svg {
    stroke: white;
}

.hero-language-btn[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.hero-language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border: 1px solid rgba(0, 151, 178, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    max-height: 300px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.hero-language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Override hidden attribute when active */
.hero-language-dropdown.active[hidden] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.language-option .flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.language-option .lang-name {
    flex: 1;
    font-weight: 500;
}

.language-option:hover {
    background: rgba(0, 151, 178, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.language-option.active {
    background: linear-gradient(135deg, var(--primary-color), #00a8cc);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 151, 178, 0.3);
}

.language-option.active::after {
    content: '✓';
    position: absolute;
    right: 12px;
    font-size: 16px;
    font-weight: bold;
}

/* Mobile: Responsive hero language selector */
@media (max-width: 768px) {
    .hero-language-selector {
        top: 70px;
        right: 10px;
    }

    .hero-language-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .hero-language-btn .flag {
        font-size: 20px;
    }

    .hero-language-dropdown {
        min-width: 180px;
        right: 0;
    }
}

/* Mobile Language Selector */
.mobile-language-selector {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.mobile-language-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 0 20px;
}

.mobile-language-option {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-language-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-language-option.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* RTL Support */
body.rtl {
    direction: rtl;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .hero-language-selector {
    right: auto;
    left: 20px;
}

body.rtl .hero-language-dropdown {
    right: auto;
    left: 0;
}

body.rtl .language-option {
    text-align: right;
}

@media (max-width: 768px) {
    body.rtl .hero-language-selector {
        right: auto;
        left: 10px;
    }
}

body.rtl .hero-content {
    direction: rtl;
}

body.rtl .hero-buttons {
    flex-direction: row-reverse;
}

body.rtl .download-buttons {
    flex-direction: row-reverse;
}

body.rtl .store-button {
    flex-direction: row-reverse;
}

body.rtl .footer-content {
    direction: rtl;
}

body.rtl .feature-card,
body.rtl .rank-card,
body.rtl .download-feature {
    text-align: right;
}



