@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');

:root {
    --primary: #0c5baa;
    --primary-rgb: 12, 91, 170;
    --secondary: #022b5b;
    --secondary-rgb: 2, 43, 91;
    --accent: #d4af37;
    --accent-rgb: 212, 175, 55;
    --accent-glow: #f7d24a;
    --dark-bg: #020914;
    --dark-card: #041329;
    --text-light: #f5f7fa;
    --text-muted: #8ea1b8;
    --glass-bg: rgba(12, 91, 170, 0.1);
    --glass-border: rgba(212, 175, 55, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Background Tech Grid effect */
.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(12, 91, 170, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(2, 43, 91, 0.3) 0%, transparent 50%),
        linear-gradient(rgba(2, 9, 20, 0.95), rgba(2, 9, 20, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54 48c-2 0-3 1-4 2v4c0 1-1 2-2 2h-4c-1 0-2 1-2 2s1 2 2 2h4c3 0 5-2 5-5v-3c1-1 2-2 4-2s3 1 4 2v3c0 3 2 5 5 5h4c1 0 2-1 2-2s-1-2-2-2h-4c-1 0-2-1-2-2v-4c-1-1-2-2-4-2zM30 20c-2 0-3 1-4 2v4c0 1-1 2-2 2h-4c-1 0-2 1-2 2s1 2 2 2h4c3 0 5-2 5-5v-3c1-1 2-2 4-2s3 1 4 2v3c0 3 2 5 5 5h4c1 0 2-1 2-2s-1-2-2-2h-4c-1 0-2-1-2-2v-4c-1-1-2-2-4-2zM6 48c-2 0-3 1-4 2v4c0 1-1 2-2 2h-4c-1 0-2 1-2 2s1 2 2 2h4c3 0 5-2 5-5v-3c1-1 2-2 4-2s3 1 4 2v3c0 3 2 5 5 5h4c1 0 2-1 2-2s-1-2-2-2h-4c-1 0-2-1-2-2v-4c-1-1-2-2-4-2z' fill='%230c5baa' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: -10;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(4, 19, 41, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-panel-hover {
    transition: var(--transition);
}
.glass-panel-hover:hover {
    background: rgba(12, 91, 170, 0.15);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 12px 40px 0 rgba(12, 91, 170, 0.2);
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    gap: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
    color: var(--secondary);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--primary);
}
.btn-secondary:hover {
    background: rgba(12, 91, 170, 0.2);
    border-color: var(--accent);
    color: var(--accent-glow);
}

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

header.scrolled {
    padding: 10px 0;
    background: rgba(2, 9, 20, 0.9);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    object-fit: cover;
    transition: var(--transition);
}

header.scrolled .logo-img {
    height: 40px;
    width: 40px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--accent-glow);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: var(--transition);
}

/* Sections */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    text-align: center;
    max-width: 100%;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-badge i {
    font-size: 0.8rem;
    color: var(--accent-glow);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 50%, var(--accent-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* About Us Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-paragraph {
    margin-bottom: 25px;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-card {
    padding: 25px;
    text-align: center;
}

.about-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    line-height: 60px;
    text-align: center;
}

.about-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.about-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.logo-big-container {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, var(--glass-border), transparent);
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.logo-big {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 3px solid var(--accent);
}

.floating-circuit {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(12, 91, 170, 0.2);
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-glow);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(12, 91, 170, 0.4);
    animation: float 6s ease-in-out infinite;
}

.float-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 3s;
}

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

/* Brands & Partners */
.brands-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.brand-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.brand-logo-txt {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
}

.brand-hoco {
    color: #fff;
    background: linear-gradient(135deg, #ff4e00 0%, #ec9f05 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-borofone {
    color: #fff;
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.brand-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.brand-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.brand-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(2, 9, 20, 0.95) 0%, rgba(12, 91, 170, 0.4) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(12, 91, 170, 0.2);
}

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

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

.gallery-cat {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.gallery-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.gallery-zoom-icon {
    align-self: flex-start;
    background: var(--accent);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Slider / Catalog Section */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(4, 19, 41, 0.4);
    padding: 40px 20px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 30px;
}

.slide {
    min-width: calc(33.333% - 20px);
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--dark-card);
    transition: var(--transition);
    cursor: pointer;
}

.slide:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.slide-img-container {
    height: 380px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: var(--transition);
}

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

.slide-info {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-brand {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.slide-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.slider-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
}

.slider-btn:hover {
    background: var(--accent);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* Contact Us */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.info-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
}

.info-details p, .info-details a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.info-details a:hover {
    color: var(--accent-glow);
}

.contact-form-container {
    padding: 40px;
}

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

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(2, 9, 20, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    background: rgba(2, 9, 20, 0.8);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

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

.lightbox.active {
    display: flex;
    opacity: 1;
}

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

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
}

.lightbox-title {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    left: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* Footer */
footer {
    background: #01060d;
    padding: 60px 20px 20px;
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-brand-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.footer-brand-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-glow);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

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

.social-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-btn:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

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

/* Responsive styles */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .brands-container {
        grid-template-columns: 1fr;
    }
    
    .slide {
        min-width: calc(50% - 15px);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background: rgba(2, 9, 20, 0.98);
        border-left: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu.active ~ .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-menu.active ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-menu.active ~ .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .slide {
        min-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
