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

:root {
    --primary-color: #000;
    --secondary-color: #1428a0;
    --accent-color: #007aff;
    --text-light: #fff;
    --text-dark: #000;
    --text-gray: #666;
    --bg-light: #f7f7f7;
    --bg-white: #fff;
    --border-color: #e5e5e5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Samsung One', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Banner */
.top-banner {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
}

.top-banner a {
    color: var(--text-light);
    text-decoration: underline;
}

/* Header */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    min-height: 70px;
}

.nav__logo img {
    height: 20px;
    width: auto;
    display: block;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    margin-left: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: var(--secondary-color);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.2s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Mega Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1001;
}

.nav__item:hover .mega-menu {
    display: block;
}

.mega-menu__content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

.mega-menu__column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mega-menu__column ul {
    list-style: none;
}

.mega-menu__column ul li {
    margin-bottom: 0.75rem;
}

.mega-menu__column ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.mega-menu__column ul li a:hover {
    color: var(--secondary-color);
}

.mega-menu__products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.mega-menu__product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mega-menu__product:hover {
    transform: translateY(-4px);
}

.mega-menu__product img {
    width: 100%;
    max-width: 120px;
    height: auto;
    object-fit: contain;
}

.mega-menu__product span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Nav Actions */
.nav__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav__action-btn {
    background: none;
    border: none;
    font-size: 1.125rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__action-btn:hover {
    color: var(--secondary-color);
}

.nav__menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 110px);
    max-height: 700px;
    overflow: hidden;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
}

.hero__slide--active {
    opacity: 1;
}

.hero__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 1440px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero__content--dark .hero__title,
.hero__content--dark .hero__subtitle {
    color: var(--text-light);
}

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

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 40px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.btn--primary:hover {
    background-color: #333;
    border-color: #333;
}

.btn--outline {
    background-color: transparent;
    color: var(--text-dark);
    border-color: var(--primary-color);
}

.hero__content--dark .btn--outline {
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn--outline:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hero__content--dark .btn--outline:hover {
    background-color: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--bg-white);
}

/* Hero Navigation */
.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.hero__nav--prev {
    left: 1rem;
}

.hero__nav--next {
    right: 1rem;
}

.hero__dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero__dot--active {
    background-color: var(--bg-white);
    border-color: var(--bg-white);
    width: 30px;
    border-radius: 5px;
}

/* Sections */
section {
    padding: 4rem 0;
}

.section__title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

/* Featured Products */
.featured {
    background-color: var(--bg-white);
}

.featured__tabs {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.featured__tab {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.featured__tab--active {
    color: var(--text-dark);
    font-weight: 600;
}

.featured__tab--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.featured__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px;
    gap: 1.5rem;
}

.featured__item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: var(--bg-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.featured__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured__item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.featured__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured__item:hover img {
    transform: scale(1.05);
}

.featured__item-content {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--text-dark);
    z-index: 2;
}

.featured__item--large .featured__item-content {
    bottom: 2rem;
    left: 2rem;
}

.featured__item-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.featured__item--large .featured__item-content h3 {
    font-size: 1.5rem;
}

.featured__item-content p {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-gray);
}

.featured__item-content .btn {
    font-size: 0.75rem;
    padding: 0.5rem 1.25rem;
}

/* Stories Section */
.stories {
    background-color: var(--bg-light);
}

.stories__carousel {
    position: relative;
    overflow: hidden;
}

.stories__track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.stories__card {
    min-width: 250px;
    flex: 0 0 calc((100% - 6rem) / 5);
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stories__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stories__card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    display: block;
}

.stories__card h3 {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.stories__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stories__nav:hover {
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stories__nav--prev {
    left: 0.5rem;
}

.stories__nav--next {
    right: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 3rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__column ul {
    list-style: none;
}

.footer__column ul li {
    margin-bottom: 0.5rem;
}

.footer__column ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer__column ul li a:hover {
    color: var(--text-light);
}

.footer__socials {
    display: flex;
    gap: 1rem;
}

.footer__socials a {
    text-decoration: none;
    color: var(--text-light);
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.footer__socials a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer__bottom {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav__menu {
        gap: 1rem;
    }
    
    .featured__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured__item--large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .stories__card {
        flex: 0 0 calc((100% - 3rem) / 3);
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-white);
        gap: 0;
        display: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }
    
    .nav__menu--active {
        display: flex;
    }
    
    .nav__item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mega-menu {
        position: static;
        box-shadow: none;
        border-bottom: none;
    }
    
    .mega-menu__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .mega-menu__products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav__menu-toggle {
        display: flex;
    }
    
    .hero {
        height: calc(100vh - 100px);
    }
    
    .hero__content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .hero__subtitle {
        font-size: 1.125rem;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .hero__nav {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .hero__nav--prev {
        left: 0.5rem;
    }
    
    .hero__nav--next {
        right: 0.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .featured__tabs {
        gap: 1rem;
    }
    
    .featured__tab {
        font-size: 0.875rem;
    }
    
    .featured__grid {
        grid-template-columns: 1fr;
    }
    
    .stories__card {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
