* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

:root {
    --primary-text: #000000;
    --secondary-text: #555555;
    --tertiary-text: #888888;
    --border-color: #e0e0e0;
    --hover-bg: #f5f5f5;
    --accent-color: #000000;
    --bg-color: #ffffff;
}

body.dark-mode {
    --primary-text: #ffffff;
    --secondary-text: #aaaaaa;
    --tertiary-text: #777777;
    --border-color: #333333;
    --hover-bg: #222222;
    --accent-color: #ffffff;
    --bg-color: #121212;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--primary-text) !important;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, border-color 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--primary-text) !important;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.2s ease, background-color 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

body.dark-mode .cursor-dot {
    background-color: var(--primary-text);
}

body {
    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary-text);
    background: var(--bg-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
    font-size: 15px;
    letter-spacing: -0.01em;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

body.dark-mode {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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


.navigation {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

body.dark-mode .navigation {
    background: rgba(18, 18, 18, 0.95);
}

.nav-container {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-text);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-text);
    background: var(--hover-bg);
}


.header {
    margin-bottom: 100px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 60px;
    animation-delay: 0.1s;
    text-align: center;
}

.name {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--primary-text);
}

.title {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 24px;
    font-weight: 400;
}

.contact {
    font-size: 0.95rem;
    color: var(--secondary-text);
    font-family: 'Metropolis', monospace;
    font-weight: 400;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact a {
    color: var(--primary-text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact a:hover::after {
    width: 100%;
}


.dark-mode-toggle {
    background: transparent;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    position: absolute;
    top: 40px;
    right: 40px;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--primary-text);
}

.dark-mode-toggle:hover {
    opacity: 1;
}


.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent-color);
    width: 0%;
    z-index: 9998;
    transition: width 0.2s ease-out;
}


.section {
    margin-bottom: 80px;
    animation-delay: 0.2s;
}

.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--primary-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 1px;
    background: var(--primary-text);
    opacity: 0.3;
}


.about {
    line-height: 1.8;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.achievement {
    background: rgba(128, 128, 128, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.achievement:hover {
    transform: translateY(-5px);
    background: var(--hover-bg);
    border-color: var(--secondary-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .achievement:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.achievement-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.achievement-content p {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

.achievement-content a {
    color: var(--primary-text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-content a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.achievement-content a:hover::after {
    width: 100%;
}

.achievement-content a:hover {
    color: var(--secondary-text);
}

.achievement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-text), var(--secondary-text));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.achievement:hover::before {
    opacity: 0.6;
}


.projects-grid {
    display: grid;
    gap: 50px;
}

/* --- Enhanced Project Card Styles --- */
.project {
    background: var(--bg-color);
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.08), 0 1.5px 4px 0 rgba(0,0,0,0.04);
    padding: 28px 24px 24px 24px;
    margin-bottom: 32px;
    transition: box-shadow 0.3s, transform 0.2s;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}
.project:hover {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.16), 0 3px 12px 0 rgba(0,0,0,0.08);
    transform: translateY(-4px) scale(1.012);
    border-color: var(--accent-color);
}
.project-image {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin-bottom: 18px;
    background: #f3f3f3;
    display: block;
}
.project-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.project-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 2px;
}
.project-tech {
    font-size: 0.98rem;
    color: var(--tertiary-text);
    margin-bottom: 6px;
}
.project-description {
    color: var(--secondary-text);
    font-size: 1.01rem;
    margin-bottom: 14px;
}
.project-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 700;
    border-radius: 999px;
    padding: 3px 14px;
    font-size: 0.92rem;
    margin-top: 6px;
    margin-bottom: 2px;
    letter-spacing: 0.01em;
}
body.dark-mode .project-tag {
    background: #312e81;
    color: #c7d2fe;
}
.project-buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}
.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #6366f1;
    color: #fff;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    padding: 7px 18px;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 1px 4px 0 rgba(99,102,241,0.08);
    cursor: pointer;
}
.project-btn:hover {
    background: #3730a3;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px 0 rgba(99,102,241,0.16);
}
body.dark-mode .project-btn {
    background: #3730a3;
    color: #c7d2fe;
}
body.dark-mode .project-btn:hover {
    background: #6366f1;
    color: #fff;
}
@media (max-width: 600px) {
    .project {
        padding: 16px 8px 16px 8px;
    }
    .project-image {
        height: 120px;
    }
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.project-link:hover {
    color: var(--primary-text);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.demo-link {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.demo-link:hover {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

body.dark-mode .demo-link {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .demo-link:hover {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

.link-icon {
    font-size: 12px;
}

.project-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.project-status.current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .project-status {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .project-status.current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

body.dark-mode .project {
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(128, 128, 128, 0.3);
}

body.dark-mode .project-name a {
    color: #ffffff;
}

body.dark-mode .project-tech {
    background: #2c2c3e;
    color: #ffffff;
}

body.dark-mode .project-link {
    color: #ffffff;
    border-color: #44475a;
}


.project-demo {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover .project-demo {
    opacity: 1;
    transform: translateY(0);
}

.demo-button {
    background: transparent;
    border: 1px solid var(--primary-text);
    color: var(--primary-text);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Metropolis', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.demo-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-text);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.demo-button:hover::before {
    left: 0;
}

.demo-button:hover {
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .demo-button:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}


body.dark-mode .demo-button {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-mode .demo-button:hover {
    color: #121212;
}

.demo-text {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-arrow {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.demo-button:hover .demo-text {
    transform: translateX(-2px);
}

.demo-button:hover .demo-arrow {
    transform: translateX(4px);
}


.demo-button:focus {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

.demo-button:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
    background: none;
    border: none;
    box-shadow: none;
}
.skill-category {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.skill-category::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hover-bg) 0%, transparent 100%); /* Radial gradient for fill effect */
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out; /* Smooth expansion */
    z-index: -1;
}
.skill-category:hover::before {
    width: 300%; /* Expand significantly */
    height: 300%; /* Expand significantly */
}
body.dark-mode .skill-category {
    background: #1a1a1a; /* Slightly darker for dark mode */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.skill-category:hover {
    transform: translateY(-12px); /* More pronounced lift */
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25); /* Stronger shadow on hover */
}
body.dark-mode .skill-category:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}
.skill-category h3 {
    font-size: 1.35rem; /* Slightly larger heading */
    font-weight: 800;
    margin-bottom: 28px; /* More space below heading */
    color: var(--primary-text);
}
.skills-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 10px;
}
.skills-logos img {
    height: 32px;
    width: 32px;
    object-fit: contain;
    display: inline-block;
    background: none;
    border-radius: 6px;
}
.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: inline;
}
@media (max-width: 600px) {
    .skill-category ul {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}
.skill-category li {
    font-size: 1.05rem;
    color: var(--secondary-text);
    margin-bottom: 0;
    padding-left: 0;
    position: static;
    display: inline;
}
.skill-category li:not(:last-child)::after {
    content: ', ';
}
.skill-category li:last-child {
    margin-bottom: 0;
}
.skill-category li::before {
    content: none;
}
@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 30px;
    }
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-text), var(--secondary-text));
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.5s;
}

.skill-progress.animate {
    width: var(--progress-width);
}


.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--secondary-text);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secondary-text);
    padding: 12px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-text);
    border-bottom-color: var(--border-color);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--primary-text);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: vertical;
}

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

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--tertiary-text);
}

