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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #ffffff;
    overflow-x: hidden;
    /* Tech grid background */
    background-image: 
        linear-gradient(rgba(66, 153, 225, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2d3748;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Language Toggle Switch */
.lang-btn {
    position: relative;
    width: 80px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* English flag icon when in English mode */
.lang-btn::after {
    content: '🇺🇸';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Japanese mode - slide toggle to right */
.lang-btn.english::before {
    left: 3px;
}

.lang-btn.english::after {
    left: 10px;
    content: '🇺🇸';
}

.lang-btn.japanese::before {
    left: 51px;
}

.lang-btn.japanese::after {
    left: 58px;
    content: '🇯🇵';
}

.lang-btn:hover {
    background: #cbd5e1;
    transform: scale(1.05);
}

.lang-btn:active {
    transform: scale(0.98);
}

/* Language labels */
.lang-btn .lang-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 1;
}

.lang-btn .lang-label.en {
    left: 6px;
    color: #64748b;
}

.lang-btn .lang-label.jp {
    right: 6px;
    color: #64748b;
}

/* Active language styling */
.lang-btn.english .lang-label.en {
    color: #1e40af;
    font-weight: 700;
}

.lang-btn.japanese .lang-label.jp {
    color: #1e40af;
    font-weight: 700;
}

.nav-link {
    text-decoration: none;
    color: #718096;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4299e1, #67e8f9);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #2d3748;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4299e1;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: #f7fafc;
    color: #4299e1;
}

.bar {
    display: block;
    width: 26px;
    height: 2px;
    background: #1f2937;
    margin: 5px 0;
    transition: transform 0.35s ease, opacity 0.25s ease;
    border-radius: 2px;
}

/* ===== Nav: hamburger breakpoint (tablet & below) ===== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        z-index: 999;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background: rgba(66, 153, 225, 0.05);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown .nav-link {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.02);
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .dropdown-item {
        padding: 0.8rem 2rem 0.8rem 3rem;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        gap: 0;
        z-index: 1000;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* ===== Banner ===== */
.banner {
    position: relative;
    max-width: 1100px;       /* align with your site width */
    margin: 16px auto 24px;  /* space below navbar */
    padding: 0 16px;         /* side gutters match site */
}

.banner-cover {
    height: clamp(160px, 28vw, 320px); /* responsive height */
    border-radius: 14px;
    background-image: url("images/banners/hero-art.png"); /* <-- your cover image */
    background-size: cover;
    background-position: center;
    filter: none;            /* e.g., brightness(.95) if needed */
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Circular avatar that overlaps the banner */
.banner-avatar {
    position: absolute;
    left: 24px;
    bottom: -34px;           /* overlap below the cover */
    width: clamp(84px, 12vw, 120px);
    height: clamp(84px, 12vw, 120px);
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid #fff;  /* white ring like in your screenshot */
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    background: #fff;
}

.banner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Optional text block on the right */
.banner-text {
    position: absolute;
    right: 28px;
    bottom: 12px;
    text-align: right;
    color: #ffffff;           /* ← make text white */
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); /* optional: soft shadow for contrast */
    background: none;         /* ← remove any background color */
}

.banner-text h2 {
    margin: 0 0 6px 0;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 700;
}

.banner-text p {
    margin: 0;
    font-size: clamp(12px, 1.6vw, 16px);
    opacity: .85;
}

/* Keep layout tidy below the overlap */
@media (min-width: 480px) {
    .banner { margin-bottom: 60px; } /* room for the avatar overlap */
}
@media (max-width: 479px) {
    .banner { margin-bottom: 50px; }
    .banner-avatar { left: 16px; bottom: -28px; border-width: 5px; }
    .banner-text { right: 16px; bottom: 10px; }
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #2d3748;
    overflow: hidden;
    padding: 6rem 0 3rem;
    animation: fadeIn 1s ease-out;
    /* Tech-inspired overlay */
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(66, 153, 225, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(103, 232, 249, 0.05) 0%, transparent 50%),
        linear-gradient(rgba(66, 153, 225, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.02) 1px, transparent 1px);
    background-size: 800px 800px, 600px 600px, 40px 40px, 40px 40px;
    background-position: 0 0, 100% 100%, 0 0, 0 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
            radial-gradient(circle at 20% 50%, rgba(66, 153, 225, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(113, 128, 150, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(66, 153, 225, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 400px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: #2d3748;
}

/* Japanese Text Styling */
.title-line:first-child {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.title-line:last-child {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #2d3748;
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease-out;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
    color: #2d3748;
}

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

/* Animation Container - Isolated from buttons */
.hero-animation-container {
    height: 3rem; /* Fixed height for animation container */
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: #718096;
    height: 1.75rem; /* Fixed single-line height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
    margin: 0; /* Remove margin from subtitle */
}

.typing-text {
    color: #2d3748;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
}


.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.digital-text {
    animation: neon-flicker 2s infinite alternate;
}

/* Japanese Text Classes */
.japanese-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    line-height: 1.8;
}

.japanese-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    color: #718096;
}

.japanese-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: #1a202c;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    position: relative;
}

.heading-japanese {
    font-weight: 400;
    color: #718096;
    font-size: 1.25rem;
    margin-left: 1rem;
    letter-spacing: 0.02em;
}

.japanese-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #67e8f9);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    min-height: 3.5rem; /* Ensure stable height for buttons */
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Exo 2', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.btn-primary {
    background: #4299e1;
    color: white;
    border: none;
    box-shadow: 0 4px 14px 0 rgba(66, 153, 225, 0.25);
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.35);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: #4299e1;
    border: 2px solid #4299e1;
}

.btn-secondary:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px 0 rgba(66, 153, 225, 0.25);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.profile-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideInRight 1s ease-out;
}

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

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.avatar {
    width: 60px;
    height: 60px;
    background: #4299e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(66, 153, 225, 0.25);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

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

.card-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.card-body p {
    color: #4299e1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(66, 153, 225, 0.1);
    border: 1px solid rgba(66, 153, 225, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4299e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(66, 153, 225, 0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    color: white;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    position: relative;
}

.section-subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

/* Home-style Introduction for About Page */
.about-home-intro {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.intro-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.intro-text-side {
    flex: 1.2;
    text-align: left;
}

.about-home-intro .japanese-heading {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2d3748, #4299e1);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-home-intro .japanese-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d3748;
    font-family: 'Noto Sans JP', sans-serif;
    max-width: 650px;
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Skills Keywords */
.skills-keywords {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.skill-keyword {
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.skill-keyword.development {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    box-shadow: 0 2px 10px rgba(66, 153, 225, 0.3);
}

.skill-keyword.marketing {
    background: linear-gradient(135deg, #48bb78, #68d391);
    color: white;
    box-shadow: 0 2px 10px rgba(72, 187, 120, 0.3);
}

.skill-keyword.art {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
    color: white;
    box-shadow: 0 2px 10px rgba(237, 137, 54, 0.3);
}

.skill-keyword:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Profile Image Section */
.profile-image-section {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 4px solid rgba(66, 153, 225, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(66, 153, 225, 0.4);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.image-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}


/* Profile Image with Upload */
.profile-image-container.has-image .image-placeholder {
    display: none;
}

.profile-image-container.has-image .profile-image {
    display: block;
}

.about-intro {
    margin: 2rem 0 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.7));
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(66, 153, 225, 0.08);
}

.intro-paragraphs {
    margin-top: 2rem;
}

.intro-paragraphs p {
    margin-bottom: 1.5rem;
}

.intro-story {
    margin: 4rem auto 3rem auto;
    padding: 2.5rem 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #4299e1;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.intro-story p {
    margin-bottom: 0;
}

/* Introduction Header */
.intro-header {
    text-align: center;
    margin: 0 auto 5rem auto;
    max-width: 1200px;
    width: 100%;
    padding: 3rem 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2d3748;
    margin: 0 0 2rem 0;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #2d3748 0%, #4299e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.intro-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border-radius: 2px;
}

.intro-description {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    position: relative;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Flip Cards Container */
.flip-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 0 auto;
    perspective: 1000px;
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* Interaction hint text */
.flip-cards-hint {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
    opacity: 0.8;
}

.flip-cards-hint .desktop-hint {
    display: block;
}

.flip-cards-hint .mobile-hint {
    display: none;
}

@media (max-width: 768px) {
    .flip-cards-hint .desktop-hint {
        display: none;
    }
    
    .flip-cards-hint .mobile-hint {
        display: block;
    }
    
    .achievements-scroll-container {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .achievements-grid {
        gap: 1.5rem;
    }

    .achievement-card {
        flex: 0 0 320px;
        min-width: 320px;
        height: 370px;
        min-height: 370px;
        padding: 1.5rem;
    }

    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .achievement-title {
        font-size: 1.1rem;
    }
    
    .intro-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .intro-text-side {
        text-align: center;
    }

    .skills-keywords {
        justify-content: center;
        gap: 0.8rem;
    }

    .skill-keyword {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .profile-image-container {
        width: 180px;
        height: 180px;
    }

    .image-placeholder i {
        font-size: 2.5rem;
    }

    .image-placeholder span {
        font-size: 0.8rem;
    }
    
    .about-home-intro .japanese-heading {
        font-size: 1.8rem;
    }
    
    .about-home-intro .japanese-text {
        font-size: 0.95rem;
    }
    
    .heading-japanese {
        display: block;
        font-size: 1rem;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .about-home-intro {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .education-section,
    .skills-section,
    .achievements-section,
    .career-section {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    /* Creative Works Responsive */
    .creative-works-subsection {
        margin: 1.5rem 0;
        padding: 1.5rem;
    }
    
    .creative-category {
        margin-bottom: 2rem;
    }
    
    /* Compact Career Responsive */
    .career-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding-bottom: 1.5rem;
    }
    
    .career-year {
        font-size: 0.875rem;
        padding-top: 0;
    }
    
    .career-company {
        font-size: 1.1rem;
    }
    
    .career-role {
        font-size: 0.95rem;
    }
    
    .career-description {
        font-size: 0.9rem;
    }
    
    .career-highlight,
    .career-highlights-list {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }
    
    .career-highlights-list li {
        font-size: 0.825rem;
    }
    
    /* Art Carousel Responsive */
    .art-carousel-slides {
        height: 420px;
    }
    
    .art-carousel-image {
        height: 280px;
    }
    
    .art-carousel-info {
        padding: 1.25rem;
    }
    
    .art-carousel-btn {
        width: 36px;
        height: 36px;
        top: 140px;
    }
    
    .art-carousel-btn.prev {
        left: 0.5rem;
    }
    
    .art-carousel-btn.next {
        right: 0.5rem;
    }
    
    .art-carousel-dots {
        bottom: 120px;
    }
    
    .creative-overview {
        padding: 1.25rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .creative-overview-title {
        font-size: 1rem;
    }
    
    .creative-highlights li {
        font-size: 0.875rem;
        padding-left: 1.25rem;
    }
    
    .video-play-icon {
        font-size: 3rem;
    }
    
    .video-overlay {
        padding: 1.25rem 1rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .video-overlay i {
        font-size: 1.1rem;
    }
    
    .video-title {
        font-size: 1.05rem;
    }
    
    .video-info {
        padding: 1rem 1.25rem;
    }
    
    .music-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .music-link {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .music-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .creative-subheading {
        font-size: 1.25rem;
    }
    
    .creative-intro {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .music-platform {
        font-size: 1rem;
    }
    
    .music-description {
        font-size: 0.825rem;
    }
}

/* Flip Card */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 420px;
    perspective: 800px;
    /* Enhanced glow effect */
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.flip-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        rgba(66, 153, 225, 0.1), 
        rgba(103, 232, 249, 0.1), 
        rgba(72, 187, 120, 0.1), 
        rgba(237, 137, 54, 0.1), 
        rgba(159, 122, 234, 0.1));
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(4px);
}

/* Optimized animations removed for performance */

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s ease-out;
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-origin: center center;
}

/* Enhanced cursor feedback */
.flip-card:hover .flip-card-inner {
    cursor: grab;
}

.flip-card:active .flip-card-inner {
    cursor: grabbing;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg) translateZ(0);
}

.flip-card:hover::before,
.flip-card.flipped::before {
    opacity: 1;
}

.flip-card:hover .flip-card-front,
.flip-card:hover .flip-card-back,
.flip-card.flipped .flip-card-front,
.flip-card.flipped .flip-card-back {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    transition: box-shadow 0.3s ease-out;
    will-change: box-shadow;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
}

.flip-card-front {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98));
    color: #1a202c;
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(237, 242, 247, 0.98));
    color: #1a202c;
    transform: rotateY(180deg);
    overflow: hidden;
}

.flip-card-back::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, 
        rgba(66, 153, 225, 0.1), 
        rgba(103, 232, 249, 0.1), 
        rgba(66, 153, 225, 0.1)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: borderGlow 8s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Card Icons */
.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4299e1, #2b6cb0);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(66, 153, 225, 0.35);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
    position: relative;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.diversity-card .card-icon {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    box-shadow: 0 10px 35px rgba(66, 153, 225, 0.4);
}

.diversity-card .flip-card-front {
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    border: 2px solid rgba(66, 153, 225, 0.3);
    position: relative;
}

.diversity-card .flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(66, 153, 225, 0.08) 0%, transparent 50%);
    border-radius: 24px;
    pointer-events: none;
}

.diversity-card .flip-card-back {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border: 2px solid rgba(66, 153, 225, 0.25);
}

.diversity-card:hover .flip-card-inner,
.diversity-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.diversity-card .card-back-title {
    color: #2b6cb0;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.diversity-card .card-back-list li::before {
    color: #4299e1;
    animation: pulse 2s infinite;
}

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

.diversity-card:hover .card-icon,
.diversity-card.flipped .card-icon {
    transform: scale(1.08);
    box-shadow: 0 15px 45px rgba(66, 153, 225, 0.5);
}

.strategy-card .card-icon {
    background: linear-gradient(135deg, #48bb78, #68d391);
    box-shadow: 0 10px 35px rgba(72, 187, 120, 0.4);
}

.strategy-card .flip-card-front {
    background: linear-gradient(135deg, #ffffff, #f0fff4);
    border: 2px solid rgba(72, 187, 120, 0.3);
    position: relative;
}

.strategy-card .flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(72, 187, 120, 0.08) 0%, transparent 50%);
    border-radius: 24px;
    pointer-events: none;
}

.strategy-card .flip-card-back {
    background: linear-gradient(135deg, #f0fff4, #dcfce7);
    border: 2px solid rgba(72, 187, 120, 0.25);
}

.strategy-card:hover .flip-card-inner,
.strategy-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.strategy-card .card-back-title {
    color: #2f855a;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.strategy-card .card-back-list li::before {
    color: #48bb78;
    animation: pulse 2s infinite;
}

.strategy-card:hover .card-icon,
.strategy-card.flipped .card-icon {
    transform: scale(1.08);
    box-shadow: 0 15px 45px rgba(72, 187, 120, 0.5);
}

.connection-card .card-icon {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
    box-shadow: 0 10px 35px rgba(237, 137, 54, 0.4);
}

.connection-card .flip-card-front {
    background: linear-gradient(135deg, #ffffff, #fef3c7);
    border: 2px solid rgba(237, 137, 54, 0.3);
    position: relative;
}

.connection-card .flip-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(237, 137, 54, 0.08) 0%, transparent 50%);
    border-radius: 24px;
    pointer-events: none;
}

.connection-card .flip-card-back {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid rgba(237, 137, 54, 0.25);
}

.connection-card:hover .flip-card-inner,
.connection-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.connection-card .card-back-title {
    color: #c05621;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.connection-card .card-back-list li::before {
    color: #ed8936;
    animation: pulse 2s infinite;
}

.connection-card:hover .card-icon,
.connection-card.flipped .card-icon {
    transform: scale(1.08);
    box-shadow: 0 15px 45px rgba(237, 137, 54, 0.5);
}

/* Card Text */
.card-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-subtitle {
    font-size: 1.15rem;
    color: #4a5568;
    margin: 0;
    font-weight: 500;
    line-height: 1.7;
    font-family: 'Noto Sans JP', sans-serif;
}

.card-back-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    position: relative;
    text-align: center;
    /* Cohesive blue gradient text effect */
    background: linear-gradient(90deg, 
        rgba(66, 153, 225, 0.9), 
        rgba(103, 232, 249, 0.9), 
        rgba(66, 153, 225, 0.9));
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Subtle floating animation for card back content */
@keyframes contentFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

.flip-card-back .card-back-content {
    animation: contentFloat 6s ease-in-out infinite;
}

.card-back-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

/* Enhanced Card Back Content */
.card-back-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    height: 100%;
    justify-content: space-between;
    position: relative;
}

.card-back-content::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(66, 153, 225, 0.4), 
        rgba(103, 232, 249, 0.4), 
        rgba(66, 153, 225, 0.4));
    border-radius: 1px;
    animation: gradientShift 3s ease-in-out infinite;
}

.card-back-intro {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

.card-back-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-back-list li {
    color: #2d3748;
    font-size: 0.85rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
    font-weight: 500;
}

.card-back-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #4299e1;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

.card-back-list li:hover::before {
    transform: scale(1.2);
    color: #67e8f9;
}

.about-text h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-text p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.education-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}


.education-section h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-section h4 i {
    color: #4299e1;
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 1rem;
}

.education-list li:last-child {
    border-bottom: none;
}

.education-list li strong {
    color: #2d3748;
    font-weight: 600;
    margin-right: 0.5rem;
}

.background-narrative {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.background-narrative p {
    color: #374151;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* Home Profile Section */
.home-profile-section {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-profile-image-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(66, 153, 225, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.home-profile-image-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 0 0 10px rgba(255, 255, 255, 0.5);
    border-color: rgba(66, 153, 225, 0.4);
}

.home-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive for Home Profile */
@media (max-width: 768px) {
    .home-profile-section {
        padding: 3rem 0 2rem;
    }
    
    .home-profile-image-wrapper {
        width: 160px;
        height: 160px;
        box-shadow: 
            0 8px 20px rgba(0, 0, 0, 0.1),
            0 0 0 8px rgba(255, 255, 255, 0.5);
    }
    
    .home-profile-image-wrapper:hover {
        box-shadow: 
            0 12px 30px rgba(0, 0, 0, 0.15),
            0 0 0 8px rgba(255, 255, 255, 0.5);
    }
}

/* Introduction Section */
.introduction {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem 0 4rem;  /* top smaller, bottom a bit larger */
    width: 100%;
    position: relative;
    overflow: hidden;
    /* Tech grid overlay */
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(72, 187, 120, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(237, 137, 54, 0.03) 0%, transparent 60%),
        linear-gradient(rgba(66, 153, 225, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.02) 1px, transparent 1px);
    background-size: 600px 600px, 500px 500px, 30px 30px, 30px 30px;
    background-position: 0 0, 100% 0, 0 0, 0 0;
}

.introduction::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(66, 153, 225, 0.02) 0%, transparent 50%), 
                radial-gradient(circle at 80% 80%, rgba(113, 128, 150, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.intro-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-text h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.intro-text p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.intro-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.intro-button {
    margin-top: 2rem;
}

.intro-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.visual-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.visual-item:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(66, 153, 225, 0.25);
}

.visual-item i {
    font-size: 2rem;
    color: #4299e1;
    transition: color 0.3s ease;
}

.visual-item:hover i {
    color: white;
}

.visual-item span {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #718096;
    transition: color 0.3s ease;
}

.visual-item:hover span {
    color: white;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category i {
    color: #2563eb;
}

/* Career Section */
.career {
    background: #ffffff;
}

.career-section {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Creative Activities Section */
.creative-activities-section {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.creative-activities-content {
    margin-top: 1.5rem;
}

.creative-activities-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.creative-activities-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.creative-activities-btn {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-detail-btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Skill Sheet Page */
.skills-sheet-section {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.skill-block {
    margin-bottom: 3rem;
}

.skill-block-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #4299e1;
    display: inline-block;
}

.skill-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.skill-table th,
.skill-table td {
    padding: 0.85rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
}

.skill-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    width: 30%;
}

.skill-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #4299e1;
}

.skill-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-card h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0;
}

.skill-level {
    color: #f6ad55;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.skill-desc {
    color: #4a5568;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.skill-tech {
    display: inline-block;
    background: #edf2f7;
    color: #2d3748;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.5rem 0;
}

.skill-process {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
}

.skill-process li {
    padding: 0.35rem 0;
    color: #4a5568;
    font-size: 0.92rem;
    line-height: 1.5;
}

.skill-result {
    background: #ebf8ff;
    color: #2c5282;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.75rem 0;
    font-size: 0.92rem;
    border-left: 3px solid #4299e1;
}

.career-role-text {
    color: #718096;
    font-size: 0.95rem;
    margin: 0.25rem 0 0.5rem;
    font-style: italic;
}

.skill-case-btn {
    margin-top: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.strengths-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strengths-list li {
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    color: #4a5568;
    border-left: 3px solid #4299e1;
}

.strengths-list strong {
    color: #2d3748;
    margin-right: 0.25rem;
}

.skills-back-btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vision-statement {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.08), rgba(103, 232, 249, 0.08));
    padding: 1.25rem 1.5rem;
    border-left: 4px solid #4299e1;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.creative-activities-list li {
    padding: 0.75rem 0 0.75rem 1.75rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.creative-activities-list li:last-child {
    border-bottom: none;
}

.creative-activities-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #4299e1;
    font-size: 1.1rem;
}

/* Career and Achievements Section */
.achievements-section {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Horizontal Scrollable Achievements */
.achievements-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 2rem;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.achievements-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.achievements-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.achievements-scroll-container::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #4299e1, #67e8f9);
    border-radius: 10px;
}

.achievements-scroll-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #3182ce, #4299e1);
}

.achievements-grid {
    display: flex;
    gap: 2rem;
    margin-top: 0;
    min-width: min-content;
}

.achievement-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    flex: 0 0 350px;
    min-width: 350px;
    height: 380px;
    min-height: 380px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.achievement-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.achievement-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.achievement-year {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: #3182ce;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e5e7eb;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -8px;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
}

.timeline-date {
    background: #3182ce;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.timeline-body h4 {
    color: #374151;
    margin-bottom: 1rem;
}

.timeline-body ul {
    list-style: none;
    padding-left: 0;
}

.timeline-body li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #718096;
}

.timeline-body li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-size: 0.8rem;
}

/* Compact Career Timeline */
.career-timeline-compact {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.career-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.career-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.career-year {
    color: #4299e1;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    padding-top: 0.25rem;
}

.career-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.career-company {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.career-role {
    color: #4a5568;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.career-description {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0.5rem 0 0 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.career-highlight {
    background: linear-gradient(135deg, #edf2f7, #e6fffa);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #48bb78;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    font-family: 'Noto Sans JP', sans-serif;
    color: #2d3748;
}

.career-highlights-list {
    background: linear-gradient(135deg, #edf2f7, #e6fffa);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border-left: 3px solid #48bb78;
    margin-top: 0.75rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.career-highlights-list strong {
    color: #2d3748;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.career-highlights-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.career-highlights-list li {
    color: #2d3748;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

.career-highlights-list li:last-child {
    margin-bottom: 0;
}

.career-highlights-list li strong {
    color: #4299e1;
    font-size: 0.875rem;
    display: inline;
    margin: 0;
}

/* Creative Works Subsection */
.creative-works-subsection {
    margin: 3rem 0 2rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* Creative Works Section Spacing */
.creative-works-section {
    margin-top: 8rem;
    padding-top: 6rem;
    position: relative;
}

.creative-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #4299e1 50%, transparent 100%);
}

.creative-category {
    background: transparent;
    padding: 0;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.creative-category:last-child {
    margin-bottom: 0;
}

.creative-subheading {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.75rem;
    text-align: center;
}

.creative-intro {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-family: 'Noto Sans JP', sans-serif;
    text-align: center;
}

/* Creative Works Overview */
.creative-overview {
    background: linear-gradient(135deg, #f0f9ff, #f0fdf4);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #4299e1;
}

.creative-overview-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.creative-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.creative-highlights li {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
}

.creative-highlights li:last-child {
    margin-bottom: 0;
}

.creative-highlights li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #4299e1;
    font-size: 0.9rem;
}

/* Art Carousel - Simple & Clean */
.art-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.art-carousel-wrapper {
    position: relative;
    height: 500px;
}

.art-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.art-slide.show {
    opacity: 1;
    display: block;
}

.art-image {
    width: 100%;
    height: 280px;
    background: #f7fafc;
    overflow: hidden;
}

.art-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-content {
    padding: 1rem 1rem 1.2rem 1rem;
}

.art-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.3rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.art-text {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.4;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.art-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e2e8f0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    color: #4a5568;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.art-btn:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.3);
}

.art-prev {
    left: -60px;
}

.art-next {
    right: -60px;
}

.art-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.art-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid #cbd5e0;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.art-indicator.active {
    background: #4299e1;
    border-color: #4299e1;
    transform: scale(1.3);
}

.art-indicator:hover {
    border-color: #4299e1;
}

/* Photography Section */
.photography-category {
    margin-top: 0;
}

.photography-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.photography-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.photography-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photography-item:hover img {
    transform: scale(1.05);
}

.photography-item .photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photography-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay .photo-title {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
}

/* Photography Lightbox */
.photo-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.photo-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
    transition: opacity 0.2s;
}

.photo-lightbox-close:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .photography-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .photography-gallery {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Music Links */
/* Video Production Section */
.video-category {
    margin-top: 0;
}

.video-showcase {
    margin-top: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-link {
    display: block;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.video-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(66, 153, 225, 0.15);
    border-color: #4299e1;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 45%; /* Smaller aspect ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

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

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-link:hover .video-play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    color: white;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.video-overlay i {
    font-size: 1.5rem;
}

.video-info {
    padding: 1.25rem 1.5rem;
}

.video-title {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.4rem;
}

.video-description {
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.music-category {
    margin-top: 0;
}

.music-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.music-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.music-link:hover {
    background: white;
    border-color: #4299e1;
    box-shadow: 0 4px 16px rgba(66, 153, 225, 0.12);
    transform: translateY(-2px);
}

.music-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.music-info {
    flex: 1;
}

.music-platform {
    color: #2d3748;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-family: 'Inter', sans-serif;
}

.music-description {
    color: #718096;
    font-size: 0.875rem;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.music-arrow {
    color: #cbd5e0;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.music-link:hover .music-arrow {
    color: #4299e1;
    transform: translateX(3px);
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-card p {
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Skills Section within About */
.skills-section {
    margin: 2.5rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.skills-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.skills-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.skills-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    border-bottom: 2px solid #4299e1;
    padding-bottom: 0.5rem;
}

.professional-domains {
    list-style: none;
    padding: 0;
}

.professional-domains li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 1.5rem;
}

.professional-domains li:before {
    content: "•";
    color: #4299e1;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.professional-domains li:last-child {
    border-bottom: none;
}

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

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.skill-card h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Services Section */
.work {
    background: #ffffff;
    /* Tech grid overlay for work section */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(159, 122, 234, 0.02) 0%, transparent 70%),
        linear-gradient(rgba(66, 153, 225, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.015) 1px, transparent 1px);
    background-size: 400px 400px, 35px 35px, 35px 35px;
    background-position: 0 0, 0 0, 0 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.project-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease-out;
    will-change: transform;
    position: relative;
    /* Tech-inspired subtle border */
    border: 1px solid rgba(66, 153, 225, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(66, 153, 225, 0.6), 
        rgba(103, 232, 249, 0.6), 
        rgba(72, 187, 120, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card:hover::before {
    opacity: 1;
}

.project-image {
    position: relative;
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-content {
    width: 90%;
    height: 85%;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    color: white;
}

.screenshot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.screenshot-dots {
    display: flex;
    gap: 0.25rem;
}

.screenshot-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}

.screenshot-dots span:first-child {
    background: #ff5f57;
}

.screenshot-dots span:nth-child(2) {
    background: #ffbd2e;
}

.screenshot-dots span:last-child {
    background: #28ca42;
}

.screenshot-title {
    font-size: 0.8rem;
    color: #ccc;
    margin-left: 0.5rem;
}

.screenshot-body {
    height: calc(100% - 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-ad, .mock-seo, .mock-art {
    background: #3a3a3a;
    border-radius: 6px;
    padding: 1rem;
    width: 100%;
    text-align: center;
}

.ad-header, .seo-header, .art-header {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ad-stats, .seo-stats, .art-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-item {
    font-size: 0.7rem;
    color: #ccc;
    padding: 0.25rem 0;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.project-content p {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.project-icon {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    text-decoration: none;
    transition: background-color 0.2s ease-out, color 0.2s ease-out;
    border: 1px solid #e5e7eb;
}

.project-icon:hover {
    background: #f1f5f9;
    color: #2d3748;
}

/* Project Results Section */
.project-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.05), rgba(103, 232, 249, 0.05));
    border-left: 3px solid #4299e1;
    border-radius: 8px;
}

.results-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.results-text {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Project Tech Stack Section */
.project-tech {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(66, 153, 225, 0.1);
}

.tech-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.25);
    transition: all 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.35);
}

.project-details {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #4a5568;
    margin: 1rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.project-description {
    font-size: 0.95rem;
    color: #718096;
    font-weight: 500;
    margin: 0.5rem 0 1rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

/* Works Tab Navigation */
.works-tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.works-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.works-tab-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.works-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.15);
    border-color: rgba(66, 153, 225, 0.4);
    background: rgba(66, 153, 225, 0.02);
}

.works-tab-btn.active {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.3);
    transform: translateY(-2px);
}

.works-tab-btn.active i {
    transform: scale(1.1);
}

/* Works Tab Content */
.works-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.works-tab-content.active {
    display: block;
}

.art-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.art-tab-content.active {
    display: block;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: #67e8f9;
}

.lightbox-caption {
    color: #e2e8f0;
    margin-top: 1rem;
    font-size: 1rem;
    text-align: center;
    max-width: 80vw;
    cursor: default;
}

/* Varied Layout Grid with Image Constraints */
.works-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, minmax(220px, 280px));
    gap: 1.5rem;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Uniform sized project cards - consistent styling */
.work-item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    border-radius: 16px;
}

.work-item:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1;
    border-radius: 16px;
}

.work-item:nth-child(3) {
    grid-column: 4 / 7;
    grid-row: 2 / 4;
    border-radius: 16px;
}

.work-item:nth-child(4) {
    grid-column: 4 / 7;
    grid-row: 4 / 6;
    border-radius: 16px;
}

.work-item:nth-child(5) {
    grid-column: 1 / 4;
    grid-row: 3 / 5;
    border-radius: 16px;
}

.work-item:nth-child(6) {
    grid-column: 1 / 4;
    grid-row: 5;
    border-radius: 16px;
}

.work-item {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.work-item:hover::before {
    opacity: 1;
}

/* Image container with minimum size constraints */
.work-image {
    width: 100%;
    flex: 1;
    min-height: 200px; /* Minimum height for all images */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
}

.work-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.work-item:hover .work-image::after {
    opacity: 0.8;
}

/* Uniform minimum heights for all cards - same as InsightHub */
.work-item:nth-child(1) .work-image {
    min-height: 180px !important; /* Much smaller height for Velobank */
}

.work-item:nth-child(2) .work-image {
    min-height: 220px; /* Medium cards */
}

.work-item:nth-child(3) .work-image {
    min-height: 400px; /* Tall card gets tall image */
}

.work-item:nth-child(4) .work-image {
    min-height: 350px; /* Same as InsightHub */
}

.work-item:nth-child(5) .work-image {
    min-height: 350px; /* Same as InsightHub */
}

.work-item:nth-child(6) .work-image {
    min-height: 180px; /* Bottom card */
}

.work-image img {
    width: 100%;
    height: 100%;
    min-height: inherit; /* Inherit the minimum height */
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1) contrast(1.02);
}

.work-item:hover .work-image img {
    transform: scale(1.02);
    filter: brightness(1.05) saturate(1.05) contrast(1.05);
}

/* Title styling - consistent across all cards */
.work-title {
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    background: white;
    border-top: 1px solid rgba(66, 153, 225, 0.1);
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-item:hover .work-title {
    color: #4299e1;
}

/* Project Category Badge */
.work-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.98);
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-item:hover .work-category {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    margin: 0;
    padding: 0;
    border-radius: 8px;
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(66, 153, 225, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #67e8f9, #4299e1);
    border-radius: 8px 8px 0 0;
}

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

/* Shared Modal Side-by-Side Design (Freshh, InterviewX, InsightHub, SugarCRM & OEM) */
.freshh-modal,
.interviewx-modal,
.insighthub-modal,
.sugarcrm-modal,
.oem-modal {
    width: 95%;
    max-width: 1400px;
    height: 85vh;
    max-height: 850px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-radius: 24px;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(66, 153, 225, 0.1);
    backdrop-filter: blur(30px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Side-by-Side Layout */
.modal-side-by-side {
    display: flex;
    height: 100%;
    overflow: hidden;
}

/* Left Side (40%) - Carousel */
.modal-left-side {
    flex: 0 0 40%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.04) 0%, rgba(103, 232, 249, 0.04) 100%);
    border-right: 2px solid rgba(66, 153, 225, 0.1);
    position: relative;
}

.modal-left-side::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(66, 153, 225, 0.2) 50%, transparent 100%);
}

/* Right Side (60%) - Tabbed Content */
.modal-right-side {
    flex: 0 0 60%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-right-side::-webkit-scrollbar {
    width: 6px;
}

.modal-right-side::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

.modal-right-side::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    border-radius: 10px;
}

.modal-right-side::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

/* Modal Header */
.freshh-modal .modal-header,
.interviewx-modal .modal-header,
.insighthub-modal .modal-header,
.sugarcrm-modal .modal-header,
.oem-modal .modal-header {
    padding: 2rem 2rem 1.5rem 2rem;
    border-bottom: 2px solid rgba(66, 153, 225, 0.1);
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
}

.freshh-modal .modal-header::after,
.interviewx-modal .modal-header::after,
.insighthub-modal .modal-header::after,
.sugarcrm-modal .modal-header::after,
.oem-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(66, 153, 225, 0.5) 50%, transparent 100%);
}

.freshh-modal .modal-header h2,
.interviewx-modal .modal-header h2,
.insighthub-modal .modal-header h2,
.sugarcrm-modal .modal-header h2,
.oem-modal .modal-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a202c 0%, #4299e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    font-family: 'Noto Sans JP', sans-serif;
    letter-spacing: -0.02em;
}

.freshh-modal .project-subtitle,
.interviewx-modal .project-subtitle,
.insighthub-modal .project-subtitle,
.sugarcrm-modal .project-subtitle,
.oem-modal .project-subtitle {
    font-size: 1rem;
    color: #4a5568;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Carousel Section */
.modal-carousel-section {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.freshh-modal .carousel-container,
.interviewx-modal .carousel-container,
.insighthub-modal .carousel-container,
.sugarcrm-modal .carousel-container,
.oem-modal .carousel-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.freshh-modal .carousel-slides,
.interviewx-modal .carousel-slides,
.insighthub-modal .carousel-slides,
.sugarcrm-modal .carousel-slides,
.oem-modal .carousel-slides {
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(66, 153, 225, 0.15), 0 0 0 1px rgba(66, 153, 225, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.3s ease;
}

.freshh-modal .carousel-slides:hover,
.interviewx-modal .carousel-slides:hover,
.insighthub-modal .carousel-slides:hover,
.sugarcrm-modal .carousel-slides:hover,
.oem-modal .carousel-slides:hover {
    box-shadow: 0 25px 70px rgba(66, 153, 225, 0.2), 0 0 0 2px rgba(66, 153, 225, 0.2);
    transform: translateY(-2px);
}

.freshh-modal .carousel-slides img,
.interviewx-modal .carousel-slides img,
.insighthub-modal .carousel-slides img,
.sugarcrm-modal .carousel-slides img,
.oem-modal .carousel-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.freshh-modal .carousel-slides:hover img,
.interviewx-modal .carousel-slides:hover img,
.insighthub-modal .carousel-slides:hover img,
.sugarcrm-modal .carousel-slides:hover img,
.oem-modal .carousel-slides:hover img {
    transform: scale(1.02);
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(237, 242, 247, 0.95) 100%);
    border-radius: 0;
    padding: 0.5rem;
    margin: 0;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 2px solid rgba(66, 153, 225, 0.1);
    flex-shrink: 0;
    position: relative;
}

.tab-navigation::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(66, 153, 225, 0.3) 50%, transparent 100%);
}

.tab-btn {
    flex: 1;
    padding: 0.9rem 1rem;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1), rgba(103, 232, 249, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn:hover {
    color: #4299e1;
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4299e1 0%, #67e8f9 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4), 0 2px 8px rgba(66, 153, 225, 0.2);
    transform: translateY(-1px);
}

.tab-btn.active::before {
    opacity: 0;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 1.2rem 1.5rem;
    animation: fadeIn 0.3s ease;
    height: calc(100vh - 280px);
    max-height: 570px;
    overflow-y: auto;
    overflow-x: hidden;
}

.tab-content.active {
    display: block;
}

.tab-content::-webkit-scrollbar {
    width: 5px;
}

.tab-content::-webkit-scrollbar-track {
    background: transparent;
}

.tab-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    border-radius: 10px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3182ce, #4299e1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Content Cards */
.content-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 2px solid rgba(66, 153, 225, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4299e1 0%, #67e8f9 50%, #4299e1 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.content-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 40px rgba(66, 153, 225, 0.15), 0 4px 16px rgba(66, 153, 225, 0.1);
    border-color: rgba(66, 153, 225, 0.3);
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4299e1 0%, #67e8f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4), 0 2px 8px rgba(66, 153, 225, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.card-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-icon {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 8px 28px rgba(66, 153, 225, 0.5), 0 4px 12px rgba(66, 153, 225, 0.3);
}

.content-card:hover .card-icon::after {
    opacity: 1;
}

.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.6rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.content-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #4a5568;
    margin: 0 0 0.6rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.card-highlight {
    background: rgba(66, 153, 225, 0.05);
    border-left: 4px solid #4299e1;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #2d3748;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
}

/* Tech Stack Section */
.tech-stack-section {
    background: white;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0.8rem;
}

.tech-stack-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 1rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-badge {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

/* Process Timeline */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 100%;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.step-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.2rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.step-content p {
    font-size: 0.8rem;
    color: #4a5568;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.4;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #48bb78, #68d391);
}

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

.result-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #48bb78, #68d391);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem auto;
    color: white;
    font-size: 1.2rem;
}

.result-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.4rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #48bb78;
    margin: 0 0 0.4rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.result-card p {
    font-size: 0.75rem;
    color: #4a5568;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.4;
}

/* Feature List Styling */
.feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #4299e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.15);
    border-left-color: #67e8f9;
}

.feature-item i {
    color: #4299e1;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.85rem;
    color: #2d3748;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.5;
}

/* Challenge-Solution Cards */
.challenges-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.challenge-solution-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
}

.challenge-solution-card:hover {
    box-shadow: 0 10px 30px rgba(66, 153, 225, 0.12);
    border-color: rgba(66, 153, 225, 0.2);
}

.challenge-section,
.solution-section {
    padding: 1.2rem;
}

.challenge-section {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.05) 0%, rgba(252, 129, 129, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.solution-section {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.05) 0%, rgba(104, 211, 145, 0.05) 100%);
}

.challenge-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e53e3e;
    margin: 0 0 0.6rem 0;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.solution-section h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #38a169;
    margin: 0 0 0.6rem 0;
    font-family: 'Noto Sans JP', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-section p,
.solution-section p {
    font-size: 0.85rem;
    color: #2d3748;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
}

.modal-content h2 {
    margin: 0;
    padding: 2rem 2.5rem 0.5rem 2.5rem;
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    position: relative;
}

.project-subtitle {
    margin: 0;
    padding: 0 2.5rem 1.25rem 2.5rem;
    color: #4299e1;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    border-bottom: 1px solid #e2e8f0;
    letter-spacing: 0.02em;
    position: relative;
}

.project-subtitle::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 2.5rem;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4299e1, #67e8f9);
    border-radius: 2px;
}

/* Remove blue line for case study modals */
}

.close {
    position: absolute;
    right: 1rem !important;
    top: 1rem !important;
    color: #2d3748;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    line-height: 1;
    user-select: none;
}

.close:hover {
    color: #4299e1 !important;
    background: rgba(66, 153, 225, 0.1) !important;
    transform: scale(1.05) !important;
}

.close:active {
    color: #2b6cb0;
}

.modal-body {
    padding: 2rem 2.5rem;
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.modal-body p {
    color: #4a5568;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    text-align: left;
}

/* Two column layout */
.modal-body-left {
    flex: 1;
    min-width: 0;
}

.modal-body-right {
    flex: 0 0 380px;
    position: sticky;
    top: 0;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 280px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1.5px solid #e2e8f0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1rem;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1.5px solid #cbd5e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dot.active {
    background: #4299e1;
    border-color: #4299e1;
    transform: scale(1.3);
}

.dot:hover {
    border-color: #4299e1;
    transform: scale(1.15);
}

/* Project Description */
.project-description {
    margin-bottom: 1.75rem;
    text-align: left;
}

.project-description p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.75;
    color: #4a5568;
    text-align: left;
}

/* Results Section */
.project-results-section {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #48bb78;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    border-left: 3px solid #48bb78;
}

.results-heading {
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    font-family: 'Noto Sans JP', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #48bb78;
}

.project-results-section p {
    color: #2d3748;
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Tech Stack Section - Full Width */
.project-tech-section-full {
    background: #f7fafc;
    padding: 1.75rem 2.5rem;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Tech Stack Section - In Column (legacy) */
.project-tech-section {
    background: linear-gradient(135deg, #ebf8ff, #e6fffa);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.tech-heading {
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    font-family: 'Noto Sans JP', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4299e1;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    background: white;
    color: #4299e1;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #4299e1;
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.modal-links {
    display: flex;
    gap: 1rem;
    margin: 0;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 153, 225, 0.3);
}

.modal-separator {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 2rem 0;
}

.modal-tech h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
}

.modal-tech p {
    color: #4a5568;
    font-family: 'Inter', sans-serif;
    margin: 0;
}


.subsection-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subsection-subtitle {
    font-size: 1rem;
    color: #718096;
    text-align: center;
    margin-bottom: 3rem;
}

/* Case Studies Section */
.case-studies-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.case-studies-section .section-header {
    margin-bottom: 2rem;
}







/* Onitsuka Carousel Container */
.onitsuka-carousel {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 2rem;
    position: relative;
}

.onitsuka-carousel .carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.onitsuka-carousel .carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.onitsuka-carousel .carousel-slide.active {
    display: block;
}

.onitsuka-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.onitsuka-carousel .slide-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to bottom, rgba(66, 153, 225, 0.9), rgba(66, 153, 225, 0.7));
    color: white;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(8px);
    border-radius: 12px 12px 0 0;
}

.onitsuka-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.onitsuka-carousel .carousel-btn:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.onitsuka-carousel .carousel-btn.prev {
    left: 1rem;
}

.onitsuka-carousel .carousel-btn.next {
    right: 1rem;
}

.onitsuka-carousel .carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.onitsuka-carousel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.onitsuka-carousel .dot.active {
    background: #4299e1;
    border-color: #4299e1;
    transform: scale(1.2);
}

.onitsuka-carousel .dot:hover {
    background: rgba(66, 153, 225, 0.6);
}

/* Onitsuka Case Study Content Styling */
.onitsuka-case-content p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.onitsuka-case-content .highlight-results {
    padding: 0.7rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1.1rem 0;
}

.onitsuka-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.onitsuka-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    margin-top: 0.9rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Fishing Carousel */
.fishing-carousel {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
}

.fishing-carousel .carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.fishing-carousel .carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.fishing-carousel .carousel-slide.active {
    display: block;
}

.fishing-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.fishing-carousel .slide-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to bottom, rgba(66, 153, 225, 0.9), rgba(66, 153, 225, 0.7));
    color: white;
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.fishing-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fishing-carousel .carousel-btn:hover {
    background: #4299e1;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.fishing-carousel .carousel-btn.prev {
    left: 1rem;
}

.fishing-carousel .carousel-btn.next {
    right: 1rem;
}

.fishing-carousel .carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.fishing-carousel .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fishing-carousel .dot.active {
    background: #4299e1;
    border-color: #4299e1;
    transform: scale(1.2);
}

.fishing-carousel .dot:hover {
    background: rgba(66, 153, 225, 0.6);
}

/* Full Article Link */
.full-article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    color: #4299e1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
}

.full-article-link:hover {
    color: #2c7cb8;
}

.full-article-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.full-article-link:hover i {
    transform: translateX(4px);
}

/* Koala Living Image Container */
.koala-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.koala-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Meta Image Container */
.meta-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.meta-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* CrowdStrike Image Container */
.crowdstrike-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

.crowdstrike-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Koala Living Case Study Content Styling */
.koala-case-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.koala-case-content .highlight-results {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.koala-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.koala-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* CrowdStrike Case Study Content Styling */
.crowdstrike-case-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.crowdstrike-case-content .highlight-results {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.crowdstrike-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.crowdstrike-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* Simply for Strings Image Container */
.simply-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.simply-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Simply for Strings Case Study Content Styling */
.simply-case-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.simply-case-content .highlight-results {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.simply-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.simply-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    margin-top: 0.8rem;
    margin-bottom: 0;
    font-size: 0.82rem;
    font-weight: 400;
}

/* Fishing Case Study Content Styling */
.fishing-case-content p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.fishing-case-content .highlight-results {
    padding: 0.7rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1.1rem 0;
}

.fishing-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.fishing-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    margin-top: 0.9rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Case Studies Tab Navigation */
.case-studies-tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.case-study-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: white;
    border: 2px solid rgba(66, 153, 225, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.case-study-tab-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.case-study-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.15);
    border-color: rgba(66, 153, 225, 0.4);
    background: rgba(66, 153, 225, 0.02);
}

.case-study-tab-btn.active {
    background: linear-gradient(135deg, #4299e1, #67e8f9);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(66, 153, 225, 0.3);
    transform: translateY(-2px);
}

.case-study-tab-btn.active i {
    transform: scale(1.1);
}

/* Case Study Tab Content */
.case-study-tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.case-study-tab-content.active {
    display: block;
}

/* Case Studies Grid */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0;
}

/* Digital Art Carousel - Center Focus Design */
.digital-art-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0 3rem 0;
}

.digital-art-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 0 80px;
}

.digital-art-carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    position: relative;
    perspective: 1000px;
    cursor: grab;
    user-select: none;
}

.digital-art-carousel-track:active {
    cursor: grabbing;
}

.digital-art-slide {
    position: absolute;
    width: 350px;
    height: 450px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.digital-art-slide.center {
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
}

.digital-art-slide.left {
    transform: translateX(-70%) scale(0.8);
    z-index: 2;
    opacity: 0.7;
}

.digital-art-slide.right {
    transform: translateX(70%) scale(0.8);
    z-index: 2;
    opacity: 0.7;
}

.digital-art-slide.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Digital Art Navigation */
.digital-art-prev,
.digital-art-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e2e8f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.digital-art-prev:hover,
.digital-art-next:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.digital-art-prev {
    left: 2rem;
}

.digital-art-next {
    right: 2rem;
}

/* Digital Art Dots */
.digital-art-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.digital-art-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(66, 153, 225, 0.3);
}

.digital-art-dot.active {
    background: #4299e1;
    border-color: #4299e1;
    transform: scale(1.2);
}

.digital-art-dot:hover {
    background: rgba(66, 153, 225, 0.7);
    border-color: #4299e1;
}

/* Case Studies Carousel - Center Focus Design */
.case-studies-carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 0;
}

.case-studies-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 0 100px;
}

.case-studies-carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    position: relative;
    perspective: 1000px;
    cursor: grab;
    user-select: none;
}

