/*
 * Hoorain Mobile Phones & Accessories Trading Co LLC
 * Custom Stylesheet
 * Dubai, UAE
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Variables)
   ============================================ */
:root {
    --primary-color: #c9a227;      /* Gold - Dubai luxury feel */
    --secondary-color: #1a1a2e;    /* Dark navy */
    --accent-color: #16213e;       /* Deep blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0f0f23;
    --gradient-gold: linear-gradient(135deg, #c9a227 0%, #f4d03f 50%, #c9a227 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 5px 20px rgba(201, 162, 39, 0.3);
    --transition-smooth: all 0.3s ease;
    --border-radius: 10px;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-gold {
    color: var(--primary-color) !important;
}

.bg-gold {
    background: var(--gradient-gold) !important;
}

.bg-dark-custom {
    background: var(--gradient-dark) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
    background: var(--gradient-gold);
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
    color: var(--secondary-color);
}

.btn-outline-gold {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-gold:hover {
    background: var(--gradient-gold);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light) !important;
}

.navbar-brand span {
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    padding: 10px 20px !important;
    position: relative;
    transition: var(--transition-smooth);
}

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

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

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

.navbar-toggler {
    border: none;
    padding: 10px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28201, 162, 39, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: var(--gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23c9a227" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-phone-img {
    max-width: 400px;
    animation: floatAnimation 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(201, 162, 39, 0.3));
}

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

.hero-badge {
    position: absolute;
    background: var(--gradient-gold);
    color: var(--secondary-color);
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
    animation: pulse 2s infinite;
}

.hero-badge.badge-1 {
    top: 20%;
    right: 10%;
}

.hero-badge.badge-2 {
    bottom: 20%;
    left: 10%;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.feature-card {
    background: var(--text-light);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature-card h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* ============================================
   BRANDS SECTION
   ============================================ */
.brand-logo {
    padding: 20px;
    background: var(--text-light);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    box-shadow: var(--shadow-soft);
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.brand-logo img {
    max-height: 50px;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.brand-logo:hover img {
    filter: grayscale(0%);
}

/* ============================================
   PHONE CARDS
   ============================================ */
.phone-card {
    background: var(--text-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

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

.phone-card-img {
    position: relative;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
    overflow: hidden;
}

.phone-card-img img {
    max-height: 250px;
    transition: var(--transition-smooth);
}

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

.phone-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-gold);
    color: var(--secondary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.phone-card-body {
    padding: 25px;
}

.phone-brand {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.phone-name {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.phone-specs {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.phone-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.phone-price span {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

/* ============================================
   FILTER BUTTONS
   ============================================ */
.filter-btn {
    background: var(--text-light);
    border: 2px solid #e9ecef;
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

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

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-section {
    background: var(--gradient-dark);
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.video-wrapper iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.about-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Stats Counter */
.stat-box {
    text-align: center;
    padding: 30px 20px;
    background: var(--text-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info-box {
    background: var(--gradient-dark);
    padding: 40px;
    border-radius: var(--border-radius);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-right: 20px;
}

.contact-text h5 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--text-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.form-control {
    border: 2px solid #e9ecef;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.15);
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

/* Form Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Map */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    background: var(--gradient-dark);
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23c9a227" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.page-header h1 {
    color: var(--text-light);
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb {
    justify-content: center;
    position: relative;
    z-index: 2;
}

.page-header .breadcrumb-item a {
    color: var(--primary-color);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding-top: 80px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.footer-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 60px;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s infinite;
}

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

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-dark);
    color: var(--text-light);
    border: none;
    padding: 20px 30px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
}

.modal-phone-img {
    max-height: 300px;
    margin: 0 auto;
    display: block;
}

/* ============================================
   CAROUSEL CUSTOMIZATION
   ============================================ */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(0);
    width: 20px;
    height: 20px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(201, 162, 39, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-phone-img {
        max-width: 300px;
        margin: 40px auto 0;
    }

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

    .navbar-collapse {
        background: var(--secondary-color);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
    }

    .hero-badge {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .contact-form,
    .contact-info-box {
        padding: 25px;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .btn-gold,
    .btn-outline-gold {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
