/* Design-Portfolio — inspired by Maxwel Khadambi style */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
    --font: "Inter", system-ui, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
    --radius: 0.375rem;
    --transition: 0.2s ease;
    --container: min(92vw, 900px);
}

body.dark {
    --bg: #0a0a0a;
    --bg-alt: #111;
    --text: #fafafa;
    --text-muted: #a3a3a3;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #262626;
}

body.light {
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --text: #171717;
    --text-muted: #525252;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e5e5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 4rem;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-hover);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-md);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.logo {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}
.logo:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text);
}
.nav-toggle::before,
.nav-toggle::after {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    height: 2px;
    background: currentColor;
    transition: transform var(--transition);
}
.nav-toggle::before { top: 0.5rem; }
.nav-toggle::after  { bottom: 0.5rem; }
.nav-toggle.open::before { transform: rotate(45deg); top: 50%; margin-top: -1px; }
.nav-toggle.open::after  { transform: rotate(-45deg); bottom: 50%; margin-bottom: -1px; }

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}
.nav a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}
.nav a:hover {
    color: var(--text);
}

.theme-toggle {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-alt);
    cursor: pointer;
    color: var(--text);
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed;
        top: 3.5rem;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-sm);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
}

/* Hero — like Maxwel */
.hero {
    padding: var(--space-3xl) 0;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: var(--space-md);
    max-width: 42ch;
}
.hero-title strong {
    font-weight: 700;
}

.hero-specialize {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 50ch;
    margin-bottom: var(--space-md);
}

.hero-cta {
    font-size: 1rem;
    color: var(--text-muted);
}
.hero-cta a {
    font-weight: 500;
}

/* Section heading — uppercase small label */
.section-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border);
}

/* Background / prose */
.prose {
    max-width: 65ch;
}
.prose p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.prose p:last-child {
    margin-bottom: 0;
}
.prose ul.expand-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}
.prose ul.expand-list li {
    margin-bottom: var(--space-xs);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    color: var(--accent);
}
.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Skills — categories */
.skill-cat {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}
.skill-cat:first-of-type {
    margin-top: 0;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-md);
}
.skill-list li {
    font-size: 0.9375rem;
    color: var(--text);
}
.skill-list li::before {
    content: "• ";
    color: var(--accent);
}

/* Education */
.edu-block {
    margin-bottom: var(--space-xl);
}
.edu-block:last-child {
    margin-bottom: 0;
}

.edu-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.edu-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.edu-org {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.edu-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    max-width: 60ch;
}

.edu-tags {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Featured projects — card with picture frame */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--border);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:last-child {
    border-bottom: none;
}
.project-card:hover {
    transform: translateY(-2px);
}
.project-card--reverse {
    direction: rtl;
}
.project-card--reverse > * {
    direction: ltr;
}

/* Picture frame */
.project-frame {
    position: relative;
    padding: var(--space-sm);
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
body.light .project-frame {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.project-card:hover .project-frame {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    border-color: var(--accent);
}
body.light .project-card:hover .project-frame {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.project-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius) - 2px);
    transition: transform 0.5s ease;
}
.project-card:hover .project-frame img {
    transform: scale(1.06);
}

.project-body {
    min-width: 0;
}

.project-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-sm);
    transition: color 0.25s ease;
}
.project-card:hover .project-name {
    color: var(--accent);
}

.project-desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    max-width: 60ch;
}

.project-tech,
.project-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}
.project-tech strong,
.project-role strong {
    color: var(--text);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}
.project-links a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
}
.project-links a:hover {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .project-card,
    .project-card--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .project-card > * {
        direction: ltr;
    }
    .project-frame {
        max-width: 100%;
    }
}

/* Contact */
.contact-intro {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}
.contact-details {
    margin-bottom: var(--space-lg);
}
.contact-details p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}
.contact-name {
    font-weight: 600;
    color: var(--text) !important;
}
.contact-location {
    font-size: 0.875rem !important;
}
.contact-socials {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}
.contact-socials a {
    font-weight: 500;
}

.contact-feedback {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    font-size: 0.9375rem;
}
.contact-feedback--sent {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}
.contact-feedback--error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.contact-form {
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.contact-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}
.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    transition: background var(--transition), opacity 0.15s;
}
.btn:hover {
    background: var(--accent-hover);
}
.btn:active {
    opacity: 0.9;
}

/* Footer — multi-column like Maxwel */
.site-footer {
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl) var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-about {
    grid-column: 1 / -1;
}
.footer-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: var(--space-xs);
}
.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    max-width: 40ch;
}
.footer-location,
.footer-about p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-links-block h4,
.footer-services h4,
.footer-connect h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.footer-links-block ul,
.footer-services ul {
    list-style: none;
}
.footer-links-block li,
.footer-services li {
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}
.footer-links-block a {
    color: var(--text-muted);
}
.footer-links-block a:hover {
    color: var(--text);
}
.footer-services li {
    color: var(--text-muted);
}

.footer-connect {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .footer-about {
        grid-column: auto;
    }
}
