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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(1, 51, 28, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative; /* anchor for mobile dropdown */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: #01331C;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #01331C;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #01331C;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #01331C;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #01331C 0%, #025A2C 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}


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

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: white;
    color: #01331C;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.hero-feature-icon {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 500px;
}

.hero-app-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-app-image:hover {
    transform: scale(1.05);
}

/* Simple Animation System */
.feature-section {
    padding: 100px 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.feature-section.show {
    opacity: 1;
    transform: translateY(0);
}

.namaztime-section {
    background: #f8f9fa;
}

.qiblah-section {
    background: white;
}

.quran-section {
    background: #f8f9fa;
}

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

.feature-content.reverse {
    direction: rtl;
}

.feature-content.reverse > * {
    direction: ltr;
}

.feature-text {
    max-width: 500px;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 12px;
    height: 12px;
    background: #01331C;
    border-radius: 50%;
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 500;
    color: #333;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.app-screenshot:hover {
    transform: scale(1.05);
}

/* Hero Decoration */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #01331C;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, #01331C 0%, #025A2C 100%);
    text-align: center;
    color: white;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.download.show {
    opacity: 1;
    transform: translateY(0);
}

.download-content .section-title {
    color: white;
    margin-bottom: 16px;
}

.download-content .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.download-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 30px;
    background: white;
    color: #01331C;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-icon {
    width: 40px;
    height: 40px;
    color: #01331C;
}

.download-icon svg {
    width: 100%;
    height: 100%;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.download-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.download-title {
    font-size: 16px;
    font-weight: 600;
}

.download-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.footer.show {
    opacity: 1;
    transform: translateY(0);
}

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

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
}

.footer-description {
    color: #ccc;
    line-height: 1.6;
}

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

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-container {
        gap: 50px;
        place-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .feature-content {
        gap: 50px;
    }
}

/* 968px and below: mirror 768px responsive behavior */
@media (max-width: 968px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        place-items: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* Normal order: text first, then image */
    .feature-content .feature-text {
        order: 1;
    }
    
    .feature-content .feature-image {
        order: 2;
    }
    
    /* Reverse order: image first, then text */
    .feature-content.reverse .feature-text {
        order: 2;
    }
    
    .feature-content.reverse .feature-image {
        order: 1;
    }
}

@media (max-width: 768px) {
    /* Hero: full-screen feel with top spacing and perfect centering */
    .hero {
        padding-top: 100px; /* headerdən sonra nəfəsliyi artır */
        padding-bottom: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center; /* şaquli mərkəzlə */
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid rgba(1, 51, 28, 0.08);
        box-shadow: 0 10px 20px rgba(0,0,0,0.06);
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px 20px;
        z-index: 999;
    }
    
    .nav-toggle {
        display: flex;
    }

    /* show mobile menu when toggled */
    .nav-links.active {
        display: flex;
    }

    /* animate hamburger to X */
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        place-items: center; /* center image and content horizontally */
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center; /* center feature rows */
    }

    /* Center hero content block (title, subtitle, features, buttons) */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-app-image,
    .app-screenshot {
        max-width: 280px;
        width: 100%;
    }
    
    .feature-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    /* Normal order: text first, then image */
    .feature-content .feature-text {
        order: 1;
    }
    
    .feature-content .feature-image {
        order: 2;
    }
    
    /* Reverse order: image first, then text */
    .feature-content.reverse .feature-text {
        order: 2;
    }
    
    .feature-content.reverse .feature-image {
        order: 1;
    }
    
    .feature-benefits {
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 576px and below: also mirror 768px layout with smaller type/spacing */
@media (max-width: 576px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        place-items: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 640px;
    }
    
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-description { font-size: 1rem; }
    
    .hero-features { gap: 12px; justify-items: center; }
    
    .hero-buttons { gap: 14px; }
    .btn { max-width: 260px; }
    
    .hero-app-image,
    .app-screenshot {
        max-width: 240px;
        width: 100%;
    }
}

