/* CV Page Specific Styles */

.cv-page {
    background: linear-gradient(120deg, #f7f9fb 60%, #eebbc3 100%);
    min-height: 100vh;
    font-family: 'Montserrat', Arial, sans-serif;
}

.cv-main {
    padding: 2rem 0 4rem 0;
}

/* CV Header Section */
.cv-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 3rem;
    padding: 3rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(35, 41, 70, 0.1);
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.profile-image {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #eebbc3, #667eea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(238, 187, 195, 0.3);
}

.profile-image i {
    font-size: 3rem;
    color: #fff;
}

.profile-info h1 {
    font-size: 3rem;
    margin: 0 0 0.5rem 0;
    color: #232946;
    font-weight: 700;
}

.profile-info h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    color: #666;
    font-weight: 400;
}

.title-focus {
    font-size: 1.1rem;
    color: #eebbc3;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.contact-info i {
    color: #eebbc3;
    width: 16px;
}

/* CV Sections */
.cv-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-bottom: 2.5rem;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(35, 41, 70, 0.1);
    border: 1px solid rgba(238, 187, 195, 0.25);
    transition: all 0.3s ease;
}

.cv-section:hover {
    box-shadow: 0 8px 32px rgba(35, 41, 70, 0.12);
    transform: translateY(-2px);
}

.cv-section h3 {
    color: #232946;
    font-size: 2rem;
    margin: 0 0 2.5rem 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-weight: 700;
    position: relative;
}

.cv-section h3::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #eebbc3, transparent);
    border-radius: 1px;
}

.cv-section h3 i {
    color: #eebbc3;
    font-size: 1.6rem;
    background: linear-gradient(135deg, #eebbc3, #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: justify;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Recent Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(238, 187, 195, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(35, 41, 70, 0.08);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(238, 187, 195, 0.1), transparent);
    transition: left 0.6s ease;
}

.project-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(35, 41, 70, 0.15);
    border-color: #eebbc3;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(238, 187, 195, 0.4);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eebbc3, #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(238, 187, 195, 0.3);
}

