/* ============================================
   وسيلة - الصفحة الرئيسية - CSS احترافي
   ============================================ */

:root {
    --primary-light: #3CA6B4;
    --primary-medium: #08788B;
    --primary-dark: #025469;
    --accent: #10b981;
    --gold: #fbbf24;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans Arabic', 'Inter', sans-serif;
    scroll-behavior: smooth;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

body.loaded {
    opacity: 1;
}

/* ============================================
   Navigation Styles
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.nav-link {
    position: relative;
    color: #333;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-medium);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-medium);
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 84, 105, 0.7) 0%, rgba(8, 120, 139, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-hero::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-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-hero-secondary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-medium) 100%);
    color: white;
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* ============================================
   Section Styles
   ============================================ */

.section {
    padding: 5rem 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(8, 120, 139, 0.2), transparent);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    padding-top: 2rem;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light), var(--gold));
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(8, 120, 139, 0.3);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(8, 120, 139, 0.2);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 120, 139, 0.1), transparent);
    transition: left 0.6s;
    z-index: 1;
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(2deg);
    box-shadow: 0 25px 60px rgba(8, 120, 139, 0.3);
    text-decoration: none;
    color: inherit;
}

.service-image-wrapper {
    overflow: hidden;
    height: 250px;
    position: relative;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(8, 120, 139, 0.3);
}

.service-card:hover::after {
    opacity: 0.1;
    transform: scale(1.5);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-medium);
    margin-bottom: 1rem;
}

