body {
    font-family: Arial, Helvetica, sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease, background 0.3s ease;
}

body.dark-mode nav {
    background: rgba(26, 26, 26, 0.95);
}

nav.hide {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    height: 60px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

#theme-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    color: #333;
}

body.dark-mode #theme-icon {
    color: #ffffff;
}

.theme-toggle:hover #theme-icon {
    transform: rotate(20deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

body.dark-mode .nav-menu li a {
    color: #ffffff;
}

.nav-menu li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(66, 165, 245);
    transition: width 0.3s ease;
}

/* .nav-menu li a:hover {
    color: rgb(66, 165, 245);
} */

.nav-menu li a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 15px;
    position: relative;
}

.menu-line {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    position: absolute;
    transition: all 0.3s ease;
}

body.dark-mode .menu-line {
    background: #ffffff;
}

body.dark-mode .nav-menu li a::after {
    background: rgb(66, 165, 245);
}

.menu-line:first-child {
    top: 0;
}

.menu-line:last-child {
    bottom: 0;
}

.menu-icon.active .menu-line:first-child {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-icon.active .menu-line:last-child {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
}

.hero-container {
    text-align: center;
    max-width: 600px;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgb(66, 165, 245);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(66, 165, 245, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

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

.professions {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body.dark-mode .professions {
    color: #aaa;
}

.profession {
    font-weight: 500;
}

.separator {
    display: none;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(66, 165, 245, 0.1);
    transition: all 0.3s ease;
    color: #333;
}

body.dark-mode .social-links a {
    color: #ffffff;
    background: rgba(66, 165, 245, 0.15);
}

.social-links a:hover {
    background: rgb(66, 165, 245);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 165, 245, 0.4);
}

.social-links a svg {
    width: 24px;
    height: 24px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

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

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: rgb(66, 165, 245);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: #f8f9fa;
}

body.dark-mode .about {
    background: #0d0d0d;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

body.dark-mode .about-content p {
    color: #ccc;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills {
    padding: 80px 20px;
}

.skills-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

body.dark-mode .accordion-item {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.accordion-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

body.dark-mode .accordion-item:hover {
    box-shadow: 0 5px 20px rgba(66, 165, 245, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: rgba(66, 165, 245, 0.05);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

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

.accordion-title svg {
    width: 24px;
    height: 24px;
    color: rgb(66, 165, 245);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    color: #666;
    transition: transform 0.3s ease;
}

body.dark-mode .accordion-icon {
    color: #aaa;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 25px 25px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

body.dark-mode .tech-item {
    background: #0d0d0d;
}

.tech-item:hover {
    transform: translateY(-5px);
    background: rgba(66, 165, 245, 0.1);
    box-shadow: 0 5px 15px rgba(66, 165, 245, 0.2);
}

.tech-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.tech-item span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

body.dark-mode .tech-item span {
    color: #ffffff;
}

/* Footer */
footer {
    background: #f8f9fa;
    padding: 40px 20px 20px;
    margin-top: 80px;
    border-top: 1px solid #e0e0e0;
}

body.dark-mode footer {
    background: #0d0d0d;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content {
    margin-bottom: 25px;
}

.footer-text {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

body.dark-mode .footer-text {
    color: #ccc;
}

.love-emoji {
    display: inline-block;
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

.footer-link {
    color: rgb(66, 165, 245);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: rgb(33, 150, 243);
    text-decoration: underline;
}

.footer-tech {
    font-size: 14px;
    color: #777;
    /* font-style: italic; */
}

body.dark-mode .footer-tech {
    color: #999;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(66, 165, 245, 0.1);
    transition: all 0.3s ease;
    color: #333;
}

body.dark-mode .footer-social a {
    color: #ffffff;
    background: rgba(66, 165, 245, 0.15);
}

.footer-social a:hover {
    background: rgb(66, 165, 245);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-social a svg {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    font-size: 13px;
    color: #888;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

body.dark-mode .footer-copyright {
    color: #777;
    border-top: 1px solid #333;
}

/* Projects Page */
.projects-page {
    min-height: calc(100vh - 200px);
    padding: 120px 20px 80px;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

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

.page-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
}

body.dark-mode .page-subtitle {
    color: #aaa;
}

.projects-list {
    max-width: 800px;
}

.project-item {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.dark-mode .project-item {
    border-bottom: 1px solid #333;
}

.project-item:hover {
    padding-left: 15px;
    background: rgba(66, 165, 245, 0.05);
}

.project-date {
    flex-shrink: 0;
    width: 180px;
    font-size: 14px;
    color: #888;
    font-family: 'Courier New', monospace;
}

body.dark-mode .project-date {
    color: #999;
}

.project-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: color 0.3s ease;
}

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

.project-item:hover .project-name {
    color: rgb(66, 165, 245);
}

/* Project Detail Page */
.project-detail {
    min-height: calc(100vh - 200px);
    padding: 120px 20px 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgb(66, 165, 245);
    text-decoration: none;
    margin-bottom: 40px;
    transition: gap 0.3s ease;
}

.back-link:hover {
    gap: 12px;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

.project-content {
    max-width: 800px;
}

.project-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

body.dark-mode .project-header {
    border-bottom: 2px solid #333;
}

.project-title {
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

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

.project-period {
    font-size: 16px;
    color: #888;
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
}

body.dark-mode .project-period {
    color: #999;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(66, 165, 245, 0.1);
    color: rgb(66, 165, 245);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

body.dark-mode .tag {
    background: rgba(66, 165, 245, 0.2);
}

.project-description h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-top: 40px;
    margin-bottom: 15px;
}

body.dark-mode .project-description h2 {
    color: #ffffff;
}

.project-description h2:first-child {
    margin-top: 0;
}

.project-description p {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

body.dark-mode .project-description p {
    color: #ccc;
}

.project-description ul {
    list-style: none;
    margin: 20px 0;
}

.project-description ul li {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    padding-left: 25px;
    position: relative;
    margin-bottom: 12px;
}

body.dark-mode .project-description ul li {
    color: #ccc;
}

.project-description ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgb(66, 165, 245);
    font-weight: bold;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgb(66, 165, 245);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: rgb(33, 150, 243);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 165, 245, 0.3);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* Contact Page */
.contact-page {
    min-height: calc(100vh - 200px);
    padding: 120px 20px 80px;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.dark-mode .info-card {
    background: #1a1a1a;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(66, 165, 245, 0.15);
}

.info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(66, 165, 245, 0.1);
    border-radius: 50%;
    margin-bottom: 15px;
}

body.dark-mode .info-icon {
    background: rgba(66, 165, 245, 0.2);
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: rgb(66, 165, 245);
}

.info-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

body.dark-mode .info-card h3 {
    color: #ffffff;
}

.info-card p,
.info-card a {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

body.dark-mode .info-card p,
body.dark-mode .info-card a {
    color: #aaa;
}

.info-card a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: rgb(66, 165, 245);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(66, 165, 245, 0.1);
    transition: all 0.3s ease;
    color: #333;
}

body.dark-mode .contact-social a {
    color: #ffffff;
    background: rgba(66, 165, 245, 0.15);
}

.contact-social a:hover {
    background: rgb(66, 165, 245);
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-social a svg {
    width: 20px;
    height: 20px;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
}

body.dark-mode .contact-form-container {
    background: #1a1a1a;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

body.dark-mode .form-group label {
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #0d0d0d;
    border-color: #333;
    color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(66, 165, 245);
    box-shadow: 0 0 0 3px rgba(66, 165, 245, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: rgb(66, 165, 245);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: rgb(33, 150, 243);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 165, 245, 0.3);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-container {
        padding: 30px 20px;
        order: -1;
    }
}