:root {
    --bg: #0b1120;
    --bg-secondary: #111827;
    --card: rgba(255, 255, 255, 0.04);
    --text: #f9fafb;
    --muted: #9ca3af;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --white: #ffffff;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    --radius: 18px;
    --max-width: 1150px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(90%, var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 48px;
}

.section-label,
.eyebrow {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.section-heading h2,
.hero h1 {
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--primary);
}

.hero-description,
.about-text p,
.contact-box p,
.project-card p,
.info-card p {
    color: var(--muted);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(11, 17, 32, 0.75);
    border-bottom: 1px solid var(--line);
}

.nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    transition: 0.25s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--white);
    font-size: 1.4rem;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.hero {
    padding-top: 120px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-description {
    max-width: 620px;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.hero-buttons,
.contact-links,
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: #08111d;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    border-color: rgba(56, 189, 248, 0.5);
    transform: translateY(-2px);
}

.hero-card,
.info-card,
.skill-card,
.project-card,
.contact-box {
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-card {
    border-radius: 24px;
    padding: 28px;
}

.profile-box {
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.14), rgba(255, 255, 255, 0.03));
    border-radius: 22px;
    padding: 28px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    text-align: center;
}

.profile-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    margin: 0 auto 18px;
    border: 4px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.profile-box h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.profile-box p {
    color: var(--muted);
    margin-bottom: 18px;
}

.profile-box ul {
    text-align: left;
}

.profile-box ul li {
    color: #d1d5db;
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.profile-box ul li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
}

.about-text {
    display: grid;
    gap: 18px;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius);
}

.info-card h3 {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 24px 20px;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.skill-card i {
    font-size: 3rem;
}

.skill-card span {
    font-size: 1rem;
    color: var(--white);
}

.skill-card:hover,
.project-card:hover,
.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
    transition: 0.25s ease;
}

.project-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-card p {
    margin-bottom: 28px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.project-tech span {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.project-links a {
    color: var(--primary);
    font-weight: 600;
}

.project-links a:hover {
    text-decoration: underline;
}

.contact-box {
    border-radius: 24px;
    padding: 32px;
}

.footer {
    border-top: 1px solid var(--line);
    padding: 28px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
}

.footer a:hover {
    color: var(--primary);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .hero-content,
    .about-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 80px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        right: 5%;
        width: min(260px, 90vw);
        background: rgba(17, 24, 39, 0.97);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding-top: 90px;
    }

    .about-info,
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons,
    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(92%, var(--max-width));
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-heading h2 {
        font-size: 1.9rem;
    }

    .profile-box,
    .contact-box,
    .project-card,
    .info-card {
        padding: 22px;
    }

    .profile-image {
        width: 110px;
        height: 110px;
    }
}