* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    padding-top: 8rem;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-title-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.main-heading {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    background: linear-gradient(45deg, #1a1a1a, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
    line-height: 1.3;
    padding-bottom: 0.1em;
}

@keyframes glow {
    from { 
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
    }
    to { 
        filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.5));
    }
}

.subheading {
    font-size: 1.5rem;
    color: #666666;
    margin: 0;
    font-weight: 300;
    letter-spacing: 1px;
    text-align: center;
}

.about-section {
    width: 100%;
    max-width: 700px;
    margin: 1rem 0;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: #333333;
    line-height: 1.75;
    margin: 0;
    text-align: center;
}

.skills-line {
    font-size: 1rem;
    color: #555555;
    margin: 0.75rem 0 0 0;
    line-height: 1.6;
    text-align: center;
}

.context-line {
    font-size: 0.9rem;
    color: #666666;
    margin: 0.25rem 0 0 0;
    line-height: 1.5;
    text-align: center;
}

.action-buttons {
    margin-top: 1rem;
    align-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.projects-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.projects-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 40px rgba(255, 0, 0, 0.4);
}

.projects-button:active {
    transform: translateY(-2px) scale(1.03);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.projects-button:hover .button-arrow {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: #ff0000;
    border: 2px solid rgba(255, 0, 0, 0.5);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    justify-content: center;
    align-items: center;
    align-self: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
    border-color: #0077b5;
    color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.social-link.github:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* scroll fade */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* nav */
.projects-header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    padding: 0;
    overflow: visible;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.back-home-link:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    transform: translateX(-5px);
}

.back-arrow {
    transition: transform 0.3s ease;
}

.back-home-link:hover .back-arrow {
    transform: translateX(-3px);
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 1.5rem;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    color: #333333;
    transition: all 0.3s ease;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    position: relative;
}

.nav-link:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.nav-link::after {
    display: none;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333333;
    margin-left: 0.5rem;
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

.theme-icon {
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Theme icon base states */
.sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.moon-icon.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.sun-icon.active {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
}

html[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(1);
}

html[data-theme="dark"] .sun-icon.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(180deg) scale(1);
}

html[data-theme="dark"] .moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg) scale(0);
}

html[data-theme="dark"] .moon-icon.active {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-180deg) scale(0);
}

.projects-section {
    padding: 10rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.experience-section {
    padding: 10rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.experience-category {
    grid-column: 1 / -1;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgba(255, 0, 0, 0.3);
    background: linear-gradient(45deg, #1a1a1a, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.experience-category:not(:first-child) {
    margin-top: 2rem;
}

/* Experience card layout (match reference: header, role, meta, tools, description) */
.experience-card {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.experience-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.experience-card-company {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    background: none;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.experience-card-learn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.experience-card-learn.btn-primary {
    padding: 0.5rem 1rem;
}

.experience-role {
    font-size: 1rem;
    font-weight: 500;
    color: #cc0000;
    margin: 0 0 0.5rem 0;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #555555;
}

.experience-meta-item svg {
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
}

.experience-tools-section {
    margin-bottom: 1rem;
}

.experience-tools-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 0.5rem 0;
}

.experience-tools-heading svg {
    width: 1rem;
    height: 1rem;
    color: #cc0000;
}

.experience-tools-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-tag {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(255, 0, 0, 0.08);
    color: #cc0000;
    border: 1px solid rgba(255, 0, 0, 0.25);
}

.experience-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

.experience-card .project-image {
    display: none;
}

.experience-card .project-title {
    display: none;
}

.experience-card .project-description {
    margin-bottom: 0;
    display: none;
}

.experience-org-list,
.experience-job-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.experience-org-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.15);
}

.experience-org-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-org-name {
    font-size: 1rem;
    color: #555555;
    line-height: 1.5;
}

.experience-job-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 0, 0, 0.15);
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

.experience-job-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-job-item strong {
    color: #1a1a1a;
}

.page-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    background: linear-gradient(45deg, #1a1a1a, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    padding-bottom: 0.1em;
}

.page-subtitle {
    font-size: 1.3rem;
    color: #333333;
    line-height: 1.75;
    margin: 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 0, 0, 0.2);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.project-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.75rem;
    background: linear-gradient(45deg, #1a1a1a, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
    padding-bottom: 0.1em;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 0, 0, 0.1);
    color: #cc0000;
    border: 1px solid rgba(255, 0, 0, 0.25);
}

/* Project Description */
.project-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-align: left;
}

