/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #e5e5e5;
    --bg-tertiary: #d4d4d4;
    --bg-card: #ffffff;
    --border-primary: #d4d4d4;
    --border-hover: #a3a3a3;
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;
}

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

@media (max-width: 480px) {
    .modal-content {
        margin: 2vh auto;
        max-width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .cert-link {
        width: 100%;
        text-align: center;
    }
}

/* Page Transitions */
body { animation: pageEnter 0.4s ease-out; }
body.page-exit { animation: pageExit 0.25s ease-in forwards; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pageExit { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    padding: 15px;
    line-height: 1.4;
}

[data-theme="light"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="light"] .site-nav {
    background: rgba(245, 245, 245, 0.85);
}

[data-theme="light"] .skill-category {
    background: #ffffff;
    border-color: #d4d4d4;
}

[data-theme="light"] .skill-category:hover {
    background: #f9f9f9;
    border-color: #a3a3a3;
}

[data-theme="light"] .skill-item {
    background: #e8e8e8;
    border-color: #d4d4d4;
}

[data-theme="light"] .skill-item:hover {
    background: #d4d4d4;
    border-color: #a3a3a3;
}

[data-theme="light"] .skill-name {
    color: #171717;
}

[data-theme="light"] .skill-level {
    color: #737373;
}

[data-theme="light"] .page-title {
    color: #171717;
}

[data-theme="light"] .page-subtitle {
    color: #525252;
}

[data-theme="light"] .category-title {
    color: #171717;
}

[data-theme="light"] .certification-card {
    background: #ffffff;
    border-color: #d4d4d4;
}

[data-theme="light"] .certification-card:hover {
    background: #f9f9f9;
}

[data-theme="light"] .cert-name {
    color: #171717;
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: #d4d4d4;
}

[data-theme="light"] .modal-header {
    background: #f5f5f5;
    border-bottom-color: #d4d4d4;
}

[data-theme="light"] .modal-title {
    color: #171717;
}

[data-theme="light"] .footer {
    color: #737373;
    border-top-color: #d4d4d4;
}

[data-theme="light"] .nav-home {
    color: #525252;
}

[data-theme="light"] .nav-link {
    color: #737373;
}

[data-theme="light"] .nav-link:hover {
    color: #171717;
    background: #e5e5e5;
}

[data-theme="light"] .nav-link.active {
    color: #171717;
    background: #ffffff;
    border-color: #d4d4d4;
}

[data-theme="light"] .soft-skill-tag {
    background: rgba(139, 92, 246, 0.08);
    color: #7c3aed;
}

[data-theme="light"] .hamburger-line {
    background: #171717;
}

[data-theme="light"] .certifications-section {
    border-top-color: #d4d4d4;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 2000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 8px;
}

/* Hamburger menu button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    width: 28px;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 99;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-2px);
}

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

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #252525;
    z-index: 100;
    font-size: 14px;
}

.nav-home {
    color: #a3a3a3;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-home:hover {
    color: #ffffff;
    transform: translateX(-2px);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: #737373;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffffff;
    background: #1a1a1a;
}

.nav-link.active {
    color: #ffffff;
    background: #161616;
    border: 1px solid #252525;
}

/* nav hover states defined in site-nav above */

.header {
    margin-bottom: 30px;
    text-align: center;
    padding-top: 56px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.skill-category {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category:hover {
    border-color: #555;
    transform: translateY(-2px);
    background: #222;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--category-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.programming { --category-color: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.ai-ml { --category-color: linear-gradient(90deg, #ef4444, #dc2626); }
.data { --category-color: linear-gradient(90deg, #10b981, #059669); }
.tools { --category-color: linear-gradient(90deg, #f59e0b, #d97706); }
.soft-skills { --category-color: linear-gradient(90deg, #8b5cf6, #7c3aed); }

.soft-skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
}

.soft-skill-tag {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.soft-skill-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.category-icon {
    font-size: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

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

.skill-item {
    background: #333;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 10px 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.skill-item:hover {
    background: #444;
    border-color: #555;
    transform: scale(1.02);
}

.skill-name {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
}

.skill-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

[data-theme="light"] .skill-logo.invert-light {
    filter: none !important;
}

.skill-level {
    font-size: 11px;
    color: #888;
}

.proficiency-bar {
    width: 100%;
    height: 2px;
    background: #555;
    border-radius: 1px;
    margin-top: 6px;
    overflow: hidden;
}

.proficiency-fill {
    height: 100%;
    background: var(--fill-color);
    border-radius: 1px;
    transition: width 1s ease-in-out;
    width: 0;
}

.beginner { --fill-color: #ef4444; }
.intermediate { --fill-color: #f59e0b; }
.advanced { --fill-color: #10b981; }
.expert { --fill-color: #3b82f6; }

.certifications-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #333;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
}

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

.certification-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
}

.certification-card:hover {
    border-color: #3b82f6;
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.certification-card:hover .cert-logo {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(1.2);
}

.cert-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.cert-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.certification-card:hover .cert-logo::before {
    transform: translateX(100%);
}

.cert-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    z-index: 2;
    position: relative;
}

/* IBM Logo */
.ibm-logo {
    background: linear-gradient(135deg, #e6f1fa, #c2ddf4, #a0c8eb);
    box-shadow: 0 4px 15px rgba(31, 112, 193, 0.3);
}

#IBM-logo-img {
    width: 35pt;
    height: 35pt;
}

/* Great Learning Logo */
.great-learning-logo {
    background: linear-gradient(135deg, #eaf6ff, #cde7fb, #aed8f5);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

#great-learning-java-logo {
    width: 35pt;
    height: 35pt;
}

/* Udemy Logo */
.udemy-logo {
    background: linear-gradient(135deg, #f8eaff, #e4cfff, #d1b6ff);
    box-shadow: 0 4px 15px rgba(164, 53, 240, 0.3);
}

.cert-content {
    flex: 1;
}

.cert-hover-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 10px;
    color: #3b82f6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certification-card:hover .cert-hover-hint {
    opacity: 1;
}

.cert-provider {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 6px;
}

.cert-name {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
}

.cert-date {
    font-size: 12px;
    color: #888;
}

.interests-section {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #333;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.interest-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-item:hover {
    border-color: #555;
    background: #222;
    transform: translateY(-1px);
}

.interest-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

.interest-name {
    font-size: 13px;
    color: #ccc;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0 28px;
    color: #888;
    font-size: 13px;
    border-top: 1px solid #333;
    margin-top: 48px;
}

[data-theme="light"] .proficiency-bar {
    background: #d4d4d4;
}

.footer a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #60a5fa;
}

/* Certificate Modal Styles */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.cert-modal.show {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    max-width: 700px;
    max-height: 90vh;
    margin: 5vh auto;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cert-modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #fff;
}

.modal-body {
    padding: 20px;
}

.cert-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #333;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.cert-link {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #3b82f6;
    color: white;
}

.cert-link:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding-top: 8px;
        border-top: 1px solid #252525;
        margin-top: 8px;
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    body {
        padding: 10px;
    }

    .page-title {
        font-size: 26px;
    }

    .header {
        padding-top: 30px;
        margin-bottom: 25px;
    }

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

    .skills-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .skill-category {
        padding: 16px;
    }

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

    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Theme Toggle */
.theme-toggle {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    color: #a3a3a3;
    font-size: 13px;
    transition: all 0.3s ease;
}
.theme-toggle:hover {
    background: #222;
    color: #fff;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle { background: #e5e5e5; border-color: #d4d4d4; color: #525252; }
[data-theme="light"] .theme-toggle:hover { background: #d4d4d4; color: #171717; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

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

.skill-item.animate .proficiency-fill {
    animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
    to { width: var(--proficiency-width); }
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1); }
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
