/* =========================================================
   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;
}

/* Mobile panel is hidden by default.
   It is enabled only inside the mobile breakpoint below. */
.mobile-panel {
    display: none;
}

/* Header responsive */
@media (max-width: 1250px) {
    .header {
        grid-template-columns: 160px minmax(0, 1fr) 330px;
        gap: 14px;
        padding-inline: 3vw;
    }

    .logo img { width: 175px; }

    .nav { gap: clamp(10px, 1.25vw, 18px); }
    .nav a { font-size: 12px; }

    .header-actions { gap: 10px; }
    .project-btn,
    .education-btn {
        padding: 11px 14px;
        gap: 8px;
        font-size: 12px;
    }
}

@media (max-width: 980px) {
    .header {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-inline: 24px;
    }

    .logo img { width: 165px; }
    .nav { display: none; }
    .header-actions { margin-inline-start: auto; }
    .mobile-menu { display: none; }
    .mobile-panel { display: none; }
}

@media (max-width: 760px) {
    .header {
        height: 72px;
        padding-inline: 18px;
        background: rgba(5, 11, 16, .96);
        backdrop-filter: blur(12px);
    }

    .logo img { width: 150px; }

    .header-actions {
        gap: 0;
        margin: 0;
    }

    .header-actions .project-btn,
    .header-actions .education-btn {
        display: none;
    }

    .mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 10px;
        font-size: 23px;
        line-height: 1;
    }

    .mobile-panel {
        position: fixed;
        z-index: 99;
        top: 72px;
        inset-inline: 0;
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 20px 22px 24px;
        background: rgba(5, 11, 16, .98);
        border-top: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 18px 35px rgba(0,0,0,.35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
    }

    .header.menu-open .mobile-panel {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-panel nav {
        display: flex;
        flex-direction: column;
        gap: 2px;
        direction: rtl;
    }

    .mobile-panel nav a {
        display: block;
        padding: 12px 4px;
        font-size: 15px;
        font-weight: 700;
        border-bottom: 1px solid rgba(255,255,255,.07);
        opacity: .88;
    }

    .mobile-panel nav a.active { color: var(--pink); opacity: 1; }

    .mobile-panel-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .mobile-panel-actions a {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        min-height: 44px;
        padding: 10px 8px;
        border-radius: 9px;
        font-size: 12px;
        font-weight: 800;
        text-align: center;
        white-space: normal;
    }

    .mobile-panel-actions .project-btn { background: var(--pink); }
    .mobile-panel-actions .education-btn { background: var(--cyan); }
}

@media (max-width: 380px) {
    .header { padding-inline: 14px; }
    .logo img { width: 132px; }
    .mobile-panel { padding-inline: 16px; }
    .mobile-panel-actions { grid-template-columns: 1fr; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .mobile-panel { transition: none; }
}

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