.case-studies-carousel-track:active {
    cursor: grabbing;
}

.case-study-slide {
    position: absolute;
    width: 500px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Center slide - Prominent and large */
.case-study-slide.center {
    transform: translateX(0) scale(1);
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
}

/* Left slide - More visible */
.case-study-slide.left {
    transform: translateX(-70%) scale(0.85);
    z-index: 2;
    opacity: 0.8;
    pointer-events: auto;
}

/* Right slide - More visible */
.case-study-slide.right {
    transform: translateX(70%) scale(0.85);
    z-index: 2;
    opacity: 0.8;
    pointer-events: auto;
}

/* Hidden slides */
.case-study-slide.hidden {
    transform: translateX(0) scale(0.5);
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.case-study-slide:hover:not(.center) {
    opacity: 0.9;
    transform: translateX(-70%) scale(0.9);
}

.case-study-slide.right:hover:not(.center) {
    transform: translateX(70%) scale(0.9);
}

/* Case Study Items - Match Project Card Design */
.case-study-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    max-height: 260px;
}

.case-study-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.case-study-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

.case-study-item:hover::before {
    opacity: 1;
}

/* Case Study Images */
.case-study-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    flex: 0 0 180px;
}

.case-study-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.case-study-item:hover .case-study-image::after {
    opacity: 0.8;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1) contrast(1.02);
}

