@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: var(--transition-smooth);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary-navy: #0a192f;
    --secondary-navy: #112240;
    --primary-gold: #D4AF37;
    --gold-dark: #B8860B;
    --gold-light: #f1d279;
    --text-white: #e6f1ff;
    --text-silver: #8892b0;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--white);
    color: var(--primary-navy);
    line-height: 1.8;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}


/* Header & Top Bar */
.top-bar {
    background: var(--primary-navy);
    color: var(--text-white);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.top-bar .social-links {
    display: flex;
    gap: 1.2rem;
}

.top-bar .social-links a {
    color: var(--text-white);
    font-size: 0.95rem;
    opacity: 0.8;
}

.top-bar .social-links a:hover {
    color: var(--primary-gold);
    opacity: 1;
}

section {
    padding: 60px 5%;
    position: relative;
    width: 100%;
    clear: both;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
}

/* Header Adjustments */
header {
    background: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.7rem 5%;
    box-shadow: var(--shadow-md);
}

.logo img {
    height: 60px;
    width: auto;
    mix-blend-mode: multiply; /* Removes white background */
    transition: var(--transition-smooth);
}

footer .footer-logo img {
    height: 80px;
    mix-blend-mode: multiply;
    background: white; /* Ensures multiply works well on dark footer */
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

nav ul {
    list-style: none !important;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
}

nav ul li a {
    text-decoration: none !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-charcoal);
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section Redesign */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.7)), url('../assets/images/team-capability.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-navy) 100%);
    opacity: 0.4;
}

.hero-box {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    color: var(--text-silver);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.btn-primary {
    padding: 1rem 2.5rem;
    background: var(--primary-gold);
    color: var(--primary-navy);
    border-radius: 5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--white);
    border-radius: 5px;
    font-weight: 700;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
    margin-right: 1rem;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* Stats Section */
.stats-section {
    background: var(--primary-navy);
    padding: 80px 5%;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--text-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Why Us Section */
.why-us {
    background: var(--bg-light);
    padding: 100px 5%;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border-bottom: 5px solid transparent;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--primary-gold);
}

.why-card .icon-box {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    font-size: 2.5rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.why-card:hover .icon-box {
    background: var(--primary-gold);
    color: var(--primary-navy);
}

.why-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.why-card p {
    color: var(--text-silver);
    line-height: 1.6;
}

/* Partners styles removed */

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-silver);
    z-index: 5;
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-silver);
    border-radius: 15px;
    position: relative;
    margin-bottom: 10px;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary-gold);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.slider-header {
    margin-bottom: 3rem;
    text-align: center;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gold);
    color: var(--white);
    border-color: var(--primary-gold);
}

.slider-viewport {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    height: 600px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.mega-slider {
    height: 100%;
    position: relative;
}

.project-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    transform: scale(1.05);
}

.project-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 4rem;
    color: var(--white);
    text-align: right;
}

.slide-caption h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.slide-caption p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Slider Controls */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-nav:hover {
    background: var(--primary-gold);
}

.slider-nav.prev { right: 20px; }
.slider-nav.next { left: 20px; }

/* About Section */
.about {
    padding: 60px 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.about-image, .about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h2 {
    font-size: 2.8rem;
    color: var(--primary-navy);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-silver);
    text-align: justify;
}

.about-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

.company-goals { display: none; } /* Replaced by new section */

.activities-section {
    background: var(--bg-light);
    padding: 80px 5%;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
}

.activity-card:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-md);
    border-right: 4px solid var(--primary-gold);
}

.activity-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-navy);
    color: var(--primary-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.activity-text h3 {
    font-size: 1.3rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.activity-text p {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.5;
}

/* Services Grid */
.services {
    padding: 60px 5%;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* Reduced gap */
}

.service-card {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-section {
    padding: 100px 5%;
    background: var(--bg-light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-card {
    background: var(--primary-navy);
    color: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
}

.contact-info-card h3 {
    font-size: 2.2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.contact-info-card p {
    color: var(--text-silver);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.card-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.card-item i {
    font-size: 1.8rem;
    color: var(--primary-gold);
    width: 30px;
    text-align: center;
}

.card-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--white);
}

.card-item p {
    color: var(--text-silver);
}

.booking-form {
    width: 100%;
    margin: 0;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25D366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

@media (max-width: 992px) {
    .contact-container { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.full-width {
    grid-column: span 2;
}

/* Map Section */
.map-section {
    width: 100%;
    height: 450px;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0 !important;
    padding: 0 !important;
}

/* Footer */
footer {
    background: var(--primary-navy);
    color: var(--white);
    padding: 100px 5% 0;
    position: relative;
    overflow: hidden;
}

.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.05;
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.footer-info .footer-logo img {
    height: 70px;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.footer-info .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-info .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info .social-links a:hover {
    background: var(--primary-gold);
    color: var(--primary-navy) !important;
    border-color: var(--primary-gold);
}

.footer-links h3, .footer-contact h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-links ul li a {
    color: var(--text-white);
    transition: var(--transition-smooth);
    display: block;
    padding: 0.5rem 0;
}

.footer-links ul li a:hover {
    color: var(--primary-gold);
    transform: translateX(-10px);
}

.footer-contact .info-item {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.info-text span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-silver);
}

.info-text strong {
    font-size: 1.1rem;
    color: var(--white);
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright p span {
    color: var(--primary-gold);
    font-weight: 700;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--text-silver);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-bottom-links a:hover {
    color: var(--white);
}

@media (max-width: 992px) {
    .contact-container { grid-template-columns: 1fr; }
    .contact-info-card { position: static; }
    .footer-content { grid-template-columns: 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .about { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: span 1; }
    .footer-content { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .hero h1 { font-size: 2.5rem; }
}
