* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #080808;
    color: #fff;
}

#header {
    width: 100%;
    height: 95vh;
    /* background-image: url(Image/background1.jpeg); */
    background-image: url(Image/DRB_6597.JPG);
    background-size: cover;
    background-position: center;
}


.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 140px;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #0000FF;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #0000FF;
}

/* ----------ABOUT---------- */
#about {
    padding: 80px 0px;
    color: #ababab;
}

.fa-solid {
    color: #0000FF;
}


.oracle-fusion-box i {
    color: #fff;
}


.ui-ux-box i {
    color: #fff;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    width: 100%;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #0000FF;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

/* .tab-links:hover::after{
width: 100%;
} */
.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span {
    color: #6699CC;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

/* ----------SERVICES---------- */
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 15px;
    line-height: 30 px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: #0000FF;
    transform: translateY(-10px);
}

/* ----------PORTFOLIO---------- */
#portfolio {
    padding: 50px 0;
}

.work-list {
    display: grid;
    /* بشكل افتراضي: يعرض 3 أعمدة متساوية الحجم تماماً على الشاشات الكبيرة */
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;

    /* تكبير وتثبيت النسبة (تم زيادة النسبة والارتفاع لتصبح الكروت أكبر وأوضح) */
    aspect-ratio: 4 / 3.2;
    display: flex;
}

.work img {
    width: 100%;
    height: 100%;
    /* لملء الكارت بالكامل بدون تشويه للصورة */
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.5s ease;
}

.layer {
    width: 100%;
    height: 0;
    background: var(--bg-color, #111);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 12px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 30px;
    text-align: center;
    font-size: 14px;
    color: #ffffff;
    transition: height 0.5s ease-in-out;
}

.layer h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
}

.layer p {
    line-height: 1.6;
    color: #f0f0f5;
}

