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

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #f15a2b;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #d1481e;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: #f8f9fa;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 14px;
}

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

.top-bar-left {
    color: #666;
}

.top-bar-right {
    color: #666;
    direction: rtl;
}

/* Header */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-nav {
    background: #000;
    padding: 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 70px;
}

.logo img {
    height: 50px;
    width: auto;
}

.navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 25px 0;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu .current a {
    color: #f15a2b;
}

/* Dropdown Styling */
.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 3px solid #f15a2b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown li {
    display: block;
    border-bottom: 1px solid #333;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    padding: 12px 20px;
    color: #fff;
    font-weight: normal;
}

.dropdown a:hover {
    background: #f15a2b;
    color: #fff;
}

.search-btn {
    color: #fff;
    margin-left: 20px;
}

.search-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: #f15a2b;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #f15a2b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #d1481e;
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
}

.btn-secondary:hover {
    background: #555;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f15a2b 0%, #d1481e 100%);
    color: #fff;
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-text .highlight {
    color: #fff200;
    display: block;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    min-height: 300px;
    background: url('../imgs/about-img.webp') center/contain no-repeat;
    opacity: 0.8;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.about-text .highlight {
    color: #f15a2b;
}

.about-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

/* Products/Features Section */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: #f15a2b;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

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

/* Cable Categories Section */
.cables-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cable-category {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.cable-category:hover {
    transform: translateY(-5px);
}

.cable-category img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cable-category-content {
    padding: 20px;
}

.cable-category h3 {
    margin-bottom: 10px;
    color: #333;
}

.cable-category .count {
    background: #f15a2b;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
}

/* Footer */
.main-footer {
    background: #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 15px;
}

.footer-info h3,
.footer-links h4,
.footer-contact h4 {
    color: #f15a2b;
    margin-bottom: 15px;
}

.footer-info p {
    color: #ccc;
    font-size: 14px;
}

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

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

.footer-links a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f15a2b;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

.contact-item i {
    margin-right: 10px;
    color: #f15a2b;
    width: 16px;
}

.contact-item a {
    color: #ccc;
}

.contact-item a:hover {
    color: #f15a2b;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin-right: 10px;
    padding: 10px;
    background: #f15a2b;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 20px;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #d1481e;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

/* Mobile Navigation */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: #fff;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.mobile-nav-header img {
    height: 40px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu li {
    margin-bottom: 10px;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 0;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.mobile-nav-menu .submenu {
    display: none;
    padding-left: 20px;
}

.mobile-nav-menu .submenu.active {
    display: block;
}

.mobile-nav-menu .submenu a {
    padding: 8px 0;
    font-weight: normal;
    color: #666;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 5px;
    font-size: 16px;
}

.search-submit {
    padding: 12px 20px;
    background: #f15a2b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .nav-content {
        padding: 0 10px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .features-grid,
    .cables-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }

.primary-color { color: #f15a2b; }
.secondary-color { color: #333; }

.bg-primary { background-color: #f15a2b; }
.bg-secondary { background-color: #333; }
.bg-light { background-color: #f8f9fa; }

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.section-title .highlight {
    color: #f15a2b;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}



/* Mobile Submenu Fixes */
.mobile-nav-menu .has-submenu {
    position: relative;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

.mobile-submenu.active {
    max-height: 400px; /* Adjust based on number of items */
}

.mobile-submenu li {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
}

.mobile-submenu.active li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-submenu.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-submenu.active li:nth-child(2) { transition-delay: 0.15s; }
.mobile-submenu.active li:nth-child(3) { transition-delay: 0.2s; }
.mobile-submenu.active li:nth-child(4) { transition-delay: 0.25s; }
.mobile-submenu.active li:nth-child(5) { transition-delay: 0.3s; }
.mobile-submenu.active li:nth-child(6) { transition-delay: 0.35s; }
.mobile-submenu.active li:nth-child(7) { transition-delay: 0.4s; }
.mobile-submenu.active li:nth-child(8) { transition-delay: 0.45s; }

.mobile-nav-menu .has-submenu > a i {
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.mobile-nav-menu .has-submenu.active > a i {
    transform: rotate(180deg);
}

/* Ensure proper spacing */
.mobile-submenu a {
    padding: 10px 15px;
    display: block;
    color: #666;
    font-size: 14px;
}

.mobile-submenu a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.05);
}