/* --- 1. VARIABLES & RESET --- */
:root {
    --bg-color: #FFFBF0; /* Warm White */
    --text-main: #2D3436;
    
    /* Vibrant Pop Colors */
    --color-accent: #FF6B6B; /* Coral Red */
    --color-yellow: #FFD93D; /* Sunny Yellow */
    --color-blue: #4D96FF;   /* Electric Blue */
    --color-green: #6BCB77;  /* Grass Green */
    
    --font-main: 'Outfit', 'Zen Maru Gothic', sans-serif;
    --font-hand: 'Patrick Hand', cursive;
   
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- FIXED HEADER & LOGO --- */
header {
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; 
    background: transparent;
    transition: all 0.3s ease;
    z-index: 1000; 
}

.logo {
    position: relative; 
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; 
    width: auto;
    display: block;
}

.logo::after {
    content: '';
    position: absolute;
    right: -12px;
    bottom: 5px;
    width: 10px;
    height: 10px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

nav ul { display: flex; gap: 40px; }
nav a { font-weight: 600; font-size: 16px; transition: 0.3s; position: relative; }

nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-yellow);
    transition: 0.3s;
    border-radius: 2px;
}
nav a:hover::before { width: 100%; }

.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}
.btn-primary:hover {
    background-color: #ff5252;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

.mobile-menu-icon { display: none; font-size: 24px; cursor: pointer; }

/* --- 3. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px; 
}

.hero-text { padding-right: 50px; }

.badge {
    display: inline-block;
    background: var(--color-yellow);
    color: #2d3436;
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    transform: rotate(-2deg);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--text-main);
}

h1 span {
    font-family: var(--font-hand);
    color: var(--color-blue);
    position: relative;
    display: inline-block;
}

.underline-svg path {
    stroke: var(--color-yellow);
    stroke-width: 6;
}

.underline-svg {
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: -1;
}

.hero-desc {
    font-size: 19px;
    color: #636e72;
    margin-bottom: 40px;
    max-width: 450px;
}

.hero-buttons { display: flex; gap: 20px; align-items: center; }

.btn-outline {
    border: 2px solid var(--text-main);
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-outline:hover { 
    background: var(--text-main); 
    color: #fff; 
    transform: translateY(-3px);
}

/* --- 4. HERO VISUAL --- */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob {
    position: absolute;
    width: 480px;
    height: 480px;
    background-color: #dfe6e9;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: morph 8s ease-in-out infinite;
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-accent) 100%);
    opacity: 0.2;
}

.product-card {
    background: #fff;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    transform: rotate(3deg);
    transition: transform 0.1s ease-out;
    width: 340px;
    text-align: center;
    will-change: transform;
    border: 1px solid rgba(0,0,0,0.05);
}

.mockup-area {
    background: #fff; /* خلفية بيضاء */
    height: 300px;
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* لضمان عدم خروج الصورة عن الحواف */
    border: 1px solid #eee; /* إطار خفيف جداً */
}

/* تنسيق الصورة الجديدة */
.mockup-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تجعل الصورة تملأ المربع بالكامل بشكل جميل */
    transition: transform 0.5s ease;
}

/* تأثير تكبير بسيط عند تحريك الماوس فوق الكرت */
.product-card:hover .mockup-area img {
    transform: scale(1.05);
}


.card-label {
    font-family: var(--font-hand);
    font-size: 26px;
    color: var(--text-main);
}

/* Floating Elements */
.float-icon {
    position: absolute;
    font-size: 35px;
    animation: float 4s ease-in-out infinite;
    cursor: default;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}
.i1 { top: 5%; left: 5%; color: var(--color-accent); animation-delay: 0s; transform: rotate(-15deg); }
.i2 { bottom: 15%; right: 5%; color: var(--color-blue); animation-delay: 1s; transform: rotate(10deg); }
.i3 { top: 45%; left: -10%; color: var(--color-yellow); font-size: 45px; animation-delay: 2s; }

/* --- 5. HOW IT WORKS SECTION --- */
.section-padding {
    padding: 100px 50px;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.section-header h2 {
    font-size: 48px;
    margin-top: 15px;
    margin-bottom: 60px;
    color: var(--text-main);
    line-height: 1.2;
}

.highlight-text {
    font-family: var(--font-hand);
    color: var(--color-accent);
    position: relative;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -5px;
    border: 3px solid var(--color-yellow);
    border-radius: 50% 40% 60% 30% / 40% 50% 60% 50%;
    z-index: -1;
    transform: rotate(-2deg);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    position: relative;
}

.step-card {
    flex: 1;
    background: #fff;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-yellow);
}

.step-number {
    width: 40px; height: 40px;
    border-radius: 50%;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-hand);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.num-1 { background-color: var(--color-blue); }
.num-2 { background-color: var(--color-accent); }
.num-3 { background-color: var(--color-green); }

/* --- UPDATED IMAGE PLACEHOLDER FOR REAL PHOTOS --- */
.img-placeholder {
    width: 100%;
    height: 200px; /* ارتفاع ثابت لتوحيد حجم الصور */
    background-color: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* يمنع خروج الصورة عن الإطار */
    border: none; /* إزالة الحدود المقطعة */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.img-placeholder img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* ملء الإطار بالكامل */
    transition: transform 0.5s ease;
}

/* تأثير زووم خفيف عند مرور الماوس */
.step-card:hover .img-placeholder img {
    transform: scale(1.05);
}

.step-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-card p {
    font-size: 16px;
    color: #636e72;
    line-height: 1.5;
}

.step-arrow {
    width: 80px;
    margin-top: 100px;
    opacity: 0.6;
}
.step-arrow svg { width: 100%; }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- ANIMATIONS KEYFRAMES --- */
@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
    .hero-text { padding-right: 0; margin-bottom: 50px; }
    .hero-buttons { justify-content: center; }
    .hero-desc { margin: 0 auto 40px auto; }
    header { padding: 15px 20px; }
    nav { display: none; } 
    .mobile-menu-icon { display: block; }
    .blob { width: 350px; height: 350px; }
    
    .steps-container {
        flex-direction: column;
        gap: 50px;
    }
    .step-arrow {
        transform: rotate(90deg);
        margin: -20px auto;
    }
    .section-header h2 { font-size: 36px; }
}

/* --- COLORFUL COMPACT FOOTER --- */
#colorful-footer {
    background-color: var(--color-yellow);
    padding: 30px 20px 15px;
    margin-top: 80px;
    border-radius: 20px 20px 0 0;
    color: var(--text-main);
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.footer-nav {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    font-weight: bold;
    font-size: 16px;
    color: var(--text-main);
    position: relative;
}

.footer-nav a:hover { color: #fff; }

.highlight-link {
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-compact-form { display: flex; gap: 10px; }

.footer-compact-form input {
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-family: var(--font-main);
    width: 220px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.footer-compact-form button {
    background-color: var(--text-main);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.footer-compact-form button:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

.footer-copyright {
    text-align: center;
    font-family: var(--font-hand);
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-top-row { flex-direction: column; text-align: center; }
    .footer-nav { flex-direction: column; gap: 15px; }
    .footer-compact-form { width: 100%; justify-content: center; }
    .footer-compact-form input { width: 100%; }
}
