@import url('https://googleapis.com');

:root {
    --bg-beige: #F5EFE6;
    --bg-beige-dark: #E8DFCA;
    --glass-bg: rgba(255, 252, 247, 0.45);
    --glass-border: rgba(255, 255, 255, 0.75);
    --text-dark: #3E362E;
    --text-muted: #6E6256;
    --accent: #8C735B;
    --accent-hover: #6F5943;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #F7F3EB 0%, #EADBC8 50%, #DFD3C3 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.65;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #D8C3A5;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #E2D1B9;
    bottom: -150px;
    left: -150px;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #CBB59D;
    top: 40%;
    left: 30%;
}

header {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(255, 252, 247, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(62, 54, 46, 0.08);
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: var(--accent);
    color: #FFFDF9;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

section {
    scroll-margin-top: 100px;
    margin-bottom: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 45px;
    box-shadow: 0 10px 30px rgba(62, 54, 46, 0.06);
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-3px);
}

.hero-badge {
    display: inline-block;
    background: rgba(140, 115, 91, 0.15);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 28px;
    background: var(--accent);
    border-radius: 4px;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-border);
    padding: 8px 18px;
    border-radius: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 24px rgba(140, 115, 91, 0.15);
    transform: translateY(-5px);
}

.img-wrapper {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #EAE0D5;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .img-wrapper img {
    transform: scale(1.05);
}

.zoom-hint {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(62, 54, 46, 0.75);
    color: #FFF;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.graduation-box {
    max-width: 500px;
    margin: 0 auto;
}

.graduation-box .img-wrapper {
    height: 300px;
}

footer {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 38, 32, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 88vh;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    object-fit: contain;
    background: #FFF;
    cursor: default;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 10px;
        border-radius: 24px;
        padding: 12px 15px;
        width: 94%;
    }
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    main {
        padding-top: 150px;
    }
    section {
        padding: 28px 20px;
    }
    h1 {
        font-size: 1.8rem;
    }
}
