/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    overflow: hidden;
}

/* Swiper Container */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: white;
}

/* Slide Content */
.slide-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Typography */
.slide-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2d3436;
}

.main-title {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.sub-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.slide-subtitle {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 20px;
}

/* Divider */
.divider {
    width: 100px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    margin: 30px auto;
}

/* Slide 1 - Title Slide */
.slide-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

/* Home Button */
.home-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0;
    transition: width 0.3s ease;
}

/* Pagination Bullets */
.swiper-pagination-bullets {
    bottom: 30px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Slide Counter */
.slide-counter {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 1000;
}

/* Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.5) !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px);
    z-index: 10 !important;
    opacity: 1 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.7) !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 24px !important;
    font-weight: bold;
}

/* Grids and Cards */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
}

.tool-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.tool-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.tool-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #636e72;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes flipInX {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 1s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 1s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-out;
}

.animate-expand {
    animation: expand 1s ease-out forwards;
}

.animate-flipInX {
    animation: flipInX 1s ease-out;
}

/* Journey Timeline */
.journey-timeline {
    position: relative;
    padding: 20px 0;
    margin-top: 40px;
}

.journey-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    transform: translateX(-50%);
}

.journey-step {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.journey-step:nth-child(even) {
    flex-direction: row-reverse;
}

.journey-content {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 45%;
}

.journey-week {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.journey-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.journey-desc {
    font-size: 1rem;
    color: #636e72;
}

.journey-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
}

/* Charts Container */
.chart-container {
    margin: 40px auto;
    max-width: 800px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .sub-title {
        font-size: 2.5rem;
    }
    
    .swiper-slide {
        padding: 20px;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .tool-card {
        padding: 20px;
    }
    
    .tool-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .tool-name {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .tool-description {
        font-size: 1rem;
    }
    
    .home-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .slide-counter {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .slide-title {
        font-size: 1.5rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .sub-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .tool-icon {
        font-size: 2.5rem;
    }
    
    .tool-name {
        font-size: 1.2rem;
    }
    
    .tool-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .home-button {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .slide-counter {
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* Optimized for 1720x1440 (half of 3440x1440) */
@media (max-width: 1720px) {
    .slide-content {
        max-width: 95%;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .sub-title {
        font-size: 3rem;
    }
}

/* Mobile Landscape Optimization - Height-based scaling */
@media only screen and (max-width: 896px) and (orientation: landscape) {
    /* Dark background to show letterboxing */
    body {
        background: #1a1a1a !important;
    }
    
    /* Container setup */
    .swiper {
        height: 100vh !important;
        width: 100vw !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Each slide scaled to height with aspect ratio */
    .swiper-slide {
        height: 85vh !important;
        width: calc(85vh * 1.77) !important;
        max-width: 100vw !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Content container */
    .slide-content {
        height: 100% !important;
        width: 100% !important;
        max-width: none !important;
        overflow: hidden !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }
    
    .slide-title {
        font-size: 1.2rem !important;
        margin-bottom: 8px !important;
    }
    
    .main-title {
        font-size: 1.8rem !important;
    }
    
    .sub-title {
        font-size: 1.5rem !important;
    }
    
    /* Scale down all text in slides */
    .swiper-slide p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }
    
    .swiper-slide h3 {
        font-size: 1rem !important;
    }
    
    .swiper-slide h4 {
        font-size: 0.9rem !important;
    }
    
    .swiper-slide li {
        font-size: 0.7rem !important;
    }
    
    .swiper-slide div[style*="font-size"] {
        font-size: 0.8rem !important;
    }
    
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    /* Hide UI elements in fullscreen for more content space */
    .home-button {
        padding: 5px 10px;
        font-size: 0.6rem;
        top: 5px;
        left: 5px;
    }
    
    .slide-counter {
        font-size: 0.7rem;
        padding: 4px 8px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Navigation for touch - hide arrows */
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    /* Adjust progress bar for fullscreen */
    .progress-bar {
        height: 3px;
    }
}

/* Fullscreen specific styles */
:fullscreen .swiper,
:-webkit-full-screen .swiper {
    height: 100vh !important;
    width: 100vw !important;
    margin: 0 !important;
}

:fullscreen .swiper-slide,
:-webkit-full-screen .swiper-slide {
    padding: 10px !important;
    height: 100vh !important;
    width: 100vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

:fullscreen .slide-content,
:-webkit-full-screen .slide-content {
    max-height: calc(100vh - 20px) !important;
    width: auto !important;
    max-width: calc((100vh - 20px) * 1.77) !important;
    margin: 0 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Mobile-specific fullscreen adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    :fullscreen .slide-content,
    :-webkit-full-screen .slide-content {
        transform: scale(0.9) !important;
        transform-origin: center top !important;
    }
}

:fullscreen .home-button,
:-webkit-full-screen .home-button {
    opacity: 0.5;
    transition: opacity 0.3s;
}

:fullscreen .home-button:hover,
:-webkit-full-screen .home-button:hover {
    opacity: 1;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 30px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Feature List */
.feature-list {
    list-style: none;
    text-align: left;
    max-width: 800px;
    margin: 30px auto;
}

.feature-list li {
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.feature-list li::before {
    content: "✓";
    margin-right: 15px;
    font-size: 1.5rem;
    color: #00b894;
    font-weight: bold;
}