/* Font Face Declarations */
@font-face {
    font-family: 'PixelifySans';
    src: url('fonts/static/PixelifySans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySans';
    src: url('fonts/static/PixelifySans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySans';
    src: url('fonts/static/PixelifySans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PixelifySans';
    src: url('fonts/static/PixelifySans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Pixel Stars Background */
.stars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #121212;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1.2rem 0;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    /* Disable text selection for the header */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard Syntax */
    /* Disable drag and drop for the header */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
}

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

.logo {
    flex-shrink: 0;
    margin-left: 60px;
    
}

.logo a {
    color: #5222D0;
    font-size: 2.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.5px;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.logo a:hover {
    color: #A78BFA;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    /* Disable drag and drop for navigation links */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection for navigation links */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.nav-link:hover {
    color: #8B5CF6;
}

.nav-link.active {
    color: #8B5CF6;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8B5CF6;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 60px;
}

.social-icon {
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
    /* Disable drag and drop for social icons */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection for social icons */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.social-icon:hover {
    color: #8B5CF6;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* Enhanced SEO and accessibility for social icons */
.social-icon:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
    border-radius: 4px;
}

.social-icon:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced social icons container for better SEO */
.social-icons {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 60px;
    /* Improved semantic structure */
    list-style: none;
    padding: 0;
}

/* Social icon specific hover effects for better UX */
.social-icon[href*="github"]:hover {
    color: #333;
    background: rgba(51, 51, 51, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

.social-icon[href*="x.com"]:hover,
.social-icon[href*="twitter"]:hover {
    color: #1DA1F2;
    background: rgba(29, 161, 242, 0.1);
    border-radius: 4px;
    padding: 4px;
    margin: -4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Disable text selection for the hero section */
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Standard Syntax */
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.samurai-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: -0rem;
    min-height: 400px;
    justify-content: space-between;
}

.samurai {
    width: 96px;
    height: 96px;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    transform: scale(6);
    overflow: hidden;
    border-radius: 8px;
    padding: 1rem;
}

.samurai.idle {
    background-image: url("images/samurai/s__IDLE.png");
    animation: idle 1s steps(10, end) infinite;
}

.samurai.run {
    background-image: url("images/samurai/s_RUN.png");
    animation: run 1s steps(16) infinite;
}

.samurai.attack {
    background-image: url("images/samurai/s__ATTACK1.png");
    animation: attack 0.35s steps(7, end) infinite;
}

.samurai.click-feedback {
    transform: scale(6.2) !important;
    transition: transform 0.1s ease;
}

.samurai-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.samurai-controls {
    text-align: center;
    color: #8B5CF6;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    width: 100%;
}

/* Samurai Dialogue Box Styles */
.samurai-dialogue-box {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 3px solid #8B5CF6;
    border-radius: 8px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    image-rendering: pixelated;
}

.samurai-dialogue-box.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.dialogue-content {
    position: relative;
}

.dialogue-text {
    color: #ffffff;
    font-family: 'PixelifySans', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.5px;
}

.dialogue-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #8B5CF6;
    border-radius: 50%;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.dialogue-arrow {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #8B5CF6;
}

.dialogue-arrow::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -9px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #1a1a1a;
}

/* Dialogue box animation */
@keyframes dialogue-pulse {
    0% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
    }
    100% {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    }
}

.samurai-dialogue-box.generating {
    animation: dialogue-pulse 2s ease-in-out infinite;
}

@keyframes idle {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -960px;
    }
}

@keyframes run {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -1536px;
    }
}

@keyframes attack {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: -672px;
    }
}

.hero-text {
    max-width: 500px;
}

.greeting {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
    display: flex;
    align-items: center;
}

.typing-text {
    color: #ffffff;
}

.typing-cursor {
    color: #8B5CF6;
    font-weight: 700;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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

.dot {
    color: #8B5CF6;
}

.hero-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.highlight {
    color: #8B5CF6;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    /* Disable drag and drop for buttons */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Disable text selection for buttons */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7B42F6 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: #7C3AED;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #5222D0;
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #1A1A1A;
    transform: translateY(-2px);
}

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



.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
    color: #A78BFA;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #8B5CF6;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: #1e1e1e;
}

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

.about-image {
    order: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(0.8);
}

.about-text {
    order: 2;
}

.about-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.about-location {
    font-size: 1.1rem;
    color: #8B5CF6;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #D1D5DB;
    line-height: 1.7;
}

/* About Statistics */
.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 2rem;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B5CF6;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #9CA3AF;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
}

.skills-header {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    position: relative;
}

.skills-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8B5CF6, #EC4899);
    border-radius: 2px;
}

.skills-intro {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-top: 1rem;
}

.skills-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #374151;
    color: #D1D5DB;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
    border-color: transparent;
    color: #ffffff;
}

