:root {
    --primary-color: #E62B2E;
    --secondary-color: #000000;
    --dark-bg: #111111;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-color: #222222;
    --text-light: #666666;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1100px;
    margin: 0 auto;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c71f22;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(230, 43, 46, 0.25);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 6px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.logo img {
    height: 35px;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    padding: 4px 12px;
    background-color: var(--white);
}

.navbar.scrolled .logo img {
    height: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links li a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1516035069371-29a1b244cc32?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s ease-in-out infinite alternate;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,10,10,0.85) 0%, rgba(200,30,30,0.4) 100%);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    z-index: 1;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.hero h1 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero .btn-primary {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(230, 43, 46, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(230, 43, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 43, 46, 0); }
}

/* Sections General */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(230,43,46,0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover h3, .service-card:hover p {
    color: var(--white);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    color: var(--white);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contact-info {
    padding: 40px;
    color: var(--white);
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.contact-info > p {
    color: #aaaaaa;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.info-item h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.info-item p {
    color: #cccccc;
    font-size: 0.95rem;
}

.contact-action {
    background-color: var(--primary-color);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.contact-action h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.contact-action p {
    margin-bottom: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
    background-color: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 40px 0 15px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    margin-bottom: 10px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-container p {
    color: #dddddd;
    font-size: 0.95rem;
    margin-top: 8px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    color: #bbbbbb;
    font-size: 0.9rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* Responsive */
@media (max-width: 850px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero h2 { font-size: 1.3rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 60%;
        height: 100vh;
        background-color: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; z-index: 1001; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .hero-buttons { flex-direction: column; gap: 10px; }
}