.case-study-item:hover .case-study-image img {
    transform: scale(1.02);
    filter: brightness(1.05) saturate(1.05) contrast(1.05);
}

/* Case Study Category Badge */
.case-study-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.98);
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-study-item:hover .case-study-category {
    opacity: 1;
    transform: translateY(0);
}

/* Case Study Title */
.case-study-title {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    background: white;
    border-top: 1px solid rgba(66, 153, 225, 0.1);
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
    position: relative;
    flex: 0 0 auto;
}

.case-study-item:hover .case-study-title {
    color: #4299e1;
}

/* Navigation Buttons */
.case-study-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(66, 153, 225, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4299e1;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.case-study-nav:hover {
    background: #4299e1;
    color: white;
    border-color: #4299e1;
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.case-study-nav.prev {
    left: 2rem;
}

.case-study-nav.next {
    right: 2rem;
}

.brand-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #718096;
    font-size: 1.2rem;
    font-weight: 500;
}

.brand-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #a0aec0;
}

/* Case Study Content */
.case-study-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.case-study-header {
    margin-bottom: 1.5rem;
}

.case-study-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Onitsuka Tiger Card - Standard Design (matches other case studies) */

.case-study-subtitle {
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    opacity: 1;
    transition: color 0.3s ease;
    letter-spacing: 0.01em;
    text-align: center;
}

