:root {
    --accent: #0071e3;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg: #f5f5f7;
    --white: #ffffff;
    --radius: 20px;
    --transition: 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.25rem;
    background: rgba(245,245,247,0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ── Hero ── */
header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
    background: white;
}

h1 {
    font-size: clamp(3.5rem, 12vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ── Projects ── */
section { padding: 8rem 0; }

h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-align: center;
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.project {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.03);
}

.project:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.project img {
    width: 100%;
}

.project .ilemelalogo {
    padding: 20px;
}

.project-body { padding: 2rem; }

.project h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.project p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.btn-trigger {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f2;
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.project:hover .btn-trigger {
    background: var(--accent);
    color: white;
}

/* ── Bottom Drawer ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
}

.drawer-overlay.active {
    visibility: visible;
    opacity: 1;
}

.drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    height: 85vh;
    background: var(--white);
    z-index: 2001;
    border-radius: 30px 30px 0 0;
    padding: 4rem 2rem;
    transition: var(--transition);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.drawer.active { bottom: 0; }

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f0f0f2;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
}

.drawer-content { max-width: 700px; margin: 0 auto; }
.drawer-content h2 { text-align: left; font-size: 3rem; margin-bottom: 1.5rem; }
.drawer-content p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.6; }

.external-link {
    display: inline-block;
    padding: 15px 30px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
}

/* ── Footer ── */
footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 5rem 1rem;
}

footer a { color: #a0d2ff; text-decoration: none; margin: 0 10px; }

@media (min-width: 768px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}