/* ===================================================== */
/* BELes VENTURES – FINAL RESPONSIVE & MOBILE-PERFECT CSS */
/* Fully tested on Android, iPhone, tablets & desktop     */
/* ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --success: #27ae60;
    --light: #f8f9fa;
    --dark: #1a2530;
    --gray: #6c757d;
    --border: #dee2e6;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.35s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== HEADER ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-bottom: 1px solid var(--border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1300px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.logo p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 2px;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 78px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--border);
}

.nav-links.active {
    display: flex;
    animation: slideDown 0.4s ease;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 1.1rem;
}

.nav-links a:hover {
    background: #f1f3f5;
    color: var(--accent);
}

.cta-nav {
    background: var(--accent) !important;
    color: white !important;
    padding: 0.75rem 1.8rem !important;
    border-radius: 50px;
}

.staff-login {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.75rem 1.8rem !important;
    border-radius: 50px;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu.active span:nth-child(1) { transform: rotate(45deg) translate(8px,8px); }
.mobile-menu.active span:nth-child(2) { opacity: 0; }
.mobile-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px,-6px)); }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 1rem 4rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.cta-button {
    padding: 1.1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:first-child {
    background: var(--accent);
    color: white;
}

.cta-button:first-child:hover {
    background: #d35400;
    transform: translateY(-4px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
}

.hero-image {
    margin-top: 3rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.hero-image img:hover {
    transform: scale(1.05);
}

/* ==================== SECTIONS ==================== */
.features, .services-tabs, .products, .about, .contact {
    padding: 5rem 0;
}

.features { background: white; }
.products, .contact { background: var(--light); }

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Feature Cards */
.feature-grid, .product-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.feature-card, .product-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover, .product-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ==================== TABS ==================== */
.tabs-header {
    display: flex;
    overflow-x: auto;
    background: var(--primary);
    border-radius: var(--radius) var(--radius) 0 0;
    margin-bottom: 0;
    scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar { display: none; }

.tab-button {
    flex: 1;
    min-width: 140px;
    padding: 1.2rem;
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.tab-button.active,
.tab-button:hover {
    background: var(--accent);
}

.tab-panel {
    display: none;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.6s;
}

.tab-content-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.tab-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ==================== MODALS (CRITICAL FIX) ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 2rem 1rem;
    overflow-y: auto;
    align-items: flex-start;        /* ← THIS FIXES YELLOW FULLSCREEN */
    justify-content: center;
}

.modal.active,
.modal[style*="block"],
.modal[style*="flex"] {
    display: flex !important;
}

.modal-content {
    width: 100%;
    max-width: 560px;               /* ← Same as page width */
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: hidden;
    animation: modalIn 0.4s ease;
}

#productModal .modal-content,
#successModal .modal-content {
    max-width: 680px;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    z-index: 10;
}

.close-modal:hover { color: var(--accent); }

/* Modal Internal Layout Fix */
.product-modal,
.service-modal {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: white;
}

.product-modal-image img,
.service-modal-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.product-modal-content,
.service-modal-content {
    padding: 2rem;
}

/* ==================== FORMS ==================== */
.contact-content,
.about-content {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr;
}

.contact-form,
.modal-content form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.15);
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-3px);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section a:hover { color: var(--accent); }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #aaa;
}

/* ==================== RESPONSIVE ==================== */
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.8rem; }
    .hero-buttons { flex-direction: row; justify-content: center; }
    .hero { text-align: left; }
    .feature-grid,
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-content-grid,
    .about-content,
    .contact-content { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: repeat(4, 1fr); }
    .nav-links { display: flex !important; position: static; box-shadow: none; padding: 0; animation: none; }
    .mobile-menu { display: none; }

    /* Modal side-by-side on tablet+ */
    .product-modal,
    .service-modal {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { flex-direction: row; justify-content: space-between; gap: 4rem; text-align: left; }
    .hero-content { max-width: 50%; margin: 0; }
    .hero-image { max-width: 45%; margin-top: 0; }
}

@media (min-width: 1400px) {
    .container { padding: 0 2rem; }
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Disable hover on touch devices */
@media (hover: none) {
    .feature-card:hover,
    .product-card:hover,
    .btn-primary:hover { transform: none; }
}