@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho&display=swap');
/* Custom styles */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --bg-rgb: 255, 255, 255;
    --accent-color: #f3f4f6;
    --border-color: #e5e7eb;
    --grid-color: #000;
    --accent-rgb: 147, 51, 234;
    --primary-rgb: 37, 99, 235;
    --secondary-rgb: 124, 58, 237;
    
    /* Gradients & Effects */
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --check-color: rgba(31, 41, 55, 0.03);
    --check-size: 20px;
    
    /* Animations */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #60a5fa;
    --secondary-color: #a78bfa;
    --text-color: #f3f4f6;
    --bg-color: #111827;
    --bg-rgb: 17, 24, 39;
    --accent-color: #1f2937;
    --border-color: #374151;
    --grid-color: #fff;
    --primary-rgb: 96, 165, 250;
    --secondary-rgb: 167, 139, 250;
    
    /* Effects */
    --glass-bg: rgba(31, 41, 55, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: orbFloat 20s infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle at center,
        rgba(var(--primary-rgb), 0.3),
        rgba(var(--primary-rgb), 0.1) 50%,
        transparent 70%);
    animation-delay: -5s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -100px;
    background: radial-gradient(circle at center,
        rgba(var(--secondary-rgb), 0.3),
        rgba(var(--secondary-rgb), 0.1) 50%,
        transparent 70%);
    animation-delay: -10s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center,
        rgba(var(--accent-rgb), 0.2),
        rgba(var(--accent-rgb), 0.1) 50%,
        transparent 70%);
    animation-delay: -15s;
}

.mesh-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    animation: gridMove 20s linear infinite;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(0, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

/* Global Styles */
body {
    font-family: 'Noto Sans JP', 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-fast), color var(--transition-fast);
    line-height: 1.6;
    background-image: 
        linear-gradient(45deg, var(--check-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--check-color) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--check-color) 75%),
        linear-gradient(-45deg, transparent 75%, var(--check-color) 75%);
    background-size: var(--check-size) var(--check-size);
    background-position: 0 0, 0 calc(var(--check-size)/2), calc(var(--check-size)/2) calc(-1 * var(--check-size)/2), calc(-1 * var(--check-size)/2) 0;
    opacity: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background-image: 
        linear-gradient(45deg, var(--check-color) 25%, transparent 25%),
        linear-gradient(-45deg, var(--check-color) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--check-color) 75%),
        linear-gradient(-45deg, transparent 75%, var(--check-color) 75%);
    background-position: 0 0, 0 calc(var(--check-size)/2), calc(var(--check-size)/2) calc(-1 * var(--check-size)/2), calc(-1 * var(--check-size)/2) 0;
    transition: opacity var(--transition-fast);
}

/* Scanline effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 0, 0.025) 50%
    );
    background-size: 100% 4px;
    animation: scanline 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(var(--bg-rgb), 0.8);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    transition: all var(--transition-fast);
    transform: translateY(0);
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
    box-shadow: var(--glass-shadow);
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    background: transparent;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler i {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: transform var(--transition-fast);
}

.navbar-toggler.active i {
    transform: rotate(90deg);
}

.navbar-collapse {
    transition: all var(--transition-fast);
}

.navbar-collapse.show {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
}

.navbar-brand {
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'Shippori Mincho', serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.logo-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.navbar-brand:hover .logo-accent {
    transform: scaleX(1);
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

/* Theme toggle button */
.theme-toggle {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-left: 1rem;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
}

.theme-toggle i {
    position: absolute;
    font-size: 1.2rem;
    transition: all var(--transition-medium);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) rotate(90deg);
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .fa-sun {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) rotate(0deg);
}

[data-theme="dark"] .theme-toggle .fa-moon {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px) rotate(-90deg);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

