/* ===================================
   ECOM DZ PRO AGENCY - Main Stylesheet
   Version: 3.0 - Fixed Carousel + Square Cards
   =================================== */

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-overflow-scrolling: touch;
}

:root {
    --primary-purple: #4a0080;
    --dark-purple: #1a0033;
    --light-purple: #6a0dad;
    --gold: #FFD700;
    --orange: #FFA500;
    --white: #ffffff;
    --text-gray: #e0e0e0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: #1a0033;
    color: var(--white);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* === Background Layers === */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    background: linear-gradient(135deg, #1a0033 0%, #2d0052 50%, #4a0080 100%);
}

.bg-grid {
    background-image: 
        linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-glow {
    background: radial-gradient(circle at 30% 50%, rgba(255,215,0,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,165,0,0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* === Header === */
header {
    background: rgba(26, 0, 51, 0.98);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,215,0,0.2);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,215,0,0.3);
    transition: transform 0.3s;
}

.logo img:hover {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

/* === Mobile Menu === */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--gold);
    transition: all 0.3s;
    border-radius: 3px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(26, 0, 51, 0.98);
    padding: 100px 2rem 2rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-right: 2px solid rgba(255,215,0,0.3);
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s;
}

.mobile-nav.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active li:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav.active li:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav.active li:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav.active li:nth-child(5) { transition-delay: 0.5s; }
.mobile-nav.active li:nth-child(6) { transition-delay: 0.6s; }
.mobile-nav.active li:nth-child(7) { transition-delay: 0.7s; }
.mobile-nav.active li:nth-child(8) { transition-delay: 0.8s; }

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    background: rgba(255,215,0,0.1);
    color: var(--gold);
    transform: translateX(10px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 998;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Hero Section === */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--white), var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
    font-weight: 900;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gold), var(--orange));
    color: var(--dark-purple);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
}

/* === Services Section === */
.services {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--gold);
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 800;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    margin: 1rem auto;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(74, 0, 128, 0.4);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,215,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(255,215,0,0.2);
    border-color: var(--gold);
    background: rgba(74, 0, 128, 0.6);
}

