/* ===== CSS VARIABLES ===== */
:root {
    --primary-blue: #3498db;
    --secondary-blue: #00d4ff;
    --dark-blue: #2980b9;
    --light-blue: #0099cc;
    --red-price: #e74c3c;
    --dark-red: #c0392b;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --shadow-light: rgba(0,0,0,0.1);
    --shadow-medium: rgba(0,0,0,0.15);
    --shadow-dark: rgba(0,0,0,0.3);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero section specific body styling */
body .hero-section {
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    overflow-x: hidden;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 95vh;
    min-height: 500px;
    max-height: 700px;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

/* Alternative hero section from first file */

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00d4ff, #0099cc, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Alternative title styling from first file */
.arabic-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-family: 'Arial', sans-serif;
}

.contact-info {
    margin: 30px 0 20px 0;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Alternative phone info from first file */
.phone-info {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #0099cc, #00d4ff);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    border: 2px solid transparent;
}

.cta-button:hover {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.5);
    border: 2px solid rgba(0, 212, 255, 0.5);
}

/* Alternative call button styling from first file */
.call-btn {
    background: #3498db;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.call-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

/* ===== TECH ELEMENTS ===== */
.tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.tech-circle {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.tech-circle:nth-child(1) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tech-circle:nth-child(2) {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.tech-circle:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.glowing-dots {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00d4ff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    box-shadow: 0 0 10px #00d4ff;
}

.dot-1 { top: 25%; left: 85%; animation-delay: 0s; }
.dot-2 { top: 45%; left: 15%; animation-delay: 1s; }
.dot-3 { bottom: 35%; right: 25%; animation-delay: 2s; }
.dot-4 { top: 70%; left: 70%; animation-delay: 3s; }

/* ===== HEADER SECTION ===== */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
}

.header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 1.1rem;
}

/* ===== ARABIC TEXT STYLING ===== */
.arabic-text {
    color: #3498db;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border: 2px solid #3498db;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.arabic-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #3498db;
    transition: left 0.4s ease;
    z-index: -1;
}

.arabic-text:hover::before {
    left: 0;
}

.arabic-text:hover {
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ===== GALLERY SECTION ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Gallery animation on scroll */
.gallery .product-item {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery .product-item:nth-child(1) { animation-delay: 0.1s; }
.gallery .product-item:nth-child(2) { animation-delay: 0.2s; }
.gallery .product-item:nth-child(3) { animation-delay: 0.3s; }
.gallery .product-item:nth-child(4) { animation-delay: 0.4s; }
.gallery .product-item:nth-child(5) { animation-delay: 0.5s; }
.gallery .product-item:nth-child(6) { animation-delay: 0.6s; }
.gallery .product-item:nth-child(7) { animation-delay: 0.7s; }
.gallery .product-item:nth-child(8) { animation-delay: 0.8s; }
.gallery .product-item:nth-child(9) { animation-delay: 0.9s; }

.product-item {
    position: relative;
    background: white;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
    width: 100%;
}

.product-item:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.product-item:hover .product-image {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.product-item:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.overlay-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid white;
    background: transparent;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: scale(0.8) rotate(180deg);
    opacity: 0;
}

.product-item:hover .overlay-btn {
    transform: scale(1) rotate(0deg);
    opacity: 1;
}

.product-item:hover .overlay-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.product-item:hover .overlay-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.overlay-btn:hover {
    background: white;
    color: #333;
    transform: scale(1.2) rotate(0deg);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
    border-color: #3498db;
}

.product-info {
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-item:hover .product-info {
    transform: translateY(-5px);
}

.product-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.product-item:hover .product-title {
    color: #3498db;
}

.product-price {
    color: #e74c3c;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.product-item:hover .product-price {
    color: #c0392b;
    transform: scale(1.05);
}

/* ===== MORE SECTION ===== */
.more-section {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.more-btn {
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.more-btn:hover {
    background: #2980b9;
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

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

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

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile এ fixed attachment সমস্যা করতে পারে */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        background-position: center top; /* Mobile এ top center */
        padding: 15px;
        height: 50vh;
        min-height: 400px;
    }

    .container {
        padding: 10px;
    }

    .arabic-title {
        font-size: 1.8rem;
    }

    .phone-info {
        font-size: 1rem;
    }

    .call-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .overlay-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .hero-content {
        max-width: 95%;
    }

    .hero-subtitle {
        margin-bottom: 25px;
    }

    .cta-button {
        padding: 12px 30px;
        width: 100%;
        max-width: 300px;
    }

    .tech-circle {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 200px;
        margin-bottom: 20px;
        min-height: 350px;
        padding: 10px;
    }

    .arabic-title {
        font-size: 1.5rem;
    }

    .phone-info {
        font-size: 0.9rem;
    }

    .call-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .product-image {
        height: 180px;
    }

    .overlay-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .contact-info {
        margin: 20px 0 12px 0;
    }

    .cta-button {
        padding: 10px 25px;
    }
}

/* Extra responsive for very small screens */
@media (max-width: 320px) {
    .container {
        padding: 5px;
    }

    .hero-section {
        height: 180px;
    }

    .arabic-title {
        font-size: 1.3rem;
    }

    .phone-info {
        font-size: 0.8rem;
    }

    .call-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .gallery {
        gap: 10px;
    }

    .product-image {
        height: 160px;
    }
}

/* RTL specific adjustments */
@media (max-width: 768px) {
    .hero-title {
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }
}