/* Profile Image*/
.profile-image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 3rem auto;
    border-radius: 50%;
    padding: 8px;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 1;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle-top {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

.line {
    width: 50px;
    height: 2px;
    background: var(--gradient);
    margin-right: 1rem;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

.role-wrapper {
    font-size: 2rem;
    margin-top: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 1;
    transform: translateY(0);
}

.btn {
    padding: 0.8rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    opacity: 1;
    transform: translateY(0);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-color);
    border-radius: 15px;
    position: relative;
    margin-bottom: 1rem;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrow 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: -0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

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

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .role-wrapper {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .navbar-collapse {
        background: var(--glass-bg);
        border: var(--glass-border);
        box-shadow: var(--glass-shadow);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-subtitle-top {
        justify-content: center;
    }
    
    .hero-cta,
    .social-links {
        justify-content: center;
    }
    
    .profile-image-wrapper {
        max-width: 400px;
        margin: 2rem auto;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .role-wrapper {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content {
        padding: 1.5rem;
    }

    .japan-dream {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .social-links {
        justify-content: space-around;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .floating-shapes {
        display: none;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title,
    .hero-description {
        color: black;
    }
    
    .btn,
    .social-icon {
        border: 1px solid #000;
        color: black;
    }
}

/* About Section */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.title-separator {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.about-content {
    padding: 2rem;
    background: var(--accent-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-info {
    margin-bottom: 2rem;
}

.about-info .name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-info .role {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform var(--transition-fast);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 30px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.japan-dream {
    display: flex;
    align-items: center;
    background: var(--gradient);
    padding: 1.5rem;
    border-radius: 15px;
    color: white;
    margin-top: 2rem;
    gap: 1.5rem;
}

.japan-icon {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.japan-dream p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.key-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-item {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 15px;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    z-index: -1;
    transform: rotate(0deg);
    transition: transform var(--transition-slow);
}

.highlight-item:hover {
    transform: translateY(-5px);
}

.highlight-item:hover::before {
    transform: rotate(180deg);
}

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.highlight-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
}

.highlight-item p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
    position: relative;
    opacity: 0.9;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

@keyframes arrow {
    0% { transform: rotate(45deg) translate(-5px, -5px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: rotate(45deg) translate(5px, 5px); opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
        text-align: center;
    }

    .hero-subtitle-top {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .key-highlights {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }
}

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .japan-dream {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Base Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

/* Theme-sensitive elements */
.hero-title .name,
.welcome-text,
.hero-description,
.btn-outline,
.social-icon{
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.navbar-brand,
.nav-link,
.theme-toggle {
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

/* Gradient text effect */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.jp-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* Responsive Design Improvements */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 0.8rem 1rem;
        text-align: center;
        border-radius: 8px;
        transition: all var(--transition-fast);
    }

    .nav-link:hover {
        background: var(--gradient);
        color: white;
    }

    .theme-toggle {
        margin: 1rem auto;
    }

    .hero-section {
        padding-top: 6rem;
    }

    .hero-content {
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-subtitle-top,
    .hero-cta,
    .social-links {
        justify-content: center;
    }

    .profile-image-wrapper {
        max-width: 300px;
        margin: 2rem auto;
    }
}

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

    .role-wrapper {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-content {
        padding: 1.5rem;
    }

    .japan-dream {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.8rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .role-wrapper {
        font-size: 1.1rem;
    }

    .line {
        width: 30px;
    }

    .welcome-text {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Animation Improvements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .theme-toggle,
    .scroll-indicator {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-title,
    .hero-description {
        color: #000;
    }
    .social-links {
        display: none;
    }

    .profile-image-wrapper {
        max-width: 200px;
    }
}

/* About Section Styles - Enhanced Design */
.about-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 80% 30%, rgba(var(--accent-rgb), 0.02) 0%, transparent 40%);
}

.reveal-title {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-divider::before, .section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section-divider::before {
    left: -15px;
}

.section-divider::after {
    right: -15px;
}

.about-card, .skills-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 60%);
    border-radius: 0 16px 0 50%;
    z-index: -1;
}

.about-card::before, .skills-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
    z-index: -1;
    transform: rotate(0deg);
    transition: transform var(--transition-slow);
}

.about-card:hover, .skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-card:hover::before, .skills-card:hover::before {
    transform: rotate(180deg);
}

.about-header, .skills-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.about-icon, .skills-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-icon i, .skills-icon i {
    font-size: 1.5rem;
    color: white;
}

.about-header h3, .skills-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.jp-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.jp-flag {
    font-size: 1.8rem;
    margin-right: 0.8rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.jp-title {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.jp-certificates {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.certificate-card {
    display: flex;
    align-items: center;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    min-width: 200px;
    flex: 1;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--secondary-color);
}

.certificate-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.certificate-icon i {
    color: white;
    font-size: 1.2rem;
}

.certificate-details {
    flex: 1;
}

.certificate-details h5 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.certificate-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-color);
}

.jp-communication {
    display: flex;
    align-items: center;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.jp-communication:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: rgba(var(--bg-rgb), 0.7);
}

.jp-communication i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    transition: transform var(--transition-fast);
}

.jp-communication:hover i {
    transform: scale(1.2);
}

.jp-communication p {
    margin-bottom: 0;
}

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

.skill-category {
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    transition: all var(--transition-fast);
    padding: 0.4rem 0;
    border-radius: 4px;
}

.skill-item:hover {
    transform: translateX(5px);
    background: rgba(var(--bg-rgb), 0.3);
    padding-left: 0.5rem;
}

.skill-item i {
    width: 25px;
    margin-right: 0.5rem;
    color: var(--secondary-color);
    transition: transform var(--transition-fast);
}

.skill-item:hover i {
    transform: scale(1.2);
}

.progress-container {
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skill-progress {
    margin-bottom: 1.2rem;
}

.skill-progress:last-child {
    margin-bottom: 0;
}

.progress {
    height: 10px;
    background-color: rgba(var(--bg-rgb), 0.2);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                               transparent 0%, 
                               rgba(255, 255, 255, 0.4) 50%, 
                               transparent 100%);
    animation: shimmer 2s infinite;
    transform: translateX(-100%);
}

.progress-animate {
    width: 0;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.floating-tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.tech-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float 10s infinite ease-in-out;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.html-icon {
    top: 15%;
    left: 10%;
    color: #E44D26;
    animation-delay: 0s;
}

.css-icon {
    top: 25%;
    right: 15%;
    color: #264DE4;
    animation-delay: 1s;
}

.js-icon {
    bottom: 20%;
    left: 20%;
    color: #F7DF1E;
    animation-delay: 2s;
}

.java-icon {
    top: 40%;
    right: 10%;
    color: #007396;
    animation-delay: 3s;
}

.python-icon {
    bottom: 30%;
    right: 25%;
    color: #3776AB;
    animation-delay: 4s;
}

.jp-text {
    top: 60%;
    left: 15%;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0.7;
    }
    100% {
        transform: translateY(-50%) scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments for About section */
@media (max-width: 1200px) {
    .about-section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .floating-tech-icons {
        opacity: 0.1;
    }
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .jp-certificates {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .certificate-card {
        min-width: 180px;
        flex: 1 1 calc(50% - 1rem);
    }
    
    .reveal-left, .reveal-right {
        animation-delay: 0.3s;
    }
    
    .about-card, .skills-card {
        margin-bottom: 2rem;
    }
    
    .floating-tech-icons {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }
    
    .about-card, .skills-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .jp-title {
        font-size: 1.2rem;
    }
    
    .certificate-card {
        padding: 0.8rem;
    }
    
    .certificate-icon {
        font-size: 1.5rem;
    }
    
    .skill-category {
        padding: 1.2rem;
    }
    
    .category-header i {
        font-size: 1.3rem;
    }
    
    .about-header h3, .skills-header h3 {
        font-size: 1.4rem;
    }
    
    .about-icon, .skills-icon {
        width: 40px;
        height: 40px;
    }
    
    .about-icon i, .skills-icon i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 3rem 0;
    }
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-divider::before, .section-divider::after {
        display: none;
    }
    
    .about-card, .skills-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .jp-certificates {
        gap: 0.8rem;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
    }
    
    .certificate-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .jp-communication {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0.5rem;
    }
    
    .jp-communication i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header i {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .skill-item {
        justify-content: center;
    }
    
    .skill-progress {
        margin-bottom: 1.5rem;
    }
    
    .about-header, .skills-header {
        flex-direction: column;
        text-align: center;
    }
    
    .about-icon, .skills-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .jp-header {
        flex-direction: column;
        text-align: center;
    }
    
    .jp-flag {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

}

/* Skills & Certifications Section */
.skills-certifications-section {
    position: relative;
    padding: 6rem 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 20% 80%, rgba(var(--accent-rgb), 0.02) 0%, transparent 40%);
}

.reveal-fade {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item:nth-child(1) {
    animation-delay: 0s;
}

.reveal-item:nth-child(2) {
    animation-delay: 0s;
}

.reveal-item:nth-child(3) {
    animation-delay: 0s;
}

.section-subtitle {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.subtitle-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.subtitle-icon i {
    font-size: 1.5rem;
    color: white;
}

.section-subtitle h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card-based Certifications */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.cert-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--cert-java-color) 0%, #FF8942 100%);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
    transform: scale(1.05);
}

#javainner{
    height: 500px;
}
#javaimg{
    height:100%;
    width: auto;
}

#n5n4inner{
    height: 500px;
}
#n5n4img{
    height: 100%;
    width: auto;
    margin-left: 20px;
}
#n3n2inner{
    height: 500px;
}
#n3n2img{
    height: 100%;
    margin-left: 20px;
}
.cert-icon.jlpt {
    background: linear-gradient(135deg, var(--cert-jlpt-color) 0%, #FF5757 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.cert-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.cert-card:hover h4 {
    color: var(--secondary-color);
}

.cert-id {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    background: rgba(var(--accent-rgb), 0.05);
    border-radius: 50px;
    display: inline-block;
}

.cert-score {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cert-score i, .cert-score .jp-flag {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.cert-brief {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1.5rem;
}

.cert-details-btn {
    padding: 0.7rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cert-details-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: all 0.5s ease;
}

.cert-details-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cert-details-btn:hover::before {
    left: 100%;
}

/* Responsive adjustments for certification cards */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
    
    .cert-card {
        padding: 1.5rem;
    }
    
    .cert-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    
    .cert-card h4 {
        font-size: 1.3rem;
    }
    #n5n4inner{
    height: 400px;
    }
    #javainner{
    height: 400px;
    }
}

@media (max-width: 576px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    #n5n4inner{
    height: 300px;
    }
    #javainner{
    height: 300px;
}
}

/* Orbital Skills Animation */
.skills-orbit-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-orbit-center {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-center-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

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

.orbit-path {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(var(--accent-rgb), 0.2);
}

.orbit-path-1 {
    width: 200px;
    height: 200px;
    animation: rotate-orbit 25s linear infinite;
}

.orbit-path-2 {
    width: 280px;
    height: 280px;
    animation: rotate-orbit-reverse 30s linear infinite;
}

.orbit-path-3 {
    width: 360px;
    height: 360px;
    animation: rotate-orbit 35s linear infinite;
}

@keyframes rotate-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-orbit-reverse {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.skill-orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle))) translateX(calc(var(--orbit-path) * 50px + 50px));
    z-index: 5;
}

.orbit-skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transform: rotate(calc(-1 * var(--orbit-angle)));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-orbit-item:nth-child(n+6):nth-child(-n+10) .orbit-skill-icon {
    color: var(--orbit1-color);
}

.skill-orbit-item:nth-child(n+11):nth-child(-n+14) .orbit-skill-icon {
    color: var(--orbit2-color);
}

.skill-orbit-item:nth-child(n+15) .orbit-skill-icon {
    color: var(--orbit3-color);
}

.skill-orbit-item:hover .orbit-skill-icon {
    transform: rotate(calc(-1 * var(--orbit-angle))) scale(1.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.skills-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Certificate Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal.show {
    display: block;
    opacity: 1;
}

.certificate-modal-content {
    position: relative;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
}

.certificate-modal.show .certificate-modal-content {
    transform: translateY(0);
    opacity: 1;
}

.certificate-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
}

.certificate-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.certificate-modal-body {
    padding: 2rem;
}

.certificate-details {
    display: none;
}

.certificate-details.active {
    display: block;
    animation: fadeIn 0.5s forwards;
}

.certificate-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.certificate-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 2rem;
    color: white;
}

.certificate-logo.jlpt {
    background: linear-gradient(135deg, #D71718 0%, #FF5757 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.certificate-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.certificate-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(var(--bg-rgb), 0.5);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.certificate-image img{
    height: 300px;
    width: 400px;
}

.certificate-placeholder.jlpt-placeholder {
    color: #D71718;
}

.certificate-message {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 2rem;
    position: relative;
    padding: 0 1.5rem;
}

.certificate-message i.fa-quote-left {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    opacity: 0.5;
}

.certificate-message i.fa-quote-right {
    position: absolute;
    right: 0;
    bottom: 0;
    color: var(--secondary-color);
    opacity: 0.5;
}

.certificate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.certificate-meta-item {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(var(--accent-rgb), 0.05);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
}

.certificate-meta-item i {
    margin-right: 0.8rem;
    color: var(--secondary-color);
}

/* Responsive adjustments for Skills & Certifications section */
@media (max-width: 1200px) {
    .skills-orbit-container {
        height: 350px;
    }
    
    .orbit-path-1 {
        width: 180px;
        height: 180px;
    }
    
    .orbit-path-2 {
        width: 250px;
        height: 250px;
    }
    
    .orbit-path-3 {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 992px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-orbit-container {
        height: 400px;
        margin-top: 2rem;
    }
    
    .certificate-modal-content {
        width: 90%;
    }
    
    .certificate-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .skills-certifications-section {
        padding: 4rem 0;
    }
    
    .section-subtitle h3 {
        font-size: 1.5rem;
    }
    
    .subtitle-icon {
        width: 40px;
        height: 40px;
    }
    
    .subtitle-icon i {
        font-size: 1.2rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-orbit-container {
        height: 350px;
    }
    
    .orbit-path-1 {
        width: 160px;
        height: 160px;
    }
    
    .orbit-path-2 {
        width: 220px;
        height: 220px;
    }
    
    .orbit-path-3 {
        width: 280px;
        height: 280px;
    }
    
    .orbit-skill-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .certificate-header h3 {
        font-size: 1.5rem;
    }
    
    .certificate-message {
        font-size: 1rem;
    }
    
    .skills-legend {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .section-subtitle {
        flex-direction: column;
        text-align: center;
    }
    
    .subtitle-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .certificate-header {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .certificate-meta-item {
        width: 100%;
    }
    
    .skills-orbit-container {
        height: 300px;
    }
    
    .orbit-path-1 {
        width: 140px;
        height: 140px;
    }
    
    .orbit-path-2 {
        width: 200px;
        height: 200px;
    }
    
    .orbit-path-3 {
        width: 260px;
        height: 260px;
    }
}

/* Enhanced Card-based Certifications */
:root {
    --cert-java-color: #F80000;
    --cert-jlpt-color: #D71718;
    --cert-fullstack-color: #0078D7;
    --card-flip-duration: 0.8s;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.cert-card {
    height: 300px;
    perspective: 1500px;
    cursor: pointer;
}

.cert-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform var(--card-flip-duration) cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

.cert-card:hover .cert-card-inner {
    transform: rotateY(180deg);
}

.cert-card-front, .cert-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cert-card-front {
    background: var(--glass-bg);
    border: var(--glass-border);
}

.cert-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, transparent 100%);
    z-index: 0;
}

.cert-card-back {
    background: var(--glass-bg);
    border: var(--glass-border);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cert-card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1) 0%, transparent 100%);
    z-index: 0;
}

.cert-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: white;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--cert-java-color) 0%, #FF8942 100%);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
    transform: scale(1.05);
}

.cert-icon.jlpt {
    background: linear-gradient(135deg, var(--cert-jlpt-color) 0%, #FF5757 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
}

.cert-card:nth-child(4) .cert-icon {
    background: linear-gradient(135deg, var(--cert-fullstack-color) 0%, #00B2FF 100%);
}

.cert-card-front h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cert-card:hover .cert-card-front h4 {
    transform: translateY(-5px);
}

.cert-id {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.9;
    position: relative;
    z-index: 1;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-rgb), 0.05);
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.cert-card:hover .cert-id {
    transform: translateY(-5px);
    background: rgba(var(--accent-rgb), 0.1);
}

.cert-card-back h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.cert-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.cert-score {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.cert-score i, .cert-score .jp-flag {
    margin-right: 0.6rem;
    font-size: 1.1rem;
}

.cert-details-btn {
    padding: 0.7rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cert-details-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: all 0.5s ease;
}

.cert-details-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.cert-details-btn:hover::before {
    left: 100%;
}

/* Certification Showcase - New Design with Images */
.certifications-showcase {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.cert-showcase-item {
    display: flex;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.cert-showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cert-showcase-item:hover::before {
    opacity: 1;
}

.cert-showcase-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.cert-showcase-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cert-logo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-right: 1.5rem;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--cert-java-color) 0%, #FF8942 100%);
    transition: transform 0.3s ease;
}

.cert-showcase-item:hover .cert-logo {
    transform: scale(1.05);
}

.cert-logo.jlpt {
    background: linear-gradient(135deg, var(--cert-jlpt-color) 0%, #FF5757 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.cert-logo.fullstack {
    background: linear-gradient(135deg, var(--cert-fullstack-color) 0%, #00B2FF 100%);
}

.cert-title h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.cert-showcase-item:hover .cert-title h4 {
    color: var(--secondary-color);
}

.cert-id {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
}

.cert-showcase-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cert-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cert-showcase-item:hover .cert-meta-badge {
    background: rgba(var(--accent-rgb), 0.12);
    transform: translateY(-2px);
}

.cert-meta-badge i, .cert-meta-badge .jp-flag {
    margin-right: 0.5rem;
    font-size: 1rem;
    color: var(--secondary-color);
}

.cert-showcase-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.cert-showcase-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.cert-view-btn {
    align-self: flex-start;
    padding: 0.7rem 1.5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cert-view-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: all 0.5s ease;
}

.cert-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cert-view-btn:hover::before {
    left: 100%;
}

.cert-view-btn i {
    margin-right: 0.5rem;
}

.cert-showcase-image {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.03);
    position: relative;
    overflow: hidden;
    transition: width 0.3s ease;
}

.cert-showcase-item:hover .cert-showcase-image {
    width: 320px;
}

.cert-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.cert-showcase-item:hover .cert-image-container {
    transform: scale(1);
}

.cert-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.cert-showcase-item:hover .cert-image-container img {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for certification showcase */
@media (max-width: 992px) {
    .cert-showcase-item {
        flex-direction: column;
    }
    
    .cert-showcase-image {
        width: 100%;
        height: 200px;
    }
    
    .cert-showcase-item:hover .cert-showcase-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cert-showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cert-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cert-showcase-details {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .cert-meta-badge {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cert-showcase-content {
        padding: 1.5rem;
    }
    
    .cert-showcase-image {
        height: 180px;
    }
    
    .cert-view-btn {
        width: 100%;
        text-align: center;
    }
}

/* Simple Certification Cards */
.cert-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-simple-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    width: calc(50% - 0.75rem);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.cert-simple-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.05) 0%, transparent 100%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.cert-simple-card:hover::before {
    opacity: 1;
}

.cert-simple-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-right: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, var(--cert-java-color) 0%, #FF8942 100%);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.cert-simple-card:hover .cert-simple-icon {
    transform: scale(1.05);
}

.cert-simple-icon.jlpt {
    background: linear-gradient(135deg, var(--cert-jlpt-color) 0%, #FF5757 100%);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
}

.cert-simple-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.cert-simple-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.cert-simple-card:hover .cert-simple-content h4 {
    color: var(--secondary-color);
}

.cert-simple-content p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
}

/* Responsive adjustments for certification cards */
@media (max-width: 992px) {
    .cert-simple-card {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .cert-simple-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .cert-simple-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Certification Cards with Images */
:root {
    /* Update certification colors to match portfolio palette */
    --cert-java-color: #3498db;
    --cert-jlpt-color: #6c5ce7;
    --cert-fullstack-color: #00b894;
}

.cert-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cert-card-with-image {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.cert-card-with-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cert-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: rgba(var(--accent-rgb), 0.05);
}

.cert-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cert-card-with-image:hover .cert-card-image img {
    transform: scale(1.05);
}

.cert-card-image.placeholder-image {
    background-color: rgba(var(--accent-rgb), 0.1);
}

.cert-card-image.placeholder-image img {
    object-fit: contain;
    padding: 20px;
}

.cert-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.4));
    z-index: 1;
}

.cert-card-body {
    padding: 1.5rem;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    position: absolute;
    top: -30px;
    right: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: transform 0.3s ease;
}

.cert-card-with-image:hover .cert-card-icon {
    transform: scale(1.1);
}

.cert-card-icon.java {
    background: linear-gradient(135deg, var(--cert-java-color), #2980b9);
}

.cert-card-icon.jlpt {
    background: linear-gradient(135deg, var(--cert-jlpt-color), #5f27cd);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.cert-card-icon.fullstack {
    background: linear-gradient(135deg, var(--cert-fullstack-color), #00a884);
}

.cert-card-body h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    padding-right: 60px;
}

.cert-card-with-image:hover .cert-card-body h4 {
    color: var(--secondary-color);
}

.cert-card-body p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
}

/* Responsive adjustments for certification cards */
@media (max-width: 992px) {
    .cert-cards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .cert-cards-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cert-card-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .cert-card-body {
        padding: 1.2rem;
    }
    
    .cert-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: -25px;
        right: 15px;
    }
    
    .cert-card-body h4 {
        font-size: 1.2rem;
        padding-right: 50px;
    }
}

/* Certification Cards - Loading Fixes */
.cert-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: rgba(var(--accent-rgb), 0.05);
}

.cert-card-image.loading {
    position: relative;
}

.cert-card-image.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--accent-rgb), 0.08);
    z-index: 2;
}

.cert-card-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid rgba(var(--accent-rgb), 0.2);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 3;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cert-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Prevent FOUC (Flash of Unstyled Content) */
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.cert-card-image.loading img {
    opacity: 0;
}

.cert-card-image.placeholder-image {
    background-color: rgba(var(--accent-rgb), 0.08);
}

.cert-card-image.placeholder-image img {
    object-fit: contain;
    padding: 20px;
    opacity: 0.7;
}

/* Optimize page loading */
.cert-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    contain: layout style;
}

.cert-card-with-image {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    contain: content;
    will-change: transform;
}

/* Japanese Certificates in About Section - Fixed */
.language-proficiency {
    background: rgba(var(--bg-rgb), 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
}

.jp-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
}

.jp-flag {
    font-size: 1.5rem;
    margin-right: 0.8rem;
}

.jp-title {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.jp-certificates {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.about-certificate-card {
    display: flex;
    align-items: center;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--primary-color);
    min-width: 200px;
    flex: 1;
}

.about-certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--secondary-color);
}

.about-certificate-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.about-certificate-icon i {
    color: white;
    font-size: 1.2rem;
}

.about-certificate-details {
    flex: 1;
}

.about-certificate-details h5 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.about-certificate-details p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-color);
}

.jp-communication {
    display: flex;
    align-items: center;
    background: rgba(var(--bg-rgb), 0.5);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.jp-communication:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.jp-communication i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.jp-communication p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .jp-certificates {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .about-certificate-card {
        min-width: 180px;
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 576px) {
    .jp-certificates {
        flex-direction: column;
    }
    
    .about-certificate-card {
        width: 100%;
    }
}

/* Projects Section Styles */
.projects-section {
    position: relative;
    background: var(--bg-color);
    padding: 5rem 0;
    overflow: hidden;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    z-index: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 0.8rem;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.project-card:hover .project-title::after {
    width: 80px;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-2px);
}

.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
}

.project-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.demo-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--accent-rgb), 0.3);
}

