:root {
    --primary: #10b981;
    --primary-2: #38bdf8;
    --secondary: #f59e0b;
    --dark: #030712;
    --dark-2: #0b1120;
    --card: rgba(8, 13, 26, 0.82);
    --light: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #d1d5db;
    --border: rgba(56, 189, 248, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.11), transparent 28rem),
        linear-gradient(180deg, #030712 0%, #070b14 48%, #020617 100%);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 70%);
    z-index: -1;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.section-padding {
    padding: 100px 0;
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nav {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.logo span {
    color: var(--primary-2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--muted-2);
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-2);
}

.nav-cta {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-button .bar {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--light);
    transition: 0.25s ease;
}

.mobile-menu-button.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 150px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-2);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero h1,
.section-header h2 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

.hero h1 span,
.section-header h2 span {
    background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero h2 {
    margin-top: 18px;
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--muted-2);
    font-weight: 700;
}

.hero p,
.section-header p,
.about-text p,
.project-content p,
.journey-card p {
    color: var(--muted);
}

.hero p {
    margin: 22px 0 32px;
    max-width: 680px;
    font-size: 1.08rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #0f766e);
    color: #fff;
    box-shadow: 0 14px 36px rgba(16, 185, 129, 0.24);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(16, 185, 129, 0.34);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: var(--light);
    background: rgba(255, 255, 255, 0.04);
}

.btn-secondary:hover {
    border-color: rgba(16, 185, 129, 0.52);
    color: var(--primary-2);
    transform: translateY(-3px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

.hero-stats div,
.info-box,
.project-card,
.skill-card,
.journey-card,
.info-item {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.hero-stats div {
    padding: 18px;
}

.hero-stats strong {
    display: block;
    font-size: 1.12rem;
    color: var(--light);
}

.hero-stats span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background:
        linear-gradient(var(--dark), var(--dark)) padding-box,
        linear-gradient(135deg, var(--primary), var(--primary-2)) border-box;
    border: 1px solid transparent;
    box-shadow: var(--shadow);
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.profile-image img {
    width: 100%;
    height: 115%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.88);
    color: var(--muted-2);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.card-top {
    top: 28px;
    right: -18px;
}

.card-bottom {
    bottom: 30px;
    left: -24px;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.section-header p {
    margin-top: 16px;
    font-size: 1.03rem;
}

.about-content {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    padding: 8px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 22px;
}

.about-text h3 {
    margin-bottom: 14px;
    font-size: 1.8rem;
}

.about-text p + p {
    margin-top: 14px;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.info-box {
    padding: 18px;
}

.info-box span {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-2);
    font-size: 0.84rem;
    font-weight: 800;
}

.info-box strong {
    color: var(--light);
    font-size: 0.94rem;
}

.projects,
.journey {
    background: rgba(2, 6, 23, 0.36);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
    transition: 0.25s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 185, 129, 0.42);
}

.project-image {
    height: 210px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.07);
}

.project-content {
    padding: 24px;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
}

.project-tags span {
    padding: 7px 11px;
    border: 1px solid rgba(16, 185, 129, 0.20);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--muted-2);
    font-size: 0.78rem;
    font-weight: 800;
}

.project-link {
    color: var(--primary-2);
    font-weight: 800;
    transition: 0.25s ease;
}

.project-link:hover {
    color: var(--secondary);
}

.featured-project {
    border-color: rgba(245, 158, 11, 0.36);
}

.skills-grid,
.journey-grid,
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.skill-card,
.journey-card {
    padding: 26px;
}

.skill-card h3,
.journey-card h3 {
    margin-bottom: 18px;
    font-size: 1.28rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted-2);
    font-weight: 700;
    font-size: 0.9rem;
}

.skills-list img {
    width: 20px;
    height: 20px;
}

.journey-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    font-weight: 900;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    transition: 0.25s ease;
}

.info-item[href]:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.42);
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.10);
    color: var(--primary-2);
    font-size: 1.3rem;
    font-weight: 900;
}

.info-item strong {
    display: block;
    margin-bottom: 2px;
}

.info-item p {
    color: var(--muted);
    word-break: break-word;
}

.footer {
    padding: 42px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    background: rgba(2, 6, 23, 0.52);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.social-links a {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted-2);
    font-weight: 800;
    transition: 0.25s ease;
}

.social-links a:hover {
    color: var(--primary-2);
    border-color: rgba(16, 185, 129, 0.42);
    transform: translateY(-3px);
}

.footer p {
    color: var(--muted);
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: 0.7s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

@media (max-width: 980px) {
    .hero-grid,
    .about-content,
    .projects-grid,
    .skills-grid,
    .journey-grid,
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid,
    .about-content {
        gap: 40px;
    }

    .hero-content {
        grid-column: 1 / -1;
    }

    .hero-visual {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .section-padding {
        padding: 78px 0;
    }

    .nav {
        min-height: 68px;
    }

    .mobile-menu-button {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 76px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: rgba(15, 23, 42, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px;
        border-radius: 12px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero {
        padding-top: 120px;
    }

    .hero-grid,
    .about-content,
    .projects-grid,
    .skills-grid,
    .journey-grid,
    .contact-info,
    .hero-stats,
    .about-info {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        margin-top: 30px;
    }

    .profile-card {
        width: min(310px, 100%);
    }

    .profile-image {
        width: 220px;
        height: 220px;
    }

    .floating-card {
        position: static;
        margin-top: 12px;
        width: fit-content;
    }

    .profile-card {
        padding: 24px;
        aspect-ratio: auto;
    }

    .about-image img {
        height: 360px;
    }

    .section-header {
        text-align: left;
    }

    .project-image {
        height: 220px;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-image img {
        height: 300px;
    }
}
