/* Resume Specific Styles */
.resume-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Disable all animations on resume page */
.resume-container *,
.resume-header,
.resume-section,
.resume-cta {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* Override any text-reveal or bento-box animations */
.text-reveal,
.bento-box {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
    transition: none !important;
}

/* Ensure all resume content is immediately visible */
.resume-container .text-reveal.active,
.resume-container .bento-box.active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Force immediate visibility for all resume elements */
body .resume-container,
body .resume-header,
body .resume-section,
body .resume-cta {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: none !important;
    transition: none !important;
}

/* Override any global animation styles */
body .resume-container * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0.3s !important; /* Keep only hover transitions */
    transition-delay: 0s !important;
}

/* Resume Button Styling */
.resume-btn {
    font-size: 1.3rem;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(74,65,212,0.12);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translate(-50%, -50%);
}

.resume-btn:hover::before {
    width: 100%;
    height: 100%;
}

.resume-btn:hover {
    color: var(--accent-color);
    transform: rotate(5deg) scale(1.1);
}

/* Resume Header */
.resume-header {
    background: var(--box-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.resume-profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex: 1;
    position: relative;
}

.resume-photo {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid var(--accent-color) !important;
    display: block !important;
    flex-shrink: 0 !important;
    background-color: var(--secondary-bg) !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    margin-top: -10px !important;
}

/* Additional styling to ensure circular shape */
.resume-profile img.resume-photo {
    border-radius: 50% !important;
    clip-path: circle(50% at center) !important;
}

/* Resume Info Section */
.resume-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.resume-info h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: var(--heading-color);
    line-height: 1.2;
    font-weight: 700;
}

.resume-info h2 {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.3;
}

.resume-tagline {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    margin-top: 5px;
}

.resume-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 280px;
    align-self: flex-start;
    margin-top: -5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--accent-color);
    width: 16px;
}

/* Resume Sections */
.resume-section {
    background: var(--box-color);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.resume-section h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-section h3 i {
    color: var(--accent-color);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-category h4 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--secondary-bg);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.experience-item {
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.exp-header h4 {
    color: var(--heading-color);
    font-size: 1.2rem;
}

.exp-period {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.exp-company {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.exp-description {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-item {
    text-align: center;
    padding: 20px;
    background: var(--secondary-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.service-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.service-item h4 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Achievements List */
.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    color: var(--text-color);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Resume CTA */
.resume-cta {
    background: linear-gradient(135deg, #4a41d4 0%, #e52e71 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.resume-cta h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.resume-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-primary:hover {
    background: white;
    color: #4a41d4;
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 12px 32px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .main-header,
    footer,
    .resume-cta {
        display: none !important;
    }
    
    .resume-container {
        max-width: none;
        padding: 0;
    }
    
    .resume-section,
    .resume-header {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .resume-header {
        page-break-after: avoid;
    }
    
    .skill-tag {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        color: black !important;
    }
    
    .service-item {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
    }
    
    * {
        color: black !important;
    }
    
    .resume-info h2,
    .exp-period,
    .resume-section h3 i,
    .contact-item i,
    .service-item i,
    .achievements-list li::before {
        color: #333 !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .resume-header {
        flex-direction: column;
        gap: 25px;
        padding: 25px;
    }
    
    .resume-profile {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        text-align: left;
    }
    
    .resume-photo {
        width: 80px !important;
        height: 80px !important;
        margin-top: 0 !important;
    }
    
    .resume-contact {
        min-width: auto;
        width: 100%;
        margin-top: 0;
    }
    
    .resume-info h1 {
        font-size: 1.8rem;
    }
    
    .resume-info h2 {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 200px;
    }
}