/* ============================================
   AHMED SAMNEH PORTFOLIO - STYLES
   Modern Dark Theme with Gradient Accents
   ============================================ */

/* === CSS VARIABLES === */
:root {
    /* Colors */
    --bg-primary: #0b0d17;
    --bg-secondary: #111322;
    --bg-card: #161830;
    --bg-card-hover: #1c1f3a;
    --bg-glass: rgba(22, 24, 48, 0.7);
    
    --text-primary: #eef0f6;
    --text-secondary: #a0a3bd;
    --text-muted: #6b6f8a;
    
    --accent-primary: #7c5cfc;
    --accent-secondary: #00c9a7;
    --accent-gradient: linear-gradient(135deg, #7c5cfc 0%, #00c9a7 100%);
    --accent-gradient-hover: linear-gradient(135deg, #8d72ff 0%, #00e0ba 100%);
    --accent-glow: rgba(124, 92, 252, 0.3);
    --accent-glow-secondary: rgba(0, 201, 167, 0.3);
    
    --gofundme-color: #00b894;
    --gofundme-gradient: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
    --gofundme-glow: rgba(0, 184, 148, 0.4);
    
    --whatsapp-color: #25D366;
    --facebook-color: #1877F2;
    
    --border-color: rgba(124, 92, 252, 0.15);
    --border-subtle: rgba(255, 255, 255, 0.06);
    
    /* Typography */
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body,
html[dir="ltr"] * {
    font-family: var(--font-en);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* === CONTAINER === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === LANGUAGE TOGGLE === */
.lang-en { display: none; }
html[lang="en"] .lang-en { display: inline; }
html[lang="en"] .lang-ar { display: none; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 13, 23, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.9rem;
    color: white;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(124, 92, 252, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

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

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-en);
    transition: all var(--transition-base);
}

.lang-toggle:hover {
    background: rgba(124, 92, 252, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.lang-toggle-icon {
    width: 16px;
    height: 16px;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -10%;
    left: -5%;
    animation-delay: -3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #ff6b9d;
    top: 50%;
    left: 40%;
    animation-delay: -5s;
    opacity: 0.2;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(124, 92, 252, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 252, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid rgba(124, 92, 252, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 92, 252, 0.4);
}

.btn-primary .btn-arrow {
    transition: transform var(--transition-base);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(124, 92, 252, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-en);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 340px;
    height: 340px;
}

.hero-image-border {
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    opacity: 0.5;
    animation: rotate-border 6s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-image-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    filter: blur(60px);
    opacity: 0.2;
}

.hero-profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-full);
    z-index: 1;
    border: 4px solid var(--bg-primary);
}

.hero-avatar-fallback {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 4px solid var(--bg-primary);
}

.hero-image-wrapper.no-img .hero-avatar-fallback {
    display: flex;
}

.hero-image-wrapper.no-img .hero-profile-img {
    display: none;
}

.hero-avatar-fallback span {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Floating Cards */
.hero-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: float-card 4s ease-in-out infinite;
}

.hero-floating-card svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.card-1 {
    top: 20%;
    right: -20px;
    animation-delay: -1s;
}

.card-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: -2s;
}

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

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 1;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 3px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

/* === SECTION COMMON === */
.section {
    position: relative;
    padding: var(--section-padding);
    overflow: hidden;
}

.section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.section-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.section-bg .orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -20%;
    right: -10%;
}

.section-bg .orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    top: -10%;
    left: -10%;
}

.section-bg .orb-3 {
    width: 400px;
    height: 400px;
    background: #ff6b9d;
    bottom: -10%;
    right: 20%;
}

.section .container {
    position: relative;
    z-index: 1;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 92, 252, 0.08);
    border: 1px solid rgba(124, 92, 252, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.section-badge svg {
    width: 18px;
    height: 18px;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === MALY NOTE SECTION === */
.maly-note-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.maly-note-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-smooth);
}

.feature-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateX(-4px);
}

html[dir="ltr"] .feature-item:hover {
    transform: translateX(4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(124, 92, 252, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.maly-note-description {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 32px;
}

.maly-note-description p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.maly-note-description strong {
    color: var(--accent-primary);
}

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

/* Screenshots */
.maly-note-screenshots {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshots-carousel {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.screenshot-card {
    display: none;
}

.screenshot-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.screenshot-frame {
    background: linear-gradient(145deg, #1a1d35, #0d0f1a);
    border-radius: var(--radius-xl);
    padding: 12px;
    border: 1px solid var(--border-subtle);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.screenshot-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 0 0 4px 4px;
}

.screenshot-frame img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    aspect-ratio: 9/19.5;
    object-fit: cover;
}

.screenshot-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.dot.active {
    background: var(--accent-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* === NAKZA MOBADER SECTION === */
.nakza-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.nakza-card-main {
    position: sticky;
    top: 100px;
}

.nakza-logo-container {
    text-align: center;
    margin-bottom: 24px;
}

.nakza-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.nakza-logo-placeholder svg {
    width: 36px;
    height: 36px;
    color: white;
}

.nakza-browser-mockup {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-subtle);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-en);
}

.browser-url svg {
    width: 12px;
    height: 12px;
    color: var(--accent-secondary);
}

.browser-ext-icon {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    animation: pulse-ext 2s ease-in-out infinite;
}

.browser-ext-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

@keyframes pulse-ext {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.browser-body {
    padding: 24px;
}

.form-mockup {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 40px;
    display: flex;
    align-items: center;
    transition: all var(--transition-base);
}

.form-input.filled {
    border-color: var(--accent-secondary);
    color: var(--text-primary);
    background: rgba(0, 201, 167, 0.05);
    animation: fill-in 0.5s ease;
}

@keyframes fill-in {
    from { border-color: var(--border-subtle); color: var(--text-muted); }
    to { border-color: var(--accent-secondary); color: var(--text-primary); }
}

.form-mockup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all var(--transition-smooth);
    margin-top: 8px;
}

.form-mockup-btn svg {
    width: 16px;
    height: 16px;
}

.form-mockup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* Nakza Info */
.nakza-description {
    margin-bottom: 40px;
}

.nakza-description p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
}

.nakza-description strong {
    color: var(--accent-primary);
}

/* Steps */
.nakza-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    font-family: var(--font-en);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.step-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 2px;
    height: 32px;
    background: var(--border-color);
    margin-right: 23px;
}

html[dir="ltr"] .step-connector {
    margin-right: 0;
    margin-left: 23px;
}

/* === STORY SECTION === */
.story-content {
    max-width: 800px;
    margin: 0 auto 60px;
}

.story-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    min-width: 20px;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: var(--radius-full);
    margin-top: 6px;
    position: relative;
}

.timeline-dot.highlight {
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.timeline-dot.highlight::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-primary);
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0; transform: scale(1.5); }
}

.timeline-content {
    padding-bottom: 40px;
}

.timeline-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 8px;
    padding: 4px 12px;
    background: rgba(124, 92, 252, 0.1);
    border-radius: 50px;
}

