/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}



/* Color selection */
p::selection {
  background: #92c1f6ea;
  color: #000000;
}


:root {
    --bg-primary: #ffffff;
    --bg-secondary: #1a1a1a;
    --bg-transparent: transparent;
    --text-primary: #000000;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #2a2a2a;
    --accent: #ffffff;

    /* Gradient Backgrounds */
    --bg-gradient-1: radial-gradient(100% 100% at 85% 30%, #ebfcff -15%, transparent),
                      radial-gradient(100% 100% at 21% 27%, #ffebfa -9%, transparent),
                      radial-gradient(100% 100% at 42% 72%, #feffe0 35%, transparent),
                      #add5ff;

    --bg-gradient-2: radial-gradient(circle,rgba(255, 255, 255, 1) 1%, rgba(225, 239, 255, 1) 53%, rgba(214, 246, 255, 1) 100%);

    /* Footer Background */
    --bg-footer: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 40px;
    padding-top: 80px;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 32px);
    max-width: 600px;
}

.navbar-desktop {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
    background: rgba(238, 238, 238, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 9999px;
    border: 2px solid rgb(255 255 255 / 40%);
}

.navbar-logo {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar-link {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color:(var(--bg-secondary))
}

.navbar-link:hover {
    opacity: 0.7;
}

/* Mobile Navbar */
.navbar-mobile {
    display: flex;
    flex-direction: column;
    background-color: #ffffff3a;
    backdrop-filter: blur(24px);
    border: 1px solid #ffffff;
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    overflow: hidden;
}

.navbar-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
}

.navbar-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.navbar-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.navbar-toggle.active .navbar-toggle-icon span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.navbar-toggle.active .navbar-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .navbar-toggle-icon span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.navbar-mobile-menu {
    display: none;
    flex-direction: column;
    padding: 0 20px 20px;
    gap: 12px;
}

.navbar-mobile-menu.active {
    display: flex;
}

.navbar-mobile-link {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.navbar-mobile-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Desktop Navbar - Show on larger screens */
@media (min-width: 720px) {
    .navbar-desktop {
        display: flex;
    }

    .navbar-mobile {
        display: none;
    }
}

/* Stack Cards Effect */
.main-content {
    position: relative;
    z-index: 10;
    background-color: var(--bg-primary);
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

.footer-spacer {
    height: 40vh;
    background-color: #131a16;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Hero Section */
.hero {
    min-height: 44vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 100px;
}

.hero-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    max-width: 1100px;
}

.hero-subtitle {
    font-size: 16px;
    color: inherit;
    max-width: 600px;
    line-height: 1.48;
    max-width: 57ch;
}

.link {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity 0.2s ease;
}

.link:hover {
    opacity: 0.7;
}

/* Carousel Section */
.carousel-section {
    padding: 24px 0;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.carousel-sidebar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.carousel-info {
    max-width: 100ch;
    text-align: center;
}

.carousel-description {
    font-size: 14px;
    color: #727272;
    line-height: 1.6;
    max-width: 90ch;
    transition: opacity 0.3s ease;
}

.carousel-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    order: 1;
    margin-left: calc(-50vw + 50% + 8px);
    margin-right: calc(-50vw + 50% + 8px);
}

.carousel-slider::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 16px;
    padding-left: 8px;
    padding-right: 8px;
}

.carousel-slide {
    flex-shrink: 0;
}

.carousel-slide img {
    height: auto;
    display: block;
}

/* Selected Work Section */
.selected-work {
    background-color: var(--bg-transparent);
    padding: 60px 0;
    margin: 0 -80px;
}

.work-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    margin-bottom: 60px;
    align-items: start;
}

.work-title {
    font-size: 48px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.work-subtitle {
    font-size: 15px;
    color: #737373;
    line-height: 1.6;
}

.work-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
}

.work-item {
    display: grid;
    grid-template-columns: 300px 1fr 100px 120px;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-bottom: 1px solid #ebebeb;
    transition: background-color 0.2s ease;
}

.work-item:hover {
    background-color: #f5f5f5;
}

.work-type {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    padding: 0 8px
}

.work-description {
    font-size: 15px;
    color: #1d283e;
}

.work-year {
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    text-align: right;
}

.work-button {
    display: inline-block;
    padding: 10px 24px;
    background-color: #1a1a1a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.work-button:hover {
    background-color: #dedede;
    color: #000000;
    transform: translateY(-1px);
}

.work-actions {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 48px;
}

.see-more-button {
    padding: 12px 32px;
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #d4d4d4;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.see-more-button:hover {
    background-color: #f0f0f0;
    border-color: #a3a3a3;
}

/* About Me Section */
.about-me {
    background-color: var(--bg-primary);
    padding: 80px 0;
    margin: 0 -80px;
    border-radius: 0 0 80px 80px;
    
}

.about-me-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.about-me-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-me-image img {
    display: block;
    max-width: 60%;
    height: auto;
}

.about-me-content {
    max-width: 600px;
}

.about-me-title {
    font-size: 48px;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.about-me-description {
    font-size: 15px;
    color: #737373;
    line-height: 1.6;
    padding-bottom: 48px;
}

/* Footer - Stack Cards Effect */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 256px 80px 20px;
    background: #131a16;
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #ffffff;
}

.footer-brand {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.brand-name {
    line-height: 1.3;
    color: #ffffff;
}

.footer-links {
    list-style: none;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    line-height: 2;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.7;
}

.footer-text .link {
    color: #ffffff;
}

/* Bottom Bar */
.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-link:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
}

.social-link:hover {
    background-color: #ffef13;
    color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .selected-work {
        margin: 0 -40px;
    }

    .work-header,
    .work-list,
    .work-actions {
        padding: 0 40px;
    }

    .work-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .work-item {
        grid-template-columns: 200px 1fr 80px 110px;
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

}

@media (max-width: 768px) {
    body {
        margin-bottom: 0;
    }

    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 40px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .selected-work {
        margin: 0 -24px;
        padding: 60px 0;
    }

    .work-header,
    .work-list,
    .work-actions {
        padding: 0 24px;
    }

    .work-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px 0;
    }

    .work-type {
        font-weight: 600;
    }

    .work-year {
        text-align: left;
    }

    .work-button {
        width: 100%;
        justify-self: start;
    }

    .main-content {
        border-radius: 0;
    }

    .footer {
        position: static;
        padding: 80px 24px 24px;
    }

    .footer-spacer {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .legal-links {
        flex-direction: column;
        gap: 12px;
    }

    .carousel-section {
        padding: 40px 0;
    }

    .carousel-container {
        gap: 24px;
    }

    .carousel-sidebar {
        gap: 24px;
    }

    .carousel-slide img {
        max-height: 280px;
        width: auto;
    }

    .about-me {
        margin: 0 -24px;
        padding: 60px 0;
    }

    .about-me-grid {
        padding: 0 24px;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-me-image {
        text-align: center;
        padding: inherit;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0px 16px 10px;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .selected-work {
        margin: 0 -16px;
        padding-bottom: 86px;
    }

    .work-header,
    .work-list,
    .work-actions {
        padding: 0 16px;
    }

    .social-links {
        width: 100%;
        justify-content: flex-start;
    }

    .carousel-section {
        padding: 32px 0;
    }

    .carousel-sidebar {
        flex-direction: column;
        gap: 16px;
    }

    .carousel-slide img {
        max-height: 200px;
        width: auto;
    }

    .about-me {
        margin: 0 -16px;
        border-radius: 0 80px 80px
    }

    .about-me-grid {
        padding: 0 16px;
    }

    .about-me-content {
        padding: 0 16px;
    }
}