/* ===============================================
   CUSCO Main Page Styles
   =============================================== */

/* Main Visual Section */
#mainVisual {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

#mainVisual.full-height {
    height: 100vh;
}

.main-visual-con {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-visual-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-visual-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.main-visual-pc-img,
.main-visual-m-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: 50% 50% !important;
    transform: scale(1.1);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-visual-item.active .main-visual-pc-img,
.main-visual-item.active .main-visual-m-img {
    transform: scale(1);
}

.main-visual-m-img {
    display: none;
}

/* Slider Overlay */
.main-visual-pc-img:after,
.main-visual-m-img:after {
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130px;
    opacity: 0.8;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 0%, #339af8 100%);
    z-index: 2;
}

.main-visual-txt-con {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
}

.main-visual-txt-inner {
    max-width: 1200px;
    padding: 0 20px;
}

.main-visual-txt1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    /* text-shadow: -2px 0px 1px #000000; */
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-visual-item.active .main-visual-txt1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.main-visual-txt1 span {
    font-size: 1.5em;
    color: #0066cc;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #0b6ff7 0%
20%
, #24cbd0 60%, #dbac00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.main-visual-txt2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fcfdff;
    background: linear-gradient(135deg, #004097 0%, #00b4db 100%);
}

.main-visual-item.active .main-visual-txt2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

.main-visual-txt2 span {
    /* color: #0066cc; */
}

.main-visual-txt3 {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0;
    max-width: 800px;
    margin: 0 auto;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    color: #000;
}

.main-visual-item.active .main-visual-txt3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.1s;
    word-break: auto-phrase;
}

/* Visual Dots */
.main-visual-dots {
    display: none;
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    z-index: 10;
}

.main-visual-dots ul {
    display: flex;
    justify-content: center;
    gap: 80px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-visual-dots li {
    text-align: center;
}

.main-visual-dots dt {
    margin-bottom: 15px;
}

.main-visual-dots dt p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.main-visual-dots li {
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-visual-dots li:hover dt p {
    color: #0066cc;
}

.main-visual-dots li.active .point {
    background: #fff;
    box-shadow: 0 0 10px rgba(0,102,204,0.8);
}

.main-visual-dots li.active dt p {
    color: #0066cc;
    font-weight: 700;
}

.main-visual-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.main-visual-dot .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
}

.main-visual-dot .circle1 {
    width: 60px;
    height: 60px;
    animation: pulse1 2s ease-in-out infinite;
}

.main-visual-dot .circle2 {
    width: 40px;
    height: 40px;
    animation: pulse2 2s ease-in-out infinite;
}

.main-visual-dot .point {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #0066cc;
    border-radius: 50%;
}

@keyframes pulse1 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes pulse2 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

/* Scroll Icon */
.main-scroll-icon {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    animation: scrollBounce 2s ease-in-out infinite;
}

.main-scroll-icon img {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0 auto 5px;
    display: none;
}

.main-scroll-icon span {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 50px;
    right: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 30px;
}

.slider-nav {
    display: flex;
    gap: 10px;
}

.slider-nav button {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.slider-nav button:hover {
    background: rgba(0,102,204,0.8);
    border-color: #0066cc;
    transform: scale(1.1);
}

.slider-nav button:active {
    transform: scale(0.95);
}

.slide-counter {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    min-width: 60px;
}

.current-slide {
    font-size: 1.5rem;
    color: #0066cc;
}

.total-slides {
    font-size: 1rem;
    opacity: 0.8;
}

.progress-bar {
    position: relative;
    width: 150px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #0066cc 0%, #00aaff 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-fill.animating {
    transition: width 9s linear;
}

/* Main German Section */
#mainGerman {
    padding: 80px 0;
    background: #f8f9fa;
}

.main-german-bg {
    width: 100%;
}

.main-german-wrap {
    display: flex;
    gap: 60px;
    flex-direction: column;
}

.main-german-left {
    flex: 1;
}

.main-german-left h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 20px;
}

.main-german-left p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

.main-german-right {
    flex: 1;
}

.main-german-right ul {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-german-right li {
    flex: 1;
}

/* Card Box Styles */
.card-box {
    display: block;
    position: relative;
    width: 100%;
    height: 280px;
    background-size: 130%;
    background-position: center;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%);
    transition: all 0.3s ease;
    z-index: 1;
}

.card-box:hover .card-overlay {
    background: linear-gradient(180deg, rgba(0,102,204,0.1) 0%, rgba(0,50,100,0.5) 50%, rgba(0,30,60,0.95) 100%);
}

/* Content */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.main-german-img {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.card-box:hover .main-german-img {
    transform: translateY(-5px) scale(1.1);
}

.main-german-img img {
    display: none;
}

.main-german-img .material-symbols-outlined {
    font-size: 56px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.main-german-right p {
    font-size: 1.15rem;
    font-weight: 600;
    min-height: 50px;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.card-box:hover p {
    transform: translateY(-2px);
}

/* Main Service Section */
#mainService {
    padding: 80px 0;
    background: #fff;
}

.main-service-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.main-service-tit {
    text-align: center;
    margin-bottom: 60px;
}

.main-service-tit h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.main-service-tit p {
    font-size: 1.1rem;
    color: #666;
}

.main-service-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.main-half {
    display: flex;
    gap: 0;
}

.main-service-inner {
    position: relative;
    flex: 1;
    overflow: hidden;
    transition: all 0.3s ease;
}

.main-service-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}
.main-service-inner:hover.main-service-1{
    background:#000;
}
.main-service-img {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-service-inner:hover .main-service-img img {
    transform: scale(1.05);
}

.main-service-info {
    position: relative;
    /* background: #fff; */
    padding: 0 20px;
}

.main-service-info-tit {
    margin-bottom: 20px;
}

.main-service-info-tit .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: #0066cc;
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 32px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,102,204,0.3);
}

.main-service-inner:hover .main-service-info-tit .icon {
    transform: scale(1.1) rotate(360deg);
    background: #fff;
    color: #0066cc;
}

.main-service-info-tit p:first-of-type {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 5px;
}

.main-service-info-tit p span {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.main-service-info-txt p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

/* Service 3 & 4 (Right alignment) */
.main-service-right {
    display: flex;
    flex-direction: column-reverse;
}

/* Main Customer Section */
#mainCustomer {
    padding: 80px 0;
    background: #f8f9fa;
}

.main-customer-wrap {
    display: flex;
    gap: 40px;
}

.main-customer-notice {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-notice-tit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #0066cc;
}

.main-notice-tit h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.main-notice-tit img {
    width: 30px;
    height: 30px;
}

.main-notice-inner {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.main-notice-inner a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.main-notice-inner a:hover {
    color: #0066cc;
}

.notice-tit {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
}

.notice-date {
    font-size: 0.9rem;
    color: #999;
}

.main-customer-link {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-link-inner {
    flex: 1;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    border-radius: 10px;
    padding: 40px 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.main-link-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.main-link-inner a {
    text-decoration: none;
}

.main-link-inner p {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
}

.main-link-inner span {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .main-visual-txt1 {
        font-size: 3rem;
    }
    
    .main-visual-txt2 {
        font-size: 1.5rem;
    }
    
    .main-visual-dots ul {
        gap: 40px;
    }
    
    .main-german-wrap {
        flex-direction: column;
    }
    
    .main-half {
        flex-direction: column;
    }
    
    .main-customer-wrap {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-visual-pc-img {
        display: none;
    }
    
    .main-visual-m-img {
        display: block;
    }
    
    .main-visual-txt1 {
        font-size: 2rem;
    }
    
    .main-visual-txt2 {
        font-size: 1rem;
        letter-spacing: -1px;
        word-break: auto-phrase;
        font-weight: 300;
    }
    
    .main-visual-txt3 {
        font-size: 0.9rem;
    }
    
    .main-visual-dots {
        display: none;
    }
    
    .slider-controls {
        bottom: 30px;
        right: 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-end;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .slide-counter {
        font-size: 1rem;
    }
    
    .current-slide {
        font-size: 1.2rem;
    }
    
    .progress-bar {
        width: 100px;
    }
    
    .main-german-right ul {
        flex-direction: column;
    }
    
    #mainGerman,
    #mainService,
    #mainCustomer {
        padding: 50px 0;
    }
}

/* Utilities */
.area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.font-rale {
    font-family: 'Raleway', sans-serif;
}
