/* 
  Japan Skill Up Center CSS
  Theme: Modern Japanese, Professional, Minimalist Zen (Flat Design)
*/

:root {
    /* Color Palette - Modern Japanese Theme */
    --primary-red: #da251d; /* Japan Flag Red */
    --dark-red: #b31b14;
    --soft-red: #fdf5f5; /* Very subtle pinkish white */
    --white: #FFFFFF;
    --dark-text: #1a1e29; /* Deep Navy / Charcoal */
    --secondary-text: #6b7280; /* Soft Gray */
    --border-color: #f1f2f6; /* Very light gray */
    --border-darker: #e5e7eb;
    --background: #fafafa; /* Minimalist off-white bg */
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--dark-text);
    background-color: var(--white); /* White background overall */
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Space for fixed navbar */
    position: relative;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-text);
    letter-spacing: -0.02em;
}

.font-jp {
    font-family: var(--font-jp);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Custom Text Colors */
.text-primary-red { color: var(--primary-red) !important; }
.text-dark-text { color: var(--dark-text) !important; }
.text-secondary-text { color: var(--secondary-text) !important; }

/* Section Title Accents */
.text-jp-accent {
    font-family: var(--font-jp);
    color: var(--primary-red);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-red);
}

/* Custom Backgrounds */
.bg-soft-red { background-color: var(--soft-red) !important; }
.bg-primary-red { background-color: var(--primary-red) !important; }
.bg-dark-text { background-color: var(--dark-text) !important; }
.bg-background { background-color: var(--background) !important; }
.section-japan-bg {
    background-color: var(--soft-red);
    background-image: url('../img/section-bg-japan.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* Buttons */
.btn-primary-red {
    background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
    color: var(--white);
    border: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
    box-shadow: 0 8px 20px rgba(218, 37, 29, 0.25);
}
.btn-primary-red:hover {
    background: linear-gradient(135deg, var(--dark-red), #8a130f);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(218, 37, 29, 0.35);
}
.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2rem;
}
.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(218, 37, 29, 0.2);
}

/* Navbar */
.jsuc-navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.jsuc-navbar .nav-link {
    color: var(--dark-text);
    padding: 0.5rem 1rem !important;
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
}
.jsuc-navbar .nav-link:hover, .jsuc-navbar .nav-link.active {
    color: var(--primary-red);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    background-color: var(--soft-red);
    background-image: url('../img/hero-bg-japan.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--dark-text);
}
.hero-title span {
    color: var(--primary-red);
    text-shadow: 0 4px 20px rgba(218, 37, 29, 0.35);
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}
.hero-image-wrapper {
    position: relative;
    z-index: 1;
    display: inline-block;
}
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary-red);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
}
.hero-image-wrapper img {
    border-radius: 24px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); 
    position: relative;
    z-index: 2;
    max-width: 100%;
    border: 8px solid var(--white);
}
.hero-blob {
    display: none;
}

/* Stats Section */
.stats-section {
    padding: 50px 0;
    background-color: var(--white);
    position: relative;
    z-index: 2;
    margin-top: -40px;
}
.stats-inner {
    padding: 10px;
    border: none;
    background: transparent;
    box-shadow: none;
}
.stat-item {
    text-align: center;
    padding: 35px 20px;
    background: var(--white);
    border-radius: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    border: 1px solid rgba(218, 37, 29, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 100%;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(218,37,29,0.08) 0%, rgba(218,37,29,0) 70%);
    border-radius: 50%;
    z-index: -1;
}
.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(218, 37, 29, 0.08);
    border-color: rgba(218, 37, 29, 0.15);
}
.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--soft-red);
    color: var(--primary-red);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transform: rotate(-5deg);
    transition: all 0.4s ease;
}
.stat-item:hover .stat-icon {
    transform: rotate(0deg) scale(1.1);
    background: var(--primary-red);
    color: var(--white);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-text);
    line-height: 1;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-text);
    font-weight: 600;
}

