@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #D64545;     /* Traditional red */
    --secondary-color: #2D3047;    /* Deep indigo */
    --text-color: #1A1A1A;         /* Almost black */
    --light-bg: #F5F5F5;           /* Light gray */
    --accent-color: #97A88B;       /* Sage green */
    --white: #ffffff;
    --paper-color: #FFF9F0;        /* Warm white */
    --dark-purple: #663399;        /* Dark purple */
    
    /* Dark mode colors */
    --dark-bg: #1a1a1a;
    --dark-secondary: #2d3047;
    --dark-card: #2a2a2a;
    --dark-text: #ffffff;
}

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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--paper-color);
    scroll-behavior: smooth;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 1001;
    transition: width 0.1s ease;
}

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

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    padding: 0.5rem;
    border: 2px solid var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--secondary-color);
    color: var(--white);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero .typing-container {
    position: relative;
    z-index: 2;
}

.typing-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

.profile-image {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    width: 400px;
    height: 400px;
    padding: 20px;
    background: var(--paper-color);
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.profile-image.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    z-index: 1000;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.overlay.active {
    display: block;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--primary-color);
    border-radius: 2px;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--accent-color);
    border-radius: 2px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    border: 1px solid var(--secondary-color);
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover .profile-overlay {
    opacity: 1;
}

.overlay-content i {
    font-size: 3rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.glitch {
    position: relative;
    text-shadow: 0.05em 0 0 var(--primary-color),
               -0.025em -0.05em 0 var(--accent-color),
                0.025em 0.05em 0 var(--paper-color);
    animation: glitch 1s infinite;
}

.typing-container {
    margin: 1rem 0;
}

.typing-text {
    border-right: 0.15em solid var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-color);
    animation: typing 3.5s steps(40, end),
             blink-caret 0.75s step-end infinite;
}

.sliding-underline {
    position: relative;
    display: inline-block;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    text-align: center;
}

.sliding-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.sliding-underline:hover::after {
    width: 100%;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--white);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.social-btn span {
    font-size: 0.9rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/japanese-pattern.svg');
    opacity: 0.3;
    z-index: 0;
    animation: moveBackground 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 320px;
    background-image: url('images/mountain.svg');
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    z-index: 1;
    animation: mountainParallax 15s ease-in-out infinite alternate;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200px 200px;
    }
}

@keyframes mountainParallax {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero .bio-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: #333333;
}

