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

:root {
    --primary-gold: #E6B721;
    --dark-bg: #16335D;
    --dark-secondary: #1A3A5F;
    --dark-card: #1E4268;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C9E0;
    --border-color: #2A4D77;
    --gradient-gold: linear-gradient(135deg, #E6B721 0%, #D4A520 100%);
    --shadow-lg: 0 10px 30px rgba(22, 51, 93, 0.5);
    --shadow-xl: 0 20px 40px rgba(22, 51, 93, 0.7);
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(22, 51, 93, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(22, 51, 93, 0.98);
}

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

.nav-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-brand .logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand .logo-link:hover {
    transform: scale(1.05);
}

.nav-brand img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: filter 0.3s ease;
}

.nav-brand img:hover {
    filter: drop-shadow(0 4px 8px rgba(230, 183, 33, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #16335D 0%, #1A3A5F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    z-index: 10;
    margin-bottom: 50px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(22, 51, 93, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 100;
    animation: fadeInUp 1s ease;
    padding-bottom: 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-top: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(230, 183, 33, 0.3);
    position: relative;
    z-index: 500;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 183, 33, 0.5);
}

/* Sections */
section {
    padding: 80px 0;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
}

/* About Section */
.about {
    background: var(--dark-secondary);
    position: relative;
    z-index: 5;
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

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

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

.service-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

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

/* Products Section */
.products {
    background: var(--dark-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--dark-card);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-card h3 {
    padding: 1rem;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.product-desc {
    padding: 0 1rem 1rem;
    color: var(--text-secondary);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* News Section */
.news {
    background: var(--dark-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-date {
    color: var(--primary-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.news-link:hover {
    color: var(--text-primary);
}

/* Trust Section */
.trust {
    background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
    padding: 100px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--dark-bg);
    font-weight: bold;
}

.trust-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.trust-item p {
    color: var(--text-secondary);
}

/* Gallery Section */
.gallery {
    background: var(--dark-bg);
    padding: 100px 0;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 280px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-caption {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Download Guide Section */
.download-guide {
    background: linear-gradient(135deg, var(--dark-secondary) 0%, var(--dark-bg) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Ensure all links in download guide have proper colors */
.download-guide a {
    color: inherit;
    text-decoration: none;
}

.download-guide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(230, 183, 33, 0.05) 0%, transparent 70%);
    animation: float 15s ease-in-out infinite;
}

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

.download-guide-wrapper {
    position: relative;
    z-index: 1;
}

.download-guide-content {
    background: var(--dark-card);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-guide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.download-guide-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.download-guide-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.download-buttons-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-gold);
    color: var(--dark-bg) !important;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(230, 183, 33, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    min-width: 200px;
    justify-content: center;
}

.btn-catalog::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-catalog:hover::before {
    width: 300px;
    height: 300px;
}

.btn-catalog:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(230, 183, 33, 0.5);
    color: var(--dark-bg) !important;
}

.btn-catalog:visited,
.btn-catalog:active,
.btn-catalog:focus {
    color: var(--dark-bg) !important;
    text-decoration: none !important;
    outline: none;
}

.btn-catalog .btn-icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.btn-catalog .btn-text {
    font-weight: 600;
}

/* Responsive design for download guide */
@media (max-width: 768px) {
    .download-guide-content {
        padding: 2rem;
    }

    .download-guide-title {
        font-size: 2rem;
    }

    .download-guide-subtitle {
        font-size: 1.1rem;
    }

    .download-buttons-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-catalog {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        width: 100%;
        max-width: 280px;
    }
}

/* Contact Section */
.contact {
    background: var(--dark-secondary);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

/* Dynamic grid columns based on number of cards */
.contact-grid-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.contact-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.contact-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.contact-card {
    background: var(--dark-card);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

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

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(230, 183, 33, 0.1) 0%, rgba(212, 165, 32, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--gradient-gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.contact-card h4 {
    font-size: 1.3rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 10px 25px;
    background: var(--gradient-gold);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 183, 33, 0.3);
}

.closed-day {
    color: #ff6b6b;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Dynamic footer grid columns based on number of sections */
.footer-content-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-content-2 {
    grid-template-columns: repeat(2, 1fr);
}

.footer-content-3 {
    grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--gradient-gold);
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--primary-gold);
    color: var(--dark-bg);
    box-shadow: 0 8px 20px rgba(230, 183, 33, 0.4);
}

.social-links a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-links a:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.video-lightbox.active {
    opacity: 1;
}

.video-lightbox-content {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.video-container {
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(230, 183, 33, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.video-lightbox-close:hover {
    color: var(--primary-gold);
    background: rgba(230, 183, 33, 0.2);
    transform: rotate(90deg);
}

/* Button styles for video trigger */
.btn-primary.video-trigger {
    cursor: pointer !important;
    border: none;
    position: relative;
    padding-left: 60px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-family: inherit;
    outline: none;
    background: var(--gradient-gold);
    user-select: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-primary.video-trigger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(230, 183, 33, 0.6);
    filter: brightness(1.1);
}

.btn-primary.video-trigger:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 20px rgba(230, 183, 33, 0.4);
}

.btn-primary.video-trigger::before {
    content: '▶';
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary.video-trigger:hover::before {
    transform: translateY(-50%) translateX(3px);
}

/* Gallery Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: none;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 3rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 300;
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--primary-gold);
}

.lightbox-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Navigation buttons */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(230, 183, 33, 0.3);
    border-color: var(--primary-gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Image counter */
.lightbox-counter {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 2001;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #16335D 0%, #1A3A5F 100%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.loading-spinner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(230, 183, 33, 0.1);
}

.loading-spinner::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary-gold);
    animation: spin 1s linear infinite;
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-weight: 400;
    animation: fadeInOut 2s ease-in-out infinite;
}

.loading-progress {
    width: 200px;
    height: 2px;
    background: rgba(230, 183, 33, 0.1);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-gold);
    width: 0;
    border-radius: 2px;
    animation: loadingProgress 2s ease-out forwards;
}

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

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

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes loadingProgress {
    0% {
        width: 0;
    }
    30% {
        width: 30%;
    }
    60% {
        width: 60%;
    }
    80% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-grid-3,
    .contact-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-lightbox-content {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    /* Video Lightbox Mobile */
    .video-lightbox {
        padding: 10px;
    }

    .video-lightbox-content {
        max-width: 100%;
    }

    .video-lightbox-close {
        top: 10px;
        right: 10px;
        position: fixed;
        z-index: 2001;
        background: rgba(0, 0, 0, 0.7);
    }

    .video-wrapper {
        margin-top: 70px;
    }

    .btn-primary.video-trigger {
        padding-left: 50px;
        font-size: 1rem;
    }

    .btn-primary.video-trigger::before {
        left: 20px;
        font-size: 1rem;
    }

    .nav-brand img {
        height: 40px;
    }

    .nav-brand h1 {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

    .section-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-grid-2,
    .contact-grid-3,
    .contact-grid-4 {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-item {
        height: 200px;
    }

    /* Lightbox mobile adjustments */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        font-size: 0.9rem;
        padding: 3px 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .stats {
        justify-content: space-around;
    }

    .services-grid,
    .products-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-content-2,
    .footer-content-3 {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}