/* Cards & Components (Features) */
.feature-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(218, 37, 29, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 0;
    background-color: var(--primary-red);
    transition: height 0.4s ease;
}
.feature-card:hover {
    border-color: rgba(218, 37, 29, 0.2);
    box-shadow: 0 20px 40px rgba(218, 37, 29, 0.08);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.95);
}
.feature-card:hover::before {
    height: 100%;
}
.feature-card .icon-box {
    width: 60px;
    height: 60px;
    background: var(--soft-red);
    color: var(--primary-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
    border: 1px solid rgba(218, 37, 29, 0.08);
}
.feature-card:hover .icon-box {
    background: var(--primary-red);
    color: var(--white);
    transform: rotate(10deg);
    border-color: transparent;
}
.feature-card .feature-content h6 {
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: var(--dark-text);
}
.feature-card .feature-content p {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Program Cards */
.program-card {
    background: var(--white);
    border: 1px solid rgba(218, 37, 29, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.program-card::after {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(218, 37, 29, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.5s ease;
}
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(218, 37, 29, 0.12);
    border-color: rgba(218, 37, 29, 0.15);
}
.program-card:hover::before {
    opacity: 1;
}
.program-card:hover::after {
    transform: scale(1.5);
}

.program-card .icon-box {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}
.program-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Unique gradient colors per program card */
.col-lg-4:nth-child(1) .program-card .icon-box {
    background: linear-gradient(135deg, #ff6b6b, #da251d);
    color: #fff;
    box-shadow: 0 8px 25px rgba(218, 37, 29, 0.3);
}
.col-lg-4:nth-child(2) .program-card .icon-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.col-lg-4:nth-child(3) .program-card .icon-box {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}
.col-lg-4:nth-child(4) .program-card .icon-box {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}
.col-lg-4:nth-child(5) .program-card .icon-box {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}
/* Fallback for col-md-6 layout */
.col-md-6:nth-child(1) .program-card .icon-box {
    background: linear-gradient(135deg, #ff6b6b, #da251d);
    color: #fff;
    box-shadow: 0 8px 25px rgba(218, 37, 29, 0.3);
}
.col-md-6:nth-child(2) .program-card .icon-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}
.col-md-6:nth-child(3) .program-card .icon-box {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: #fff;
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}
.col-md-6:nth-child(4) .program-card .icon-box {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}
.col-md-6:nth-child(5) .program-card .icon-box {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.3);
}

/* Unique top border color per card on hover */
.col-lg-4:nth-child(2) .program-card::before { background: linear-gradient(90deg, #667eea, #764ba2); }
.col-lg-4:nth-child(3) .program-card::before { background: linear-gradient(90deg, #f093fb, #f5576c); }
.col-lg-4:nth-child(4) .program-card::before { background: linear-gradient(90deg, #4facfe, #00f2fe); }
.col-lg-4:nth-child(5) .program-card::before { background: linear-gradient(90deg, #43e97b, #38f9d7); }

.program-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.75rem;
}
.program-card p {
    font-size: 0.92rem;
    line-height: 1.75;
}
.program-card ul li {
    font-size: 0.88rem;
    line-height: 1.7;
}

/* Timeline (Steps) */
.timeline-horizontal {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
}
.timeline-horizontal::before {
    content: '';
    position: absolute;
    top: 19px; /* center of the 40px circle */
    left: 5%;
    width: 90%;
    height: 1px;
    border-top: 2px dashed rgba(218, 37, 29, 0.3); /* Dashed red line */
    z-index: 0;
}
.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 10px;
}
.timeline-step {
    width: 55px;
    height: 55px;
    background: var(--white);
    border: 2px solid rgba(218, 37, 29, 0.3);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(218, 37, 29, 0.06);
}
.timeline-item:hover .timeline-step {
    border-color: var(--primary-red);
    color: var(--white);
    background-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(218, 37, 29, 0.25);
    transform: scale(1.1);
}
.timeline-item h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.timeline-item p {
    font-size: 0.9rem;
    color: var(--secondary-text);
}
.timeline-text {
    margin-top: 0.5rem;
}

/* Alumni Cards */
.alumni-card {
    background: var(--white);
    border: 1px solid rgba(218, 37, 29, 0.06);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.alumni-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.alumni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(218, 37, 29, 0.1);
    border-color: rgba(218, 37, 29, 0.12);
}
.alumni-card:hover::before {
    opacity: 1;
}
.alumni-quote-icon {
    color: rgba(218, 37, 29, 0.12);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.alumni-quote {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--secondary-text);
    flex: 1;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.alumni-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.alumni-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.alumni-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.alumni-avatar span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.col-lg-4:nth-child(6n+1) .alumni-avatar { background: linear-gradient(135deg, #ff6b6b, #da251d); }
.col-lg-4:nth-child(6n+2) .alumni-avatar { background: linear-gradient(135deg, #667eea, #764ba2); }
.col-lg-4:nth-child(6n+3) .alumni-avatar { background: linear-gradient(135deg, #f093fb, #f5576c); }
.col-lg-4:nth-child(6n+4) .alumni-avatar { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.col-lg-4:nth-child(6n+5) .alumni-avatar { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.col-lg-4:nth-child(6n+6) .alumni-avatar { background: linear-gradient(135deg, #fa709a, #fee140); }
.alumni-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-text);
    line-height: 1.3;
}
.alumni-position {
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-weight: 500;
}
.alumni-program {
    font-size: 0.72rem;
    color: var(--primary-red);
    font-weight: 600;
    margin-top: 2px;
}

/* CTA Section Bottom */
.cta-bottom-section {
    background-color: var(--background);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
.cta-graphic {
    position: absolute;
    left: 5%;
    bottom: -20px;
    width: 250px;
    opacity: 0.8;
}

/* Forms */
.form-control, .form-select {
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border-darker);
    border-radius: 8px;
    font-family: var(--font-body);
    background-color: var(--white);
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(218, 37, 29, 0.1);
}
.registration-card {
    background: var(--white);
    border: 1px solid var(--border-darker);
    border-radius: 16px;
    padding: 3rem;
}

/* Floating WhatsApp */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    padding: 12px 24px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
}
.wa-float:hover {
    background-color: #128c7e;
    color: #FFF;
}
.wa-float-text {
    font-size: 16px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 991.98px) {
    .section-title { font-size: 2rem; margin-bottom: 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .timeline-horizontal {
        flex-direction: column;
        padding-top: 0;
    }
    .timeline-horizontal::before {
        top: 0;
        left: 24px;
        width: 1px;
        height: 100%;
        border-top: none;
        border-left: 2px dashed rgba(218, 37, 29, 0.3);
    }
    .timeline-item {
        display: flex;
        align-items: flex-start;
        text-align: left;
        margin-bottom: 28px;
        flex-wrap: nowrap;
    }
    .timeline-step {
        margin: 0 16px 0 0;
        flex-shrink: 0;
    }
    .timeline-text {
        flex: 1;
        min-width: 0;
        margin-top: 0;
        padding-top: 2px;
    }
    .timeline-item h5 {
        font-size: 1.05rem;
        margin-bottom: 4px;
    }
    .timeline-item p {
        font-size: 0.85rem;
        line-height: 1.6;
        word-wrap: break-word;
    }
    .cta-graphic { display: none; }
}

@media (max-width: 767.98px) {
    body { padding-top: 80px; }
    .section-title { font-size: 1.75rem; margin-bottom: 2rem; }
    .hero-section { padding: 40px 0 20px; }
    .hero-title { font-size: 2rem; }
    .hero-blob { width: 250px; height: 250px; }
    .stat-item { 
        padding: 25px 15px; 
        border-radius: 20px; 
    }
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.8rem; }
    
    .feature-card { padding: 1.5rem; }
    .registration-card { padding: 2rem 1.2rem; }
    
    .wa-float {
        padding: 14px;
        width: 55px;
        height: 55px;
        justify-content: center;
        bottom: 20px;
        right: 20px;
    }
    .wa-float-text { display: none; }
    
    .timeline-horizontal::before { left: 20px; }
    .timeline-step { 
        width: 42px; 
        height: 42px; 
        font-size: 1rem;
        margin-right: 14px;
    }
    .timeline-item { margin-bottom: 22px; }
    .timeline-item h5 {
        font-size: 0.95rem;
        margin-bottom: 3px;
    }
    .timeline-item p {
        font-size: 0.82rem;
        line-height: 1.55;
    }
}

