* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.toggles {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.toggle-btn {
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toggle-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    transition: transform 0.1s ease-out;
}

.hero-content {
    max-width: 1200px;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    overflow: hidden;
    cursor: pointer;
}

[data-theme="light"] .skill-card {
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.skill-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.skill-card-header {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

.skill-icon::before {
    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, height 0.6s;
}

.skill-card:hover .skill-icon::before {
    width: 100px;
    height: 100px;
}

.skill-card:hover .skill-icon {
    transform: rotateY(360deg);
    transition: transform 0.6s ease;
}

.skill-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.skill-card-header p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.expand-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.expand-icon::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .project-card {
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s;
}

.project-image:hover {
    transform: scale(1.02);
}

.project-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.tag:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
    border-color: var(--accent-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-link {
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.1);
    text-decoration: none;
    color: var(--text-primary);
}

.contact-link:hover {
    background: var(--gradient);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.github-widget {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

[data-theme="light"] .github-widget {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.github-widget h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.github-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.github-stat:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-5px);
}

.github-stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.github-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.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.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.modal-download {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s;
}

.modal-download:hover {
    background: rgba(0, 0, 0, 0.9);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .toggles {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    #modalCaption {
        font-size: 14px;
        padding: 5px 0;
    }

    .modal-download {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }
}

/* Tablets and medium devices */
@media (max-width: 1000px) {
    .skills-modal-content {
        width: 92%;
        max-width: 550px;
        margin: 3% auto;
    }

    .skills-modal-header {
        padding: 1.35rem 1.75rem;
    }

    .skills-modal-header h2 {
        font-size: 1.35rem;
    }

    .skills-modal-close {
        width: 40px;
        height: 40px;
        font-size: 2.25rem;
    }

    .skills-modal-body {
        padding: 1.25rem;
    }

    .modal-skill-category-header {
        padding: 1.25rem;
    }

    .modal-skill-category-body {
        padding: 1.25rem;
    }

    .modal-skill-section-title {
        font-size: 1.15rem;
    }

    .modal-skill-list-item {
        padding: 0.7rem 0.9rem;
    }

    .modal-skill-list-item .modal-skill-item-name {
        font-size: 0.97rem;
    }
}

/* Center modal content on smaller screens */
@media (max-width: 800px) {
    .skills-modal-header {
        text-align: center;
    }

    .modal-skill-category-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-skill-category-description {
        text-align: center;
    }

    .modal-skill-section-title {
        justify-content: center;
        text-align: center;
    }

    .modal-skill-list-item {
        padding-left: 0.85rem;
    }

    .modal-skill-list-item::before {
        margin-right: 0.5rem;
        margin-bottom: 0;
        display: block;
    }

    /* No overrides needed for name/level alignment */
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .toggles {
        flex-direction: column;
        gap: 0.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-close {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }

    #modalCaption {
        font-size: 14px;
        padding: 5px 0;
    }

    .modal-download {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 10px;
        right: 10px;
    }

    /* Skills modal adjustments for tablets/phones */
    .skills-modal-content {
        width: 95%;
        max-width: 95%;
        max-height: 90vh;
        margin: 2% auto;
        border-radius: 15px;
    }

    .skills-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .skills-modal-header h2 {
        font-size: 1.25rem;
    }

    .skills-modal-close {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }

    .skills-modal-body {
        padding: 1rem;
    }

    .modal-skill-category {
        margin-bottom: 1rem;
    }

    .modal-skill-category-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .modal-skill-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-skill-category-description {
        font-size: 0.95rem;
    }

    .modal-skill-category-body {
        padding: 1rem;
    }

    .modal-skill-section {
        margin-bottom: 1.5rem;
    }

    .modal-skill-section-title {
        font-size: 1.1rem;
    }

    .modal-skill-list-item {
        padding: 0.65rem 0.85rem;
        gap: 0.5rem;
    }

    .modal-skill-list-item::before {
        font-size: 1rem;
    }

    .modal-skill-list-item .modal-skill-item-name {
        font-size: 0.95rem;
    }

    .modal-skill-list-item .modal-skill-item-level {
        font-size: 0.8rem;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 968px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        flex-direction: column;
        background: rgba(17, 17, 17, 0.98);
        backdrop-filter: blur(10px);
        padding: 2rem;
        border-radius: 20px 0 0 20px;
        transition: right 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-links.active {
        right: 0;
    }
}

/* Skills Modal Styles */
.skills-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.skills-modal-content {
    background: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.4);
    animation: slideDown 0.4s ease;
    position: relative;
}

[data-theme="light"] .skills-modal-content {
    background: var(--bg-dark);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.skills-modal-header {
    background: var(--gradient);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    position: sticky;
    top: 0;
    z-index: 10;
}

.skills-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.skills-modal-close {
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-modal-close:hover,
.skills-modal-close:focus {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.skills-modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-card);
}

.skills-modal-body::-webkit-scrollbar {
    width: 10px;
}

.skills-modal-body::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.skills-modal-body::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 10px;
}

.skills-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

.modal-skill-category {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal-skill-category:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    transform: translateY(-3px);
}

.modal-skill-category-header {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.modal-skill-category-title {
    flex: 1;
}

.modal-skill-category h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.modal-skill-category-description {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.modal-skill-category-body {
    padding: 2rem;
}

.modal-skill-section {
    margin-bottom: 2rem;
}

.modal-skill-section:last-child {
    margin-bottom: 0;
}

.modal-skill-section-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--accent-light);
}

.modal-skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.modal-skill-item {
    background: var(--bg-card);
    padding: 1rem 1.25rem;
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.3s ease;
}

[data-theme="light"] .modal-skill-item {
    background: #f8f9fa;
}

.modal-skill-item:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    transform: translateX(5px);
}

.modal-skill-item-name {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.modal-skill-item-level {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Skill level colors - Dark theme (default) */
.modal-skill-item-level.level-basic {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    transition: all 0.3s ease;
}

.modal-skill-item-level.level-intermediate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
    transition: all 0.3s ease;
}

.modal-skill-item-level.level-advanced {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
    transition: all 0.3s ease;
}

/* Light theme variants */
[data-theme="light"] .modal-skill-item-level.level-basic {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .modal-skill-item-level.level-intermediate {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .modal-skill-item-level.level-advanced {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Hover effects */
.modal-skill-item-level:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Add subtle dots before level badge */
.modal-skill-item-level.level-basic::before {
    content: '●';
    margin-right: 0.5rem;
    font-size: 0.65rem;
    opacity: 0.8;
}

.modal-skill-item-level.level-intermediate::before {
    content: '●●';
    margin-right: 0.5rem;
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 0.15rem;
}

.modal-skill-item-level.level-advanced::before {
    content: '●●●';
    margin-right: 0.5rem;
    font-size: 0.65rem;
    opacity: 0.8;
    letter-spacing: 0.15rem;
}

/* List style for modal */
.modal-skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-skill-list-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.modal-skill-list-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    transform: translateX(5px);
}

.modal-skill-list-item::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.modal-skill-list-item .modal-skill-item-name {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.modal-skill-list-item .modal-skill-item-level {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 480px) {
    .skills-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100vh;
        margin: 0;
        border-radius: 0;
        border: none;
    }

    .skills-modal-header {
        padding: 1rem 1.25rem;
    }

    .skills-modal-header h2 {
        font-size: 1.1rem;
    }

    .skills-modal-close {
        font-size: 1.75rem;
        width: 32px;
        height: 32px;
    }

    .skills-modal-body {
        padding: 0.75rem;
        max-height: calc(100vh - 70px);
    }

    .modal-skill-category-body {
        padding: 0.75rem;
    }

    .modal-skill-icon {
        width: 45px;
        height: 45px;
        font-size: 1.35rem;
    }

    .modal-skill-section-title {
        font-size: 1rem;
    }

    .modal-skill-list-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
    }

    .modal-skill-list-item .modal-skill-item-name {
        font-size: 0.9rem;
    }

    .modal-skill-list-item .modal-skill-item-level {
        font-size: 0.75rem;
    }
}