/* ============================================
   FORTUNA Digital - Main Stylesheet
   Professional & Minimal Design
   Domain: fortunadigital.co.il
   ============================================ */

:root {
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --primary-light: #A78BFA;
    --dark: #030014;
    --dark-light: #0F0A1F;
    --gray: #1F1A2E;
    --text: #FFFFFF;
    --text-muted: #9CA3AF;
    --gradient: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Heebo', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Background Effects
   ============================================ */

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -2;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: linear-gradient(to bottom, rgba(3, 0, 20, 0.8), transparent);
    backdrop-filter: blur(8px);
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-fortuna {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-digital {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--primary-light);
}

.hero-badge span:first-child,
.hero-badge span:last-child {
    color: var(--primary);
    font-size: 8px;
}

.hero-title {
    margin-bottom: 30px;
}

.title-line {
    display: block;
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
}

@media (max-width: 768px) {
    .title-line {
        font-size: 48px;
    }
}

.title-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.scroll-hint {
    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: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.title-main {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
}

/* ============================================
   Services
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

.card-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(139, 92, 246, 0.2);
    line-height: 1;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.card-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.service-card:hover .card-line {
    width: 100%;
}

/* ============================================
   Work
   ============================================ */

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

.work-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
}

.work-image {
    height: 240px;
    background: var(--gradient-subtle);
    position: relative;
    overflow: hidden;
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
}

.work-info {
    padding: 30px;
}

.work-category {
    font-size: 14px;
    color: var(--primary-light);
    display: block;
    margin-bottom: 8px;
}

.work-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.work-result {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

/* ============================================
   Contact
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.contact-info {
    padding-left: 40px;
}

.contact-accent {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gradient);
    margin-bottom: 30px;
}

.contact-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
}

.detail-item i {
    width: 24px;
    color: var(--primary);
}

.detail-item a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: var(--primary);
}

/* ============================================
   Form
   ============================================ */

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Heebo', sans-serif;
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.form-group label {
    position: absolute;
    top: 12px;
    right: 0;
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 12px;
    color: var(--primary);
}

.form-border {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-border,
.form-group textarea:focus ~ .form-border {
    width: 100%;
}

.char-counter {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-size: 12px;
    color: var(--text-muted);
}

.char-counter.warning {
    color: #FBBF24;
}

.char-counter.danger {
    color: #EF4444;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 576px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    gap: 20px;
}

.footer-domain {
    color: var(--primary-light);
}

/* ============================================
   Notifications
   ============================================ */

.notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 14px;
    z-index: 2000;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.notification.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .contact-info {
        padding-left: 0;
        text-align: center;
    }
    
    .contact-accent {
        margin-left: auto;
        margin-right: auto;
    }
    
    .detail-item {
        justify-content: center;
    }
}