/* 
    Design System for Ardh Aljanoob Mobile Phones
    Colors: Deep Indigo, Electric Blue, White, Accents: Gold/Red
    Theme: Modern, Premium, Glassmorphism
*/

:root {
    --primary-color: #1a0000;           /* Very dark red-black */
    --secondary-color: #e53935;         /* Vivid red — matches logo */
    --secondary-dark:  #b71c1c;         /* Deeper red for hover states */
    --accent-color: #ff6b6b;            /* Soft red accent */
    --text-primary: #f8f9fa;
    --text-secondary: #cfd8dc;
    --bg-dark: #0d0d0d;
    --bg-gradient: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 60%, #200000 100%);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.09);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --container-width: 1200px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .sub-title {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--glass-shadow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 1rem;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.65);
    background: var(--secondary-dark);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    background: white;
    padding: 4px 10px;
    transition: var(--transition-smooth);
}

.logo img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Mobile Nav Active */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 40px;
        z-index: 999;
    }
    .nav-links.active a {
        font-size: 1.5rem;
    }
}

/* Section Header */
.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.sub-title {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 35px;
    color: var(--text-secondary);
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 50px rgba(229, 57, 53, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

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

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-smooth);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 10px 40px rgba(229, 57, 53, 0.15);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Brands */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.brand-item {
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.5;
    transition: var(--transition-smooth);
    letter-spacing: 3px;
}

.brand-item:hover {
    opacity: 1;
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-item {
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(229, 57, 53, 0.55);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.product-item:hover::after {
    opacity: 1;
}

.product-item:hover img {
    transform: scale(1.08);
}

/* Lightbox Overlay */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#lightbox.open {
    display: flex;
}
#lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(229, 57, 53, 0.4);
    object-fit: contain;
}
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}
#lightbox-close:hover {
    color: var(--secondary-color);
}
#lightbox-prev, #lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.5rem;
    padding: 12px 18px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: var(--transition-smooth);
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover, #lightbox-next:hover {
    background: var(--secondary-color);
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 60px;
}

.info-items {
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.08);
}

#form-status {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.45);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 500;
}
#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
#back-to-top:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

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

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

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    animation: fadeInUp 1s ease-out forwards;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 3.5rem; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-text p { margin: 0 auto 35px; }
    .hero-image { order: -1; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-container { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero-text h1 { font-size: 2.8rem; }
    .section-header h2 { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-item { height: 180px; }
    .footer-content { flex-direction: column; gap: 20px; text-align: center; }
    #back-to-top { bottom: 20px; right: 16px; width: 42px; height: 42px; font-size: 1rem; }
}
