* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #e8f1ff;
    background: radial-gradient(circle at top, rgba(90, 160, 255, 0.18), transparent 28%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #070b18 0%, #0f172a 100%);
}

nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(5, 11, 29, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav a {
    color: rgba(232, 241, 255, 0.84);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.hero {
    min-height: calc(100vh - 88px);
    display: grid;
    place-items: center;
    padding: 5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.05;
}

.hero h1 span {
    color: #5fb0ff;
}

.hero h2 {
    margin: 1rem 0 0.75rem;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    color: #c8d6ff;
}

.hero p {
    margin: 1.5rem auto 2rem;
    max-width: 660px;
    color: rgba(232, 241, 255, 0.74);
    font-size: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.9rem;
    background: linear-gradient(135deg, #57b0ff, #2f78d4);
    color: #0d1724;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 45px rgba(30, 112, 248, 0.18);
}

section {
    padding: 4rem 2rem;
    max-width: 1120px;
    margin: 0 auto;
}

section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    letter-spacing: 0.01em;
    color: #ffffff;
}

#about {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: 2.5rem;
}

#about p {
    margin: 0;
    max-width: 820px;
    color: rgba(232, 241, 255, 0.78);
    font-size: 1rem;
}

.skills-container,
.project-container {
    display: grid;
    gap: 1.25rem;
}

.skills-container {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.skill-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f7ff;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    background: rgba(87, 176, 255, 0.16);
}

.project-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    padding: 2rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.project-card a {
    color: inherit;
    text-decoration: none;
    display: block;
    min-height: 100%;
}

.project-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.project-card p {
    margin: 0;
    color: rgba(232, 241, 255, 0.74);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(87, 176, 255, 0.45);
}

#contact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    padding: 2.5rem;
}

#contactForm {
    display: grid;
    gap: 1rem;
    max-width: 700px;
}

#message {
    margin-top: 1rem;
    font-size: 0.98rem;
    color: #8ef3a8;
}

.hint {
    margin-top: 0.75rem;
    color: rgba(255, 179, 179, 0.95);
    font-size: 0.92rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #eef4ff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: #5fb0ff;
    box-shadow: 0 0 0 4px rgba(87, 176, 255, 0.14);
}

button {
    width: fit-content;
    padding: 1rem 1.75rem;
    border: none;
    border-radius: 999px;
    background: #57b0ff;
    color: #09141f;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    background: #3b8be1;
}

footer {
    padding: 2rem 1rem 3rem;
    text-align: center;
    color: rgba(232, 241, 255, 0.6);
    font-size: 0.96rem;
}

@media (max-width: 780px) {
    nav {
        padding: 1rem 1.25rem;
    }

    section {
        padding: 3rem 1.25rem;
    }

    .hero {
        padding-top: 4.5rem;
    }
}
