/* CSS variables for a premium look */
:root {
    --primary-color: #4c7c24;
    /* Green from the image */
    --secondary-color: #8bb341;
    /* Lighter green */
    --accent-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: linear-gradient(135deg, #121212 0%, #1e3a1e 100%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    direction: rtl;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 40px 20px;
    text-align: center;
    gap: 30px;
}

.hero-image-container {
    position: relative;
    max-width: 500px;
    width: 100%;
    border-radius: 35px;
    padding: 10px;
    /* Space for the rainbow border */
    background: linear-gradient(45deg,
            #ff0000, #ff7300, #fffb00, #48ff00,
            #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400% 400%;
    z-index: 1;
    overflow: visible;
    /* Changed to visible for glow */
    animation: rainbow-anim 4s linear infinite, float 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(139, 179, 65, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes rainbow-anim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(45deg,
            #ff0000, #ff7300, #fffb00, #48ff00,
            #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    filter: blur(20px);
    opacity: 0.8;
    animation: rainbow-anim 4s linear infinite;
    border-radius: 40px;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: #121212;
    border-radius: 30px;
    z-index: -1;
}

.hero-image-container img {
    width: 100%;
    display: block;
    border-radius: 25px;
    transition: var(--transition);
}

.hero-image-container:hover img {
    transform: scale(1.05);
}

/* Buttons Section */
.actions {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 45px;
    border-radius: 100px;
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    animation: pulse-green 2s infinite;
}

.btn-contact {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 20px rgba(76, 124, 36, 0.3);
    animation: pulse-gold 2s infinite 1s;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 179, 65, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(139, 179, 65, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 179, 65, 0);
    }
}

/* Floating Sticky Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fab-float 3s ease-in-out infinite;
}

.fab-whatsapp {
    background: #25d366;
}

.fab-phone {
    background: var(--primary-color);
}

@keyframes fab-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fab:hover {
    transform: scale(1.1) rotate(10deg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn span.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50%;
    animation: ripple-effect 0.6s linear;
}

@keyframes ripple-effect {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.btn i {
    font-size: 1.5rem;
}

/* Features List (Content from image) */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-top: 40px;
}

.feature-card {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

/* Footer */
footer {
    padding: 40px 5%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    color: #666;
    font-size: 0.8rem;
}

.agency-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .btn {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    h2 {
        font-size: 2.5rem !important;
    }
}

/* Background Glow Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 179, 65, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.feature-card i {
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
    color: #fff;
}