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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #f0f3f4;
    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: #d3d3d3;
}

.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;
}

/* Sun icon - shown in light mode */
#modeToggle {
    font-size: 20px;
    line-height: 1;
    color: #1a1919;
    width: auto;
    height: auto;
    transition: all 0.3s;
}

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


/* Moon icon - shown in dark mode */
body.dark-mode #modeToggle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid #d3d3d3;
    overflow: hidden;
}

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

body.dark-mode #modeToggle::after {
    content: '';
}

/* Dark mode styles */
body.dark-mode {
    background: #1a1919;
    color: #d3d3d3;
}

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

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

body.dark-mode .project-count {
    color: #999;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #eeeeee;
    padding: 0 20px;
    padding-bottom: 6rem;
}

.hero-name {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    text-transform: uppercase;
    padding-bottom: 0.5rem;
}

.hero-description {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(5px);
    opacity: 0.8;
}

.shooting-star {
    width: 2px;
    height: 120px;
    background: #fff;
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

.shooting-star::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #fff;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.projects-section {
    padding-top: 80px;
}

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

.project-section {
    margin-bottom: 80px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    cursor: pointer;
    transition: opacity 0.3s;
}

.project-section:hover {
    opacity: 0.8;
}

.project-info {
    top: 120px;
}

.project-header {
    margin-bottom: 20px;
}

.project-title {
    font-size: 1.1rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 8px;
}

.project-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.project-tags {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.project-jingle {
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: 1px;
    color: #696969;
}

body.dark-mode .project-jingle {
    color: #999;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gallery-item {
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    aspect-ratio: 16/9;
}

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

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

/* Footer Styles */
.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: #d3d3d3;
}

@media (max-width: 1200px) {
    .project-section {
        grid-template-columns: 300px 1fr;
        gap: 30px;
    }

    .project-subtitle {
        font-size: 24px;
    }
}

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

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

    nav {
        gap: 30px;
    }

    .nav-icons {
        right: 20px;
    }

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

    .project-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
    }

    .project-info {
        position: static;
    }

    .project-subtitle {
        font-size: 20px;
    }

    .project-count {
        position: static;
        display: block;
        margin-top: 10px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 40px;
    }

    .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;
    }

    .project-subtitle {
        font-size: 18px;
    }

    .project-tags {
        font-size: 12px;
    }

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