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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #e9edee;
    color: #000;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

header {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    position: fixed;
    backdrop-filter: blur(5px);
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background: #f0f3f49f;
    z-index: 1000;  
    border-bottom: 1px solid #e0e0e0;
}

.logo {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    position: absolute;
    left: 40px;
}

nav {
    display: flex;
    gap: 60px;
    align-items: center;
}

nav a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    transition: opacity 0.3s, color 0.3s;
    text-align: center;
    align-items: center;
}

nav a:hover {
    opacity: 0.6;
}

nav a.active {
    position: relative;
}

nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: #000;
    transform: translateY(-50%);
    transition: background 0.3s;
}

body.dark-mode nav a.active::after {
    background: #fff;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute;
    right: 40px;
}

.nav-icons span {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}

.nav-icons span:hover {
    transform: scale(1.2);
    opacity: 0.7;
}

#modeToggle {
    font-size: 20px;
    line-height: 1;
    color: #000;
    width: auto;
    height: auto;
    transition: all 0.3s;
}

#modeToggle::before {
    content: '☼';
    -webkit-text-stroke: 1.2px #000;
    transition: all 0.3s;
}

body.dark-mode #modeToggle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #e9edee;
    overflow: hidden;
}

body.dark-mode #modeToggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e9edee;
    background: #1a1919;
}

body.dark-mode {
    background: #1a1919;
    color: #e9edee;
}

body.dark-mode header {
    background: #1a19199a;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #333;
}

body.dark-mode nav a {
    color: #e9edee;
}

main {
    margin-top: 100px;
    padding: 0 40px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.about-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.about-intro em {
    font-style: italic;
    opacity: 0.9;
}

.draggable-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.drag-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.drag-item {
    aspect-ratio: 4/4;
    cursor: move;
    cursor: grab;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.drag-item:active {
    cursor: grabbing;
}

.drag-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.drag-item.drag-over {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.drag-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.life-section {
    margin-bottom: 80px;
}

.life-title-container {
    margin-left: -40px;
    margin-right: -40px;
    padding: 40px 40px;
    margin-bottom: 40px;
    background: #dbe2e3;
}

body.dark-mode .life-title-container {
    background: #252525;
}

.life-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.life-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.life-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
}

.life-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px;
}

.life-gallery-item:hover img {
    transform: scale(1.05);
}

.life-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 15px;
    font-size: 1.2rem;
    font-weight: 400;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.life-gallery-item:hover .life-caption {
    transform: translateY(0);
}

.footer {
    margin-top: 80px;
    margin-left: -40px;
    margin-right: -40px;
    margin-bottom: 0;
    padding: 30px 40px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    transition: border-color 0.3s;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-content a {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #000;
    text-decoration: underline;
    transition: opacity 0.3s, color 0.3s;
}

.footer-content a:hover {
    opacity: 0.6;
}

body.dark-mode .footer {
    border-top: 1px solid #333;
}

body.dark-mode .footer-content a {
    color: #fff;
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 24px;
        left: 20px;
    }

    nav {
        gap: 30px;
    }

    nav a {
        font-size: 9px;
    }

    .nav-icons {
        right: 20px;
    }

    main {
        margin-top: 80px;
        padding: 0 20px;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-intro {
        font-size: 1rem;
    }

    .drag-container {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .drag-item {
        width: calc(50% - 0.5rem);
    }

    .drag-item:last-child:nth-child(odd) {
        width: 100%;
    }

    .life-title-container {
        margin-left: -20px;
        margin-right: -20px;
        padding: 30px 20px;
    }

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

    .life-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .life-gallery-item {
        width: calc(50% - 7.5px);
    }

    .life-gallery-item:last-child:nth-child(odd) {
        width: 100%;
    }

    .footer {
        margin-top: 60px;
        margin-left: -20px;
        margin-right: -20px;
        padding: 30px 20px;
    }

    .footer-content p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    nav a {
        font-size: 9px;
    }

    .footer-content p {
        font-size: 0.8rem;
    }
}