/* Resume Specific Styles */

:root {
    --resume-bg: #f4f7f6;
    --sidebar-bg: #22092c;
    --sidebar-text: #ffffff;
    --main-bg: #ffffff;
    --border-color: #e0e0e0;
}

body {
    background-color: var(--resume-bg);
}

.resume-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.resume-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.resume-nav .btn-outline {
    color: var(--dark);
    border-color: var(--dark);
}

.resume-nav .btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* Resume Layout */
.resume-wrapper {
    padding: 3rem 0;
    min-height: 100vh;
}

.resume-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--main-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 300px 1fr;
    overflow: hidden;
}

/* Sidebar Styles */
.resume-sidebar {
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Profile Image */
.profile-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.profile-img-container:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

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

.profile-header {
    text-align: center;
}

.profile-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--white);
    line-height: 1.1;
}

.profile-header h2 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.9rem;
    text-align: left;
}

.contact-list a,
.contact-list span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.contact-list a:hover {
    color: var(--primary);
}

.contact-list i {
    width: 20px;
    color: var(--primary);
}

.sidebar-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title i {
    color: var(--primary);
}

.sidebar-item {
    margin-bottom: 1.5rem;
}

.sidebar-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.2rem;
}

.sidebar-item .institution {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-item .date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.sidebar-item .gpa {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.skills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary);
    color: var(--white);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2rem;
}

.sidebar-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Main Content Styles */
.resume-main {
    padding: 4rem 3rem;
}

.main-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--bg-off-white);
}

.section-title i {
    color: var(--primary);
    background: rgba(240, 89, 65, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.1rem;
}

.summary-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Experience Block */
.experience-block {
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
    /* Make space for the line */
}

.experience-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: -2.5rem;
    /* Extend to next item */
    width: 2px;
    background: var(--bg-off-white);
}

.experience-block:last-child::before {
    display: none;
    /* No line for last item */
}

.experience-block::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px rgba(240, 89, 65, 0.2);
}

.experience-block:last-child {
    margin-bottom: 0;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.job-role h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.job-role h5 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.job-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    background: var(--bg-off-white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.job-details {
    list-style: none;
}

.job-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.job-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Project Block */
.project-block {
    margin-bottom: 2rem;
}

.project-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.project-details {
    list-style: none;
}

.project-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.project-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Animations */
.slide-in-left {
    animation: slideInLeft 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slide-in-up {
    animation: slideInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.stagger-item {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Stagger Delays */
.stagger-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5) {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6) {
    animation-delay: 0.6s;
}

.stagger-item:nth-child(7) {
    animation-delay: 0.7s;
}

.stagger-item:nth-child(8) {
    animation-delay: 0.8s;
}

.stagger-item:nth-child(9) {
    animation-delay: 0.9s;
}

.stagger-item:nth-child(10) {
    animation-delay: 1.0s;
}

/* Keyframes */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .resume-container {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 1rem;
        border-radius: 12px;
    }

    .resume-sidebar {
        padding: 3rem 1.5rem;
        gap: 3rem;
        text-align: left;
    }

    .profile-header {
        text-align: center;
    }

    .contact-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
        width: 100%;
        margin: 0;
        align-items: start;
        justify-content: center;
    }

    .contact-list a,
    .contact-list span {
        display: flex;
        align-items: center;
        flex-direction: row;
        text-align: center;
        gap: 0.8rem;
        justify-content: center;
    }

    .sidebar-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
        gap: 0.5rem;
        width: 100%;
        margin: 0;
    }

    .sidebar-title {
        justify-content: flex-start;
    }

    .sidebar-list li {
        text-align: left;
        display: inline-block;
    }

    .skills-wrap {
        justify-content: flex-start;
    }

    .resume-main {
        padding: 2.5rem 1.5rem;
    }

    .job-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .job-role h4 {
        font-size: 1.1rem;
    }

    .job-role h5 {
        font-size: 1rem;
    }

    .summary-text,
    .job-details li,
    .project-details li {
        text-align: left;
    }

    .sidebar-section,
    .main-section {
        margin-bottom: 4rem;
    }
}

/* Hamburger Menu */
.resume-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

@media (max-width: 768px) {
    .resume-nav .nav-container {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .resume-menu-btn {
        display: block;
    }

    .resume-actions {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.98);
        padding: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        backdrop-filter: blur(10px);
    }

    .resume-actions.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }

    .resume-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .resume-sidebar,
    .resume-main {
        padding: 2rem 1rem;
    }

    .profile-header h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Print Styles */
@media print {
    @page {
        margin: 0;
        size: auto;
    }

    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .resume-nav,
    .btn,
    .resume-menu-btn,
    .footer {
        display: none !important;
    }

    .resume-wrapper {
        padding: 0;
        min-height: auto;
    }

    .resume-container {
        box-shadow: none;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        grid-template-columns: 280px 1fr;
        /* Keep grid for print */
        height: 100%;
    }

    .resume-sidebar {
        background: var(--sidebar-bg) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 2rem;
        min-height: 100vh;
    }

    .resume-main {
        padding: 2rem;
    }

    .skill-tag {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    /* Disable animations for print */
    .slide-in-left,
    .slide-in-up,
    .stagger-item {
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    /* Disable animations for print */
    .slide-in-left,
    .slide-in-up,
    .stagger-item {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}