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

:root {
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --text-light: #2a2a2a;
    --text-dark: #e5e5e5;
    --accent: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

.container {
    position: relative;
    width: calc(100% - 80px);
    height: calc(100vh - 80px);
    display: flex;
    padding: 40px;
    gap: 120px;
    margin: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

body.dark-theme .container {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Left Column */
.left-column {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    z-index: 2;
}

.header {
    margin-bottom: 80px;
}

.name {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 100;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.1;
}

.subtitle {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.8;
    margin-left: 5px;
}

body.dark-theme .subtitle {
    color: var(--text-dark);
    opacity: 0.7;
}

/* Navigation */
.navigation {
    margin-bottom: auto;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.nav-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.nav-item.active .nav-bullet {
    background-color: var(--accent);
}

.nav-link {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

body.dark-theme .nav-link {
    color: var(--text-dark);
}

.nav-link:hover {
    opacity: 0.6;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 52px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 10;
}

.theme-option {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.theme-option input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 12px;
    height: 12px;
    border: 1px solid var(--text-light);
    background-color: transparent;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    top: 0;
}

body.dark-theme .checkbox-custom {
    border-color: var(--text-dark);
}

.theme-option input[type="checkbox"]:checked + .checkbox-custom {
    background-color: var(--accent);
    border-color: var(--accent);
}

.theme-label-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 12px;
    width: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.theme-label {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

body.dark-theme .theme-label {
    color: var(--text-dark);
}

/* Right Column */
.right-column {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 2;
}

.content-area {
    max-width: 800px;
    text-align: right;
}

/* Content Sections */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.about-section {
    margin-top: 0;
}

.about-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--text-light);
    letter-spacing: 0.2px;
}

body.dark-theme .about-text {
    color: var(--text-dark);
}

/* Projects Section */
.projects-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.project-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-light);
    letter-spacing: 0.2px;
    margin-bottom: 2px;
    cursor: pointer;
}

body.dark-theme .project-item {
    color: var(--text-dark);
}

.project-name {
    display: inline;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.project-description {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: inline;
    margin-right: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.project-item:hover .project-description {
    opacity: 1;
    visibility: visible;
}

/* Contact Section */
.contact-section {
    text-align: right;
}

.contact-email {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--text-light);
    letter-spacing: 0.2px;
    margin-bottom: 24px;
}

body.dark-theme .contact-email {
    color: var(--text-dark);
}

.email-link {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-light);
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

body.dark-theme .email-link {
    color: var(--text-dark);
}

.email-link:hover {
    opacity: 0.6;
}

.linkedin-container {
    display: inline-block;
}

.linkedin-link {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.linkedin-link:hover {
    opacity: 0.6;
}

.linkedin-icon {
    width: 24px;
    height: 24px;
    color: var(--text-light);
}

body.dark-theme .linkedin-icon {
    color: var(--text-dark);
}

/* Grainy Texture Overlay */
.grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' fill='%23000'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    background-repeat: repeat;
    mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
    mix-blend-mode: multiply;
    filter: contrast(1.5) brightness(0.9);
    border-radius: 0;
    overflow: hidden;
}

body.dark-theme .grain-overlay {
    opacity: 0.25;
    mix-blend-mode: screen;
    filter: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        gap: 60px;
        padding: 40px;
        width: calc(100% - 80px);
        height: calc(100vh - 80px);
        margin: 40px;
        box-sizing: border-box;
    }

    .left-column {
        min-width: auto;
    }

    .right-column {
        justify-content: flex-end;
        align-items: flex-end;
    }

    .content-area {
        text-align: left;
        max-width: 100%;
    }

    .projects-list {
        text-align: left;
    }

    .contact-section {
        text-align: left;
    }

    .project-description {
        display: none !important;
    }

    .grain-overlay {
        mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
        -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 0%, transparent 70%);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px;
        width: calc(100% - 60px);
        height: calc(100vh - 60px);
        margin: 30px;
        box-sizing: border-box;
    }

    .name {
        font-size: 36px;
    }

    .subtitle {
        font-size: 14px;
    }

    .about-text {
        font-size: 16px;
    }

    .subtitle {
        margin-left: 3px;
    }

    .project-item {
        font-size: 16px;
    }

    .project-description {
        display: none !important;
    }

    .theme-toggle {
        bottom: 60px;
        left: 10px;
    }
}