.case-study-item:hover .case-study-subtitle {
    color: #2d3748;
    opacity: 1;
}


.case-study-description {
    color: #4a5568;
    line-height: 1.7;
}

.case-study-description p {
    margin-bottom: 1rem;
}

.case-study-description p:last-child {
    margin-bottom: 0;
}

.case-study-description strong {
    color: #2d3748;
    font-weight: 700;
}

/* Carousel Indicators */
.case-study-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.case-study-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.case-study-dot:hover {
    background: #a0aec0;
    transform: scale(1.2);
}

.case-study-dot.active {
    background: #4299e1;
    border-color: rgba(66, 153, 225, 0.3);
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.1);
}

/* Responsive Design for Case Studies Carousel */
@media (max-width: 1200px) {
    .case-studies-carousel-container {
        padding: 0 80px;
    }
    
    .case-study-slide {
        width: 450px;
    }
    
    .case-study-slide.left {
        transform: translateX(-65%) scale(0.8);
    }
    
    .case-study-slide.right {
        transform: translateX(65%) scale(0.8);
    }
}

@media (max-width: 1024px) {
    .case-studies-carousel-container {
        padding: 0 60px;
        min-height: 550px;
    }
    
    .case-study-slide {
        width: 400px;
    }
    
    .case-study-slide.left,
    .case-study-slide.right {
        transform: translateX(0) scale(0.75);
        opacity: 0.7;
    }
    
    .case-study-item {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }
    
    .case-study-image {
        height: 300px;
    }
    
    .case-study-nav {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .case-study-nav.prev {
        left: 1rem;
    }
    
    .case-study-nav.next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    .works-tab-navigation {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 15px;
    }

    .works-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .creative-works-section {
        margin-top: 5rem;
        padding-top: 4rem;
    }

    .creative-works-section::before {
        width: 80px;
        height: 2px;
    }

    .case-studies-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .case-studies-tab-navigation {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 15px;
    }

    .case-study-tab-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .case-studies-carousel-wrapper {
        padding: 2rem 0;
    }
    
    .case-studies-carousel-container {
        padding: 0 40px;
        min-height: 500px;
    }
    
    .case-study-slide {
        width: 90%;
        max-width: 350px;
    }
    
    .case-study-slide.left,
    .case-study-slide.right {
        transform: translateX(0) scale(0.7);
        opacity: 0.5;
    }
    
    .case-study-item {
        min-height: auto;
    }
    
    .case-study-image {
        height: 250px;
    }
    
    .case-study-content {
        padding: 1.5rem;
    }
    
    .case-study-title {
        font-size: 1.4rem;
    }
    
    .case-study-subtitle {
        font-size: 0.95rem;
    }
    
    
    .case-study-category {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .case-study-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .case-study-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .case-study-nav.prev {
        left: 0.5rem;
    }
    
    .case-study-nav.next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .case-studies-carousel-container {
        padding: 0 40px;
        min-height: 450px;
    }
    
    .case-study-slide {
        width: 100%;
        max-width: 350px;
    }
    
    .case-study-slide.left,
    .case-study-slide.right {
        display: none; /* Hide side slides on mobile */
    }
    
    .case-study-image {
        height: 200px;
    }
    
    .case-study-content {
        padding: 1rem;
    }
    
    .case-study-title {
        font-size: 1.3rem;
    }
    
    .case-study-subtitle {
        font-size: 0.9rem;
    }
    
    
    .case-study-category {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .case-study-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .case-study-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .case-study-indicators {
        margin-top: 1.5rem;
    }
    
    .case-study-dot {
        width: 10px;
        height: 10px;
    }
}




.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    padding: 0 1rem;
}

.case-study-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 720px;
}

/* Case Study Cards */
.case-study-card {
    background: white;
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(66, 153, 225, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    transform: scale(0.9);
    opacity: 0.7;
    display: flex;
    flex-direction: column;
}

.case-study-card.active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(66, 153, 225, 0.3);
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.case-study-card.active::before {
    opacity: 1;
}

.case-study-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(66, 153, 225, 0.3);
}

.case-study-card.active:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Brand Card Styling */
.case-study-card.brand-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card.brand-card:hover {
    transform: scale(0.95);
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.13);
}

