* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --card: #1f2937;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #38bdf8;
    --accent: #34d399;
    --white: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, var(--bg), #1e293b);
    color: var(--text);
    line-height: 1.6;
}

header {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 20px 8%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--white);
}

header p {
    color: var(--muted);
    margin-bottom: 15px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: 0.3s ease;
}

nav a:hover {
    background: var(--primary);
    color: #08111d;
}

main {
    width: min(1100px, 90%);
    margin: 0 auto;
    padding: 40px 0;
}

section {
    margin-bottom: 40px;
    background: rgba(31, 41, 55, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
}

#About figure {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

#About img {
    width: 180px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
}

#About figcaption {
    width: 100%;
    color: var(--muted);
    margin-top: 8px;
    font-size: 0.95rem;
}

#About p {
    font-size: 1.05rem;
    max-width: 600px;
}

#Projects article {
    display: grid;
    gap: 20px;
}

#Projects h3 {
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.3rem;
}

#Projects p {
    color: var(--text);
    margin-bottom: 8px;
}

#Projects a {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 10px;
}

#Projects a:hover {
    text-decoration: underline;
}

#Projects ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

#Projects li {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
}

section video {
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: block;
    margin-top: 15px;
}

footer {
    background: #020817;
    padding: 40px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h2 {
    margin-bottom: 15px;
    color: var(--primary);
}

footer p {
    margin-bottom: 10px;
    color: var(--muted);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

form {
    margin-top: 20px;
    max-width: 500px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.8);
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    border-color: transparent;
}

button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #06131d;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(52, 211, 153, 0.35);
}

@media (max-width: 768px) {
    header {
        padding: 18px 5%;
    }

    header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 22px 18px;
    }

    #About figure {
        flex-direction: column;
        align-items: flex-start;
    }

    #About img {
        width: 100%;
        max-width: 220px;
        height: auto;
    }

    nav {
        gap: 10px;
    }

    nav a {
        padding: 7px 10px;
        font-size: 0.95rem;
    }
}