body { font-family: 'Tajawal', sans-serif; }
.gradient-text {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: #3b82f6;
    -webkit-text-fill-color: transparent;
    padding: 0.12em 0.06em 0.08em;
    line-height: 1.4;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.header-menu-wrap {
    position: relative;
    flex-shrink: 0;
}
.logo-header {
    height: 4.5rem;
    width: auto;
    object-fit: contain;
}
@media (min-width: 768px) {
    .logo-header {
        height: 6.75rem;
    }
}
.header-actions .lang-toggle {
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.375rem 0.5rem;
    min-width: 2.25rem;
}
.header-actions .header-contact-btn {
    font-size: 0.75rem;
    line-height: 1.2;
    padding: 0.375rem 0.625rem;
    border-radius: 0.625rem;
    white-space: nowrap;
}
@media (min-width: 768px) {
    .header-actions .lang-toggle {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        min-width: 2.75rem;
    }
    .header-actions .header-contact-btn {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
        border-radius: 0.75rem;
    }
}
.nav-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    transition: border-color 0.2s, background 0.2s;
}
.nav-menu-btn:hover,
.nav-menu-btn.is-active {
    border-color: #93c5fd;
    background: #f8fafc;
    color: #0f172a;
}
.nav-menu-icon {
    display: block;
    width: 1rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    position: relative;
}
.nav-menu-icon::before,
.nav-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s;
}
.nav-menu-icon::before {
    top: -5px;
}
.nav-menu-icon::after {
    top: 5px;
}
.nav-menu-btn.is-active .nav-menu-icon {
    background: transparent;
}
.nav-menu-btn.is-active .nav-menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-menu-btn.is-active .nav-menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.375rem);
    inset-inline-start: 0;
    min-width: 10.5rem;
    padding: 0.375rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 60;
    flex-direction: column;
    gap: 0.125rem;
}
.nav-dropdown[hidden] {
    display: none !important;
}
.nav-dropdown.is-open {
    display: flex;
}
.nav-dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    text-align: start;
    transition: background 0.15s, color 0.15s;
}
.nav-dropdown-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.nav-dropdown-link.nav-link-active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(168, 85, 247, 0.12));
    color: #2563eb;
}
.portfolio-thumb--square {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #dbeafe 0%, #e0e7ff 50%, #ede9fe 100%);
}
.portfolio-thumb--square .portfolio-thumb-img {
    width: auto;
    height: 92%;
    max-width: 92%;
    object-fit: contain;
}
.logo-sidebar {
    height: 5.5rem;
    width: auto;
    object-fit: contain;
}
.logo-about {
    width: 100%;
    max-width: 24rem;
    height: auto;
    object-fit: contain;
}
.contact-tab {
    transition: all 0.2s ease;
}
.contact-tab.active {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}
.contact-panel.hidden {
    display: none;
}
#form-success.is-hidden {
    display: none;
}
.gradient-bg {
    background: linear-gradient(135deg, #3b82f6, #a855f7);
}
.page-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.lang-en body,
body.lang-en {
    font-family: 'Tajawal', system-ui, sans-serif;
}
.portfolio-item.hidden {
    display: none;
}
#portfolio-empty.hidden {
    display: none;
}
.portfolio-thumb {
    height: 12rem;
    overflow: hidden;
    background: #f8fafc;
}
.portfolio-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.group:hover .portfolio-thumb-img {
    transform: scale(1.04);
}