.case-study-card.brand-card.active:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 55px rgba(0, 0, 0, 0.18);
}

/* Brand Image Styling */
.brand-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.brand-image img {
    max-width: 200px;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

.brand-card:hover .brand-image img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.brand-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.brand-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #a0aec0;
}

/* Brand Header Image for Carousel Cards */
.brand-header-image {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 0;
}

.brand-header-image img {
    max-width: 380px;
    max-height: 160px;
    object-fit: contain;
    object-position: center;
    filter: grayscale(0.2);
    transition: all 0.3s ease;
}

/* Large Brand Header Image - Matching Homepage Theme */
.brand-header-image-large {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    overflow: hidden;
    flex: 1;
    min-height: 300px;
}

.brand-header-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.2);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.onitsuka-card:hover .brand-header-image-large img,
.crowdstrike-card:hover .brand-header-image-large img,
.meta-card:hover .brand-header-image-large img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.brand-card:hover .brand-header-image img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.brand-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
}

.brand-title-overlay .case-study-title {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.brand-title-overlay .case-study-category {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
    background: none;
    padding: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

/* InsightHub Image Container */
.insighthub-image-container {
    width: 100%;
    height: 280px; /* Adjusted height */
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.insighthub-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* InsightHub Case Study Content Styling */
.insighthub-case-content p {
    font-size: 0.8rem; /* Adjusted font size */
    line-height: 1.6; /* Adjusted line height */
    margin-bottom: 0.8rem; /* Adjusted margin */
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.insighthub-case-content p strong {
    color: #4299e1;
    font-weight: 700;
}

.insighthub-case-content .highlight-results {
    padding: 0.5rem 0; /* Adjusted padding */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0.8rem 0; /* Adjusted margin */
}

.insighthub-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.insighthub-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* InsightHub Modal Layout Adjustments */
#modal4 .modal-body-left {
    flex: 0 0 35%; /* Adjusted width */
}

#modal4 .modal-body-right {
    flex: 0 0 60%; /* Adjusted width */
    padding-left: 1.5rem;
}

/* SugarCRM Image Container */
.sugarcrm-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.sugarcrm-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* SugarCRM Case Study Content Styling */
.sugarcrm-case-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.sugarcrm-case-content p strong {
    color: #4299e1;
    font-weight: 700;
}

.sugarcrm-case-content .highlight-results {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.sugarcrm-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.sugarcrm-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* OEM Corporate CMS Image Container */
.oem-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.oem-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* OEM Corporate CMS Case Study Content Styling */
.oem-case-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.oem-case-content p strong {
    color: #4299e1;
    font-weight: 700;
}

.oem-case-content .highlight-results {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.oem-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.oem-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* AI Outreach Engine Image Container */
.ai-engine-image-container {
    width: 100%;
    height: 280px; /* Adjusted height */
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ai-engine-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* AI Outreach Engine Case Study Content Styling */
.ai-engine-case-content p {
    font-size: 0.8rem; /* Adjusted font size */
    line-height: 1.6; /* Adjusted line height */
    margin-bottom: 0.8rem; /* Adjusted margin */
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.ai-engine-case-content p strong {
    color: #4299e1;
    font-weight: 700;
}

.ai-engine-case-content .highlight-results {
    padding: 0.5rem 0; /* Adjusted padding */
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0.8rem 0; /* Adjusted margin */
}

.ai-engine-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.ai-engine-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* AI Outreach Engine Modal Layout Adjustments */
#modal1 .modal-body-left {
    flex: 0 0 35%; /* Adjusted width */
}

#modal1 .modal-body-right {
    flex: 0 0 60%; /* Adjusted width */
    padding-left: 1.5rem;
}

/* Freshh Image Container */
.freshh-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.freshh-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Freshh Case Study Content Styling */
.freshh-case-content p {
    font-size: 0.85rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.freshh-case-content p strong {
    color: #4299e1;
    font-weight: 700;
}

.freshh-case-content .highlight-results {
    padding: 0.65rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 1rem 0;
}

.freshh-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.freshh-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* InterviewX Image Container */
.interviewx-image-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.interviewx-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* InterviewX Case Study Content Styling */
.interviewx-case-content p {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500 !important;
}

.interviewx-case-content p strong {
    color: #4299e1;
    font-weight: 700;
}

.interviewx-case-content .highlight-results {
    padding: 0.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin: 0.8rem 0;
}

.interviewx-case-content .highlight-results strong {
    color: #4299e1;
    font-weight: 700;
}

.interviewx-case-content .conclusion-text {
    font-style: italic;
    color: #718096;
    font-weight: 400;
}

/* InterviewX Modal Layout Adjustments */
#modal3 .modal-body-left {
    flex: 0 0 35%;
}

#modal3 .modal-body-right {
    flex: 0 0 60%;
    padding-left: 1.5rem;
}

/* Case Study Modal Specific Styles */




#caseStudyModal1 .modal-body-right,
#caseStudyModal2 .modal-body-right,
#caseStudyModal3 .modal-body-right {
    flex: 0 0 50%;
    padding-left: 1rem;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Brand Modal Header Image */
.brand-modal-header {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.brand-modal-header img {
    max-width: 450px;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
}

/* Case Study Specific Brand Modal Header */
#caseStudyModal1 .brand-modal-header,
#caseStudyModal2 .brand-modal-header,
#caseStudyModal3 .brand-modal-header {
    height: 400px;
    border-radius: 12px;
    background: transparent;
    border: none;
    margin-bottom: 0;
}

#caseStudyModal1 .brand-modal-header img,
#caseStudyModal2 .brand-modal-header img,
#caseStudyModal3 .brand-modal-header img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

#caseStudyModal1 .brand-modal-header:hover img,
#caseStudyModal2 .brand-modal-header:hover img,
#caseStudyModal3 .brand-modal-header:hover img {
    transform: scale(1.02);
}

/* Case Study Project Description Styling */
#caseStudyModal1 .project-description,
#caseStudyModal2 .project-description,
#caseStudyModal3 .project-description {
    padding: 1rem 1rem 1rem 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

#caseStudyModal1 .project-description p,
#caseStudyModal2 .project-description p,
#caseStudyModal3 .project-description p {
    color: #2d3748;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    text-align: left;
}

#caseStudyModal1 .project-description p:last-child,
#caseStudyModal2 .project-description p:last-child,
#caseStudyModal3 .project-description p:last-child {
    margin-bottom: 0;
}

