:root {
    --primary: #4F6D7A;
    --secondary: #A14A4A;
    --accent: #33CCAF;
    --background: #FFFFFF;
    --surface: #F4F6F8;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-on-primary: #FFFFFF;
    --divider: #E0E0E0;
    --onyomi: #40C4FF;
    --kunyomi: #33CCAF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--surface) 0%, #e8eef2 100%);
    opacity: 0.5;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(79, 109, 122, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(51, 204, 175, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(161, 74, 74, 0.05) 0%, transparent 50%);
}

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

.header {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #3d5562 100%);
    text-align: center;
    color: var(--text-on-primary);
    backdrop-filter: blur(10px);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 0L50 50L0 100" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/><path d="M50 0L100 50L50 100" stroke="rgba(255,255,255,0.03)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
}



.header-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.header-subtitle {
    font-size: 0.5rem;
    font-weight: 200;
    margin-bottom: 10px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.header-name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.header-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-on-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link i {
    width: 18px;
    height: 18px;
}

.main-content {
    position: relative;
    z-index: 1;
    padding: 60px 0;
}

.section {
    background-color: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 30px;
}

.section-title i {
    width: 32px;
    height: 32px;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-card {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.info-card-title i {
    width: 20px;
    height: 20px;
}

.info-card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.about-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    width: 100px;
    height: 100px;
    color: var(--text-on-primary);
    opacity: 0.7;
}

.app-card {
    background-color: var(--background);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 20px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    overflow: visible;
}

/* App-specific color theming */
.app-card .app-title {
    color: var(--primary-color, var(--primary));
}

.app-card .tech-tag {
    background-color: var(--accent-color, var(--accent));
    color: white;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.app-content {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.app-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background-color: var(--surface);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.app-year {
    background-color: var(--primary);
    color: var(--text-on-primary);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.app-description {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-primary);
}

.feature-item i {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.app-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
}

.store-btn {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-btn:hover {
    transform: translateY(-2px);
}

.store-badge {
    height: 50px;
    width: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(79, 109, 122, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 109, 122, 0.4);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-2px);
}

.app-screenshots {
    position: relative;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-btn:hover {
    background-color: var(--primary-color, var(--primary));
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.carousel-btn-prev {
    left: 2px;
}

.carousel-btn-next {
    right: 2px;
}

.carousel-track {
    background: none;
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.screenshot {
    width: auto;
    height: 304px;
    max-width: 176px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.screenshot:hover {
    transform: scale(1.05);
}


.skills-section {
    background: none;
    margin-bottom: 30px;
    /* background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%); */
}

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

.skill-category {
    background-color: var(--background);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.skill-category-title i {
    width: 24px;
    height: 24px;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-on-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: default;
}

.skill-pill:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(51, 204, 175, 0.3);
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.contact-section {
    text-align: center;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 32px;
    background-color: var(--surface);
    border-radius: 12px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 140px;
}

.contact-link:hover {
    background-color: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-link i {
    width: 32px;
    height: 32px;
}

.footer {
    background-color: var(--primary);
    color: var(--text-on-primary);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-on-primary);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 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.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background);
    margin: 10% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--divider);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--surface);
    color: var(--primary);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }

    .header-description {
        font-size: 1rem;
    }

    .nav {
        gap: 15px;
    }

    .section {
        padding: 24px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        width: 200px;
        height: 200px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .app-content {
        padding: 24px;
    }

    .app-screenshots {
        min-height: 400px;
        padding: 24px 0;
    }

    .screenshot {
        height: 350px;
    }

    .carousel-track {
        padding: 20px 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 60px 0;
    }

    .header-title {
        font-size: 2rem;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-link {
        justify-content: center;
    }

    .section {
        padding: 20px;
        margin-bottom: 24px;
    }

    .app-title {
        font-size: 1.5rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
}