.skills-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(auto-fit, 120px);
    gap: 1.5rem;
    max-width: 100%;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card {
    background-color: #1F2937;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #8B5CF6;
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.skill-icon i,
.skill-icon svg {
    color: #8B5CF6;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.3));
}

.skill-card:hover .skill-icon i,
.skill-card:hover .skill-icon svg {
    color: #EC4899;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(236, 72, 153, 0.5));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    display: block;
    margin-top: 0.5rem;
}

/* Skill card animations */
.skill-card {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: skillCardFadeIn 0.6s ease-out forwards;
}

.skill-card.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card.animate-in {
    animation: skillCardFadeIn 0.6s ease-out forwards;
}

@keyframes skillCardFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Smooth grid layout transitions */
.skills-grid {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-grid.filtering {
    opacity: 0.7;
    transform: scale(0.98);
    transition: all 0.2s ease;
}

/* Loading animation for skill cards */
.skill-card.loading {
    animation: skillCardPulse 1.5s ease-in-out infinite;
}

@keyframes skillCardPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Filter button animations */
.filter-btn {
    position: relative;
    overflow: hidden;
}

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

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

.filter-btn.active {
    animation: filterButtonPulse 0.3s ease-out;
}

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

/* Projects Section */
.projects {
    padding: 5rem 0;
    background-color: #111111;
}

/* Projects Carousel Styles */
.projects-carousel-container {
    position: relative;
    margin: 4rem 0;
}

.projects-carousel {
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

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



.projects-track.transitioning {
    pointer-events: none;
}

.projects-track .project-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    min-width: 350px;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects-track .project-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}



/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}



/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    /* background: rgba(139, 92, 246, 0.1); */
    border-radius: 25px;
    /* border: 1px solid rgba(139, 92, 246, 0.2); */
}

.carousel-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(139, 92, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.carousel-indicator:hover::before {
    left: 100%;
}

.carousel-indicator.active {
    background-color: #8B5CF6;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.carousel-indicator:hover {
    background-color: rgba(139, 92, 246, 0.6);
    transform: scale(1.1);
}

/* Carousel Navigation Buttons - Modern Redesign */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(167, 139, 250, 0.95));
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Button inner glow effect */
.carousel-nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.carousel-nav-btn:hover::after {
    opacity: 1;
}

/* Icon styling */
.carousel-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 3;
}

/* Icon glow effect on hover */
.carousel-nav-btn:hover svg {
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.4));
}

.carousel-nav-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 1), rgba(167, 139, 250, 1));
    transform: translateY(-50%) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(139, 92, 246, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-nav-btn:hover svg {
    transform: scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 
        0 4px 16px rgba(139, 92, 246, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-nav-btn:focus {
    outline: none;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 3px rgba(139, 92, 246, 0.3);
}

.carousel-nav-btn-left {
    left: -28px;
}

.carousel-nav-btn-right {
    right: -28px;
}

/* Disable buttons when at boundaries */
.carousel-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.6), rgba(156, 163, 175, 0.6));
    box-shadow: 
        0 4px 16px rgba(107, 114, 128, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.carousel-nav-btn.disabled:hover {
    transform: translateY(-50%) scale(1);
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.6), rgba(156, 163, 175, 0.6));
    box-shadow: 
        0 4px 16px rgba(107, 114, 128, 0.2),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.carousel-nav-btn.disabled svg {
    opacity: 0.6;
    transform: scale(1);
}

/* Ripple effect on click */
.carousel-nav-btn .ripple {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
    z-index: 2;
}

.carousel-nav-btn:active .ripple {
    width: 100px;
    height: 100px;
}

/* Floating animation for buttons */
@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-50%) translateX(-2px); }
}

@keyframes floatRight {
    0%, 100% { transform: translateY(-50%) translateX(0px); }
    50% { transform: translateY(-50%) translateX(2px); }
}

.carousel-nav-btn-left {
    animation: float 3s ease-in-out infinite;
}

.carousel-nav-btn-right {
    animation: floatRight 3s ease-in-out infinite;
}

/* Pause animation on hover */
.carousel-nav-btn:hover {
    animation-play-state: paused;
}

