/* Google Fonts */
* {
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Navbar */
.custom-navbar {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #000 0%, #1a1a1a 50%, #000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23ffc107" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #ffc107;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 193, 7, 0.5));
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Buttons */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #000;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
}

.btn-outline-warning {
    border: 2px solid #ffc107;
    color: #ffc107;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
}

/* About Section */
.about-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.info-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 193, 7, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Company Info Section */
#company-info {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    padding: 80px 0;
}

.company-content-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.company-content-card:hover {
    border-color: #ffc107;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.2);
    transform: translateY(-5px);
}

.vision-mission-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    border: 2px solid rgba(255, 193, 7, 0.2);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.vision-mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffc107, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vision-mission-card:hover::before {
    transform: scaleX(1);
}

.vision-mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.vision-mission-card:hover .card-icon {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    transform: scale(1.1) rotate(5deg);
}

.card-icon i {
    font-size: 2.5rem;
}

.vision-mission-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.vision-mission-card p {
    line-height: 1.8;
    font-size: 1rem;
}

.vision-mission-card p strong {
    color: #ffc107;
    display: block;
    margin-bottom: 10px;
}

/* Brands Section */
#brands {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    padding: 80px 0;
}

.brand-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 193, 7, 0.4);
    border-color: #ffc107;
    background: rgba(255, 255, 255, 0.08);
}

.brand-image-wrapper {
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.brand-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover .brand-image-wrapper::before {
    opacity: 1;
}

.brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.brand-card:hover .brand-image {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1);
}

.brand-info {
    padding: 25px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.brand-description {
    color: #ccc;
    margin: 0;
}

/* Branches Section */
.branch-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 193, 7, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    min-height: calc(100vh - 80px);
}

.contact-info-card,
.contact-form-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 5px;
}

.custom-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Map */
.map-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.google-map,
#map {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 193, 7, 0.3);
    background: rgba(255, 193, 7, 0.1);
    z-index: 1;
}

/* Leaflet Map Customization */
.leaflet-container {
    background: #1a1a1a !important;
    font-family: 'Cairo', sans-serif;
}

.leaflet-popup-content-wrapper {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-tip {
    background: #fff;
}

.leaflet-control-zoom {
    border: 2px solid rgba(255, 193, 7, 0.3) !important;
    border-radius: 5px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: #ffc107 !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.3) !important;
}

.leaflet-control-zoom a:hover {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #fff !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffc107 !important;
    font-size: 11px;
    padding: 5px;
}

.leaflet-control-attribution a {
    color: #ffc107 !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-top: 2px solid rgba(255, 193, 7, 0.3);
}

.footer-logo {
    width: 80px;
    height: auto;
    border-radius: 8px;
}

.social-links a {
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: #ffc107 !important;
}

.social-links .tiktok-icon svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.social-links .tiktok-icon:hover svg {
    transform: scale(1.2);
}

/* Brand Images Enhancement */
.brand-image {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .google-map {
        height: 400px;
    }
    
    .brand-image-wrapper {
        height: 250px;
        padding: 15px;
    }
    
    .company-content-card {
        padding: 30px 20px;
    }
    
    .vision-mission-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
    }
    
    .card-icon i {
        font-size: 2rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff9800;
}