.demo-btn:hover {
    box-shadow: 0 6px 15px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-2px);
    color: white;
}

.github-btn {
    background: rgba(var(--bg-rgb), 0.8);
    color: var(--text-color);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.github-btn:hover {
    background: rgba(var(--bg-rgb), 0.9);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Project animations */
.reveal-fade[data-delay="0.1"] {
    animation-delay: 0.1s;
}

.reveal-fade[data-delay="0.2"] {
    animation-delay: 0.3s;
}

.reveal-fade[data-delay="0.3"] {
    animation-delay: 0.5s;
}

/* Responsive adjustments for projects */
@media (max-width: 992px) {
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Enhanced Projects Section Styles */
.projects-section {
    position: relative;
    background: var(--bg-color);
    padding: 6rem 0;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: transform 0.5s cubic-bezier(0.175, 0, 0.32, 1.275), 
                box-shadow 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: rgba(var(--accent-rgb), 0.05);
}

.project-image.loading {
    position: relative;
}

.project-image.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--accent-rgb), 0.08);
    z-index: 2;
}

.project-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--accent-rgb), 0.2);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 3;
    animation: spin 1s linear infinite;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 0.5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 1;
}

.project-image.loading img {
    opacity: 0;
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(1deg);
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
}

.project-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(var(--accent-rgb), 0.03) 0%, 
                transparent 50%, 
                rgba(var(--accent-rgb), 0.03) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--secondary-color);
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-card:hover .project-title::after {
    width: 100px;
}