body.dark .hero .bio-text {
    color: #ffffff;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

section:nth-child(even) {
    background-color: var(--paper-color);
}

section:nth-child(odd) {
    background-color: var(--white);
}

.section-decorator {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    opacity: 0.2;
    z-index: 1;
}

section:nth-child(odd) .section-decorator {
    top: 20px;
    right: 20px;
    transform: rotate(15deg);
}

section:nth-child(even) .section-decorator {
    bottom: 20px;
    left: 20px;
    transform: rotate(-15deg);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    padding: 0 2rem;
}

section h2::before,
section h2::after {
    content: '—';
    color: var(--primary-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

section h2::before {
    left: -1rem;
}

section h2::after {
    right: -1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.highlight-box {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 90%;
    text-align: left;
}

.highlight-box:hover {
    transform: translateX(5px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    margin-right: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.highlight-box:hover .highlight-icon {
    transform: rotate(360deg);
}

.highlight-content {
    text-align: center;
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: #333333;
}

body.dark .highlight-number {
    color: #ffffff;
}

.highlight-label {
    font-size: 1rem;
    color: #333333;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.dark .highlight-label {
    color: #ffffff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.achievement-card {
    background: var(--paper-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.achievement-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.edu-meta {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    color: #333333;
    opacity: 0.9;
    font-size: 0.95rem;
}

body.dark .edu-meta {
    color: #ffffff;
}

.edu-meta i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    transition: transform 0.15s ease;
}

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

.edu-header h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.education {
    padding: 2.5rem;
    background: var(--paper-color);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.education:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
}

.about-text {
    padding: 2.5rem;
    background: var(--paper-color);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.about-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15);
}

.comp.animated-text {
    line-height: 1.8;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #333333;
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
    text-align: justify;
}

body.dark .bio-text {
    color: #ffffff;
}

body.dark .animated-text {
    color: #ffffff;
}

.animated-text::before {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary-color);
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.2;
}

.animated-text::after {
    content: '"';
    font-size: 2.5rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -2rem;
    right: 0;
    opacity: 0.2;
}

/* Skills Section */
.skills {
    background-color: var(--light-bg);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-category {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    border: 1px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.skill-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skills-columns {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    position: relative;
}

.skills-columns::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
}

.skills-column {
    flex: 1;
}

.skill-category li {
    transition: transform 0.2s ease, background-color 0.2s ease;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.skill-category li:hover {
    transform: translateX(10px);
    background-color: rgba(214, 69, 69, 0.1);
    border: 1px solid var(--primary-color);
}

.skill-category li i {
    margin-right: 0.5rem;
    color: var(--primary-color);
    width: 20px;
    transition: transform 0.15s ease;
}

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

.programming-skills ul {
    margin: 0;
    padding: 0;
}

/* Projects Section */
.project-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Experience Section */
.experience-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0;
    border: 1px solid var(--secondary-color);
    box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.experience-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent var(--accent-color) transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover::after {
    opacity: 0.3;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.experience-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.experience-card h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.experience-card:hover h3::after {
    width: 100%;
}

.company {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Certifications Section */
.certifications {
    background-color: var(--light-bg);
}

.cert-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.cert-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .profile-image {
        width: 350px;
        height: 350px;
    }

    .about-grid {
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1rem 0;
        display: none;
        overflow: hidden;
        width: 100%;
        background: var(--secondary-color);
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links.hide {
        animation: slideUp 0.3s ease forwards;
    }

    .profile-image {
        width: 280px;
        height: 280px;
        padding: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .education {
        margin-top: 2rem;
    }

    .skills-columns {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-btn {
        width: calc(50% - 1rem);
        min-width: 140px;
    }

    section {
        padding: 3rem 0;
    }

    section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .profile-image {
        width: 240px;
        height: 240px;
        padding: 10px;
    }

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

    .hero h2 {
        font-size: 1rem;
    }

    .social-btn {
        width: 100%;
    }

    .highlight-box {
        padding: 1rem;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .highlight-label {
        font-size: 0.9rem;
    }

    .edu-item {
        padding: 1.5rem;
    }

    .project-card,
    .experience-card,
    .cert-card {
        padding: 1.5rem;
    }
    
    /* Improve touch targets for mobile */
    .nav-links a {
        padding: 0.8rem 1.2rem;
    }
    
    .theme-btn {
        padding: 0.8rem;
    }
}

/* Dark Mode Styles */
body.dark {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

body.dark .navbar {
    background-color: var(--dark-secondary);
    border-bottom-color: var(--primary-color);
}

body.dark .logo {
    color: var(--dark-text);
    border-color: var(--primary-color);
}

body.dark .nav-links a {
    color: var(--dark-text);
}

body.dark .nav-links a:hover {
    color: var(--primary-color);
}

body.dark .hero {
    background-color: var(--dark-secondary);
    color: var(--dark-text);
}

body.dark .profile-image {
    background-color: var(--dark-card);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

body.dark .profile-image img {
    border-color: var(--dark-secondary);
}

body.dark .section-title {
    color: var(--dark-text);
}

body.dark .bio-text {
    color: var(--dark-text);
}

body.dark .social-btn {
    background-color: var(--dark-card);
    color: var(--dark-text);
    border: 1px solid var(--primary-color);
}

body.dark .social-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-text);
}

body.dark .about,
body.dark .skills,
body.dark .projects,
body.dark .experience,
body.dark .certifications {
    background-color: var(--dark-bg);
}

body.dark .edu-item,
body.dark .project-card,
body.dark .experience-card,
body.dark .cert-card {
    background-color: var(--dark-card);
    border: 1px solid var(--primary-color);
    color: var(--dark-text);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

body.dark .skill-category li {
    color: var(--dark-text);
}

body.dark .skill-category li:hover {
    background-color: rgba(214, 69, 69, 0.2);
}

body.dark footer {
    background-color: var(--dark-secondary);
    color: var(--dark-text);
}

body.dark .theme-btn {
    color: var(--dark-text);
}

body.dark .theme-btn:hover {
    color: var(--primary-color);
}

/* Theme Toggle Button */
.theme-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    margin-left: 1rem;
}

.theme-btn:hover {
    color: var(--primary-color);
    transform: rotate(180deg);
}

.theme-btn i {
    transition: transform 0.3s ease;
}

/* Dark Mode Styles */
body.dark {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark .navbar {
    background-color: #2d3047;
    border-bottom-color: var(--primary-color);
}

body.dark .logo {
    color: #ffffff;
}

body.dark .nav-links a {
    color: #ffffff;
}

body.dark .hero {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark .profile-image {
    background-color: #2a2a2a;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

body.dark .profile-image img {
    border-color: #333333;
}

body.dark .section-title {
    color: #ffffff;
}

body.dark .bio-text {
    color: #ffffff;
}

body.dark .social-btn {
    background-color: #2a2a2a;
    color: #ffffff;
}

body.dark .social-btn:hover {
    background-color: var(--primary-color);
}

body.dark .about,
body.dark .skills,
body.dark .projects,
body.dark .experience,
body.dark .certifications {
    background-color: #1a1a1a;
}

body.dark .edu-item,
body.dark .project-card,
body.dark .experience-card,
body.dark .cert-card {
    background-color: #2a2a2a;
    border-color: var(--primary-color);
    color: #ffffff;
}

body.dark .skill-category li {
    color: #ffffff;
}

body.dark .skill-category li:hover {
    background-color: rgba(214, 69, 69, 0.2);
}

body.dark footer {
    background-color: #2d3047;
    color: #ffffff;
}