.service-card:active {
    transform: translateY(-10px) scale(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: rgba(255,215,0,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,215,0,0.3);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    background: rgba(255,215,0,0.2);
    box-shadow: 0 0 30px rgba(255,215,0,0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    text-align: center;
    font-weight: 700;
}

.service-card p {
    color: var(--text-gray);
    text-align: center;
    line-height: 1.8;
    font-weight: 400;
}

.service-stats {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(255,215,0,0.1);
    border-radius: 10px;
    border: 1px solid rgba(255,215,0,0.3);
}

.service-stats span {
    color: var(--gold);
    font-weight: 800;
    font-size: 1.3rem;
}

.features-list {
    list-style: none;
    margin-top: 1rem;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-weight: 400;
}

.features-list li::before {
    content: '✓';
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    background: rgba(255,215,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === Portfolio Section === */
.portfolio {
    padding: 4rem 0;
    background: rgba(0,0,0,0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,215,0,0.2);
    transition: all 0.3s;
    background: rgba(74, 0, 128, 0.3);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(255,215,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(74,0,128,0.95), transparent);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* === Offers Section === */
.offers {
    padding: 4rem 0;
}

.offer-card {
    background: rgba(74, 0, 128, 0.3);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255,215,0,0.2);
    background: rgba(74, 0, 128, 0.5);
}

.offer-badge {
    position: absolute;
    top: 20px;
    left: -35px;
    background: var(--gold);
    color: var(--dark-purple);
    padding: 0.5rem 3rem;
    transform: rotate(-45deg);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.offer-card h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.price {
    font-size: 2.5rem;
    color: var(--orange);
    font-weight: 800;
    margin: 1rem 0;
    text-shadow: 0 0 20px rgba(255,165,0,0.5);
}

/* === Partnership Section === */
.partnership {
    padding: 4rem 0;
    text-align: center;
}

.partner-card {
    background: rgba(74, 0, 128, 0.3);
    border-radius: 20px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    border: 2px dashed var(--gold);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.partner-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--dark-purple);
    box-shadow: 0 0 30px rgba(255,215,0,0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === Logo Carousel - PERFECT LOOP (FIXED) === */
.logo-carousel {
    padding: 4rem 0;
    background: rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

.logo-carousel .container {
    margin-bottom: 2rem;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    direction: ltr; /* هذا هو السطر السحري الذي سيحل المشكلة بالكامل */
}

.carousel-container {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    direction: ltr;
    animation: scroll 15s linear infinite;
}

/* Desktop - faster */
@media (min-width: 769px) {
    .carousel-container {
        animation-duration: 10s;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .carousel-container {
        animation-duration: 15s;
    }
}

.carousel-container:hover {
    animation-play-state: paused;
}

/* Square cards with effects */
.carousel-item {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    border: 2px solid rgba(255,215,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.2rem;
    margin: 0 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Glow effect on hover */
.carousel-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.carousel-item:hover::before {
    opacity: 1;
}

/* Border glow animation */
.carousel-item::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--gold), var(--orange), var(--gold));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.carousel-item:hover::after {
    opacity: 1;
}

.carousel-item:hover {
    transform: scale(1.15) translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(255,215,0,0.4), 0 0 30px rgba(255,215,0,0.2);
    background: rgba(255,215,0,0.1);
}

/* Clear logos - no grayscale */
.carousel-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s;
    filter: brightness(1);
    opacity: 1;
}

.carousel-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255,215,0,0.5));
}

/* Perfect loop - translate exactly 50% */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carousel-wrapper:hover .carousel-container {
    animation-play-state: paused;
}

/* === Floating Buttons === */
.floating-buttons {
    position: fixed;
    left: 20px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.floating-buttons.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.float-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.float-btn:active::before {
    width: 200px;
    height: 200px;
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.telegram {
    background: #0088cc;
}

.float-btn:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.float-btn svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
}

.float-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
}

.float-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* === Footer === */
footer {
    background: rgba(0,0,0,0.6);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255,215,0,0.2);
    position: relative;
    z-index: 1;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p, .footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
    font-weight: 400;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(-5px);
}

.contact-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.contact-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.contact-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.contact-icon-btn.phone {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
}

.contact-icon-btn.phone:hover {
    background: #25D366;
}

.contact-icon-btn.whatsapp-icon {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25D366;
}

.contact-icon-btn.whatsapp-icon:hover {
    background: #25D366;
}

.contact-icon-btn.telegram-icon {
    background: rgba(0, 136, 204, 0.2);
    border-color: #0088cc;
}

.contact-icon-btn.telegram-icon:hover {
    background: #0088cc;
}

.contact-icon-btn svg {
    width: 18px;
    height: 18px;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px solid rgba(255,215,0,0.2);
    transition: all 0.3s;
    text-decoration: none;
    color: var(--white);
}

.social-icon:hover {
    transform: rotate(360deg) scale(1.1);
    background: rgba(255,215,0,0.2);
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

.social-icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* === Page Header (for subpages) === */
.page-header {
    margin-top: 100px;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.page-header p {
    font-size: 1.3rem;
    color: var(--text-gray);
}

/* === Content Box (for subpages) === */
.content-box {
    background: rgba(74, 0, 128, 0.3);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255,215,0,0.2);
    margin-bottom: 2rem;
    line-height: 2;
}

.content-box h2 {
    color: var(--gold);
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255,215,0,0.3);
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box h3 {
    color: var(--orange);
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
}

.content-box p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    text-align: justify;
}

.content-box ul {
    margin: 1rem 0;
    padding-right: 2rem;
}

.content-box ul li {
    margin-bottom: 0.8rem;
    color: var(--text-gray);
    position: relative;
}

.content-box ul li::marker {
    color: var(--gold);
    font-size: 1.2rem;
}

.highlight-box {
    background: rgba(255,215,0,0.1);
    border-right: 4px solid var(--gold);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.highlight-box p {
    margin: 0;
    color: var(--white);
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--gold), var(--orange));
    color: var(--dark-purple);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 2rem 0;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
}

.back-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255,215,0,0.4);
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-text {
        display: block;
        font-size: 1.2rem;
    }

    .hero {
        margin-top: 70px;
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .floating-buttons {
        left: 15px;
        bottom: 20px;
    }

    .float-btn {
        width: 52px;
        height: 52px;
    }

    .float-btn svg {
        width: 26px;
        height: 26px;
    }

    .float-btn::after {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .offer-card {
        padding: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }

    .partner-card {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        padding: 0.5rem 1rem;
        background: rgba(255,215,0,0.1);
        border-radius: 20px;
        font-size: 0.9rem;
    }

    .contact-icons {
        justify-content: center;
    }

    .contact-icon-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    footer {
        padding: 2rem 0 1rem;
    }

    /* Smaller square cards on mobile */
    .carousel-item {
        width: 100px;
        height: 100px;
        margin: 0 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .content-box {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .carousel-item {
        width: 90px;
        height: 90px;
        margin: 0 0.8rem;
    }
}

/* === Touch Feedback === */
.touch-feedback:active {
    transform: scale(0.95);
}