/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --text-primary: #333333;
    --text-secondary: #555555;
    --accent: #0066cc;
    --accent-hover: #0052a3;
    --border: #dddddd;
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: relative;
    top: 0;
    z-index: 100;
    padding: 0.75rem 0;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.home-header-content {
    text-align: center;
}


/* .home-header-line { */
/*     max-width: 900px; */
/*     width: 100%; */
/*     height: 1px; */
/*     background-color: var(--text-secondary); */
/*     margin: 0.15rem auto 0.6rem auto; */
/* } */

.header-name {
    font-family: 'Doto', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.header-name-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-name-link:hover {
    color: var(--accent-hover);
}

.header-line {
    max-width: 200px;
    width: 90%;
    height: 1px;
    background-color: var(--border);
    margin: 0.25rem auto 0.5rem auto;
}

.home-header-content .header-line {
    margin: 0.25rem 0 0.5rem 0;
}

.nav {
    display: flex;
    justify-content: center;
}

.home-header-content .nav {
    justify-content: flex-start;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-hover);
}

/* Main content */
.main {
    flex: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
    width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 0.6rem;
    font-weight: 600;
    line-height: 1.1;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}


/* Section-based layout */
.home-section {
    background: var(--bg-primary);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem 1rem 1.5rem;
}

.about-section,
.projects-section,
.cv-section {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-section {
    background: var(--bg-primary);
}

.projects-section {
    background: var(--bg-secondary);
}

.cv-section {
    background: var(--bg-primary);
}

/* Home page header styling */
.home-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home-header-image {
    display: flex;
    max-width: 1200px;
    width: 70%;
    height: auto;
    margin: 0 auto 0.0rem auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.home-header-only {
    text-align: center;
    padding: 0;
    margin-top: 0;
}

.home-nav-links {
    display: flex;
    list-style: none;
    margin: 0.3rem 0;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.home-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.home-nav-links a:hover {
    color: var(--accent-hover);
}

.home-nav-links li+li::before {
    content: "|";
    color: var(--text-secondary);
    opacity: 0.6;
    padding: 0 0.75rem;
}

/* Header title container */
.header-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: max-content;
}

/* Section header with social links */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-link {
    color: var(--text-primary);
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
}

.social-link:hover {
    color: var(--accent-hover);
    transform: translateY(-2px);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Section content styling */
.section-content {
    max-width: 800px;
    width: 100%;
    text-align: left;
}

.section-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.section-text {
    line-height: 1.5;
    text-align: left;
    padding-left: 1rem;
}

.section-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.section-text p:last-child {
    margin-bottom: 0;
}

.section-text li::before {
    content: "›";
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 0.6rem;
    flex-shrink: 0;
}

.section-text b {
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.3rem;
    margin-top: 0.75rem;
}

.section-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0.25rem 0 0.5rem 0;
    margin-bottom: 0.3rem;
}

.section-text ul:first-child {
    margin-top: 0;
}

.section-text ul:first-child b {
    margin-top: 0.75rem;
}

.section-text ul:last-of-type {
    margin-bottom: 0;
}

.section-text li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    padding-left: 0;
    position: relative;
}

.section-text li:first-child {
    margin-bottom: 0.8;
}


.section-text b {
    color: var(--text-secondary);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-name {
        font-size: 3rem;
        letter-spacing: 0.06em;
    }

    .header-title-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .social-links {
        gap: 0.4rem;
    }

    .social-link {
        padding: 0.2rem;
    }

    .home-nav-links a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .home-nav-links li+li::before {
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-section,
    .projects-section,
    .cv-section {
        padding: 1rem;
    }

    .home-section {
        padding: 1rem;
    }

    .section-text {
        padding-left: 0.5rem;
    }

    .section-text p,
    .section-text li {
        font-size: 0.9rem;
    }
}