/* Pulse animation when carousel is ready */
@keyframes pulse {
    0%, 100% { 
        box-shadow: 
            0 8px 32px rgba(139, 92, 246, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 8px 32px rgba(139, 92, 246, 0.5),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 0 2px rgba(139, 92, 246, 0.2);
    }
}

.carousel-nav-btn.ready {
    animation: pulse 2s ease-in-out infinite;
}

.carousel-nav-btn.ready:hover {
    animation: none;
}

/* Enhanced focus ring for better accessibility */
.carousel-nav-btn:focus-visible {
    outline: none;
    box-shadow: 
        0 8px 32px rgba(139, 92, 246, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 4px rgba(139, 92, 246, 0.4),
        0 0 0 8px rgba(139, 92, 246, 0.1);
}

/* Tooltip for better UX */
.carousel-nav-btn .tooltip {
    content: attr(aria-label);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
}

.carousel-nav-btn .tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Disable tooltip for disabled buttons */
.carousel-nav-btn.disabled .tooltip {
    display: none;
}

/* Responsive Design for Carousel */
@media (max-width: 1024px) {
    .projects-track .project-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 300px;
    }
}

/* Carousel loading state */
.projects-carousel.loading {
    position: relative;
    min-height: 400px;
}

.projects-carousel.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(139, 92, 246, 0.3);
    border-top: 3px solid #8B5CF6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .projects-track .project-card {
        flex: 0 0 100%;
        min-width: 280px;
    }
    
    .carousel-indicators {
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .carousel-indicator {
        width: 12px;
        height: 12px;
    }
    
    /* Adjust navigation buttons for mobile */
    .carousel-nav-btn {
        width: 48px;
        height: 48px;
    }
    
    .carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-nav-btn-left {
        left: -24px;
    }
    
    .carousel-nav-btn-right {
        right: -24px;
    }
}

