/* 
    NEXT FOUR TELECOM FZCO - IMPROVED UI
    Final Polished Styles including Header alignment and About overlay.
*/

:root {
    --primary-blue: #0565b0;
    --light-blue: #3bc1ff;
    --black: #000000;
    --maroon: #8a1a1a;
    --bg-light: #f8f9fa;
    --gray-text: #555555;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--black);
    line-height: 1.7;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
}

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

/* Typography */
.white-text { color: #fff; }
.text-black { color: var(--black); }
.text-light-blue { color: var(--light-blue); }
.text-primary-blue { color: var(--primary-blue); }
.centered { text-align: center; }

.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 800;
    color: var(--primary-blue);
}

/* Header */
header {
    background: #fff;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.main-logo {
    height: 85px; /* Increased size */
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.main-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    background: #fff;
    position: relative;
}

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

.hero-left { flex: 1; }
.hero-title { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { font-size: 1.5rem; color: var(--gray-text); }
.hero-right { flex: 0.8; text-align: right; }
.hero-image { width: 100%; max-width: 500px; }

/* SVG Dividers */
.svg-divider { position: absolute; left: 0; width: 100%; line-height: 0; }
.bottom-wave { bottom: -1px; }
.shape-fill { fill: #8a1a1a; }

/* About Hero (Text over Image) */
.about-hero {
    position: relative;
    height: 600px;
    width: 100%;
}

.about-bg-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(138, 26, 26, 0.85), rgba(0, 0, 0, 0.7));
    z-index: 1;
}

.about-text-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    padding: 60px 0;
}

.about-description {
    max-width: 800px;
}

.about-description p {
    font-size: 1.3rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Brands Section */
.brands-section { padding: 100px 0; background: var(--bg-light); }
.brands-container { display: flex; align-items: center; gap: 60px; }
.brands-left { flex: 1; }
.brands-right { flex: 2; }
.brands-logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Brands Section Improvement */
.brand-item-box { 
    background: #fff; 
    padding: 30px; 
    border-radius: 20px; 
    text-align: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.brand-item-box:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--light-blue);
}

.brand-item-box img { 
    height: 55px; 
    width: auto; 
    margin-bottom: 12px;
    filter: grayscale(100%); 
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.brand-item-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item-box span { display: block; font-weight: 700; color: #777; font-size: 0.8rem; }

/* Products Section */
.products-section { 
    padding: 100px 0; 
    background: #fff;
}

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

.product-card { 
    height: 380px; 
    border-radius: 20px; 
    overflow: hidden; 
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: var(--transition-smooth);
    position: relative;
    border: 1px solid #f0f0f0;
}

.product-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Better for product photos to not clip */
    padding: 20px;
    background: #fdfdfd;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); 
}

.product-card:hover { 
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--light-blue);
}

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

/* Optional Overlay on hover */
.product-card::after {
    content: 'PREMIUM QUALITY';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.product-card:hover::after {
    bottom: 0;
}

/* Contact Section */
.contact-section { padding: 100px 0; background: var(--bg-light); }
.contact-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.contact-col { background: #fff; padding: 30px; border-radius: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.contact-item { display: flex; gap: 15px; margin-bottom: 20px; }
.contact-item i { width: 45px; height: 45px; background: rgba(5, 101, 176, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); }

/* Form Improvement */
.form-col input, 
.form-col textarea {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--black);
    transition: var(--transition-smooth);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-col input:focus, 
.form-col textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(5, 101, 176, 0.1);
    background: #fff;
}

.form-col input::placeholder, 
.form-col textarea::placeholder {
    color: #aaaaaa;
    font-weight: 500;
}

/* Interactive Cursor Polish for images */
.hero-image, .product-card img, .about-bg-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05) translateX(10px);
}

.contact-submit-btn { 
    width: 100%; 
    padding: 18px; 
    background: var(--primary-blue); 
    color: #fff; 
    border: none; 
    border-radius: 15px; 
    font-weight: 800; 
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(5, 101, 176, 0.2);
}

.contact-submit-btn:hover {
    background: var(--black);
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* Footer */
footer { padding: 60px 0 30px; text-align: center; border-top: 1px solid #eee; }
.footer-logo-img { height: 75px; width: auto; margin-bottom: 20px; } /* Increased size */
.copyright { color: #888; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .brands-container { flex-direction: column; }
    .contact-three-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        justify-content: center;
        z-index: 3000;
    }
}
