/* Universal reset and border-box modeling */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000;
    color: #e5e5e5;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.35;
}

/* Typography */
h1, h2 {
    color: #f5f5f5;
}

h1 {
    font-size: 40px;
    font-weight: 400;
    text-align: left;
    margin-top: -8px;
}

h2 {
    padding: 48px 0 12px 0;
    font-size: 24px;
    font-weight: 400;
}

/* Links */
a {
    color: #9e9e9e;
    text-decoration: none;
}

a:hover {
    color: #fff;
}

/* Navigation */
nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: auto;
    background-color: #000;
    padding: 2rem;
    z-index: 100;
}

.nav-links {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    padding: 0.5rem 0;
    font-size: 1rem;
    display: block;
    text-align: left;
    white-space: nowrap;
}

.nav-icons {
    position: fixed;
    left: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-icons img {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-icons img:hover {
    opacity: 1;
}

.nav-icons img[alt="GitHub"] {
    filter: invert(1);
}

.nav-icons img[alt="LinkedIn"] {
    filter: brightness(0.15) invert(1);
}

/* Main Layout */
.main-container {
    max-width: 640px;
    margin: 0 auto;
    margin-left: calc(50% - 320px + 60px);
    padding: 2rem;
    padding-top: calc(50vh - 400px);
    flex: 1;
}

/* Home Section */
.home {
    padding-top: 2.5rem;
}

.home-container {
    display: flex;
    max-height: 400px;
    gap: 2rem;
}

.profile-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.intro {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-picture {
    max-height: 184px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.profile-figure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background-image: 
        radial-gradient(circle at center,
            transparent 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.01) 55%,
            rgba(255, 255, 255, 0.02) 65%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.08) 85%,
            rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1;
    pointer-events: none;
}

.profile-figure::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 2;
    pointer-events: none;
    mask: radial-gradient(circle at center,
           transparent 0%,
           transparent 45%,
           rgba(0,0,0,0.1) 50%,
           rgba(0,0,0,0.3) 55%,
           rgba(0,0,0,0.6) 65%,
           rgba(0,0,0,0.85) 75%,
           black 85%,
           black 100%);
    -webkit-mask: radial-gradient(circle at center,
                  transparent 0%,
                  transparent 45%,
                  rgba(0,0,0,0.1) 50%,
                  rgba(0,0,0,0.3) 55%,
                  rgba(0,0,0,0.6) 65%,
                  rgba(0,0,0,0.85) 75%,
                  black 85%,
                  black 100%);
}

.greeting {
    padding: 4px 0;
    font-weight: 400;
}

.subtitle {
    padding: 4px 0;
}

.social-links a {
    margin-right: 1rem;
}

.social-links a::after {
    content: '↗';
    margin-left: 0.25rem;
    font-size: 1em;
    vertical-align: middle;
}

/* About Section */
#about p {
    font-size: 1rem;
}

/* Projects Section */
.projects {
    padding-bottom: 2.5rem;
}

.project-grid {
    display: block;
    margin-top: 5px;
}

.project-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
                rgba(255, 255, 255, 0.1) 0%, 
                transparent 50%, 
                rgba(255, 255, 255, 0.05) 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    margin-top: 0;
    color: #fff;
}

.project-card p {
    flex-grow: 1;
    color: #ccc;
}