.project-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    margin-top: auto;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--secondary-color);
    transition: all 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.project-card:hover .tech-tag {
    background: rgba(var(--accent-rgb), 0.15);
}

.project-card:hover .tech-tag:nth-child(odd) {
    transform: translateY(-3px);
}

.project-card:hover .tech-tag:nth-child(even) {
    transform: translateY(-5px);
}

.project-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 100%);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-btn:hover::before {
    transform: translateX(0);
}

.project-btn i {
    margin-right: 0.6rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

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

.demo-btn {
    background: var(--gradient);
    color: white;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.demo-btn:hover {
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-3px);
    color: white;
}

.github-btn {
    background: rgba(var(--bg-rgb), 0.8);
    color: var(--text-color);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.github-btn:hover {
    background: rgba(var(--bg-rgb), 0.9);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Project animations */
.reveal-fade[data-delay="0.1"] {
    animation-delay: 0.1s;
}

.reveal-fade[data-delay="0.2"] {
    animation-delay: 0.3s;
}

.reveal-fade[data-delay="0.3"] {
    animation-delay: 0.5s;
}

/* Responsive adjustments for projects */
@media (max-width: 992px) {
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .project-image {
        height: 220px;
    }
    
    .project-card {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 576px) {
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Project Image Loading Fixes */
.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: rgba(var(--accent-rgb), 0.05);
}

.project-image.loading {
    position: relative;
}

.project-image.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--accent-rgb), 0.08);
    z-index: 2;
}

.project-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(var(--accent-rgb), 0.2);
    border-top: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 3;
    animation: spin 1s linear infinite;
}