/* 440px and below: hero-content 60% width, centered */
@media (max-width: 440px) {
    .hero-content {
        width: 60% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
}

/* Medium mobile devices: 430px width */
@media (max-width: 430px) and (min-width: 421px) {
    .container { padding: 0 16px; }
    .nav-container { padding: 0 16px; }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 38px;
        text-align: center;
        place-items: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hero-title { font-size: 2.3rem; }
    .hero-subtitle { font-size: 1.15rem; }
    .hero-description { 
        font-size: 0.95rem; 
        display: flex; 
        flex-wrap: wrap; 
        flex-direction: column; 
    }
    
    .hero-features { 
        grid-template-columns: 1fr; 
        gap: 12px; 
        justify-items: center; 
    }
    
    .hero-feature { font-size: 14px; }
    
    .hero-buttons { 
        justify-content: center; 
        flex-direction: column; 
        align-items: center; 
        gap: 16px; 
    }
    
    .btn { 
        width: 100%; 
        max-width: 270px; 
        justify-content: center; 
        padding: 14px 22px;
        font-size: 15px;
    }
    
    .btn-icon { width: 20px; height: 20px; }
    
    .hero-app-image, 
    .app-screenshot { 
        max-width: 260px; 
        width: 100%; 
    }
}

/* Extra small devices: 420px and below */
@media (max-width: 420px) {
    .container { padding: 0 12px; }
    .nav-container { padding: 0 12px; }
    
    .hero { padding-top: 90px; padding-bottom: 50px; }
    .hero-title { font-size: 1.9rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-description { font-size: 0.95rem; }
    
    .hero-features { gap: 10px; }
    .hero-feature { font-size: 13px; }
    
    .btn { max-width: 240px; padding: 12px 18px; font-size: 13.5px; }
    .btn-icon { width: 18px; height: 18px; }
    
    .hero-app-image, .app-screenshot { max-width: 220px; }
    
    .feature-section { padding: 56px 0; }
    .download { padding: 56px 0; }
}

/* Ultra small phones: 360px and below */
@media (max-width: 360px) {
    .container { padding: 0 10px; }
    .nav-container { padding: 0 10px; }
    
    .hero { padding-top: 80px; padding-bottom: 44px; }
    .hero-title { font-size: 1.7rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero-description { font-size: 0.9rem; }
    
    .btn { max-width: 220px; padding: 11px 16px; font-size: 13px; }
    .hero-app-image, .app-screenshot { max-width: 200px; }
    
    .feature-section { padding: 52px 0; }
    .download { padding: 52px 0; }
}

/* Very tight screens: 320px and below */
@media (max-width: 320px) {
    .hero-title { font-size: 1.55rem; }
    .btn { max-width: 200px; font-size: 12.5px; padding: 10px 14px; }
    .hero-app-image, .app-screenshot { max-width: 180px; }
}

/* Force 768px-style layout for 540px down to 300px */
@media (max-width: 540px) and (min-width: 301px) {
    .container { padding: 0 16px; }
    .nav-container { padding: 0 16px; }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 640px;
        padding: 0 4px;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .hero-description { font-size: .8rem; display: flex; flex-wrap: wrap; flex-direction: column; }
    .hero-features { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
    .hero-buttons { justify-content: center; flex-direction: column; align-items: center; gap: 16px; }
    .btn { width: 100%; max-width: 280px; justify-content: center; }
    .hero-app-image, .app-screenshot { max-width: 280px; width: 100%; }
    .feature-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .feature-content .feature-text { order: 1; }
    .feature-content .feature-image { order: 2; }
    .feature-content.reverse .feature-text { order: 2; }
    .feature-content.reverse .feature-image { order: 1; }
    .feature-text { padding: 0 6px; }
    .section-title, .section-subtitle, .feature-description { word-wrap: break-word; }
}