.project-icon i {
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.project-header h4 {
    color: #232946;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
}

.project-date {
    background: #f7f9fb;
    color: #666;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #eebbc3;
}

.project-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.project-tech span {
    background: linear-gradient(135deg, rgba(238, 187, 195, 0.15), rgba(102, 126, 234, 0.1));
    color: #232946;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(238, 187, 195, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.project-tech span:hover {
    background: linear-gradient(135deg, #eebbc3, #667eea);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 187, 195, 0.4);
}

/* Freelance Card */
.freelance-card {
    background: linear-gradient(135deg, rgba(238, 187, 195, 0.1), rgba(102, 126, 234, 0.1));
    border: 2px solid rgba(238, 187, 195, 0.3);
    border-radius: 16px;
    padding: 2rem;
}

.freelance-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.freelance-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #eebbc3, #667eea);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(238, 187, 195, 0.3);
}

.freelance-icon i {
    color: #fff;
    font-size: 1.8rem;
}

.freelance-info h4 {
    color: #232946;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.freelance-period {
    background: #eebbc3;
    color: #232946;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.freelance-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.freelance-achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(238, 187, 195, 0.3);
}

.achievement i {
    color: #eebbc3;
    font-size: 1.2rem;
    width: 20px;
}

.achievement span {
    color: #232946;
    font-weight: 600;
    font-size: 0.95rem;
}

.freelance-services h5 {
    color: #232946;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.freelance-services ul {
    margin: 0;
    padding-left: 1.5rem;
}

.freelance-services li {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

/* First two cards (Platform and AI) take 50% each - 3 columns each out of 6 */
.skill-category:nth-child(1),
.skill-category:nth-child(2) {
    grid-column: span 3;
}

/* Remaining cards in 3-column layout - 2 columns each out of 6 */
.skill-category:nth-child(n+3) {
    grid-column: span 2;
}

.skill-category {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #eebbc3;
    box-shadow: 0 2px 8px rgba(35, 41, 70, 0.05);
}

.skill-category h4 {
    color: #232946;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h4 i {
    color: #eebbc3;
    font-size: 1.2rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.skill-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
}

.skill-name {
    color: #232946;
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background: #f7f9fb;
    border-radius: 4px;
    overflow: hidden;
    margin: 0 1rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #eebbc3, #667eea);
    border-radius: 4px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skill-item:hover .skill-progress {
    box-shadow: 0 0 10px rgba(238, 187, 195, 0.6);
}

.skill-item:hover .skill-name {
    color: #eebbc3;
    transform: translateX(2px);
    transition: all 0.3s ease;
}

.skill-level {
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Skills Content Styles */
.skills-content {
    background: #f7f9fb;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(35, 41, 70, 0.08);
}

.skills-description {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #232946;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: #232946;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag.ai-tag {
    background: #eebbc3;
    color: #232946;
    font-weight: 600;
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 41, 70, 0.2);
}

.skill-tag.ai-tag:hover {
    background: #232946;
    color: #fff;
    box-shadow: 0 4px 12px rgba(238, 187, 195, 0.4);
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.education-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eebbc3;
    box-shadow: 0 2px 8px rgba(35, 41, 70, 0.05);
}

.education-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #eebbc3, #667eea);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.education-icon i {
    color: #fff;
    font-size: 1.5rem;
}

.education-info h4 {
    color: #232946;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.education-info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

@media print {
    /* Print-specific styles */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .cv-page {
        background: white !important;
        min-height: auto;
    }
    
    .cv-header {
        background: white !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: 2px solid #eebbc3;
        page-break-inside: avoid;
    }
    
    .cv-section {
        background: white !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
        border: 1px solid #ddd;
        margin-bottom: 1.5rem;
        padding: 1.5rem;
        page-break-inside: avoid;
    }
    
    .project-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .project-card:hover {
        transform: none !important;
    }
    
    .skill-category {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .freelance-card {
        box-shadow: none !important;
        border: 2px solid #eebbc3;
        background: white !important;
        page-break-inside: avoid;
    }
    
    .achievement {
        background: white !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    /* Remove animations and transitions for print */
    .skill-progress,
    .project-card,
    .cv-section,
    .project-icon,
    .project-tech span {
        transition: none !important;
        animation: none !important;
    }
    
    .skill-progress::before {
        display: none !important;
    }
    
    /* Adjust header for print */
    header {
        display: none !important;
    }
    
    footer {
        display: none !important;
    }
    
    /* Ensure proper page breaks */
    .cv-section {
        break-inside: avoid;
    }
    
    /* Print optimization for better text contrast */
    h1, h2, h3, h4 {
        color: #232946 !important;
    }
    
    p {
        color: #444 !important;
    }
    
    /* Hide interactive elements */
    .skill-progress::before {
        opacity: 0 !important;
    }
}
/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .profile-info h1 {
        font-size: 2.5rem;
    }
    
    .profile-info h2 {
        font-size: 1.3rem;
    }
    
    .title-focus {
        font-size: 1rem;
    }
    
    .contact-info {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .cv-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .cv-section h3 {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .cv-section h3::after {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .project-icon {
        width: 45px;
        height: 45px;
    }
    
    .skills-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        width: 100%;
    }
    
    .skill-category {
        padding: 1.2rem;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    /* Ensure consistent width for all skill cards */
    .skill-category:nth-child(1),
    .skill-category:nth-child(2),
    .skill-category:nth-child(3),
    .skill-category:nth-child(4),
    .skill-category:nth-child(5),
    .skill-category:nth-child(6),
    .skill-category:nth-child(7),
    .skill-category:nth-child(8) {
        width: 100% !important;
        grid-column: span 1 !important;
    }
    
    .freelance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .freelance-achievements {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .freelance-card {
        padding: 1.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .education-item {
        padding: 1.2rem;
    }
    
    .skill-item {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: center;
    }
    
    .skill-bar {
        margin: 0;
    }
    
    .section-content p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .cv-main {
        padding: 1rem 0 2rem 0;
    }
    
    .cv-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-info h2 {
        font-size: 1.1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .cv-section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .cv-section h3 {
        font-size: 1.4rem;
    }
    
    .project-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .freelance-card {
        padding: 1.2rem;
        border-radius: 12px;
    }
    
    .skill-category {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .education-item {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .section-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .project-tech span {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Mobile skill tags consistency */
    .skills-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .skill-tag,
    .skill-tag.ai-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}