.project-image.placeholder-image {
    background-color: rgba(var(--accent-rgb), 0.08);
}

.project-image.placeholder-image img {
    object-fit: contain;
    padding: 20px;
    opacity: 0.7;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6));
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.3s ease;
}

.project-image.loading img {
    opacity: 0;
}

/* Fix for the blinking issue */
.project-card {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
}

/* Optimize page loading */
.projects-container {
    contain: layout style;
}

.project-card {
    contain: content;
}

/* Enhanced Projects Section Header */
.projects-section {
    position: relative;
    background: var(--bg-color);
    padding: 6rem 0;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%),
                radial-gradient(circle at 90% 80%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.projects-section .section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.projects-section .highlight-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.projects-section .highlight-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transform: scaleX(0.7);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.projects-section .section-title:hover .highlight-text::after {
    transform: scaleX(1);
}

.projects-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: 0.9;
}

.projects-header {
    position: relative;
    height: 80px;
    margin-bottom: 2rem;
}

.floating-tech-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: absolute;
    animation: float 3s ease-in-out infinite;
}

.tech-badge i {
    transition: transform 0.3s ease;
}

.tech-badge:hover i {
    transform: scale(1.2);
}

.java-badge {
    background: linear-gradient(135deg, #5382a1, #1565c0);
    top: 10px;
    left: calc(50% - 150px);
    animation-delay: 0s;
}

.python-badge {
    background: linear-gradient(135deg, #4584b6, #ffde57);
    top: -10px;
    left: calc(50% - 75px);
    animation-delay: 0.5s;
}

.js-badge {
    background: linear-gradient(135deg, #f7df1e, #e6a329);
    top: 0;
    left: 50%;
    animation-delay: 1s;
}

.react-badge {
    background: linear-gradient(135deg, #61dafb, #2a5298);
    top: -10px;
    left: calc(50% + 75px);
    animation-delay: 1.5s;
}

.database-badge {
    background: linear-gradient(135deg, #00758f, #f29111);
    top: 10px;
    left: calc(50% + 150px);
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@media (max-width: 768px) {
    .projects-section .section-title {
        font-size: 2.2rem;
    }
    
    .projects-header {
        height: 60px;
    }
    
    .tech-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .java-badge {
        left: calc(50% - 100px);
    }
    
    .python-badge {
        left: calc(50% - 50px);
    }
    
    .react-badge {
        left: calc(50% + 50px);
    }
    
    .database-badge {
        left: calc(50% + 100px);
    }
}

@media (max-width: 576px) {
    .projects-section .section-title {
        font-size: 2rem;
    }
    
    .projects-section .section-subtitle {
        font-size: 1rem;
    }
    
    .tech-badge {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .java-badge {
        left: calc(50% - 80px);
    }
    
    .python-badge {
        left: calc(50% - 40px);
    }
    
    .react-badge {
        left: calc(50% + 40px);
    }
    
    .database-badge {
        left: calc(50% + 80px);
    }
}

/* Enhanced Page Transitions */
body {
    opacity: 1;
    animation: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Section transitions */
section {
    opacity: 1;
    transform: none;
}

section.visible {
    opacity: 1;
    transform: none;
}

/* Improved reveal animations */
.reveal-fade {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal-fade.active {
    opacity: 1;
    transform: none;
}

.reveal-title {
    overflow: hidden;
}

.reveal-title h2,
.reveal-title p {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal-title.active h2,
.reveal-title.active p {
    opacity: 1;
    transform: none;
}

/* Page transition overlay */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    transform: translateY(100%);
    pointer-events: none;
}

.page-transition.active {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

.page-transition.exit {
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Mobile Responsiveness Improvements */
@media (max-width: 992px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.1rem;
    }
    
    .about-content {
        padding: 2rem;
    }
    
    .about-image {
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-image {
        margin-top: 3rem;
        text-align: center;
    }
    
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .floating-tech-badges {
        transform: scale(0.8);
    }
    
    .tech-badge {
        transform: scale(0.9);
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1.2rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .tech-stack-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .floating-tech-badges {
        transform: scale(0.7);
    }
    
    .tech-badge {
        transform: scale(0.8);
    }
    
    .footer {
        padding: 2rem 0;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .project-card:hover .project-image img {
        transform: scale(1.05);
    }
    
    .project-card:active .project-image img {
        transform: scale(1.1);
    }
    
    .tech-stack-tag:active {
        transform: translateY(-3px);
    }
    
    .btn:active {
        transform: translateY(-2px);
    }
}

/* Mobile Viewport Fixes */
@viewport {
    width: device-width;
    zoom: 1.0;
}

@-ms-viewport {
    width: device-width;
}

/* Fix for mobile viewport */
html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Ensure proper sizing */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile-first media queries */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Fix for mobile hero section */
@media (max-width: 767px) {
    .hero-section {
        padding: 4rem 0 2rem;
        text-align: center;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-image {
        margin: 2rem auto 0;
        max-width: 280px;
    }
    
    .hero-image img {
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 220px;
    }
    
    .hero-social {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .floating-tech {
        transform: scale(0.8);
        top: 20%;
    }
}

/* Fix for mobile projects section */
@media (max-width: 767px) {
    .projects-section {
        padding: 3rem 0;
    }
    
    .projects-section .section-title {
        font-size: 1.8rem;
    }
    
    .projects-header {
        height: 60px;
    }
    
    .floating-tech-badges {
        transform: scale(0.7);
    }
    
    .projects-container {
        display: block;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
        width: 100%;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .project-description {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-stack {
        flex-wrap: wrap;
        margin-bottom: 0.8rem;
    }
    
    .tech-stack-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin-right: 0.3rem;
        margin-bottom: 0.3rem;
    }
    
    .project-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-buttons .btn {
        margin: 0.3rem 0;
        width: 100%;
        text-align: center;
    }
}

/* Fix for very small screens */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .floating-tech-badges {
        transform: scale(0.6);
    }
    
    .tech-badge {
        width: 35px;
        height: 35px;
    }
    
    .project-image {
        height: 160px;
    }
}

/* Fix for mobile navigation */
@media (max-width: 767px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-collapse {
        background: var(--bg-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 10px 10px;
        padding: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
}

/* Fix for mobile animations */
@media (max-width: 767px) {
    .reveal-fade {
        opacity: 1;
        transform: none;
    }
    
    section {
        opacity: 1;
        transform: none;
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0) rotate(0deg);
        }
        50% {
            transform: translateY(-5px) rotate(3deg);
        }
    }
}

/* Contact Section Styles */
.contact-section {
    position: relative;
    background: var(--bg-color);
    padding: 6rem 0;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%),
                radial-gradient(circle at 10% 90%, rgba(var(--accent-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.contact-info-container,
.contact-form-container {
    height: 100%;
}

.contact-card {
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 90% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
    z-index: -1;
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.contact-header p {
    color: var(--text-color);
    opacity: 0.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-right: 1rem;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.contact-text a,
.contact-text p {
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.social-links-container {
    margin-bottom: 2rem;
}

.social-links-container h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.github {
    background: linear-gradient(135deg, #333333, #24292e);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077B5, #0e76a8);
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0c85d0);
}

.resume-download {
    text-align: center;
}

.btn-resume {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    width: 100%;
    max-width: 250px;
}

.btn-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
    color: white;
}

.btn-resume i {
    font-size: 1.1rem;
}

/* Contact Form Styles */
.contact-form {
    background: var(--glass-bg);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    border: var(--glass-border);
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 90%, rgba(var(--secondary-rgb), 0.05) 0%, transparent 70%);
    z-index: -1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.3);
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-submit i {
    font-size: 1.1rem;
}

/* Mobile Responsive Styles for Contact Section */
@media (max-width: 992px) {
    .contact-card,
    .contact-form {
        padding: 2rem;
    }
    
    .contact-header h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .contact-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-header h3 {
        font-size: 1.4rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .btn-resume,
    .btn-submit {
        padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .contact-header h3 {
        font-size: 1.3rem;
    }
    
    .contact-text h4 {
        font-size: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .resume-download {
        margin-top: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--accent-color);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.03) 0%, transparent 60%),
                radial-gradient(circle at 90% 90%, rgba(var(--secondary-rgb), 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.footer-links h4,


.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-color);
    opacity: 0.8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: translateX(5px);
}





.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
}

/* Mobile Responsive Styles for Footer */
@media (max-width: 992px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-brand,
    .footer-links,
    
    
    .footer-links ul li a:hover {
        transform: none;
    }
    
   
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-brand h3 {
        font-size: 1.3rem;
    }
    
   
}

#lastquote{
    font-family: "Shippori Mincho", serif;
  font-weight: 400;
  font-style: normal;
}