@media (max-width: 480px) {
    .carousel-indicators {
        gap: 0.4rem;
        padding: 0.5rem;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* Further adjust navigation buttons for very small screens */
    .carousel-nav-btn {
        width: 44px;
        height: 44px;
    }
    
    .carousel-nav-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-nav-btn-left {
        left: -22px;
    }
    
    .carousel-nav-btn-right {
        right: -22px;
    }
}

.project-card {
    background-color: #1F2937;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

/* Enhanced hover effects for clickable project cards */
.project-card[href]:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

/* Focus styles for accessibility */
.project-card:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Active state for click feedback */
.project-card:active {
    transform: translateY(-2px) scale(0.98);
}

.project-card.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card {
    opacity: 0;
    transform: translateY(30px);
}

.project-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    color: white;
    font-size: 3rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.project-description {
    color: #D1D5DB;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-date {
    color: #8B5CF6;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background-color: #8B5CF6;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

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

/* Project link in overlay (icon style) */
.project-overlay .project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
    pointer-events: none;
}

    /* Add a subtle indicator for clickable projects */
.project-card[href]::after {
    content: "Click to view";
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(139, 92, 246, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.project-card[href]:hover::after {
    opacity: 1;
}

.project-overlay .project-link:hover {
    background: rgba(139, 92, 246, 1);
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

/* Project link in content area (text style) */
.project-content .project-link {
    color: #8B5CF6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.project-content .project-link:hover {
    color: #A78BFA;
}

.project-link-disabled {
    color: #6B7280;
    cursor: not-allowed;
    opacity: 0.6;
}

.project-link-disabled:hover {
    color: #6B7280;
    opacity: 0.8;
}

/* No Projects Message */
.no-projects-message {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.1));
    border: 2px dashed rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    margin: 2rem 0;
    animation: fadeInUp 0.6s ease;
}

.no-projects-icon {
    font-size: 4rem;
    color: #8B5CF6;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.no-projects-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-projects-description {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-projects-cta {
    margin-top: 2rem;
}

.no-projects-cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.no-projects-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Responsive design for no projects message */
@media (max-width: 768px) {
    .no-projects-message {
        padding: 3rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .no-projects-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-projects-title {
        font-size: 1.5rem;
    }
    
    .no-projects-description {
        font-size: 1rem;
    }
    
    .no-projects-cta .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .no-projects-message {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .no-projects-icon {
        font-size: 2.5rem;
    }
    
    .no-projects-title {
        font-size: 1.25rem;
    }
    
    .no-projects-description {
        font-size: 0.9rem;
    }
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: rgba(18, 18, 18, 0.6);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

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

.faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

/* Simple hover effect */
.faq-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}


.faq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-header:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
    padding-right: 16px;
    line-height: 1.4;
}

.faq-item:hover .faq-question {
    color: #60a5fa;
}

.faq-icon {
    color: #9ca3af;
    transition: all 0.3s ease;
    transform: rotate(0deg);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #60a5fa;
}

.faq-answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    position: relative;
}

.faq-item.active .faq-answer-wrapper {
    max-height: 200px;
    opacity: 1;
}

.faq-answer {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 1rem;
    padding: 0 24px 24px;
    margin: 0;
    position: relative;
}

.faq-answer::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-answer::before {
    opacity: 1;
}

/* Simple FAQ Animations */
@keyframes faqIconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(180deg);
    }
}

/* Enhanced FAQ Item Styles */
.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.faq-item:hover::after {
    left: 100%;
}

.faq-header {
    position: relative;
    z-index: 2;
}

.faq-icon svg {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon svg {
    animation: faqIconRotate 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.faq-answer-wrapper {
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-answer-wrapper {
    /* Remove conflicting animation */
}

/* Simple hover effect */
.faq-item:hover {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.faq-header:focus {
    /* outline: 2px solid rgba(37, 99, 235, 0.5); */
    outline-offset: 2px;
    border-radius: 8px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-icon,
    .faq-answer-wrapper {
        animation: none !important;
        transition: none !important;
    }
    
    .faq-item.active .faq-answer-wrapper {
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.contact-info p {
    color: #D1D5DB;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #D1D5DB;
}

.contact-item i {
    color: #8B5CF6;
    width: 20px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #374151;
    border: 2px solid #4B5563;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.3s ease;
    /* Disable drag and drop for form elements */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5CF6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9CA3AF;
}

/* Footer */
.footer {
    background-color: #111111;
    padding: 1rem 0;
    text-align: center;
    color: #9CA3AF;
    font-size: 1rem;
}

.last-updated {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }
    
    .faq-content {
        padding: 0 1rem;
    }
    
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-header {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding-right: 12px;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-title {
        font-size: 1.8rem;
    }
    
    /* About Statistics Responsive */
    .about-stats {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    /* Responsive social icons */
    .social-icons {
        margin-right: 20px;
        gap: 1rem;
    }
    
    .social-icon {
        font-size: 1.1rem;
    }
    
    .hero-social {
        justify-content: center;
        margin-top: 1rem;
    }
    
    /* Mobile-specific social icon improvements */
    @media (max-width: 480px) {
        .social-icons {
            margin-right: 10px;
            gap: 0.75rem;
        }
        
        .social-icon {
            font-size: 1rem;
            padding: 8px;
        }
        
        .social-icon:hover {
            transform: translateY(-1px);
        }
    }
    
    .samurai {
        transform: scale(3);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Mobile dialogue box adjustments */
    .samurai-dialogue-box {
        min-width: 240px;
        max-width: 280px;
        padding: 12px;
        top: -100px;
    }
    
    .dialogue-text {
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.3px;
    }
    
    .samurai-controls p {
        font-size: 0.8rem;
    }
    
    .samurai-container {
        min-height: 300px;
    }
    
    /* Skills Section Responsive */
    .skills-title {
        font-size: 2rem;
    }
    
    .skills-filters {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        max-width: 600px;
    }
    
    .skill-card {
        padding: 1rem 0.5rem;
    }
    
    .skill-icon {
        font-size: 2rem;
        height: 50px;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Skills Section Mobile Responsive */
    .skills-title {
        font-size: 1.8rem;
    }
    
    .skills-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 400px;
    }
    
    .skill-card {
        padding: 0.75rem 0.5rem;
    }
    
    .skill-icon {
        font-size: 1.75rem;
        height: 40px;
    }
    
    .skill-name {
        font-size: 0.75rem;
    }
    
    /* About Statistics Mobile Responsive */
    .about-stats {
        padding: 1rem;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

/* Brand colors and shadows for each skill */
.skill-card[data-skill="javascript"] .skill-icon svg,
.skill-card[data-skill="javascript"] .skill-icon i {
  color: #f7df1e;
  filter: drop-shadow(0 2px 8px rgba(247, 223, 30, 0.4));
}
.skill-card[data-skill="python"] .skill-icon svg,
.skill-card[data-skill="python"] .skill-icon i {
  color: #3776ab;
  filter: drop-shadow(0 2px 8px rgba(55, 118, 171, 0.4));
}
.skill-card[data-skill="c"] .skill-icon svg,
.skill-card[data-skill="c"] .skill-icon i {
  color: #00599c;
  filter: drop-shadow(0 2px 8px rgba(0, 89, 156, 0.4));
}
.skill-card[data-skill="sql"] .skill-icon svg,
.skill-card[data-skill="sql"] .skill-icon i {
  color: #e38c00;
  filter: drop-shadow(0 2px 8px rgba(227, 140, 0, 0.4));
}
.skill-card[data-skill="php"] .skill-icon svg,
.skill-card[data-skill="php"] .skill-icon i {
  color: #777bb4;
  filter: drop-shadow(0 2px 8px rgba(119, 123, 180, 0.4));
}
.skill-card[data-skill="react"] .skill-icon svg,
.skill-card[data-skill="react"] .skill-icon i {
  color: #61dafb;
  filter: drop-shadow(0 2px 8px rgba(97, 218, 251, 0.4));
}
.skill-card[data-skill="html5"] .skill-icon svg,
.skill-card[data-skill="html5"] .skill-icon i {
  color: #e34f26;
  filter: drop-shadow(0 2px 8px rgba(227, 79, 38, 0.4));
}
.skill-card[data-skill="css3"] .skill-icon svg,
.skill-card[data-skill="css3"] .skill-icon i {
  color: #1572b6;
  filter: drop-shadow(0 2px 8px rgba(21, 114, 182, 0.4));
}
.skill-card[data-skill="flutter"] .skill-icon svg,
.skill-card[data-skill="flutter"] .skill-icon i {
  color: #02569b;
  filter: drop-shadow(0 2px 8px rgba(2, 86, 155, 0.4));
}
.skill-card[data-skill="nodejs"] .skill-icon svg,
.skill-card[data-skill="nodejs"] .skill-icon i {
  color: #3c873a;
  filter: drop-shadow(0 2px 8px rgba(60, 135, 58, 0.4));
}
.skill-card[data-skill="firebase"] .skill-icon svg,
.skill-card[data-skill="firebase"] .skill-icon i {
  color: #ffca28;
  filter: drop-shadow(0 2px 8px rgba(255, 202, 40, 0.4));
}
.skill-card[data-skill="mongodb"] .skill-icon svg,
.skill-card[data-skill="mongodb"] .skill-icon i {
  color: #47a248;
  filter: drop-shadow(0 2px 8px rgba(71, 162, 72, 0.4));
}
.skill-card[data-skill="git"] .skill-icon svg,
.skill-card[data-skill="git"] .skill-icon i {
  color: #f05032;
  filter: drop-shadow(0 2px 8px rgba(240, 80, 50, 0.4));
}

/* Professional Skills Section */
.professional-skills {
    margin-top: 4rem;
    padding: 2rem 0;
}

.professional-skills-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.professional-skills-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 2px;
}

.skills-progress {
    margin-top: 2rem;
}

.skill-progress-item {
    margin-bottom: 1.5rem;
    animation: slideInFromLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.skill-progress-item:nth-child(1) { animation-delay: 0.2s; }
.skill-progress-item:nth-child(2) { animation-delay: 0.4s; }
.skill-progress-item:nth-child(3) { animation-delay: 0.6s; }
.skill-progress-item:nth-child(4) { animation-delay: 0.8s; }
.skill-progress-item:nth-child(5) { animation-delay: 1.0s; }

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-info .skill-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
}

.skill-progress-item:hover .skill-info .skill-name {
    color: #8b5cf6;
}

.skill-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: #8b5cf6;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    cursor: pointer;
}

.skill-percentage::after {
    content: attr(data-level);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    margin-bottom: 0.5rem;
}

.skill-percentage::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    margin-bottom: -5px;
}

.skill-percentage:hover::after,
.skill-percentage:hover::before {
    opacity: 1;
    visibility: visible;
}

.skill-progress-item:hover .skill-percentage {
    transform: scale(1.1);
}

/* Dynamic color coding based on percentage */
.skill-percentage {
    /* Base color - will be overridden by JavaScript */
    color: #8b5cf6;
}

/* Hover effects with enhanced colors */
.skill-progress-item:hover .skill-percentage {
    filter: brightness(1.2);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.skill-progress-item:hover .progress-bar {
    transform: scaleY(1.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 4px;
    transition: width 1.5s ease-in-out;
    position: relative;
    width: 0; /* Start at 0 width for animation */
    animation: fillProgress 2s ease-out forwards;
    animation-delay: 0.5s; /* Delay to start after section is visible */
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

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

@keyframes fillProgress {
    0% {
        width: 0;
    }
    100% {
        width: var(--progress-width);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design for Professional Skills */
@media (max-width: 768px) {
    .professional-skills-title {
        font-size: 2rem;
    }
    
    .skill-info .skill-name {
        font-size: 1rem;
    }
    
    .skill-percentage {
        font-size: 0.9rem;
    }
    
    .progress-bar {
        height: 6px;
    }
}

@media (max-width: 480px) {
    .professional-skills {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .professional-skills-title {
        font-size: 1.8rem;
    }
    
    .skill-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .skill-info .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-percentage {
        font-size: 0.85rem;
    }
}