/* CV Page Specific Styles */
:root {
    --cv-green: #2a9d8f;
    --cv-green-light: #43aa8b;
    --cv-green-dark: #1d7873;
    --cv-green-bg: #f0f9f7;
    --cv-text-dark: #333333;
    --cv-text-light: #666666;
    --cv-border: #e0e0e0;
    --cv-shadow: 0 4px 12px rgba(42, 157, 143, 0.08);
}

/* CV Header */
.cv-header {
    background: linear-gradient(135deg, var(--cv-green), var(--cv-green-light));
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

.cv-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.cv-title-section {
    flex: 1;
    min-width: 300px;
}

.cv-main-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cv-contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 1.1rem;
}

.cv-contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.cv-contact-info a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.cv-contact-info a:hover {
    opacity: 0.9;
    text-decoration: underline;
}

.cv-profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--cv-shadow);
}

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

/* CV Container */
.cv-container {
    padding: 40px 0;
    background-color: white;
}

/* Section Styles */
.cv-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--cv-green-bg);
    border-radius: 15px;
    box-shadow: var(--cv-shadow);
    border-left: 5px solid var(--cv-green);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(42, 157, 143, 0.2);
}

.section-icon {
    font-size: 1.8rem;
    color: var(--cv-green);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(42, 157, 143, 0.2);
}

.section-title {
    color: var(--cv-green-dark);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.section-content {
    color: var(--cv-text-dark);
    line-height: 1.6;
    font-size: 1.05rem;
}

.section-content p {
    margin-bottom: 15px;
}

/* Image Break */
.cv-image-break {
    margin: 50px 0;
    text-align: center;
}

.break-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--cv-shadow);
}

.image-caption {
    margin-top: 15px;
    font-style: italic;
    color: var(--cv-text-light);
    font-size: 1rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.skill-category-title {
    color: var(--cv-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cv-green-bg);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--cv-text-dark);
}

.skill-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cv-green);
    font-weight: bold;
}

/* Timeline Styles */
.timeline, .experience-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before, .experience-timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--cv-green), var(--cv-green-light));
    border-radius: 3px;
}

.timeline-item, .experience-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 30px;
}

.timeline-item:before, .experience-item:before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cv-green);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--cv-green-bg);
}

.timeline-date, .experience-date {
    position: absolute;
    left: -120px;
    top: 0;
    background: var(--cv-green);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
}

.timeline-content h3, .experience-content h3 {
    color: var(--cv-green-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.institution, .company {
    color: var(--cv-green);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.description, .role-description {
    color: var(--cv-text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cert-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--cv-green);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
}

.cert-card h3 {
    color: var(--cv-text-dark);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.issuer {
    color: var(--cv-text-light);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.year {
    display: inline-block;
    background: var(--cv-green-bg);
    color: var(--cv-green);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Research Tags */
.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.research-tag {
    background: white;
    color: var(--cv-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid var(--cv-green-bg);
    transition: all 0.3s ease;
}

.research-tag:hover {
    background: var(--cv-green);
    color: white;
    border-color: var(--cv-green);
    transform: translateY(-2px);
}

/* Research Projects */
.research-projects {
    display: grid;
    gap: 20px;
}

.research-project {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--cv-green);
}

.research-project h3 {
    color: var(--cv-green-dark);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.organization {
    color: var(--cv-green);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 1rem;
}

.project-description {
    color: var(--cv-text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Projects List */
.projects-list {
    display: grid;
    gap: 20px;
}

.project-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    align-items: flex-start;
}

.project-icon {
    width: 50px;
    height: 50px;
    background: var(--cv-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.project-content h3 {
    color: var(--cv-green-dark);
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.project-content p {
    color: var(--cv-text-light);
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

/* Honours Grid */
.honours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.honour-card {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    align-items: flex-start;
    border: 2px solid var(--cv-green-bg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.honour-card:hover {
    transform: translateY(-5px);
    border-color: var(--cv-green);
}

.honour-icon {
    width: 40px;
    height: 40px;
    background: var(--cv-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.honour-content h3 {
    color: var(--cv-text-dark);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.honour-content p {
    color: var(--cv-text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* References Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.reference-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--cv-green);
}

.reference-card h3 {
    color: var(--cv-green-dark);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.reference-role {
    color: var(--cv-green);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 1rem;
}

.reference-company {
    color: var(--cv-text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.reference-contact p {
    color: var(--cv-text-dark);
    font-size: 0.9rem;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reference-contact i {
    color: var(--cv-green);
    width: 16px;
}

/* Footer */
.cv-footer {
    background: linear-gradient(135deg, #1a3a2f, var(--cv-green-dark));
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--cv-green-light);
}

.footer-section p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.footer-section a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 8px 0;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 10px 0;
    opacity: 0.8;
}

.print-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* Print Button */
.print-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--cv-green);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-btn:hover {
    background: var(--cv-green-dark);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .cv-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cv-contact-info {
        justify-content: center;
    }
    
    .timeline-date, .experience-date {
        position: relative;
        left: 0;
        margin-bottom: 10px;
        display: inline-block;
    }
    
    .timeline, .experience-timeline {
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .cv-main-title {
        font-size: 2.2rem;
    }
    
    .cv-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .skills-grid,
    .certifications-grid,
    .honours-grid,
    .references-grid {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .cv-header {
        padding: 30px 0;
    }
    
    .cv-main-title {
        font-size: 1.8rem;
    }
    
    .cv-contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .cv-profile-image {
        width: 150px;
        height: 150px;
    }
    
    .print-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .print-btn {
        display: none !important;
    }
    
    .cv-header {
        margin-top: 0;
        padding: 20px 0;
        -webkit-print-color-adjust: exact;
    }
    
    .cv-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .footer-section a:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}