/* resume.css */
:root {
    --primary-color: #00ff88;
    --bg-color: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --text-color: #000000;
    --text-secondary: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    transition: var(--transition);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    margin-left: auto;
    margin-right: 1rem;
    display: none;
}

[data-theme="light"] .theme-toggle {
    color: var(--text-color);
}

.theme-toggle:hover {
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: var(--transition);
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: var(--transition);
    transform-origin: 1px;
}

[data-theme="light"] .hamburger span {
    background: var(--text-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Resume Section */
.resume {
    flex: 1;
    padding: 100px 0;
    background: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resume-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.section-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.resume-description {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.resume-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    padding: 1.5rem;
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
}

.highlight-card:hover,
.highlight-card.active {
    background: rgba(0, 255, 136, 0.05);
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
}

[data-theme="light"] .highlight-card:hover,
[data-theme="light"] .highlight-card.active {
    background: rgba(0, 255, 136, 0.03);
}

.highlight-card.active {
    border-left-width: 6px;
}

.highlight-card h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-card p {
    color: var(--text-color);
    font-size: 1rem;
}

.card-detail {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: var(--border-radius);
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

.card-detail.show {
    display: block;
    max-height: 1000px; /* Adjust as needed */
    opacity: 1;
}

.resume-right {
    max-height: calc(100vh - 132px);
    overflow-y: auto;
    padding-right: 1rem; /* Add some padding to avoid scrollbar overlap */
}

#right-title {
    transition: var(--transition);
    margin-bottom: 2rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    transition: opacity 0.3s ease;
}

.exp-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
    color: var(--text-color);
}

[data-theme="light"] .exp-card {
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.exp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.exp-date {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.exp-company {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.exp-card p:last-of-type {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Skills specific styles */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 255, 136, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

[data-theme="light"] .skill-tag {
    background: rgba(0, 255, 136, 0.05);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* About Me specific styles */
.about-bio {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    line-height: 1.7;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

[data-theme="light"] .about-bio {
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Education specific styles */
.edu-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition);
    color: var(--text-color);
}

[data-theme="light"] .edu-card {
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 255, 136, 0.1);
    border-color: var(--primary-color);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--card-bg) 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    padding: 3rem 0 2rem;
    margin-top: auto;
    font-size: 0.95rem;
}

[data-theme="light"] .footer {
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    color: var(--text-secondary);
}

.footer-left h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.footer-left p:nth-child(2) {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.footer-left p:last-child {
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
}

.contact-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.contact-info strong {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

[data-theme="light"] .social-links a {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Sections */
section {
    min-height: 100vh;
    display: none;
}

section.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .theme-toggle {
        display: block;
        order: 3;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding-top: 80px;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] .nav-menu {
        background: rgba(255, 255, 255, 0.98);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateX(20px);
        transition: var(--transition);
    }

    .nav-menu.active .nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active .nav-link:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { transition-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { transition-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { transition-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { transition-delay: 0.5s; }

    .resume-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .resume-right {
        display: none;
    }

    .section-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .highlight-card {
        border-radius: var(--border-radius);
        border-left: none;
        border: 1px solid rgba(0, 255, 136, 0.1);
    }

    .highlight-card.active {
        border-left-width: 0;
        border-color: var(--primary-color);
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .skill-tags {
        justify-content: center;
    }

    .card-detail.show {
        max-height: 50vh;
        overflow-y: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-right {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-info {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 1.3rem;
    }

    .highlight-card {
        padding: 1.25rem;
    }

    .exp-card {
        padding: 1.25rem;
    }

    .card-detail {
        padding: 0.75rem;
    }
}