.submit-button {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .submit-button {
    background: #000000;
    color: #ffffff;
}

body.dark-mode .submit-button:hover {
    background: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.submit-button:active {
    transform: translateY(0);
}


@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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


@media (max-width: 768px) {
    body {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    .navigation {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0 auto 40px auto;
        width: fit-content;
    }
    
    .nav-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .header {
        margin-bottom: 60px;
        padding-bottom: 40px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .title {
        font-size: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .misc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
    .dark-mode-toggle {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 30px 15px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .header {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }
    
    .section {
        margin-bottom: 50px;
    }
    
    .nav-container {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}


html {
    scroll-behavior: smooth;
}


.skill-progress[data-progress="90"] { --progress-width: 90%; }
.skill-progress[data-progress="85"] { --progress-width: 85%; }
.skill-progress[data-progress="95"] { --progress-width: 95%; }
.skill-progress[data-progress="80"] { --progress-width: 80%; }
.skill-progress[data-progress="75"] { --progress-width: 75%; }


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

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode .project:hover {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

.misc-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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


.section {
    will-change: transform, opacity;
}

.project, .misc-item {
    will-change: transform;
}




.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333333;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode .back-to-top {
    background: #000000;
    color: #ffffff;
}

body.dark-mode .back-to-top:hover {
    background: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.back-to-top-icon {
    line-height: 1;
}


.misc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.misc-item {
    background: rgba(128, 128, 128, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.misc-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-text);
}

.misc-content {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 14px;
}

.highlight {
    color: var(--primary-text);
    font-weight: 500;
}

body.dark-mode .misc-item {
    background: rgba(128, 128, 128, 0.15);
    border-color: rgba(128, 128, 128, 0.3);
}


.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #ffffff;
    text-align: center;
    animation-delay: 0.7s;
}

.footer p {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

body.dark-mode .footer {
    border-top-color: #ffffff;
}

/* --- Enhanced Position of Responsibility Styles --- */
.responsibility-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 18px;
}
.responsibility-item {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 24px 28px 20px 28px;
    transition: border-color 0.25s, background 0.25s;
    position: relative;
    box-shadow: none;
}
body.dark-mode .responsibility-item {
    background: #23272f;
}
.responsibility-item:hover {
    border-color: #6366f1;
    background: #f1f5f9;
    box-shadow: none;
}
body.dark-mode .responsibility-item:hover {
    background: #1a1d22;
}
.responsibility-item h3 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #3730a3;
    margin-bottom: 6px;
}
.responsibility-item p {
    font-size: 1.01rem;
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 8px;
}
.responsibility-item ul {
    margin-left: 18px;
    color: var(--primary-text);
    font-size: 0.99rem;
    line-height: 1.7;
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .responsibility-item {
        padding: 14px 8px 14px 8px;
    }
}