.timeline-label.highlight {
    background: rgba(255, 107, 157, 0.1);
    color: #ff6b9d;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.timeline-content strong {
    color: var(--accent-primary);
}

.timeline-connector {
    width: 2px;
    height: 24px;
    background: var(--border-color);
    margin-right: 9px;
}

html[dir="ltr"] .timeline-connector {
    margin-right: 0;
    margin-left: 9px;
}

/* === GOFUNDME CTA === */
.gofundme-cta {
    max-width: 700px;
    margin: 0 auto;
}

.gofundme-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.08) 0%, rgba(85, 239, 196, 0.04) 100%);
    border: 1px solid rgba(0, 184, 148, 0.2);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    overflow: hidden;
}

.gofundme-pulse {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--gofundme-glow) 0%, transparent 70%);
    opacity: 0.3;
    animation: gofundme-glow 3s ease-in-out infinite;
}

@keyframes gofundme-glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.02); }
}

.gofundme-content {
    position: relative;
    z-index: 1;
}

.gofundme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--gofundme-gradient);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px var(--gofundme-glow);
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.05); }
    70% { transform: scale(1); }
}

.gofundme-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.gofundme-card h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gofundme-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gofundme-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.btn-gofundme {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: var(--gofundme-gradient);
    color: white;
    border-radius: var(--radius-lg);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 32px var(--gofundme-glow);
    position: relative;
    overflow: hidden;
}

.btn-gofundme::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-gofundme:hover::before {
    transform: translateX(100%);
}

.btn-gofundme:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 184, 148, 0.5);
}

.btn-gofundme svg {
    width: 22px;
    height: 22px;
}

.btn-gofundme .btn-arrow {
    transition: transform var(--transition-base);
}

.btn-gofundme:hover .btn-arrow {
    transform: translateX(6px);
}

/* === CONTACT SECTION === */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.contact-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-color);
}

.contact-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: var(--facebook-color);
}

.contact-icon.email {
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent-primary);
}

.contact-info {
    flex: 1;
}

.contact-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.contact-card:hover .contact-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* === FOOTER === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 24px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.95rem;
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-primary);
    transform: translateX(-4px);
}

html[dir="ltr"] .footer-links a:hover,
html[dir="ltr"] .footer-contact a:hover {
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
}

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

.footer-love {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 999;
}

html[dir="ltr"] .back-to-top {
    right: auto;
    left: 30px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* === SCROLL REVEAL ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .card-1 {
        right: -10px;
    }
    
    .card-2 {
        left: -10px;
    }
    
    .maly-note-content,
    .nakza-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .maly-note-screenshots {
        order: -1;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(11, 13, 23, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 16px;
        flex-direction: column;
        border-bottom: 1px solid var(--border-subtle);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        text-align: center;
        padding: 12px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }
    
    .hero-avatar-fallback span {
        font-size: 5rem;
    }
    
    .hero-floating-card {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .card-1 {
        top: 10%;
        right: -15px;
    }
    
    .card-2 {
        bottom: 10%;
        left: -15px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .screenshots-carousel {
        max-width: 280px;
    }
    
    .gofundme-card {
        padding: 32px 24px;
    }
    
    .gofundme-card h3 {
        font-size: 1.3rem;
    }
    
    .hero-scroll-indicator {
        display: none;
    }
    
    .nakza-card-main {
        position: static;
    }
    
    .browser-body {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* === LOADING ANIMATION === */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth appearance for images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][src]:not([src=""]) {
    opacity: 1;
}
