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

:root {
    --bg-color: #121212;
    --text-color: #c7c7c7;
    --heading-color: #ffffff;
    --border-color: #333;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
}

header {
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 1100px; /* CHANGED: Made wider */
    margin: 0 auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

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

main {
    max-width: 1100px; /* CHANGED: Made wider */
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

section {
    padding: 1.5rem 0;
    text-align: left;
}

section + section {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

h1, h2, h3 {
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
}

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

a:hover {
    text-decoration: underline;
}

.intro-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center; 
    gap: 5rem; 
    padding-bottom: 1.5rem;
    min-height: calc(100vh - 5rem); 
}

.intro-content {
    flex: 2;
    min-width: 300px;
}

.intro-image {
    flex: 1;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.intro-content h1 {
    font-size: 2.5rem;
}

.intro-content h2 {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
}

.intro-content p {
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-top: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
    display: inline-flex; /* Add this */
    align-items: center;
}

.social-links a:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.svg-icon {
    width: 1.3rem;
    height: 1.3rem;
    vertical-align: middle;
    filter: invert(75%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.skills-container {
    display: block;
}

.skill-category {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
}

.skill-category h3 {
    color: var(--heading-color);
    font-size: 1rem;
    font-weight: 600;
    width: 120px;
    flex-shrink: 0;
}

.skill-category p {
    font-size: 1rem;
    flex-grow: 1;
}

.project-item {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.project-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.project-description {
    flex: 1;
    min-width: 300px;
}

.project-description h3 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-description .github-link {
    font-size: 1rem;
    text-decoration: none;
}

.project-description .github-link:hover {
    text-decoration: none;
    color: var(--heading-color);
}

.project-description ul {
    list-style-type: disc;
    margin-left: 1.25rem;
    padding-left: 0;
}

.project-description ul li {
    margin-bottom: 0.25rem;
}

.project-video {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-bottom: 20%;
    height: 0;
    overflow: hidden;
}

.project-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.project-card .tech-stack {
    font-style: italic;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.blog-post {
    margin-bottom: 1.5rem;
}

.blog-post:last-child {
    margin-bottom: 0;
}

.blog-post h3 {
    font-size: 1.1rem;
}

.blog-post p {
    margin-bottom: 0.5rem;
}

.blog-post a {
    font-weight: bold;
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1rem;
    }
    nav {
        justify-content: center;
    }
    .nav-links {
        gap: 1.2rem;
        font-size: 0.9rem;
    }
    main {
        padding: 1rem;
    }
    section {
        padding: 1rem 0;
    }
    section + section {
        padding-top: 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.3rem;
    }
    .intro-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: calc(100vh - 5rem); /* Adjust height for mobile */
    }
    .intro-content, .intro-image {
        min-width: auto;
        width: 100%;
    }
    .intro-content h1, .intro-content h2, .social-links {
        text-align: center;
        justify-content: center;
    }
    .profile-photo {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }

    .project-item {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .project-description, .project-video {
        min-width: auto;
        width: 100%;
    }
    .project-video {
        padding-bottom: 56.25%;
    }

    .skill-category {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.8rem;
    }
    .skill-category h3 {
        width: auto;
        margin-bottom: 0.2rem;
    }
}