*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#fff;
    color:#222;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo i{
    font-size:30px;
    color:#4f46e5;
}

.logo h2{
    color:#2563eb;
}
logo img {
    width: 45px;
    height: auto;
    object-fit: contain;
}
.menu{
    display:flex;
    gap:30px;
    list-style:none;
}

.menu a{
    text-decoration:none;
    color:#222;
    font-weight:600;
}

.theme-btn{
    width:40px;
    height:40px;
    border:1px solid #ddd;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
}

.hero{
    padding:60px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:50px;
}

.hero-text{
    flex:1;
}

.subtitle{
    color:#2563eb;
    font-weight:600;
}

.hero-text h1{
    font-size:60px;
    line-height:1.2;
    margin:15px 0;
}

.blue{
    color:#2563eb;
}

.orange{
    color:#ff7b00;
}

.hero-text p{
    color:#666;
    margin-bottom:30px;
    line-height:1.8;
}

.buttons{
    display:flex;
    gap:20px;
}

.btn-primary{
    text-decoration:none;
    color:white;
    padding:14px 28px;
    border-radius:50px;
    background:linear-gradient(90deg,#2563eb,#ff6b00);
}

.btn-secondary{
    text-decoration:none;
    color:#2563eb;
    padding:14px 28px;
    border-radius:50px;
    border:2px solid #2563eb;
}

.hero-images{
    flex:1;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.img-box img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:20px;
}

.services{
    padding:80px 8%;
    text-align:center;
}

.services h4{
    color:#2563eb;
    margin-bottom:10px;
}

.services h2{
    font-size:38px;
    margin-bottom:40px;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.card i{
    font-size:28px;
    color:#2563eb;
    margin-bottom:15px;
}

.card h3{
    margin-bottom:10px;
}

.card p{
    color:#666;
    line-height:1.7;
}

@media(max-width:900px){

.hero{
    flex-direction:column;
}

.hero-text h1{
    font-size:40px;
}

.menu{
    display:none;
}

.hero-images{
    width:100%;
}
}
.services{
    padding:80px 8%;
    text-align:center;
}

.section-subtitle{
    color:#2563eb;
    font-weight:700;
    font-size:14px;
}

.services h2{
    margin-top:10px;
    margin-bottom:40px;
    font-size:40px;
    color:#1e293b;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.service-card{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.service-card:hover{
    transform:translateY(-8px);
}

.service-card i{
    font-size:28px;
    color:#2563eb;
    margin-bottom:15px;
}

.service-card h3{
    margin-bottom:10px;
    color:#1e293b;
}

.service-card p{
    color:#64748b;
    line-height:1.7;
}

@media(max-width:900px){

    .services-grid{
        grid-template-columns:1fr;
    }

}
.portfolio{
    padding:80px 8%;
    text-align:center;
}

.portfolio h2{
    margin:15px 0 30px;
    font-size:40px;
}

.portfolio-filter{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-bottom:30px;
    flex-wrap:wrap;
}

.portfolio-filter button{
    border:none;
    background:#f1f5f9;
    padding:10px 20px;
    border-radius:30px;
    cursor:pointer;
}

.portfolio-filter .active{
    background:#2563eb;
    color:white;
}

.portfolio-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.portfolio-grid img{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:15px;
    transition:.3s;
}

.portfolio-grid img:hover{
    transform:scale(1.03);
}

.portfolio-btn{
    display:inline-block;
    margin-top:30px;
    padding:14px 30px;
    border:2px solid #2563eb;
    border-radius:40px;
    text-decoration:none;
    color:#2563eb;
    font-weight:600;
}

@media(max-width:900px){

    .portfolio-grid{
        grid-template-columns:1fr;
    }

}
.contact{
    padding:80px 8%;
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:20px;
}

.contact-left h2{
    margin:15px 0;
    font-size:38px;
}

.contact-left p{
    color:#64748b;
}

.contact-card{
    background:white;
    padding:25px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.contact-card i{
    font-size:35px;
    color:#2563eb;
    margin-bottom:15px;
}

.contact-card h3{
    margin-bottom:10px;
}

footer{
    background:#2563eb;
    color:white;
    padding:25px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.footer-links{
    display:flex;
    gap:20px;
}

.footer-links a{
    color:white;
    text-decoration:none;
}

.footer-social{
    display:flex;
    gap:15px;
    font-size:20px;
}

@media(max-width:900px){

.contact{
    grid-template-columns:1fr;
}

footer{
    gap:20px;
    flex-direction:column;
}

}
.dark-mode{
    background:#0f172a;
    color:white;
}

.dark-mode .navbar{
    background:#0f172a;
}

.dark-mode .menu a{
    color:white;
}

.dark-mode .service-card,
.dark-mode .contact-card{
    background:#1e293b;
    color:white;
}

.dark-mode .service-card p,
.dark-mode .contact-left p{
    color:#cbd5e1;
}

.dark-mode .portfolio-filter button{
    background:#334155;
    color:white;
}

.dark-mode footer{
    background:#020617;
}
/* ========================= */
/* ANIMATIONS */
/* ========================= */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes rotateLogo{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

/* Hero Animation */

.hero-text{
    animation:fadeUp 1s ease;
}

.hero-images{
    animation:fadeUp 1.2s ease;
}

/* Logo Animation */

.logo i{
    animation:rotateLogo 4s linear infinite;
}

/* Buttons Animation */

.btn-primary,
.btn-secondary{
    transition:all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover{
    transform:translateY(-5px);
}

/* Images Animation */

.img-box{
    overflow:hidden;
    border-radius:20px;
}

.img-box img{
    transition:transform 0.5s ease;
}

.img-box img:hover{
    transform:scale(1.1);
}

/* Service Cards Animation */

.service-card{
    transition:all 0.3s ease;
    animation:fadeUp 1s ease;
}

.service-card:hover{
    transform:translateY(-10px);
    box-shadow:0 15px 35px rgba(0,0,0,0.15);
}

/* Portfolio Animation */

.portfolio-grid img{
    transition:all 0.4s ease;
}

.portfolio-grid img:hover{
    transform:scale(1.05);
}

/* Contact Cards */

.contact-social{
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-social a{
    font-size: 30px;
    color: #0ea5e9;
}

/* Navbar Links */

.menu a{
    transition:0.3s;
}

.menu a:hover{
    color:#2563eb;
}

/* Smooth Scroll */

html{
    scroll-behavior:smooth;
}
/* ========================= */
/* LOGO */
/* ========================= */

.logo{
    display:flex;
    align-items:center;
    gap:10px;
}

.logo img{
    width:35px;
    height:35px;
    border-radius:50%;
    object-fit:cover;
    transform:scale(1.2);
    box-shadow:0 2px 10px rgba(0,0,0,.15);
}

.logo h2{
    font-size:18px;
    font-weight:700;

    background: linear-gradient(90deg,#2563eb,#ff7b00);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}


.logo img:hover{
    transform:scale(1.4);
    transition:0.3s ease;
}
.contact {
    padding: 60px 8%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.contact-social {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.contact-social a {
    color: #2563eb;
    font-size: 24px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-social a:hover {
    color: #1d4ed8;
    transform: translateY(-3px);
}

.contact-left h2 {
    font-size: 32px;
    color: #222;
    margin-bottom: 15px;
}

.contact-left p {
    color: #666;
    line-height: 1.6;
}

.contact-card {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-card i {
    font-size: 24px;
    color: #2563eb;
}

footer {
    background-color: #2563eb;
    color: #fff;
    padding: 20px 8%;
    margin-top: 40px;
}

.footer-logo {
    font-weight: 600;
    font-size: 16px;
}
/* Styling du Modal */
.custom-modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.custom-modal .modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    box-sizing: border-box;
}

.custom-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.custom-modal .form-group {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.custom-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.custom-modal .form-group input,
.custom-modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

.custom-modal .btn-send {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.custom-modal .btn-send:hover {
    background-color: #0056b3;
}

.whatsapp-float, .whatsapp-floathover {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover, .whatsapp-floathover:hover {
    transform: scale(1.1);
    color: #FFF;
}
/* إرجاع الفورم التحتاني لشغله الطبيعي الأصلي */
footer form input, 
footer form textarea,
#contact-section form input,
#contact-section form textarea {
    width: auto !important;
    padding: 6px 12px !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-sizing: content-box !important;
    display: inline-block !important;
}

footer form .form-group,
#contact-section form .form-group {
    width: auto !important;
    margin-bottom: 10px !important;
}

