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

body {
    font-family: 'Abel', sans-serif;
    background-color: #1A1A1A;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hide scrollbars */
::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Global layout variable for unified horizontal page padding */
:root { --page-padding-x: 80px; }

@media (max-width: 768px) {
    :root { --page-padding-x: 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root { --page-padding-x: 40px; }
}

.container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Main Content Section */
.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.title {
    font-size: 80px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 102px;
    letter-spacing: 0;
}

.subtitle {
    font-size: 40px;
    font-weight: 400;
    color: #616161;
    margin-bottom: 38px;
    line-height: 51px;
    letter-spacing: 0;
}

.button-group {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 0;
    font-family: 'Abel', sans-serif;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
    background-color: #f5f5f5;
    color: #000000;
}

.btn-primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Images Grid */
.images-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.image-item {
    position: absolute;
    overflow: hidden;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image positioning based on Figma design */
.item-1 { /*   ㅁ                -
             -                 - _
                -              - -
                       -                   */
    top: 205px;
    left: 242px;
    width: 237px;
    height: 178px;
}

.item-2 {  /*   -                ㅁ
             -                 - _
                -              - -
                       -                   */
    top: 190px;
    right: 0;
    width: 237px;
    height: 178px;
}

.item-3 {  /*   -                -
             -                 -
                -              _ ㅁ_
                       -                   */
    top: 607px;
    right: 0;
    width: 237px;
    height: 178px;
}

.item-4 {  /*   -                -
             -                 ㅁ _
                -              - -
                       -                   */
    top: 399px;
    right: 237px;
    width: 191px;
    height: 179px;
}

.item-5 {  /*   -                -
             -                 - _
                ㅁ              - -
                       -                   */
    top: 680px;
    left: 246px;
    width: 237px;
    height: 150px;
}

.item-6 {  /*   -                -
             -                 - _
                -              ㅁ - 
                       -                   */
    top: 785px;
    right: 237px;
    width: 141px;
    height: 106px;
}

.item-7 {  /*   -                -
             ㅁ                 - _
                -              - - 
                       -                   */
    top: 512px;
    left: 1px;
    width: 245px;
    height: 178px;
}

.item-8 { /*   -                -
             -                 - _
                -              - ㅁ 
                       -                   */
    top: 785px;
    right: 0;
    width: 141px;
    height: 106px;
}

.item-9 { /*   -                -
             -                 - _
                -              - - 
                       ㅁ                   */
    top: 850px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 150px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--page-padding-x);
    height: 36px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 24px;
    height: 24px;
    border-radius: 2px;
}

.logo-text {
    font-size: 25px;
    font-family: 'Abel', sans-serif;
    color: #ffffff;
    line-height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 25px;
    font-family: 'Abel', sans-serif;
    color: #ffffff;
    text-decoration: none;
    line-height: 32px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #616161;
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    position: relative;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    position: absolute;
    width: 20px;
    height: 1px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Default state - two lines */
.hamburger-line:nth-child(1) {
    top: 7px;
    left: 2px;
}

.hamburger-line:nth-child(2) {
    top: 15px;
    left: 2px;
}

/* Active state - X shape */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    top: 11px;
    transform: rotate(-45deg);
}

/* Mobile Slide Menu */
.mobile-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 999;
    transition: bottom 0.3s ease;
}

.mobile-menu.active {
    bottom: 0;
}

.mobile-menu-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 40vh;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 30px 36.6px 30px;
    display: flex;
    flex-direction: column;
}


.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-link:hover {
    color: #616161;
}

.nav-arrow {
    width: 16px;
    height: 8px;
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover .nav-arrow {
    transform: translateX(5px);
}

.mobile-nav-link:last-child {
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        width: 100%;
    }
    
    .main-content {
        max-width: 90%;
    }
    
    .title {
        font-size: 60px;
        line-height: 76px;
    }
    
    .subtitle {
        font-size: 30px;
        line-height: 38px;
    }
    
    .btn {
        font-size: 18px;
        padding: 8px 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        top: 40%;
        max-width: 95%;
    }
    
    .title {
        font-size: 48px;
        line-height: 60px;
    }
    
    .subtitle {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 30px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .btn {
        width: 200px;
        font-size: 16px;
    }
    
    .nav-content {
        padding: 0 20px;
        justify-content: space-between;
        height: 40px;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: flex;
    }
    
    /* Hide some images on mobile for better performance */
    .item-2, .item-3, .item-4, .item-6 {
        display: none;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 36px;
        line-height: 45px;
    }
    
    .subtitle {
        font-size: 20px;
        line-height: 25px;
    }
    
    .btn {
        width: 180px;
        font-size: 14px;
    }
    
    .logo-text, .nav-link {
        font-size: 20px;
    }
}
