/* =========================
   IMPORT FONT (اختياري)
========================= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* =========================
   VARIABLES DE COULEURS
========================= */
:root {
    --primary: #0e0255;       /* Modern Blue */
    --secondary: #f97316;     /* Orange Accent */
    --success: #10b981;       /* Soft Green */
    --dark: #0f172a;          /* Dark Navy */
    --light-bg: #f1f5f9;      /* Light Gray */
    --muted: #64748b;         /* Gray Text */
    --white: #ffffff;

    --shadow-sm: 0 8px 20px rgba(0,0,0,0.10);
    --shadow-md: 0 18px 40px rgba(0,0,0,0.14);
    --radius: 18px;

    --transition: 0.35s ease;
}

/* =========================
   GLOBAL
========================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-bg);
    color: var(--dark);
    line-height: 1.6;
}

a{
    text-decoration: none !important;
    color: inherit;
}

img{
    max-width: 100%;
    display: block;
}

/* =========================
   NAVBAR (HEADER)
========================= */
.navbar{
    background: var(--primary) !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    padding: 14px 0;
}

.navbar .navbar-brand{
    font-weight: 800;
    color: var(--white) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar .navbar-brand img{
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: contain;
    transition: transform var(--transition);
}

.navbar .navbar-brand img:hover{
    transform: rotate(8deg) scale(1.08);
}

.navbar .btn{
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
}

.navbar .btn:hover{
    transform: translateY(-3px);
}

/* =========================
   HERO SECTION
========================= */
.hero{
    position: relative;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

    /* ✅ Background Image */
    background: url("img/prod1.jpg") center/cover no-repeat;
    overflow: hidden;
}

/* Overlay */
.hero::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.55)
    );
}

/* Hero Content */
.hero > div{
    position: relative;
    z-index: 2;
    animation: fadeUp 1.2s ease forwards;
}

/* Buttons inside hero */
.hero .btn{
    margin: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    transition: var(--transition);
}

.hero .btn-success{
    background: var(--success) !important;
    border: none !important;
}

.hero .btn-outline-light{
    border: 2px solid rgba(255,255,255,0.8) !important;
}

.hero .btn:hover{
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 18px 35px rgba(0,0,0,0.30);
}

/* =========================
   TITLES (GLOBAL SECTIONS)
========================= */
.section-title{
    text-align: center;
    margin-bottom: 45px;
}

.section-title h2{
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.section-title p{
    max-width: 650px;
    margin: 12px auto 0;
    color: var(--muted);
    font-size: 1.05rem;
}

/* =========================
   CARDS (PRODUCTS / DASHBOARD)
========================= */
.card{
    border: none !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    background: var(--white);
}

.card:hover{
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
}

.card img{
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform var(--transition);
}

.card:hover img{
    transform: scale(1.06);
}

.card-body h5{
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.card-body p{
    color: var(--muted);
    font-size: 0.95rem;
}

/* =========================
   BUTTONS (GLOBAL)
========================= */
.btn{
    transition: var(--transition) !important;
}

.btn-primary{
    background: var(--primary) !important;
    border: none !important;
}

.btn-primary:hover{
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(30,64,175,0.30);
}

.btn-danger:hover,
.btn-success:hover{
    transform: translateY(-3px);
}

/* =========================
   PRODUCTS MODAL
========================= */
#productsModal{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.65);
    overflow-y: auto;
    padding: 50px 16px;
    animation: fadeIn 0.35s ease;
}

#productsModal .modal-content{
    width: 100%;
    max-width: 1100px;
    margin: auto;
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    animation: zoomIn 0.35s ease;
    position: relative;
}

#productsModal .closeBtn{
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
    transition: var(--transition);
}

#productsModal .closeBtn:hover{
    color: var(--secondary);
    transform: rotate(90deg);
}

/* =========================
   LOGIN MODAL (header.php)
========================= */
#loginModal form{
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-md);
    animation: zoomIn 0.35s ease;
}

#loginModal input{
    border-radius: 14px;
    padding: 12px 14px;
}

#loginModal input:focus{
    border-color: var(--primary);
    box-shadow: 0 0 0 0.18rem rgba(30,64,175,0.20);
}

/* =========================
   VIDEO SECTION
========================= */
video{
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

video:hover{
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}

/* =========================
   TEAM SECTION
========================= */
.team-section{
    background: #f8fafc;
    padding: 70px 0;
}

.team-card{
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.team-card:hover{
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
}

.team-img{
    height: 230px;
    overflow: hidden;
}

.team-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.team-card:hover .team-img img{
    transform: scale(1.08);
}

.team-info{
    text-align: center;
    padding: 18px;
}

.team-info h5{
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--dark);
}

/* Make card clickable safe */
.team-link{
    display: block;
    color: inherit;
}

.team-link:hover{
    color: inherit;
}

/* =========================
   FORMS (contact / dashboard)
========================= */
form .form-control{
    border-radius: 14px;
    padding: 12px 14px;
    transition: var(--transition);
}

form .form-control:focus{
    border-color: var(--primary);
    box-shadow: 0 0 0 0.18rem rgba(30,64,175,0.20);
}

/* =========================
   FOOTER
========================= */
.footer{
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 25px;
}

.footer h5{
    font-weight: 800;
    margin-bottom: 18px;
}

.footer p,
.footer li{
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
}

.footer a{
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

.footer a:hover{
    color: var(--secondary);
}

.footer hr{
    border-color: rgba(255,255,255,0.15);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeUp{
    from{
        opacity: 0;
        transform: translateY(25px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn{
    from{ opacity: 0; }
    to{ opacity: 1; }
}

@keyframes zoomIn{
    from{
        opacity: 0;
        transform: scale(0.92);
    }
    to{
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px){
    .hero{
        min-height: 75vh;
    }
}

@media (max-width: 768px){
    .section-title h2{
        font-size: 2rem;
    }
    .hero .btn{
        width: 80%;
        margin: 8px auto;
        display: block;
    }
    .card img{
        height: 200px;
    }
    .team-img{
        height: 200px;
    }
}

@media (max-width: 480px){
    .section-title p{
        font-size: 0.95rem;
    }
} 
.logo{
    width: 100px;
    height: 100px;
}