/* =====================================================
   Adopt Me - Landing Page Styles
   Beautiful & Modern Design
   ===================================================== */

:root {
    --primary: #FF7F50;
    --primary-dark: #E56B3E;
    --primary-light: #FFB09E;
    --secondary: #6A5ACD;
    --accent: #FF6B9D;
    --background: #0F0F1A;
    --background-light: #1A1A2E;
    --surface: #252540;
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --success: #4CAF50;
    --gradient: linear-gradient(135deg, #FF7F50 0%, #FF6B9D 50%, #6A5ACD 100%);
    --gradient-warm: linear-gradient(135deg, #FF7F50 0%, #E56B3E 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--background);
    color: var(--text);
    overflow-x: hidden;
    font-weight: 600;
}

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

/* =====================================================
   Navigation
   ===================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(255, 127, 80, 0.3);
}

.logo span {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.download-btn {
    background: var(--gradient-warm);
    border: none;
    color: var(--text);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 127, 80, 0.4);
}

.mobile-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

/* =====================================================
   Hero Section
   ===================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 127, 80, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(106, 90, 205, 0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.floating-pets {
    position: absolute;
    inset: 0;
}

.float-pet {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.pet-1 { width: 150px; height: 150px; top: 10%; right: 5%; animation-delay: 0s; }
.pet-2 { width: 100px; height: 100px; top: 60%; right: 15%; animation-delay: -5s; }
.pet-3 { width: 120px; height: 120px; bottom: 20%; left: 5%; animation-delay: -10s; }
.pet-4 { width: 80px; height: 80px; top: 30%; left: 10%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(30px) rotate(-5deg); }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 127, 80, 0.2);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 127, 80, 0.3);
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-content h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

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

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.btn-primary {
    background: var(--gradient-warm);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(255, 127, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 127, 80, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--surface);
    border-radius: 40px;
    padding: 10px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: var(--background);
    border-radius: 20px;
    z-index: 10;
}

.app-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.pet-circle {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid var(--primary);
    animation: bounce 3s ease-in-out infinite;
}

.pet-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator i {
    font-size: 24px;
    color: var(--primary);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   Pets Gallery
   ===================================================== */

.pets-gallery {
    padding: 40px 0;
    overflow: hidden;
    background: var(--background-light);
}

.gallery-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
}

.gallery-track img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =====================================================
   Section Styles
   ===================================================== */

section {
    padding: 100px 0;
}

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

.section-header.light h2 {
    color: var(--text);
}

.section-badge {
    display: inline-block;
    background: rgba(255, 127, 80, 0.15);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
}

/* =====================================================
   Features Section
   ===================================================== */

.features {
    background: var(--background);
}

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

.feature-card {
    background: var(--surface);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 127, 80, 0.3);
}

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

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* =====================================================
   How It Works
   ===================================================== */

.how-it-works {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.step {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    width: 220px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--text);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.step-arrow {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.5);
}

body[dir="ltr"] .step-arrow i {
    transform: rotate(180deg);
}

/* =====================================================
   Info Sections (Adopters & Advertisers)
   ===================================================== */

.info-section {
    background: var(--background);
}

.info-section.advertisers {
    background: var(--background-light);
}

.info-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.info-content.reverse {
    flex-direction: row-reverse;
}

.info-text {
    flex: 1;
}

.info-text h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 20px;
}

.info-text > p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.info-list {
    list-style: none;
    margin-bottom: 30px;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
}

.info-list li i {
    color: var(--success);
    font-size: 18px;
}

.advertiser-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.ad-type {
    background: var(--surface);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ad-type-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ad-type h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-type p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.info-image {
    flex: 1;
    position: relative;
}

.info-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--surface);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}

.card-icon {
    font-size: 32px;
}

.card-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.card-text span {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

/* =====================================================
   FAQ Section
   ===================================================== */

.faq {
    background: var(--background);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: inherit;
    font-family: inherit;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* =====================================================
   Download Section
   ===================================================== */

.download {
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}

.download .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.download-content {
    flex: 1;
}

.download-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.download-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 24px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.store-btn i {
    font-size: 32px;
}

.store-btn span {
    font-size: 12px;
    opacity: 0.8;
}

.store-btn strong {
    display: block;
    font-size: 18px;
}

.download-image {
    flex: 0.5;
}

.download-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow);
}

/* =====================================================
   Contact Section
   ===================================================== */

.contact {
    background: var(--background-light);
}

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

.contact-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 127, 80, 0.2);
    border-radius: 10px;
    color: var(--primary);
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--text);
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
    background: var(--background);
    padding: 80px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* =====================================================
   Modals
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 28px;
    cursor: pointer;
}

body[dir="ltr"] .modal-close {
    left: auto;
    right: 20px;
}

.modal-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
    padding-right: 40px;
}

.modal-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 24px 0 12px;
}

.modal-body p, .modal-body li {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.modal-body ul {
    list-style: disc;
    padding-right: 20px;
}

body[dir="ltr"] .modal-body ul {
    padding-right: 0;
    padding-left: 20px;
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 46px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .info-content, .info-content.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .info-list li {
        justify-content: center;
    }
    
    .download .container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-light);
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .download-btn {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .pet-circle {
        width: 120px;
        height: 120px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(-90deg);
    }
    
    body[dir="ltr"] .step-arrow {
        transform: rotate(90deg);
    }
    
    .advertiser-types {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-btns {
        flex-direction: column;
    }
    
    .store-btn {
        justify-content: center;
    }
}

/* RTL-LTR Specific */
body[dir="ltr"] {
    text-align: left;
}

body[dir="ltr"] .hero-content,
body[dir="ltr"] .info-text {
    text-align: left;
}

body[dir="ltr"] .info-list li {
    justify-content: flex-start;
}

body[dir="ltr"] .step-number {
    right: auto;
    left: -15px;
}

body[dir="ltr"] .floating-card {
    left: auto;
    right: -20px;
}