.btn-service {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-service::before {
    content: '→';
    position: absolute;
    right: 1rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.btn-service:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.btn-service:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(8, 120, 139, 0.3);
    color: white;
}

/* ============================================
   About Section
   ============================================ */

.about-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(8, 120, 139, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-image: linear-gradient(white, #f8fafc), linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 120, 139, 0.1) 0%, transparent 70%);
    transition: transform 0.6s;
}

.stat-card:hover::before {
    transform: rotate(180deg);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 50px rgba(8, 120, 139, 0.3);
    border-color: var(--primary-medium);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(8, 120, 139, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ============================================
   Features Section
   ============================================ */

.features-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(8, 120, 139, 0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    box-shadow: 0 12px 30px rgba(8, 120, 139, 0.35), inset 0 2px 10px rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.feature-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon::before {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(8, 120, 139, 0.25);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   Gallery Section
   ============================================ */

.gallery-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
}

/* ============================================
   Our Work Section - Infinite Scroll Animation
   ============================================ */

.our-work-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    padding: 4rem 0;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.our-work-scroll-wrapper {
    width: 100% !important;
    overflow: hidden !important;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    display: block !important;
    contain: layout style paint; /* Performance optimization */
}

.our-work-scroll-track {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.5rem;
    width: max-content !important;
    animation: scroll-infinite-horizontal 80s linear infinite;
    will-change: transform;
    flex-wrap: nowrap !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden;
    perspective: 1000px;
}

.our-work-scroll-wrapper {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.our-work-card-item {
    flex: 0 0 380px !important;
    width: 380px !important;
    height: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    background: #fff;
    cursor: pointer;
    display: block !important;
    float: none !important;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}

.our-work-card-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(8, 120, 139, 0.4);
    z-index: 10;
}

.our-work-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #08788B 0%, #025469 100%);
}

.our-work-card-inner img,
.our-work-card-inner video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    transform: translateZ(0); /* Hardware acceleration */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.our-work-card-inner video {
    background: #000;
}

.our-work-card-item:hover .our-work-card-inner img,
.our-work-card-item:hover .our-work-card-inner video {
    transform: scale(1.1);
}

.our-work-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 120, 139, 0.95) 0%, rgba(2, 84, 105, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    backdrop-filter: blur(2px);
}

.our-work-card-item:hover .our-work-card-overlay {
    opacity: 1;
}

.our-work-card-info {
    color: #fff;
    width: 100%;
}

.our-work-card-info h4 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.our-work-card-info p {
    display: none !important;
}

@keyframes scroll-infinite-horizontal {
    0% {
        transform: translateX(0) translateZ(0);
    }
    100% {
        transform: translateX(calc(-50%)) translateZ(0);
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .our-work-card-item {
        flex: 0 0 320px;
        width: 320px;
        height: 320px;
    }
    
    .our-work-scroll-track {
        gap: 1.25rem;
        animation-duration: 50s;
    }
    
    .our-work-section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .our-work-card-item {
        flex: 0 0 280px;
        width: 280px;
        height: 280px;
    }
    
    .our-work-scroll-track {
        gap: 1rem;
        animation-duration: 45s;
    }
    
    .our-work-card-info h4 {
        font-size: 1.1rem;
    }
    
    .our-work-card-info p {
        font-size: 0.85rem;
    }
}

/* Gallery Grid (for backward compatibility) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 120, 139, 0.8) 0%, rgba(60, 166, 180, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    animation: zoomIn 0.5s ease;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.contact-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.contact-info h5 {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin: 0;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: rgba(251, 191, 36, 1);
}

.contact-info:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3) 0%, rgba(251, 191, 36, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1.5rem;
    font-size: 1.75rem;
    transition: var(--transition);
    border: 2px solid rgba(251, 191, 36, 0.4);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.2);
    color: var(--gold);
}

.contact-info:hover .contact-icon {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5) 0%, rgba(251, 191, 36, 0.3) 100%);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    border-color: var(--gold);
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    width: 100%;
    margin-bottom: 1rem;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    direction: rtl;
    text-align: right;
}

.contact-form input[type="tel"],
.contact-form input[type="text"],
.contact-form input[type="email"] {
    direction: rtl;
    text-align: right;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5);
    direction: rtl;
    text-align: right;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3), 0 4px 15px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.btn-submit::after {
    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-submit:hover::after {
    width: 400px;
    height: 400px;
}

.btn-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.5);
}

.btn-submit:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-submit::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-submit:hover::before {
    width: 300px;
    height: 300px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-medium), var(--primary-light), var(--gold));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: var(--transition);
    display: block;
}

.footer-section a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Floating Buttons
   ============================================ */

.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-btn button,
.whatsapp-btn a {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.floating-btn button:hover,
.whatsapp-btn a:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Lightbox
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* ============================================
   Scroll Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        margin-top: 60px;
    }
    
    .hero-video-container iframe {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: 95%;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
        display: flex;
        flex-wrap: wrap;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        flex: 0 0 auto;
        width: 100%;
    }
    
    /* Ensure our-work-scroll-track is not affected by row styles */
    .our-work-scroll-track,
    .our-work-scroll-track > * {
        width: auto !important;
        flex: none !important;
        display: block !important;
    }
    
    .our-work-scroll-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    
    .our-work-card-item {
        flex: 0 0 380px !important;
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
    }
    
    /* Ensure all service cards are visible */
    .services-section .row {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .services-section .col-md-6,
    .services-section .col-lg-4 {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
    }
    
    @media (min-width: 768px) {
        .services-section .col-md-6 {
            width: 50% !important;
        }
    }
    
    @media (min-width: 992px) {
        .services-section .col-lg-4 {
            width: 33.333333% !important;
        }
    }
    
    .section-title {
        font-size: 1.75rem;
        padding-top: 1.5rem;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .btn-hero {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .service-body {
        padding: 1.25rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .contact-container {
        padding: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .floating-btn,
    .whatsapp-btn {
        bottom: 15px;
    }
    
    .floating-btn {
        right: 15px;
    }
    
    .whatsapp-btn {
        left: 15px;
    }
    
    .whatsapp-btn a {
        width: 50px;
        height: 50px;
        padding: 0.75rem;
    }
    
    .whatsapp-btn a i {
        font-size: 1.5rem;
    }
    
    .about-content {
        padding: 0 1rem;
    }
    
    .about-text {
        padding: 0;
    }
    
    .about-image {
        margin-top: 1.5rem;
    }
}

@media (max-width: 576px) {
    html, body {
        margin: 0;
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    * {
        box-sizing: border-box;
    }
    
    .hero-section {
        min-height: 60vh;
        margin-top: 55px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-video-container {
        padding-left: 0;
        padding-right: 0;
    }
    
    .hero-video-container iframe {
        min-height: 60vh;
        width: 100%;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        margin: 0.75rem auto;
        max-width: calc(100% - 1.5rem);
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(20px);
        border-radius: 16px;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        padding-top: 1rem;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .section-title::before {
        width: 80px;
        height: 4px;
    }
    
    .section-title::after {
        width: 100px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .hero-buttons {
        gap: 0.625rem;
    }
    
    .btn-hero {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .btn-hero i {
        font-size: 0.9rem;
    }
    
    .service-body {
        padding: 1rem;
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        padding: 0 0.25rem;
    }
    
    .contact-container {
        padding: 1.25rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 0.875rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .btn-submit {
        padding: 0.75rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .whatsapp-btn {
        bottom: 12px;
        left: 12px;
    }
    
    .whatsapp-btn a {
        width: 48px;
        height: 48px;
        padding: 0.625rem;
    }
    
    .whatsapp-btn a i {
        font-size: 1.4rem;
    }
    
    .whatsapp-btn a span {
        width: 5px;
        height: 5px;
        font-size: 0.65rem;
        top: -1px;
        right: -1px;
    }
    
    .about-content {
        padding: 0 0.75rem;
    }
    
    .about-text {
        padding: 0;
    }
    
    .about-image {
        margin-top: 1.25rem;
    }
    
    .contact-info {
        padding: 0.75rem;
    }
}

/* ============================================
   Professional Animations
   ============================================ */

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(8, 120, 139, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(8, 120, 139, 0.8), 0 0 30px rgba(8, 120, 139, 0.6);
    }
}

/* Smooth Entrance Animations */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-down {
    animation: fadeInDown 0.8s ease-out forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.rotate-in {
    animation: rotateIn 0.8s ease-out forwards;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(8, 120, 139, 0.6);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* Parallax Effect */
.parallax {
    transition: transform 0.3s ease-out;
}

/* Shimmer Effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Floating Animation */
.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Glow Animation */
.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

/* Enhanced Card Animations */
.service-card,
.feature-card,
.stat-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover,
.feature-card:hover,
.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Button Animations */
.btn-animated {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-animated::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-animated:hover::before {
    width: 300px;
    height: 300px;
}

.btn-animated:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Text Animations */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Gradient Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(8, 120, 139, 0.2);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
}

.bg-gradient-gold {
    background: linear-gradient(135deg, var(--gold), #f59e0b);
}

/* ============================================
   Loading States
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Custom Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-light));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
}

/* ============================================
   Fix Left Spacing on Mobile
   ============================================ */

@media (max-width: 576px) {
    /* Ensure no left padding/margin on body and html */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Fix container spacing */
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    /* Fix sections */
    section, .section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix specific sections */
    .our-work-section,
    .gallery-section,
    .services-section,
    .features-section,
    .stats-section,
    .contact-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fix our work container */
    .our-work-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix hero section */
    .hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .hero-video-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