.layer a {
    margin-top: 20px;
    color: #111;
    text-decoration: none;
    font-size: 18px;
    line-height: 45px;
    background: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.layer a:hover {
    transform: scale(1.1);
    background: var(--btn-hover-color, #111);
    color: #fff;
}

.work:hover img {
    transform: scale(1.06);
}

.work:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 2px solid #ffffff;
    padding: 12px 40px;
    border-radius: 30px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    transition: all 0.4s ease;
}

.btn:hover {
    background: #ffffff;
    color: #111;
}

/* التجاوب مع الشاشات الصغيرة (الهواتف والتابلت) */
@media (max-width: 992px) {
    .work-list {
        /* تحويلها لعمودين على الشاشات المتوسطة */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ----------CONTACT---------- */
.contact-info p a {
    color: #0077B5;
    text-decoration: underline;
}

.contact-info p a:hover {
    color: #fff;
    text-decoration: underline;
}

.contact-info {
    display: flex;
    align-items: center;
    margin-top: 30PX;
    gap: 10px;
}

.contact-info img {
    width: 32px;
    height: auto;
}

.contact-info p {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

.contact-info img:hover {
    transform: scale(1.3);
    transition: transform 0.3s ease-in-out;
}

.contact-info i {
    font-size: 26px;
    color: #25D366;
    transition: color 0.3s, transform 0.3s;
}

.contact-info i:hover {
    transform: scale(1.3);
    transition: transform 0.3s ease-in-out;
}

/* الأزرار */
.btn {
    display: inline-block;
    background: #ff004f;
    color: #fff;
    padding: 14px 60px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn.btn2 {
    background: transparent;
    border: 2px solid #0000FF;
}

.btn.btn2:hover {
    background: #0000FF;
}

.btn.btn3 {
    background: transparent;
    border: 2px solid #0000FF;
}

.btn.btn3:hover {
    background: #0000FF;
}

form .btn3 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
}



/*<!-- ----------VERSION 1.0 ---------- -->
/* .social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: color 0.5s, transform 0.5s;
}

.social-icons a:hover {
    color: #0000FF;
    transform: translateY(-5px);
} */
/*<!-- ----------VERSION 1.1 ---------- -->*/
.social-icons a {
    font-size: 32px;
    margin-top: 30px;
    margin-right: 15px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.social-icons a i {
    transition: color 0.3s ease-in-out;
}

/* Facebook (Official Blue) */
.social-icons a[href*="facebook.com"] i {
    color: #1877F2;
}

/* GitHub (White for Dark Mode) */
.social-icons a[href*="github.com"] i {
    color: #FFFFFF;
    /* White for black backgrounds */
}

/* Instagram (Official Gradient with Background Clip) */
.social-icons a[href*="instagram.com"] i {
    background: linear-gradient(45deg, #FEC053, #F2203E, #B729A8, #5342D6);
    -webkit-background-clip: text;
    /* For Safari & Chrome */
    -moz-background-clip: text;
    /* For Firefox */
    background-clip: text;
    /* Standard */
    -webkit-text-fill-color: transparent;
    /* For Webkit browsers */
    -moz-text-fill-color: transparent;
}

/* LinkedIn (Official Blue) */
.social-icons a[href*="linkedin.com"] i {
    color: #0077B5;
}

/* WhatsApp (Official Green) */
.social-icons a[href*="wa.me"] i {
    color: #25D366;
}

/* Hover effect - slightly enlarge icons */
.social-icons a:hover {
    transform: scale(1.3);
}

.btn.btn2 {
    display: inline-block;
    font-size: 16px;
}

.btn.btn3 {
    background: #080808;
    margin-top: 30px;
    transition: background 0.5;
    font-size: 16px;


}

.btn.btn3:hover {
    background: #0000FF;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}

.copyright i {
    color: #0000FF;
    transition: color 0.5s;
}

.copyright i:hover {
    color: #fff;
}

/* ----------CSS FOR SMALL SCREEN---------- */
nav .fas {
    display: none;
}

@media only screen and (max-width: 600px) {
    #header {
        /* background-image: url(Image/background.jpg); */
        background-image: url(Image/background1.jpeg);
        width: 100%;
        height: 98vh;
        background-size: cover;
        background-position: center;
    }

    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fas {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: linear-gradient(rgba(0, 0, 0, 0.4), #0000FF);
        position: fixed;
        top: 0;
        width: 200px;
        right: -200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: 0.5s;
    }

    nav ul li {
        display: block;
        margin: 50px;
    }

    nav ul .fas {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 40px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 16px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }


}

/* ---------- SERVICES + PORTFOLIO MOBILE FIX ---------- */

@media only screen and (max-width: 600px) {

    .container {
        padding: 0 15px;
    }

    .services-list,
    .work-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .services-list>div {
        width: 100%;
    }

    /* إصلاح أبعاد كارت الـ portfolio والـ layer */
    .work {
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: 10px;
    }

    .work img {
        width: 100%;
        height: auto;
        display: block;
    }

    /* إخفاء الطبقة وتحضيرها للموبايل لتغطي كامل الصورة */
    .work .layer {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        padding: 20px;

        /* قراءة اللون المخصص لكل كارت من الـ Inline Style */
        background: var(--bg-color, linear-gradient(rgba(0, 0, 0, 0.6), #ff004f));
        color: var(--text-color, #fff);

        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        box-sizing: border-box;

        /* إخفاء مبدئي وانتقال ناعم */
        opacity: 0;
        transform: translateY(100%);
        transition: transform 0.5s, opacity 0.5s;
    }

    /* إصلاح ألوان العناوين والفقرات الداخلية بناءً على متغيرات الكارت */
    .work .layer h2,
    .work .layer p {
        color: var(--text-color, #fff);
    }

    /* تنسيق أزرار الروابط لتتوافق مع التصميم المخصص */
    .work .layer a {
        color: var(--text-color, #111);
        background: #fff;
        margin-top: 10px;
    }

    /* عند الضغط (إضافة كلاس active عبر الـ JS) يتم إظهار الطبقة بلونها المخصص */
    .work.active .layer {
        opacity: 1;
        transform: translateY(0);
    }

    /* منع التمرير الأفقي */
    #services,
    #portfolio {
        overflow-x: hidden;
    }
}