/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #1e293b;
    line-height: 1.7;
    padding: 20px;
    background-image: radial-gradient(circle at top right, rgba(125, 125, 125, 0.08), transparent 400px),
                      radial-gradient(circle at bottom left, rgba(100, 100, 100, 0.05), transparent 400px);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.cv-card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease;
    border: 1px solid rgba(240, 240, 240, 0.8);
}

.cv-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Header Section */
.profile-header {
    background: linear-gradient(135deg, #0ea977, #047857);
    color: white;
    padding: 40px;
    position: relative;
    border-bottom-left-radius: 30px;
}

.profile-info h1 {
    font-size: 2.6rem;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-info h2 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.location {
    font-size: 1rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
}

.location i {
    margin-right: 8px;
    color: #6ee7b7;
}

/* Section Styles */
section {
    padding: 30px 35px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 30px;
    width: 5px;
    height: 40px;
    background: linear-gradient(to bottom, #0ea977, #047857);
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    transition: height 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

section:hover::before {
    height: 60px;
}

.section-title {
    color: #065f46;
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.section-title:hover {
    color: #064e3b;
}

.section-title i {
    margin-right: 12px;
    color: #0ea977;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.section-title:hover i {
    transform: translateY(-2px);
}

/* Experience Items */
.experience-item {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.company-details {
    flex: 1;
    min-width: 220px;
    padding-right: 25px;
    position: relative;
}

.company-details h3 {
    color: #065f46;
    font-size: 1.25rem;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.company-details h3:hover {
    color: #064e3b;
}

.company-details h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, #0ea977, #047857);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.company-details h3:hover::after {
    width: 100%;
}

.position {
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.duration, .company-location {
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.duration i, .company-location i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: #34d399;
    transition: transform 0.3s ease;
}

.company-details:hover .duration i,
.company-details:hover .company-location i {
    transform: translateX(2px);
}

.job-description {
    flex: 2;
    min-width: 300px;
}

.job-description ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: none;
}

.job-description li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    transition: transform 0.3s ease;
}

.job-description li:hover {
    transform: translateX(3px);
}

.job-description li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #0ea977;
    transition: color 0.3s ease;
}

.job-description li:hover::before {
    color: #064e3b;
}

.tech-stack {
    font-size: 0.95rem;
    color: #374151;
    background-color: #f8fafc;
    padding: 10px 15px;
    border-radius: 10px;
    margin-top: 12px;
    display: inline-block;
    border-left: 4px solid #0ea977;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tech-stack:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Education Section */
.education-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.education-item:hover {
    background-color: #f1f5f9;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.institution-details h3 {
    color: #065f46;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.institution-details h3:hover {
    color: #064e3b;
}

.degree {
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 5px;
    border-left: 3px solid #0ea977;
    padding-left: 10px;
    transition: border-left-width 0.3s ease, padding-left 0.3s ease;
}

.education-item:hover .degree {
    border-left-width: 6px;
    padding-left: 12px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
}

.skill-tag {
    background: linear-gradient(to right, #0ea977, #047857);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
}

.skill-tag::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

/* Print Button */
.print-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(5px);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease, transform 0.3s ease;
}

.print-button:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.print-button i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.print-button:hover i {
    transform: rotate(-10deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-item {
        flex-direction: column;
    }
    
    .company-details {
        margin-bottom: 20px;
        padding-right: 0;
    }
    
    .container {
        padding: 10px;
    }
    
    .cv-card {
        border-radius: 15px;
    }
    
    .profile-header {
        padding: 30px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 25px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: none;
        padding: 0;
    }
    
    .cv-card {
        box-shadow: none;
        border-radius: 0;
    }
    
    .print-button {
        display: none;
    }
    
    section::before {
        display: none;
    }
    
    .skill-tag {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
} 