.project-image {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    color: rgba(26, 26, 26, 0.5);
    font-size: 0.9rem;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Shared Button Base Styles */
.btn-primary {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    border-color: #ff3333;
}

.project-button {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

.project-button:hover {
    transform: translateY(-3px);
}

.project-button:active {
    transform: translateY(-1px);
}

span.project-button {
    cursor: default;
    pointer-events: none;
}

span.project-button:hover {
    transform: none;
}

/* responsive */
@media (max-width: 768px) {
    .main-heading {
        font-size: 2.8rem;
    }

    .subheading {
        font-size: 1.2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .projects-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .projects-section {
        padding: 8rem 1.5rem 3rem;
    }

    .experience-section {
        padding: 8rem 1.5rem 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .project-image {
        height: 200px;
    }

    .projects-header {
        top: 1rem;
        padding: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle:hover {
        color: #ff0000;
        background: rgba(255, 0, 0, 0.1);
    }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0.6rem 1rem;
        gap: 0;
    }

    .nav-menu {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    .projects-header.nav-open .nav-menu {
        max-height: 300px;
        opacity: 1;
        padding-top: 0.5rem;
    }

    .projects-header.nav-open .nav-toggle .icon-menu {
        display: none;
    }

    .projects-header.nav-open .nav-toggle .icon-close {
        display: block;
    }

    .projects-header::before {
        border-radius: 20px;
    }

    /* Blog Page Responsive */
    .blog-section {
        padding: 8rem 1.5rem 3rem;
    }

    .photo-container {
        height: 400px;
    }

    .photo-text {
        font-size: 1rem;
        padding: 2rem;
    }

    .site-footer {
        margin-top: 3rem;
        padding: 1rem;
    }

    .footer-content {
        padding: 0.6rem 1.2rem;
    }

    .footer-message {
        font-size: 0.9rem;
    }

    .footer-links {
        gap: 0.75rem;
    }

    .footer-button {
        width: 38px;
        height: 38px;
    }

    .footer-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 2.2rem;
    }

    .subheading {
        font-size: 1rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .projects-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    /* Projects Page Mobile */
    .projects-section {
        padding: 7rem 1rem 2rem;
    }

    .experience-section {
        padding: 7rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .project-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .project-image {
        height: 180px;
        margin-bottom: 1rem;
    }

    .project-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .back-home-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .projects-header {
        top: 1rem;
    }

    .main-nav {
        padding: 0.5rem 0.8rem;
        gap: 0.2rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.9rem;
    }

    .blog-section {
        padding: 7rem 1rem 2rem;
    }

    .experience-section {
        padding: 7rem 1rem 2rem;
    }

    .blog-photo {
        margin-bottom: 1.5rem;
    }

    .photo-container {
        height: 300px;
    }

    .photo-text {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .site-footer {
        margin-top: 2.5rem;
        padding: 0.75rem;
    }

    .footer-content {
        padding: 0.5rem 1rem;
        border-radius: 20px;
    }

    .footer-message {
        font-size: 0.85rem;
    }

    .footer-links {
        gap: 0.5rem;
    }

    .footer-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .footer-button {
        width: 36px;
        height: 36px;
    }

    .footer-button svg {
        width: 16px;
        height: 16px;
    }

    .footer-credit {
        font-size: 0.75rem;
    }
}

/* Blog Section */
.blog-section {
    padding: 10rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-gallery {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-photo {
    width: 100%;
    margin-bottom: 2rem;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 0, 0, 0.2);
    transition: all 0.4s ease;
    background: #ffffff;
}

.photo-container:hover {
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.3);
    transform: scale(1.03);
    border-color: rgba(255, 0, 0, 0.5);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(26, 26, 26, 0.4);
    border: 2px solid rgba(255, 0, 0, 0.2);
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 2rem 3rem;
    border: 2px solid rgba(255, 0, 0, 0.3);
}

.photo-container:hover .photo-overlay {
    opacity: 1;
}

.photo-text {
    color: #1a1a1a;
    font-size: 1.2rem;
    line-height: 1.75;
    text-align: center;
    max-width: 800px;
    margin: 0;
}

.site-footer {
    margin-top: 4rem;
    padding: 1rem 2rem;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.home .site-footer {
    max-width: 480px;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
}

.home .footer-content {
    padding: 0.4rem 1rem;
    gap: 0.25rem;
}

.home .footer-credit {
    font-size: 0.75rem;
    margin-top: 0.1rem;
}

.footer-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.footer-message {
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.5;
    margin: 0;
    max-width: 100%;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #333333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.footer-link:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.footer-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.footer-button:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
    color: #ff0000;
}

.footer-button.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
    border-color: #0077b5;
    color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.footer-button.github:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: #1a1a1a;
    color: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-button.email:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.3);
}

.footer-button svg {
    width: 20px;
    height: 20px;
}

.footer-credit {
    font-size: 0.8rem;
    color: #666666;
    margin: 0;
    margin-top: 0.25rem;
}

/* Dark Mode Styles */
html[data-theme="dark"] body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%) !important;
    color: #ffffff;
}

html[data-theme="dark"] .subheading {
    color: #cccccc;
}

html[data-theme="dark"] .about-text {
    color: #e0e0e0;
}

html[data-theme="dark"] .skills-line {
    color: #b0b0b0;
}

html[data-theme="dark"] .context-line {
    color: #a0a0a0;
}

html[data-theme="dark"] .btn-secondary {
    color: #ff6666;
    border-color: rgba(255, 0, 0, 0.5);
}

html[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #ff0000;
    color: #ff0000;
}

html[data-theme="dark"] .main-heading {
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ffffff;
}

html[data-theme="dark"] .social-link:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

html[data-theme="dark"] .social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    color: #0077b5;
}

html[data-theme="dark"] .social-link.github:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

html[data-theme="dark"] .projects-header::before {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .nav-toggle {
    color: #ffffff;
}

html[data-theme="dark"] .nav-toggle:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

html[data-theme="dark"] .nav-link {
    color: #ffffff;
}

html[data-theme="dark"] .nav-link:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

html[data-theme="dark"] .theme-toggle {
    color: #ffffff;
}

html[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
}

html[data-theme="dark"] .page-title {
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .page-subtitle {
    color: #e0e0e0;
}

html[data-theme="dark"] .project-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .project-card:hover {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3);
    background: rgba(25, 25, 25, 0.9);
}

/* Keep red in gradient - only change dark text to white */
html[data-theme="dark"] .project-title {
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .tech-tag {
    background: rgba(255, 0, 0, 0.15);
    color: #ff6666;
    border-color: rgba(255, 0, 0, 0.35);
}

html[data-theme="dark"] .footer-content {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .footer-message {
    color: #e0e0e0;
}

html[data-theme="dark"] .footer-link {
    color: #ffffff;
}

html[data-theme="dark"] .footer-link:hover {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

html[data-theme="dark"] .footer-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 0, 0, 0.3);
    color: #ffffff;
}

html[data-theme="dark"] .footer-button:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

html[data-theme="dark"] .footer-button.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
    color: #0077b5;
}

html[data-theme="dark"] .footer-button.github:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: #ffffff;
}

html[data-theme="dark"] .footer-button.email:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: #ff0000;
    color: #ff0000;
}

html[data-theme="dark"] .footer-credit {
    color: #cccccc;
}

html[data-theme="dark"] .project-description {
    color: #cccccc;
}

html[data-theme="dark"] .experience-org-item {
    border-bottom-color: rgba(255, 0, 0, 0.2);
}

html[data-theme="dark"] .experience-org-name {
    color: #cccccc;
}

html[data-theme="dark"] .experience-job-item {
    color: #cccccc;
    border-bottom-color: rgba(255, 0, 0, 0.2);
}

html[data-theme="dark"] .experience-job-item strong {
    color: #ffffff;
}

html[data-theme="dark"] .experience-category {
    background: linear-gradient(45deg, #ffffff, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom-color: rgba(255, 0, 0, 0.4);
}

html[data-theme="dark"] .experience-card-company {
    color: #ffffff;
}

html[data-theme="dark"] .experience-role {
    color: #ff6666;
}

html[data-theme="dark"] .experience-meta-item {
    color: #b0b0b0;
}

html[data-theme="dark"] .experience-tools-heading {
    color: #e0e0e0;
}

html[data-theme="dark"] .experience-tools-heading svg {
    color: #ff6666;
}

html[data-theme="dark"] .experience-tag {
    background: rgba(255, 0, 0, 0.15);
    color: #ff6666;
    border-color: rgba(255, 0, 0, 0.35);
}

html[data-theme="dark"] .experience-description {
    color: #cccccc;
}

html[data-theme="dark"] .image-placeholder {
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
}

html[data-theme="dark"] .photo-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 0, 0.2);
    background: #0a0a0a;
}

html[data-theme="dark"] .photo-container:hover {
    box-shadow: 0 15px 50px rgba(255, 0, 0, 0.4);
    border-color: rgba(255, 0, 0, 0.5);
}

html[data-theme="dark"] .photo-placeholder {
    color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 0, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
}

html[data-theme="dark"] .photo-overlay {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255, 0, 0, 0.3);
}

html[data-theme="dark"] .photo-text {
    color: #ffffff;
}

html[data-theme="dark"] .back-home-link {
    color: #ffffff;
}

html[data-theme="dark"] img {
    filter: none;
    opacity: 1;
}

html[data-theme="dark"] .photo-container img {
    filter: none;
    opacity: 1;
}