#caseStudyModal1 .project-description strong {
    color: #4299e1;
    font-weight: 600;
}


#caseStudyModal2 .project-description strong {
    color: #4299e1;
    font-weight: 600;
}

#caseStudyModal3 .project-description strong {
    color: #4299e1;
    font-weight: 600;
}

/* Full Width Modal Body */
.modal-body-full {
    width: 100%;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.carousel-nav i {
    font-size: 1.2rem;
    color: #4a5568;
    transition: color 0.3s ease;
}

.carousel-nav:hover i {
    color: white;
}

/* Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #667eea;
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.indicator:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.case-study-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    line-height: 1.4;
}


.case-study-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.performance-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .case-studies-carousel {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .carousel-container {
        padding: 1rem 0;
    }
    
    .carousel-track {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .case-study-slide {
        min-height: 500px;
    }
    
    .case-study-card {
        padding: 2rem;
        max-width: 100%;
        transform: scale(0.95);
    }
    
    .case-study-card.active {
        transform: scale(1);
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav.prev {
        left: 0.5rem;
    }
    
    .carousel-nav.next {
        right: 0.5rem;
    }
    
    .carousel-nav i {
        font-size: 1rem;
    }
    
    .case-study-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .performance-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .metric {
        padding: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .case-study-card {
        padding: 1.5rem;
    }
    
    .performance-metrics {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .carousel-indicators {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Responsive Design for Uniform Layout */
@media (max-width: 1024px) {
    .works-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, minmax(180px, 220px));
        gap: 1rem;
    }
    
    .work-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
        border-radius: 20px 20px 20px 8px;
    }
    
    .work-item:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1;
        border-radius: 8px 20px 8px 8px;
    }
    
    .work-item:nth-child(3) {
        grid-column: 3 / 5;
        grid-row: 2 / 4;
        border-radius: 20px 8px 20px 20px;
    }
    
    .work-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3 / 5;
        border-radius: 8px 8px 8px 20px;
    }
    
    .work-item:nth-child(5) {
        grid-column: 3 / 5;
        grid-row: 4 / 6;
        border-radius: 20px 20px 20px 8px;
    }
    
    .work-item:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 5;
        border-radius: 8px 8px 8px 20px;
    }
    
    /* Adjust minimum heights for tablet - uniform sizing */
    .work-item:nth-child(1) .work-image {
        min-height: 280px;
    }
    
    .work-item:nth-child(3) .work-image {
        min-height: 320px;
    }
    
    .work-item:nth-child(2) .work-image {
        min-height: 180px;
    }
    
    .work-item:nth-child(4) .work-image {
        min-height: 280px; /* Same as InsightHub */
    }
    
    .work-item:nth-child(5) .work-image {
        min-height: 280px; /* Same as InsightHub */
    }
    
    .work-item:nth-child(6) .work-image {
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(4, minmax(140px, 220px));
        gap: 1rem;
        max-width: 100%;
    }
    
    /* Asymmetrical Layout for Visual Interest */
    .work-item:nth-child(1) {
        grid-column: 1 / 4;
        grid-row: 1 / 3;
        border-radius: 20px 8px 8px 20px;
    }
    
    .work-item:nth-child(2) {
        grid-column: 4;
        grid-row: 1;
        border-radius: 8px 20px 8px 8px;
    }
    
    .work-item:nth-child(3) {
        grid-column: 4;
        grid-row: 2;
        border-radius: 8px 20px 20px 8px;
    }
    
    .work-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3;
        border-radius: 20px 8px 8px 20px;
    }
    
    .work-item:nth-child(5) {
        grid-column: 3 / 5;
        grid-row: 3;
        border-radius: 8px 20px 8px 8px;
    }
    
    .work-item:nth-child(6) {
        grid-column: 1 / 5;
        grid-row: 4;
        border-radius: 20px 20px 20px 20px;
    }
    
    /* Asymmetrical image sizing for visual hierarchy */
    .work-item:nth-child(1) .work-image {
        min-height: 240px; /* Large featured card */
    }
    
    .work-item:nth-child(2) .work-image,
    .work-item:nth-child(3) .work-image {
        min-height: 140px; /* Small vertical cards */
    }
    
    .work-item:nth-child(4) .work-image,
    .work-item:nth-child(5) .work-image {
        min-height: 160px; /* Medium horizontal cards */
    }
    
    .work-item:nth-child(6) .work-image {
        min-height: 120px; /* Wide banner card */
    }
    
    .work-title {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 92%;
        max-width: 900px;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .modal-content h2 {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
        font-size: 1.8rem;
    }
    
    .project-subtitle {
        padding: 0 1.5rem 1rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .close {
        right: 1rem !important;
        top: 1rem !important;
        width: 40px;
        height: 40px;
        font-size: 2.2rem;
        color: #2d3748;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }
    
    .modal-body {
        padding: 1.5rem;
        flex-direction: column;
    }
    
    .modal-body-left {
        order: 2;
    }
    
    .modal-body-right {
        order: 1;
        flex: 0 0 auto;
        width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .carousel-slides {
        height: 250px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 0.5rem;
    }
    
    .carousel-btn.next {
        right: 0.5rem;
    }
    
    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .project-tech-section-full {
        padding: 1.25rem 1.5rem;
    }
    
    .modal-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(120px, 200px));
        gap: 1rem;
    }
    
    /* Asymmetrical single column with varied heights */
    .work-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        border-radius: 20px 20px 12px 12px;
        min-height: 180px;
    }
    
    .work-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        border-radius: 12px 20px 12px 20px;
        min-height: 140px;
    }
    
    .work-item:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
        border-radius: 20px 12px 20px 12px;
        min-height: 160px;
    }
    
    .work-item:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
        border-radius: 12px 12px 20px 20px;
        min-height: 150px;
    }
    
    .work-item:nth-child(5) {
        grid-column: 1;
        grid-row: 5;
        border-radius: 20px 20px 12px 12px;
        min-height: 170px;
    }
    
    .work-item:nth-child(6) {
        grid-column: 1;
        grid-row: 6;
        border-radius: 12px 12px 20px 20px;
        min-height: 130px;
}

.work-item:hover {
        transform: translateY(-4px);
    }
    
    /* Asymmetrical image heights for visual variety */
    .work-item:nth-child(1) .work-image {
        min-height: 140px; /* Featured card */
    }
    
    .work-item:nth-child(2) .work-image {
        min-height: 100px; /* Compact card */
    }
    
    .work-item:nth-child(3) .work-image {
        min-height: 120px; /* Medium card */
    }
    
    .work-item:nth-child(4) .work-image {
        min-height: 110px; /* Medium card */
    }
    
    .work-item:nth-child(5) .work-image {
        min-height: 130px; /* Larger card */
    }
    
    .work-item:nth-child(6) .work-image {
        min-height: 90px; /* Compact banner */
    }
    
    .work-title {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

.work-item:hover {
    transform: translateY(-3px);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.work-header h3 {
    color: #2d3748;
    font-size: 1.8rem;
    font-weight: 600;
}

.work-links {
    display: flex;
    gap: 1rem;
}

.work-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #3182ce;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease-out;
}

.work-link:hover {
    background: #1d4ed8;
}

.work-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.work-description p {
    color: #718096;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.work-tech h4 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #c7d2fe;
}

.work-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.work-stats .stat-item {
    text-align: center;
}

.work-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
}

.work-stats .stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 0.5rem;
}

/* Skills Section Improvements */
.skill-level-guide {
    margin: 2rem 0;
    text-align: center;
}

.level-guide {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.level-label {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: #2d3748;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: #2563eb;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #e5e7eb;
    transform: translateX(5px);
}

.skill-name {
    min-width: 120px;
    font-weight: 600;
    color: #2d3748;
}

.skill-level {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 4px;
    transition: width 1s ease;
    width: 0%;
}

.level-bar[data-level="1"] { width: 20%; }
.level-bar[data-level="2"] { width: 40%; }
.level-bar[data-level="3"] { width: 60%; }
.level-bar[data-level="4"] { width: 80%; }
.level-bar[data-level="5"] { width: 100%; }

.level-text {
    min-width: 120px;
    font-size: 0.9rem;
    color: #718096;
    text-align: right;
}

/* Story Section */
.story {
    background: white;
}

.story-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
}

