/* =========================================================
   LIFE MEDIA — GLOBAL + HEADER
   ========================================================= */

* { box-sizing: border-box; }

:root {
    --bg: #050b10;
    --pink: #f20b78;
    --cyan: #49c8f2;
    --yellow: #f6e900;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: #fff;
    font-family: Cairo, Arial, sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    right: 0;
    height: 84px;
    padding: 0 5vw;
    display: grid;
    grid-template-columns: 180px 1fr 400px;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, #050b10f5 0%, #050b10b8 60%, transparent 100%);
    backdrop-filter: blur(9px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    font: 700 23px/18px "Space Grotesk";
}

.logo img{
    display:block;
    width:200px;
    height:auto;
}

.logo small {
    font-weight: 500;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    position: relative;
    display: block;
    background: conic-gradient(
        #f20b78 0 30%,
        #f6e900 30% 55%,
        #49c8f2 55% 78%,
        #f20b78 78%
    );
    box-shadow: 0 0 20px #f20b7833;
}

.logo-mark:before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #0b1621;
}

.logo-mark span {
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    background: #fff;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(18px, 2.1vw, 34px);
    direction: rtl;
    white-space: nowrap;
}

.nav a {
    font-size: 13px;
    font-weight: 700;
    opacity: .8;
    position: relative;
    padding: 10px 2px;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
}

.education-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    background: var(--cyan);
     color: #fff;

    border-radius: 9px;
    padding: 12px 21px;

    font-weight: 800;
    white-space: nowrap;

    box-shadow: 0 15px 40px rgba(73,200,242,.20);
    transition: .3s;
}

.education-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(73,200,242,.40);
}

.education-btn b {
    font-family: Arial;
    font-size: 18px;
}

.nav a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background: var(--pink);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    direction: ltr;
}

.language {
    font-size: 12px;
    white-space: nowrap;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--pink);
    border-radius: 9px;
    padding: 12px 21px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 15px 40px #f20b7830;
    transition: .3s;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px #f20b7855;
}

.project-btn b {
    font-family: Arial;
    font-size: 18px;
}

.mobile-menu {
    display: none;
    font-size: 25px;
}

/* Header responsive */
@media (max-width: 1150px) {
    .header {
        grid-template-columns: 150px 1fr 210px;
    }

    .nav {
        gap: 15px;
    }

    .nav a {
        font-size: 12px;
    }
}

@media (max-width: 800px) {
    .header {
        display: flex;
        padding: 0 20px;
        justify-content: space-between;
    }

    .nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .header-actions {
        gap: 10px;
    }

    .language {
        display: none;
    }
}

@media (max-width: 520px) {
    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .project-btn {
        padding: 10px 14px;
        font-size: 11px;
    }
}

/* Global modal state */
body.modal-open {
    overflow: hidden;
}
