/* High-End Premium Design System for Elfarabey.com */

:root {
    --bg-color: #0a0a0a; /* Dark premium background */
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 50px rgba(59, 130, 246, 0.15);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-xl: 32px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: 4.5rem; }
h2 { font-size: 3rem; }
h3 { font-size: 1.75rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-primary);
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.5);
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

nav a:hover {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

/* Device Mockups */
.device-mockup {
    position: relative;
    z-index: 10;
    transition: transform 0.5s ease;
}

.device-mockup:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 45px;
    border: 12px solid #1a1a1a;
    box-shadow: 
        0 0 0 2px #333,
        0 20px 50px rgba(0,0,0,0.5),
        0 0 100px rgba(59, 130, 246, 0.2);
    overflow: hidden;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #1a1a1a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 20;
}

.phone-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laptop-frame {
    width: 800px;
    max-width: 100%;
    background: #000;
    border-radius: 16px;
    border: 1px solid #333;
    padding: 12px 12px 0 12px; /* Bezel */
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    position: relative;
}

.laptop-screen {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    position: relative;
}

.laptop-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.laptop-base {
    width: 120%;
    height: 20px;
    background: #1a1a1a;
    margin-left: -10%;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    margin-top: -1px;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Features Section */
.features {
    padding: 10rem 0;
    position: relative;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 10rem;
}

.feature-block.reverse {
    direction: rtl;
}

.feature-block.reverse > * {
    direction: ltr;
}

.feature-content h2 {
    margin-bottom: 1.5rem;
}

/* Services Grid */
.services {
    padding: 8rem 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #333 0%, #111 100%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
}

.contact-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--glass-border);
    padding: 4rem;
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255,255,255,0.05);
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    .hero-grid, .feature-block {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-content { margin: 0 auto; }
    .feature-block.reverse { direction: ltr; }
    
    .laptop-base { display: none; } /* Simplify for mobile */
    .laptop-frame { border: none; padding: 0; background: transparent; box-shadow: none; }
    .laptop-screen { border-radius: 12px; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .nav-container { flex-direction: column; gap: 1rem; }
    .btn { width: 100%; }
    .contact-box { padding: 2rem; }
}