.story-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.story-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.story-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.story-item::before {
    content: '';
    position: absolute;
    top: 1rem;
    width: 16px;
    height: 16px;
    background: #3182ce;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #e5e7eb;
}

.story-item:nth-child(odd)::before {
    right: -8px;
}

.story-item:nth-child(even)::before {
    left: -8px;
}

.story-year {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.story-content {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.story-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-content h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.story-content p {
    color: #718096;
    line-height: 1.8;
}

.story-reflection {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 3rem;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-reflection h3 {
    color: #2d3748;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
}

.story-reflection p {
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-reflection p:last-child {
    margin-bottom: 0;
}

.contact-content {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 3rem !important;
    align-items: start !important;

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer .social-link:hover {
    background: #3182ce;
    transform: translateY(-2px);
}

/* Medium screens - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .flip-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin: 3rem auto;
        padding: 0 1.5rem;
        box-sizing: border-box;
    }
    
    .intro-header {
        margin: 0 auto 3rem auto;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 20px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
    }

    .title-line {
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        min-height: 3.5rem;
        height: auto;
        padding: 0 1rem;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .typing-text {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-buttons {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skills-card {
        padding: 1.5rem;
    }
    
    .flip-cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin: 2.5rem auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .intro-header {
        margin: 0 auto 3rem auto;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
    }
    
    .intro-story {
        margin: 3rem auto 2rem auto;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }
    
    .flip-card {
        height: 320px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-back-content {
        gap: 1.2rem;
    }
    
    .card-back-list {
        gap: 0.6rem;
    }
    
    .card-back-list li {
        font-size: 0.8rem;
        padding-left: 1rem;
    }
    
    .intro-title {
        font-size: 1.6rem;
    }
    
    .intro-description {
        font-size: 1rem;
        padding: 0 1.5rem;
        text-align: center;
        max-width: 1200px;
        box-sizing: border-box;
    }
    
    .intro-header {
        margin-bottom: 3rem;
        padding: 0 1.5rem;
    }
    
    .intro-story {
        margin: 3rem auto 2rem auto;
        padding: 2rem 1rem;
        box-sizing: border-box;
    }

    .about-stats {
        justify-content: center;
    }
}

/* Very small screens - stack cards vertically */
@media (max-width: 600px) {
    .flip-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 3rem auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .intro-header {
        margin: 0 auto 2.5rem auto;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
    }
    
    .intro-story {
        margin: 2.5rem auto 2rem auto;
        padding: 1.5rem;
        box-sizing: border-box;
    }
    
    .flip-card {
        height: 280px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-back-content {
        gap: 1rem;
    }
    
    .card-back-list {
        gap: 0.5rem;
    }
    
    .card-back-list li {
        font-size: 0.75rem;
        padding-left: 0.8rem;
    }
    
    .intro-title {
        font-size: 1.4rem;
    }
    
    .intro-description {
        font-size: 0.95rem;
        padding: 0 1rem;
        text-align: center;
        max-width: 1200px;
        box-sizing: border-box;
    }
    
    .intro-header {
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .intro-story {
        margin: 2.5rem auto 2rem auto;
        padding: 1.5rem 1rem;
        box-sizing: border-box;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }

    .timeline-marker {
        left: 12px !important;
    }

    .contact-content {
        grid-template-columns: 1fr 1.5fr !important;
        gap: 2rem !important;
    }
    
    
    .contact-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 1.1rem;
    }


    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Extra small screens - single column layout */
@media (max-width: 480px) {
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}


    .skill-level {
        width: 100%;
    }

    .story-timeline::before {
        left: 20px;
    }

    .story-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .story-item::before {
        left: 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .title-line {
        font-size: inherit;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        height: auto;
        min-height: 3.5rem;
        padding: 0 1rem;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .typing-text {
        white-space: normal;
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Extra small screens (iPhone SE, older iPhones) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        min-height: 3rem;
        height: auto;
        padding: 0 0.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Mobile flip card improvements */
@media (max-width: 768px) {
    .flip-cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
        max-width: 400px;
    }

    .flip-card {
        cursor: pointer;
        height: 320px;
        min-height: 320px;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .flip-card-front, .flip-card-back {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        /* Improve touch interaction */
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .card-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .card-back-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .card-back-intro {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .card-back-list {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .card-back-list li {
        margin-bottom: 0.5rem;
        padding-left: 1.2rem;
    }
    
    /* Add visual feedback for mobile taps */
    .flip-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .flip-card.flipped:active {
        transform: none;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .flip-cards-container {
        gap: 1.5rem;
        padding: 0.5rem;
        max-width: 320px;
    }

    .flip-card {
        height: 280px;
        min-height: 280px;
        max-width: 300px;
    }
    
    .flip-card-front, .flip-card-back {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .card-subtitle {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .card-back-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .card-back-intro {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .card-back-list {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .card-back-list li {
        margin-bottom: 0.4rem;
        padding-left: 1rem;
    }

    /* Enhanced touch feedback for small screens */
    .flip-card:active {
        transform: scale(0.96);
    }
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .project-stats {
        justify-content: center;
    }

    .intro-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .intro-text h2 {
        font-size: 2rem;
    }

    .intro-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .intro-visual {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .visual-item {
        min-width: 100px;
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}


/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 6rem 0;
    /* Tech grid overlay for contact section */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(66, 153, 225, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(103, 232, 249, 0.06) 0%, transparent 50%),
        linear-gradient(rgba(66, 153, 225, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.03) 1px, transparent 1px);
    background-size: 700px 700px, 500px 500px, 45px 45px, 45px 45px;
    background-position: 0 0, 100% 100%, 0 0, 0 0;
}

.contact-intro {
    text-align: center;
    margin: 2rem 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.contact-intro .japanese-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
    margin: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: stretch;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: white;
    padding: 1.8rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(66, 153, 225, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(66, 153, 225, 0.05), 
        transparent);
    transition: left 0.5s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.contact-card:hover::before {
    left: 100%;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.contact-details h4 {
    color: #2d3748;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.contact-link {
    color: #4299e1;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-form h3 {
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 600;
}

.contact-form form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4a5568;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4299e1;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-intro {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .contact-intro .japanese-text {
        font-size: 1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 4rem 0;
    }
    
    .contact-intro {
        margin: 1rem 0;
        padding: 0 0.25rem;
    }
    
    .contact-intro .japanese-text {
        font-size: 0.95rem;
    }
    
    .contact-wrapper {
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1.2rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Thank You Section */
.thank-you {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    color: white;
    padding: 6rem 0 4rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    font-family: 'Inter', sans-serif;
}

.thank-you-subtitle {
    font-size: 1.2rem;
    color: #cbd5e0;
    margin-bottom: 2rem;
    font-weight: 500;
}

.thank-you-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
}

.footer-text {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Thank You */
@media (max-width: 768px) {
    .thank-you {
        padding: 4rem 0 3rem 0;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-subtitle {
        font-size: 1.1rem;
    }
    
    .thank-you-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .thank-you {
        padding: 3rem 0 2rem 0;
    }
    
    .thank-you-title {
        font-size: 1.8rem;
    }
    
    .thank-you-subtitle {
        font-size: 1rem;
    }
    
    .thank-you-text {
        font-size: 0.95rem;
    }
}

/* About Page Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    /* About Hero Section */
    .about-home-intro {
        margin: 1.5rem 0;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .intro-content-wrapper {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .profile-image-section {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    /* About Introduction Section */
    .about-intro-section {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .intro-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .intro-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Flip Cards */
    .flip-cards-container {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .flip-card {
        width: 100%;
        max-width: 320px;
        min-height: 250px;
    }

    /* Sections */
    .education-section,
    .skills-section,
    .achievements-section,
    .career-section,
    .creative-activities-section {
        margin: 2rem 0;
        padding: 1.5rem;
        border-radius: 12px;
    }

    .japanese-heading {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .heading-japanese {
        display: block;
        font-size: 1rem;
        margin-top: 0.5rem;
        color: #718096;
    }

    /* Education List */
    .education-list {
        font-size: 0.95rem;
        line-height: 1.7;
        padding-left: 1.5rem;
    }

    /* Skills Grid */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-card {
        padding: 1.5rem;
        border-radius: 12px;
    }

    /* Achievements Horizontal Scroll */
    .achievements-scroll-container {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .achievements-grid {
        gap: 1.5rem;
    }

    .achievement-card {
        flex: 0 0 300px;
        min-width: 300px;
        height: 360px;
        min-height: 360px;
        padding: 1.5rem;
        border-radius: 12px;
        text-align: center;
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
        font-size: 1.5rem;
    }

    .achievement-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .achievement-description {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Career Timeline */
    .career-timeline-compact {
        gap: 1.5rem;
    }

    .career-item {
        padding: 1.5rem;
        border-radius: 12px;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .career-year {
        font-size: 0.9rem;
        font-weight: 600;
        color: #4299e1;
        margin-bottom: 0.5rem;
    }

    .career-company {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .career-role {
        font-size: 1rem;
        color: #718096;
        margin-bottom: 1rem;
    }

    .career-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .career-highlight,
    .career-highlights-list {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(66, 153, 225, 0.05);
        border-radius: 8px;
        font-size: 0.9rem;
    }

    /* Creative Activities */
    .creative-activities-content {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .creative-activities-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .creative-activities-list {
        font-size: 0.95rem;
        line-height: 1.7;
        padding-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* About Hero Section */
    .about-home-intro {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 8px;
    }

    .intro-content-wrapper {
        gap: 1.5rem;
    }

    .profile-image-container {
        width: 120px;
        height: 120px;
    }

    /* About Introduction Section */
    .about-intro-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    .intro-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .intro-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Flip Cards */
    .flip-card {
        min-height: 220px;
        max-width: 280px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
    }

    /* Sections */
    .education-section,
    .skills-section,
    .achievements-section,
    .career-section,
    .creative-activities-section {
        margin: 1.5rem 0;
        padding: 1rem;
        border-radius: 8px;
    }

    .japanese-heading {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .heading-japanese {
        font-size: 0.9rem;
    }

    /* Career Timeline */
    .career-item {
        padding: 1rem;
        border-radius: 8px;
    }

    .career-year {
        font-size: 0.85rem;
    }

    .career-company {
        font-size: 1rem;
    }

    .career-role {
        font-size: 0.9rem;
    }

    .career-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .career-highlight,
    .career-highlights-list {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Creative Activities */
    .creative-activities-content {
        padding: 1rem;
        border-radius: 8px;
    }

    .creative-activities-title {
        font-size: 1rem;
    }

    .creative-activities-list {
        font-size: 0.9rem;
        line-height: 1.6;
        padding-left: 1rem;
    }
}

/* iPhone 13 and similar devices (390px and below) */
@media (max-width: 390px) {
    /* Hero Section */
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 80px 0 1rem 0;
    }

    .hero-content {
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 10px;
        min-height: 3rem;
        height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 20px;
        height: 65px;
    }

    .nav-logo h2 {
        font-size: 0.9rem;
        line-height: 1.15;
    }

    .nav-menu {
        top: 65px;
    }

    .nav-link {
        font-size: 1rem;
        padding: 1.1rem 2rem;
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
        padding: 0 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-subtitle,
    .subsection-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Works Grid */
    .works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 15px;
    }

    .work-item {
        min-height: 150px;
    }

    .work-item:nth-child(n) {
        border-radius: 16px;
    }

    .work-image {
        min-height: 120px !important;
    }

    .work-title {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .work-category {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Case Studies */
    .case-studies-section {
        padding: 0 10px;
    }

    .case-studies-carousel-container {
        padding: 0 30px;
        min-height: 400px;
    }

    .case-study-slide {
        width: 100%;
        max-width: 300px;
    }

    .case-study-slide.center {
        transform: translateX(0) scale(1);
    }

    .case-study-slide.left,
    .case-study-slide.right {
        transform: translateX(-80%) scale(0.75);
        opacity: 0.6;
    }

    .case-study-slide.right {
        transform: translateX(80%) scale(0.75);
    }

    .case-study-image {
        height: 180px;
    }

    .case-study-title {
        font-size: 1.2rem;
    }

    .case-study-subtitle {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .case-study-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Creative Works */
    .creative-works-section {
        margin-top: 5rem;
        padding-top: 4rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .creative-works-section::before {
        width: 80px;
    }

    .creative-subheading {
        font-size: 1.3rem;
    }

    .creative-intro {
        font-size: 0.9rem;
    }

    /* Art Carousel */
    .art-carousel {
        margin: 0 -15px;
    }

    .art-slide {
        padding: 1rem;
    }

    .art-image {
        height: 200px;
    }

.art-content {
        padding: 0.8rem 0.8rem 2rem 0.8rem;
    }

    .art-title {
        font-size: 0.9rem;
    }

    .art-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .art-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .art-indicators {
        bottom: 8px;
        padding: 0.4rem 0.8rem;
    }

    /* Video Section (Creative Works thumbnails - mobile) */

    .video-thumbnail {
        padding-top: 56%;
    }

    .video-play-icon {
        font-size: 3.5rem;
    }

    /* Music Links */
    .music-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Modals */
    .modal-content {
        width: 95% !important;
        margin: 1rem auto !important;
        max-height: 90vh !important;
    }

    .freshh-modal,
    .interviewx-modal,
    .insighthub-modal,
    .sugarcrm-modal,
    .oem-modal {
        width: 95% !important;
        height: auto !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }

    .modal-side-by-side {
        flex-direction: column !important;
    }

    .modal-left-side,
    .modal-right-side {
        flex: 1 1 100% !important;
        border: none !important;
    }

    .modal-left-side::before {
        display: none;
    }

    /* Hide carousel on mobile */
    .modal-carousel-section {
        display: none !important;
    }

    .modal-header {
        padding: 1.5rem 1rem 1rem 1rem !important;
        border-bottom: none !important;
    }

    .modal-header h2 {
        font-size: 1.6rem !important;
    }

    .tab-navigation {
        flex-wrap: wrap;
        padding: 0.4rem !important;
        gap: 0.4rem !important;
    }

    .tab-btn {
        font-size: 0.85rem !important;
        padding: 0.7rem 0.8rem !important;
        flex: 1 1 45% !important;
    }

    .tab-content {
        padding: 1rem !important;
        height: auto !important;
        max-height: none !important;
    }

    .content-grid {
        gap: 1rem !important;
    }

    .content-card {
        padding: 1.2rem !important;
    }

    .feature-item {
        padding: 0.9rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .process-step {
        padding: 1rem !important;
        gap: 0.8rem !important;
    }

    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }
}

/* ==========================================
   Opening Video Showcase Section
   ========================================== */
.video-showcase.hero-video {
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.video-showcase.hero-video .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.showcase-video {
    width: 100%;
    max-height: 80vh;
    display: block;
    object-fit: cover;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

/* iPhone X and smaller devices (375px and below) */
@media (max-width: 375px) {
    /* Hero Section iPhone X Optimization */
    .hero {
        height: 100vh;
        min-height: 100vh;
        padding: 85px 0 1rem 0;
    }

    .hero-content {
        padding: 0 10px;
        min-height: 300px;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }

    .title-line {
        font-size: inherit;
        word-break: keep-all;
        overflow-wrap: break-word;
        display: block;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        min-height: 2.8rem;
        height: auto;
        padding: 0 0.5rem;
        line-height: 1.4;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
        margin-top: 1.2rem;
    }

    .btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    /* Works Section iPhone X */
    .works-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, minmax(110px, 180px));
        gap: 0.8rem;
        margin: 1.5rem 0;
    }

    .work-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
        border-radius: 16px 16px 8px 8px;
        min-height: 160px;
    }
    
    .work-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        border-radius: 8px 16px 8px 16px;
        min-height: 130px;
    }
    
    .work-item:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
        border-radius: 16px 8px 16px 8px;
        min-height: 150px;
    }
    
    .work-item:nth-child(4) {
        grid-column: 1;
        grid-row: 4;
        border-radius: 8px 8px 16px 16px;
        min-height: 140px;
    }
    
    .work-item:nth-child(5) {
        grid-column: 1;
        grid-row: 5;
        border-radius: 16px 16px 8px 8px;
        min-height: 160px;
    }
    
    .work-item:nth-child(6) {
        grid-column: 1;
        grid-row: 6;
        border-radius: 8px 8px 16px 16px;
        min-height: 120px;
    }

    .work-item:nth-child(1) .work-image {
        min-height: 120px;
    }
    
    .work-item:nth-child(2) .work-image {
        min-height: 90px;
    }
    
    .work-item:nth-child(3) .work-image {
        min-height: 110px;
    }
    
    .work-item:nth-child(4) .work-image {
        min-height: 100px;
    }
    
    .work-item:nth-child(5) .work-image {
        min-height: 120px;
    }
    
    .work-item:nth-child(6) .work-image {
        min-height: 80px;
    }

    .work-title {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    /* About Me Page iPhone X */
    .about-home-intro {
        margin: 0.8rem 0;
        padding: 0.8rem;
        border-radius: 8px;
    }

    .intro-content-wrapper {
        gap: 1.2rem;
    }

    .profile-image-container {
        width: 100px;
        height: 100px;
    }

    .about-intro-section {
        margin: 1.2rem 0;
        padding: 0.8rem;
    }

    .intro-title {
        font-size: 1.3rem;
        line-height: 1.1;
    }

    .intro-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* Flip Cards iPhone X */
    .flip-cards-container {
        gap: 1.2rem;
        padding: 0.3rem;
        max-width: 300px;
    }

    .flip-card {
        height: 260px;
        min-height: 260px;
        max-width: 280px;
    }
    
    .flip-card-front, .flip-card-back {
        padding: 1.2rem 0.8rem;
        border-radius: 10px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }

    .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .card-subtitle {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .card-back-title {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .card-back-intro {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.6rem;
    }

    .card-back-list {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .card-back-list li {
        margin-bottom: 0.3rem;
        padding-left: 0.8rem;
    }

    /* Sections iPhone X */
    .education-section,
    .skills-section,
    .achievements-section,
    .career-section,
    .creative-activities-section {
        margin: 1.2rem 0;
        padding: 0.8rem;
        border-radius: 8px;
    }

    .japanese-heading {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .heading-japanese {
        font-size: 0.8rem;
    }

    /* Career Timeline iPhone X */
    .career-item {
        padding: 0.8rem;
        border-radius: 6px;
    }

    .career-year {
        font-size: 0.8rem;
    }

    .career-company {
        font-size: 0.9rem;
    }

    .career-role {
        font-size: 0.8rem;
    }

    .career-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .career-highlight,
    .career-highlights-list {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    /* Creative Activities iPhone X */
    .creative-activities-content {
        padding: 0.8rem;
        border-radius: 6px;
    }

    .creative-activities-title {
        font-size: 0.9rem;
    }

    .creative-activities-list {
        font-size: 0.8rem;
        line-height: 1.5;
        padding-left: 0.8rem;
    }

    /* Modal iPhone X */
    .modal-content {
        width: 98% !important;
        max-width: 98% !important;
        margin: 0.3rem auto !important;
        border-radius: 6px !important;
    }

    .modal-body {
        padding: 0.8rem !important;
        gap: 0.8rem !important;
    }

    .modal-body h2 {
        font-size: 1.3rem !important;
        margin-bottom: 0.4rem !important;
    }

    .carousel-slides {
        height: 160px !important;
    }

    .carousel-btn {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.8rem !important;
    }

    .project-description {
        padding: 0.6rem !important;
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* Navigation iPhone X */
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-logo h2 {
        font-size: 0.85rem;
        line-height: 1.15;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }

    /* Case Studies iPhone X */
    .case-studies-carousel-container {
        padding: 0 20px;
        min-height: 350px;
    }

    .case-study-slide {
        width: 100%;
        max-width: 280px;
    }

    .case-study-image {
        height: 160px;
    }

    .case-study-title {
        font-size: 1.1rem;
    }

    .case-study-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Contact Form iPhone X */
    .contact-form {
        padding: 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

/* Extra small devices (320px and below) - iPhone SE, older devices */
@media (max-width: 320px) {
    .hero {
        padding: 80px 0 0.8rem 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        max-width: 240px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .works-grid {
        gap: 0.6rem;
        margin: 1rem 0;
    }

    .work-item:nth-child(n) {
        min-height: 110px;
    }

    .work-title {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .flip-card {
        height: 240px;
        min-height: 240px;
        max-width: 260px;
    }

    .flip-card-front, .flip-card-back {
        padding: 1rem 0.6rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-subtitle {
        font-size: 0.75rem;
    }

    .modal-content {
        width: 99% !important;
        margin: 0.2rem auto !important;
    }

    .modal-body {
        padding: 0.6rem !important;
    }

    .modal-body h2 {
        font-size: 1.2rem !important;
    }

    .carousel-slides {
        height: 140px !important;
    }

    .project-description {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Freshh Modal Mobile Responsive */
    .freshh-modal {
        width: 98% !important;
        max-width: 98% !important;
        margin: 0.3rem auto !important;
        border-radius: 12px !important;
    }

    .freshh-modal .modal-header {
        padding: 1.5rem 1rem 1rem 1rem !important;
    }

    .freshh-modal .modal-header h2 {
        font-size: 1.8rem !important;
    }

    .freshh-modal .project-subtitle {
        font-size: 1rem !important;
    }

    .modal-carousel-section {
        padding: 1rem !important;
    }

    .freshh-modal .carousel-slides {
        height: 200px !important;
        border-radius: 12px !important;
    }

    .tab-navigation {
        margin: 1rem 1rem 0.5rem 1rem !important;
        padding: 0.3rem !important;
        gap: 0.3rem !important;
    }

    .tab-btn {
        padding: 0.8rem 0.5rem !important;
        font-size: 0.8rem !important;
    }

    .tab-content {
        padding: 0 1rem 1.5rem 1rem !important;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .content-card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }

    .card-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .content-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .content-card p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }

    .card-highlight {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .tech-stack-section {
        padding: 1.5rem !important;
        border-radius: 12px !important;
        margin-top: 1rem !important;
    }

    .tech-stack-section h3 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .tech-badges {
        gap: 0.5rem !important;
    }

    .tech-badge {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }

    .process-timeline {
        gap: 1rem !important;
    }

    .process-step {
        padding: 1.5rem !important;
        border-radius: 12px !important;
        gap: 1rem !important;
    }

    .step-number {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    .step-content h4 {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .step-content p {
        font-size: 0.9rem !important;
    }

    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
        gap: 1rem !important;
    }

    .result-card {
        padding: 1.5rem !important;
        border-radius: 12px !important;
    }

    .result-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem !important;
    }

    .result-card h3 {
        font-size: 1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .result-value {
        font-size: 1.5rem !important;
        margin-bottom: 0.4rem !important;
    }

    .result-card p {
        font-size: 0.8rem !important;
    }
}

/* Force close button positioning - highest priority */
.modal .close,
.modal-content .close,
span.close {
    position: absolute !important;
    right: 1rem !important;
    top: 1rem !important;
    left: auto !important;
    color: #718096 !important;
    font-size: 1.5rem !important;
    font-weight: normal !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 1000 !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) !important;
    line-height: 1 !important;
    user-select: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}
