/* Color Palette & Variables */
:root {
    --primary: #1e40af;
    /* Deep Royal Blue */
    --primary-hover: #1e3a8a;
    --secondary: #f97316;
    /* Vibrant Amber Orange */
    --secondary-hover: #ea580c;
    --success: #22c55e;
    /* WhatsApp Green */
    --success-hover: #16a34a;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    /* Dark Slate */
    --text-secondary: #475569;
    /* Medium Slate */
    --text-light: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

/* Container limits */
.header-container,
.hero-container,
.services-section,
.features-container,
.cta-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.header-contact .phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    background-color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(30, 64, 175, 0.2);
    transition: var(--transition);
}

.header-contact .phone-link:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.header-contact .phone-link i {
    font-size: 0.9rem;
    animation: wobble 2s infinite;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: radial-gradient(circle at 10% 20%, rgba(30, 64, 175, 0.05) 0%, rgba(255, 255, 255, 0) 90%);
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    background-color: rgba(249, 115, 22, 0.1);
    color: var(--secondary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-call {
    background-color: var(--primary);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.25);
}

.btn-call:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.35);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

.btn-whatsapp {
    background-color: var(--success);
    color: var(--text-light);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.25);
}

.btn-whatsapp:hover {
    background-color: var(--success-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.35);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.shutter-illustration {
    position: relative;
    width: 320px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08) 0%, rgba(249, 115, 22, 0.08) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blob-bounce 6s linear infinite;
}

.illustration-box {
    position: relative;
    width: 56%;
    height: 56%;
    background-color: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutter-icon-main {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--primary);
}

.icon-badge {
    position: absolute;
    bottom: -8%;
    left: -8%;
    width: 30%;
    height: 30%;
    background-color: var(--secondary);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.85rem, 3vw, 1.3rem);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    border: 3px solid var(--bg-card);
    animation: spin-slow 8s linear infinite;
}

/* Services Section */
.services-section {
    padding: 80px 20px;
    background-color: var(--bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-main);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 64, 175, 0.2);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(30, 64, 175, 0.08);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background-color: var(--primary);
    color: var(--text-light);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.features-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.features-img {
    flex: 1;
    position: relative;
    height: 380px;
    background-color: var(--bg-card);
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-badge-box {
    position: absolute;
    top: 30px;
    right: -20px;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.feature-badge-box .number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.feature-badge-box .text {
    font-size: 0.8rem;
    font-weight: 600;
}

.features-tech-card {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
}

.features-tech-card i {
    font-size: 2rem;
    color: var(--secondary);
}

.features-tech-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.features-tech-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.features-content {
    flex: 1.2;
}

.section-header.align-right {
    text-align: right;
    margin-bottom: 35px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-item i {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-top: 3px;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--text-light);
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 10%, transparent 80%);
}

.cta-container {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-banner p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-buttons .btn-call {
    background-color: var(--secondary);
}

.cta-buttons .btn-call:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

/* Footer */
.main-footer {
    background-color: #0f172a;
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Sticky bottom CTA for Mobile */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid var(--border-color);
}

.btn-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background-color: #080808;
    color: var(--text-light);
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-sticky::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.btn-sticky:hover {
    background-color: #222222;
    transform: translateY(-1px);
}

/* Animations definition */
@keyframes wobble {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(10deg);
    }

    45% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes blob-bounce {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    33% {
        border-radius: 70% 30% 50% 50% / 30% 70% 30% 70%;
    }

    66% {
        border-radius: 50% 50% 30% 70% / 70% 30% 70% 30%;
    }
}

/* Keywords Section */
.keywords-section {
    padding: 80px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-color);
}

.keywords-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.keywords-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.keyword-chip {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-card);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.keyword-chip::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background-color: var(--secondary);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.keyword-chip:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 64, 175, 0.15);
    box-shadow: var(--shadow-lg);
}

.keyword-chip:hover::before {
    transform: scaleY(1);
}

.chip-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 64, 175, 0.06);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.keyword-chip:hover .chip-icon-box {
    background-color: var(--primary);
    color: var(--text-light);
    transform: rotate(5deg) scale(1.05);
}

.keyword-chip span {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Responsive queries */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-container {
        flex-direction: column-reverse;
    }

    .features-img {
        width: 100%;
        max-width: 450px;
    }

    .section-header.align-right {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .cta-banner h2 {
        font-size: 1.6rem;
    }

    .hero-actions .btn-call {
        display: none !important;
    }

    .header-contact {
        display: block;
    }

    .header-contact .phone-link {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    body {
        padding-bottom: 80px;
        /* Space for bottom sticky bar */
    }

    .mobile-sticky-cta {
        display: block;
    }
}

@media (max-width: 480px) {
    .shutter-illustration {
        width: 260px;
    }

    .brand-name {
        font-size: 0.9rem;
    }

    .header-contact .phone-link {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .logo-icon {
        font-size: 1.3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background-color: var(--bg-card);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.gallery-item {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background-color: #f8fafc;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 64, 175, 0.15);
}

.gallery-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.gallery-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img-wrapper img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 64, 175, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-zoom-icon {
    color: var(--text-light);
    font-size: 2rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-zoom-icon {
    transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 85%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    display: block;
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f5f9;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10002;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.lightbox-close:hover {
    color: var(--secondary);
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border: none;
    font-size: 1.5rem;
    padding: 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10001;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background-color: var(--secondary);
    color: var(--text-light);
}

.lightbox-prev {
    left: 40px;
}

.lightbox-next {
    right: 40px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
}