/* ===================================
   General Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --dark-red: #B22222;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    background-color: var(--black) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !important;
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(220, 20, 60, 0.5);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.logo:hover::before {
    animation: shine 1.5s infinite;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.6);
}

.logo-q {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-right: -6px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-i {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.brand-text {
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .brand-text {
        font-size: 0.9rem;
    }
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
    background-color: rgba(220, 20, 60, 0.1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    background-image: url('../images/products/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    padding-top: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(220,20,60,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    background: radial-gradient(circle at 30% 50%, rgba(220, 20, 60, 0.3) 0%, rgba(0, 0, 0, 0.7) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1.4s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1.6s ease;
}

.btn-primary {
    background-color: var(--primary-red);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--black);
    transform: translateY(-2px);
}

.hero-logo-large {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 2s infinite;
}

.logo-q-large {
    font-size: 12rem;
    font-weight: 900;
    color: var(--primary-red);
    margin-right: -30px;
    text-shadow: 0 0 40px rgba(220, 20, 60, 0.6), 0 0 80px rgba(220, 20, 60, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.logo-i-large {
    font-size: 12rem;
    font-weight: 900;
    color: var(--primary-red);
    text-shadow: 0 0 40px rgba(220, 20, 60, 0.6), 0 0 80px rgba(220, 20, 60, 0.3);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.hero-logo-large:hover .logo-q-large,
.hero-logo-large:hover .logo-i-large {
    transform: scale(1.05);
    text-shadow: 0 0 50px rgba(220, 20, 60, 0.8), 0 0 100px rgba(220, 20, 60, 0.4);
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    position: relative;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--dark-red));
    margin: 0 auto 30px;
    border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    background-color: var(--white);
}

.info-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--primary-red);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.info-card h4 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.info-card p {
    color: #666;
    line-height: 1.8;
}

/* ===================================
   Vision Section
   =================================== */
.vision-section {
    background-color: var(--light-gray);
}

.vision-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
    border-left: 5px solid var(--primary-red);
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.vision-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.vision-card h3 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.vision-card p {
    color: #666;
    line-height: 1.9;
    font-size: 1.05rem;
}

/* ===================================
   Products Section
   =================================== */
.products-section {
    background-color: var(--white);
}

.product-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid var(--primary-red);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.product-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
    box-shadow: 0 5px 20px rgba(220, 20, 60, 0.3);
}

.product-card h4 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.product-card p {
    color: #666;
    line-height: 1.8;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    background-color: var(--light-gray);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 300px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 20, 60, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 3rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    background-color: var(--white);
}

.contact-info {
    padding: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateX(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.contact-details h5 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-details p {
    color: #666;
    margin: 0;
    font-size: 1.1rem;
}

.contact-details a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

.contact-form {
    background: var(--light-gray);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
    color: var(--black);
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.contact-form .form-control {
    border: 2px solid #ddd;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 20, 60, 0.25);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--black) !important;
    color: var(--white);
    padding: 30px 0;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--dark-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .logo-i-large,
    .logo-q-large {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .logo-i-large,
    .logo-q-large {
        font-size: 4rem;
    }
    
    .vision-card,
    .contact-form {
        padding: 25px;
    }
}
