@charset "utf-8";

/* ==========================================================================
   MAIN PAGE STYLES
   ========================================================================== */

/* 1. Premium Hero Slider */
.main_hero_wrap {
    position: relative;
    width: 100vw;
    height: 100vh;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
}

.main_hero_swiper {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.main_hero_swiper .swiper-slide {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ken Burns Effect (Slow Zoom) */
.hero_bg_img {
    position: absolute;
    top: 0; left: 0;
    width: 1000px; /* Force wide width to avoid any thin slivers */
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-out; /* Smooth slide transition but no zoom */
}

/* Dark Overlay */
.hero_bg_img::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

/* Content Box */
.hero_content_box {
    position: relative;
    z-index: 5;
    pointer-events: none;
}

.hero_text_inner {
    max-width: 900px;
    color: #ffffff; /* Brightened for dark backgrounds */
    pointer-events: auto;
    text-align: left;
}

.hero_main_title {
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9 !important; /* Extremely tight for architectural aesthetic */
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -2.5px; /* Slightly tighter tracking too */
    white-space: pre-wrap; /* Preserve line breaks */
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Subtle readability shadow */
}

.hero_sub_desc {
    font-size: 34px; /* Further increased for impact */
    font-weight: 500;
    color: #111111;
    line-height: 1.3;
    margin-bottom: 25px;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateY(20px);
}

.hero_point_title {
    font-size: 60px;
    font-weight: 800;
    color: #c9ff4c; /* Much brighter, vibrant lime green for contrast */
    line-height: 1.1;
    margin-bottom: 40px;
    letter-spacing: -1.5px;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero_btn_area {
    opacity: 0;
    transform: translateY(20px);
}

/* Updated Text Animations */
.swiper-slide-active .hero_main_title {
    animation: fadeUp 0.8s 0.3s forwards;
}
.swiper-slide-active .hero_sub_desc {
    animation: fadeUp 0.8s 0.5s forwards;
}
.swiper-slide-active .hero_point_title {
    animation: fadeUp 0.8s 0.7s forwards;
}
.swiper-slide-active .hero_btn_area {
    animation: fadeUp 0.8s 0.9s forwards;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Premium Button */
.btn_hero_more {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s;
    backdrop-filter: blur(5px);
}

.btn_hero_more i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn_hero_more:hover {
    background: #fff;
    color: #000 !important;
    border-color: #fff;
}

.btn_hero_more:hover i {
    transform: translateX(5px);
}

.hero_nav_wrap {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* Container itself shouldn't block clicks */
}

.hero_btn_prev, .hero_btn_next {
    position: absolute;
    top: 50%; /* Center relative to main_hero_wrap height */
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff !important;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    pointer-events: auto;
    z-index: 101;
}

.hero_btn_prev { left: 150px; }
.hero_btn_next { right: 150px; }

.hero_btn_prev:hover, .hero_btn_next:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1); /* Keep vertical center while scaling */
}

.hero_btn_prev i, .hero_btn_next i {
    display: block !important;
    visibility: visible !important;
    color: #ffffff !important;
}

.hero_pagination {
    margin: 0;
    width: auto !important;
    display: flex;
    pointer-events: auto;
}

.hero_pagination .swiper-pagination-bullet {
    width: 50px; /* Match bar length in screenshot */
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    opacity: 1;
    margin: 0 5px !important;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero_pagination .swiper-pagination-bullet-active::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--accent-color); /* Green progress */
    animation: bulletProgress 6s linear forwards;
}

@keyframes bulletProgress {
    from { width: 0; }
    to { width: 100%; }
}

.main_scroll_down {
    position: absolute;
    bottom: 110px; /* Above the pagination dots */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    pointer-events: none;
}

.main_scroll_down::after {
    content: '';
    display: block;
    width: 1px;
    height: 45px;
    background: rgba(255, 255, 255, 0.15);
    margin: 15px auto 0;
    position: relative;
    overflow: hidden;
}

.main_scroll_down::before {
    content: '';
    position: absolute;
    bottom: -60px; /* Aligned with the bottom of the ::after line */
    left: 50%;
    width: 1px;
    height: 45px;
    background: linear-gradient(to bottom, 
        rgba(130, 180, 41, 0) 0%, 
        rgba(130, 180, 41, 1) 50%, 
        rgba(130, 180, 41, 0) 100%);
    transform: translateX(-50%);
    animation: scrollLineAnimation 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollLineAnimation {
    0% { transform: translateX(-50%) translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(-50%) translateY(100%); opacity: 0; }
}

/* 2. Main Product Introduction Section */
.main_product_sec {
    padding: 120px 0;
    background-color: #ffffff;
}

.main_sec_head {
    text-align: center;
    margin-bottom: 80px;
}

.main_sec_title {
    font-size: 46px;
    font-weight: 800;
    color: #111;
    margin-bottom: 18px;
    letter-spacing: -2px;
}

.main_sec_desc {
    font-size: 19px;
    color: #888;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.product_grid {
    /* Main Swiper Container */
    overflow: hidden;
    position: relative;
    width: 100%;
}

.product_grid .swiper-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product_grid .swiper-wrapper .product_item:nth-child(5) {
    grid-column: span 2;
}

.product_item {
    display: flex;
    background: #fff;
    padding: 50px 40px;
    border: 1px solid #f0f0f0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

.product_item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.06);
    border-color: #e0e0e0;
}

.p_img_box {
    flex: 0 0 240px;
    height: 180px; /* FIXED HEIGHT on Desktop */
    margin-right: 45px;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p_img_box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product_item:hover .p_img_box img {
    transform: scale(1.08);
}

.p_info_box {
    flex: 1;
}

.p_label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.p_name {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin-bottom: 22px;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.p_summary {
    font-size: 17px;
    color: #777;
    line-height: 1.7;
    margin-bottom: 35px;
    word-break: keep-all;
}

.p_btn_wrap {
    display: block;
}

.btn_p_more {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    padding: 12px 28px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.btn_p_more i {
    margin-left: 12px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.btn_p_more:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.btn_p_more:hover i {
    transform: translateX(6px);
}

/* Mobile Responsive */
@media screen and (max-width: 1200px) {
    .product_item {
        padding: 40px 30px;
    }
    .p_img_box {
        flex: 0 0 200px;
        margin-right: 35px;
    }
    .p_name {
        font-size: 28px;
    }
}

@media screen and (max-width: 1024px) {
    .product_grid {
        grid-template-columns: 1fr;
    }
    .main_product_sec {
        padding: 100px 0;
    }
}

@media screen and (max-width: 768px) {
    .main_sec_title {
        font-size: 36px;
    }
    .product_item {
        flex-direction: column;
        padding: 40px 25px;
        text-align: center;
    }
    .p_img_box {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 35px;
        width: 100%;
        max-width: 300px;
    }
    .p_name {
        font-size: 26px;
    }
    .p_summary {
        font-size: 16px;
    }
}

/* 3. Main Section Layout */
.main_section_container {
    padding: 100px 0;
    max-width: 1600px;
    /* Wide layout */
    margin: 0 auto;
}

.main_sec_wrap {
    margin-bottom: 80px;
}

.main_sec_wrap:last-child {
    margin-bottom: 0;
}

/* Header: Title + Plus Button */
.main_sec_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.main_sec_title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    font-family: 'Noto Sans KR', sans-serif;
}

.btn_more_plus {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #555;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn_more_plus:hover {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* 3. Slider Card Styles */
.main_swiper_wrap {
    position: relative;
    padding: 0 60px;
    /* Space for buttons */
}

.swiper-container {
    width: 100%;
    height: 100%;
    padding: 20px 10px 40px 10px;
    /* Space for hover effects */
    overflow: hidden;
}

.main_card_item {
    cursor: pointer;
    border: 1px solid #eee;
    background: #fff;
    transition: transform 0.3s;
}

.main_card_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.main_card_thumb {
    width: 100%;
    height: 250px;
    /* PC height */
    overflow: hidden;
    position: relative;
    background: #f4f4f4;
}

.main_card_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.main_card_item:hover .main_card_thumb img {
    transform: scale(1.05);
}

.main_card_info {
    padding: 20px;
    text-align: center;
}

.main_card_title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main_card_btn {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #666;
    transition: all 0.3s;
}

.main_card_item:hover .main_card_btn {
    background: #222;
    color: #fff;
    border-color: #222;
}

/* Swiper Navigation: Premium 3D Glass Design */
.swiper-button-next,
.swiper-button-prev,
.swiper-button-next-stay,
.swiper-button-prev-stay,
.swiper-button-next-farmhut,
.swiper-button-prev-farmhut,
.swiper-button-next-residential,
.swiper-button-prev-residential {
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    border-bottom: 3px solid rgba(220, 220, 220, 0.8) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.4) !important;
    color: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.2s ease-out !important;
    opacity: 1 !important;
    cursor: pointer !important;
    z-index: 100 !important;
}

/* Icon Size */
.swiper-button-next::after,
.swiper-button-prev::after,
.swiper-button-next-stay::after,
.swiper-button-prev-stay::after,
.swiper-button-next-farmhut::after,
.swiper-button-prev-farmhut::after,
.swiper-button-next-residential::after,
.swiper-button-prev-residential::after {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #000 !important;
    text-shadow: none !important;
    width: auto !important;
    line-height: 1 !important;
}

/* Hover Effect */
.swiper-button-next:hover,
.swiper-button-prev:hover,
.swiper-button-next-stay:hover,
.swiper-button-prev-stay:hover,
.swiper-button-next-farmhut:hover,
.swiper-button-prev-farmhut:hover,
.swiper-button-next-residential:hover,
.swiper-button-prev-residential:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(calc(-50% - 3px)) scale(1.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    border-color: #fff !important;
}

/* Active Effect */
.swiper-button-next:active,
.swiper-button-prev:active,
.swiper-button-next-stay:active,
.swiper-button-prev-stay:active,
.swiper-button-next-farmhut:active,
.swiper-button-prev-farmhut:active,
.swiper-button-next-residential:active,
.swiper-button-prev-residential:active {
    transform: translateY(-50%) scale(0.95) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    border-bottom-width: 1px !important;
}

/* Positioning */
.main_swiper_wrap .swiper-button-prev,
.main_swiper_wrap .swiper-button-prev-stay,
.main_swiper_wrap .swiper-button-prev-farmhut,
.main_swiper_wrap .swiper-button-prev-residential {
    left: 10px !important;
    right: auto !important;
}

.main_swiper_wrap .swiper-button-next,
.main_swiper_wrap .swiper-button-next-stay,
.main_swiper_wrap .swiper-button-next-farmhut,
.main_swiper_wrap .swiper-button-next-residential {
    right: 10px !important;
    left: auto !important;
}

/* =========================================
   Mobile Optimization
   ========================================= */
@media (max-width: 768px) {

    /* Video Hero - Height Adjustment for Mobile */
    .main_video_hero {
        height: 80vh;
        /* Reduced height, but still immersive */
    }

    .main_scroll_down {
        display: none !important;
    }

    .main_hero_wrap {
        height: auto !important;
        aspect-ratio: 16 / 9;
        min-height: unset;
        padding-top: 70px; /* Offset for mobile fixed header */
        box-sizing: content-box; /* Ensure padding doesn't shrink the aspect ratio height */
    }

    .main_hero_swiper {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .hero_bg_img {
        background-size: 100% auto !important; /* Fit to width exactly */
        background-repeat: no-repeat;
        background-position: center top !important;
    }

    .hero_main_title {
        font-size: 20px !important;
        margin-bottom: 8px;
        letter-spacing: -1px !important;
    }
    .hero_sub_desc {
        font-size: 14px !important;
        margin-bottom: 8px;
    }
    .hero_point_title {
        font-size: 18px !important;
        margin-bottom: 12px;
    }
    .btn_hero_more {
        padding: 8px 20px;
        font-size: 12px;
    }

    /* Hero Slider Navigation Buttons Fix */
    .hero_btn_prev, .hero_btn_next {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        background: rgba(0, 0, 0, 0.35) !important;
        top: calc(50% + 35px) !important;
        border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
    }
    .hero_btn_prev { left: 8px !important; }
    .hero_btn_next { right: 8px !important; }

    /* 2. Product Introduction Mobile Optimization - 2x2 Grid */
    .main_product_sec {
        padding: 30px 0 20px !important; /* Significantly reduced section padding */
    }
    .main_sec_head {
        margin-bottom: 25px !important; /* Significantly reduced title-to-grid spacing */
    }
    .main_sec_title {
        font-size: 26px !important;
        margin-bottom: 5px !important;
    }
    .main_sec_desc {
        font-size: 14px !important;
        margin-bottom: 0 !important;
    }
    .main_product_sec .container {
        padding: 0 10px !important; /* Extremely reduced margins as requested */
    }
    .product_grid .swiper-wrapper {
        gap: 10px !important; /* Thinner gap to save space on mobile */
    }
    .product_item {
        padding: 12px 6px !important; /* Further reduced padding */
        flex-direction: column !important;
        text-align: center !important;
        min-height: unset;
    }
    .p_img_box {
        margin-bottom: 12px !important;
        width: 100% !important;
        height: 80px !important; /* FIXED HEIGHT for consistency across cards */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }
    .p_img_box img {
        display: block !important;
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important; /* Do not force width if height is fixed */
        height: auto !important;
        object-fit: contain !important;
    }
    .p_label {
        font-size: 10px !important;
        margin-bottom: 4px !important;
    }
    .p_name {
        font-size: 16px !important;
        margin-bottom: 6px !important;
        word-break: keep-all;
    }
    .p_summary {
        font-size: 12px !important;
        line-height: 1.3;
        margin-bottom: 12px !important;
        word-break: keep-all;
        display: block !important;
        overflow: visible !important;
    }
    .btn_p_more {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }

    /* Section Spacing */
    .main_section_container {
        padding: 50px 0;
    }

    .main_sec_wrap {
        margin-bottom: 50px;
    }

    /* Header */
    .main_sec_header {
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .main_sec_title {
        font-size: 20px;
    }

    .btn_more_plus {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    /* Swiper & Cards */
    .main_swiper_wrap {
        padding: 0 15px;
    }

    .swiper-container {
        padding: 10px 5px 30px 5px;
        /* Less padding on mobile */
    }

    .main_card_thumb {
        height: 180px;
        /* Reduced thumb height */
    }

    .main_card_info {
        padding: 15px;
    }

    .main_card_title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .main_card_btn {
        padding: 6px 15px;
        font-size: 12px;
    }

    /* Hide Navigation Buttons on Mobile (Swipe is better) */
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-button-next-stay,
    .swiper-button-prev-stay,
    .swiper-button-next-farmhut,
    .swiper-button-prev-farmhut,
    .swiper-button-next-residential,
    .swiper-button-prev-residential {
        display: none !important;
    }
}