/* Reset and Base Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4facfe 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #4facfe, #00f2fe, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Header Styles */

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #4facfe 100%);
    color: white;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.profile-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.profile-image {
    flex-shrink: 0;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    animation: photoGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #1e3c72, #2a5298, #4facfe, #00f2fe);
    border-radius: 50%;
    z-index: -1;
    animation: borderRotate 4s linear infinite;
    opacity: 0.7;
}

.profile-photo:hover {
    transform: scale(1.08) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    animation: photoBounce 0.6s ease-in-out;
}

@keyframes photoGlow {
    0% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(30, 60, 114, 0.3);
    }
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 30px rgba(30, 60, 114, 0.6);
    }
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes photoBounce {
    0%,
    100% {
        transform: scale(1.08) rotate(5deg);
    }
    50% {
        transform: scale(1.12) rotate(5deg);
    }
}

.image-placeholder {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: relative;
}

.image-placeholder:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
}

.image-placeholder i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.photo-upload-hint {
    text-align: center;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}

.profile-info h1.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0, #4facfe, #00f2fe);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGradient 4s ease-in-out infinite;
    position: relative;
}

.profile-info h1.name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    animation: nameUnderline 3s ease-in-out infinite;
}

@keyframes nameGradient {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes nameUnderline {
    0%,
    100% {
        width: 0;
    }
    50% {
        width: 100%;
    }
}

.profile-info h2.title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-info .summary {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.contact-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-item i {
    width: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}


/* Main Content */

.main-content {
    padding: 2rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #4facfe);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
}

.section-title i {
    color: #1e3c72;
    font-size: 1.3rem;
}


/* Timeline Styles */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #1e3c72, #2a5298);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: linear-gradient(135deg, #1e3c72, #2a5298, #4facfe);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px #1e3c72, 0 4px 15px rgba(30, 60, 114, 0.3);
    animation: markerFloat 3s ease-in-out infinite;
    position: relative;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #1e3c72, #2a5298, #4facfe, #00f2fe);
    border-radius: 50%;
    z-index: -1;
    animation: markerPulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes markerFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes markerPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

.timeline-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.8rem;
    border-radius: 16px;
    border-left: 5px solid #1e3c72;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.job-header {
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.company {
    font-weight: 500;
    color: #1e3c72;
}

.duration {
    color: #a0aec0;
}

.job-description {
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.projects h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.8rem;
}

.projects ul {
    list-style: none;
    padding-left: 0;
}

.projects li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: #4a5568;
    line-height: 1.5;
}

.projects li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #1e3c72;
    font-weight: bold;
}

.tech-stack {
    background: linear-gradient(135deg, #1e3c72, #2a5298, #4facfe);
    color: white;
    padding: 1.2rem 1.8rem;
    border-radius: 12px;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.6;
    box-shadow: 0 6px 25px rgba(30, 60, 114, 0.4);
    border-left: 5px solid #48bb78;
    position: relative;
    overflow: hidden;
    animation: techStackFloat 4s ease-in-out infinite;
}

@keyframes techStackFloat {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

.tech-stack::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.tech-stack strong {
    color: #f0f0f0;
    font-weight: 600;
}


/* Skills Section */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag.expert {
    background: linear-gradient(135deg, #48bb78, #38a169, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.skill-tag.intermediate {
    background: linear-gradient(135deg, #ed8936, #dd6b20, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

.skill-tag.beginner {
    background: linear-gradient(135deg, #e53e3e, #c53030, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.skill-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Education Section */

.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    border-left: 5px solid #1e3c72;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.education-item:hover {
    transform: translateX(5px);
}

.education-year {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3c72;
    min-width: 80px;
}

.education-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.institution {
    color: #4a5568;
    margin-bottom: 0.3rem;
}

.grade {
    color: #1e3c72;
    font-weight: 500;
}


/* Languages Section */

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border-left: 5px solid #1e3c72;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.language-item:hover {
    transform: translateY(-2px);
}

.language-name {
    font-weight: 600;
    color: #2d3748;
}

.language-level {
    color: #1e3c72;
    font-size: 0.9rem;
}


/* Footer */

.footer {
    background: #2d3748;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}


/* Responsive Design */

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .header-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    .profile-info h1.name {
        font-size: 2rem;
    }
    .main-content {
        padding: 1.5rem;
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .timeline {
        padding-left: 1rem;
    }
    .timeline-item {
        padding-left: 1rem;
    }
    .timeline-marker {
        left: -0.5rem;
    }
    .education-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .education-year {
        min-width: auto;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    .languages-grid {
        grid-template-columns: 1fr;
    }
    .language-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 2rem 1rem;
    }
    .profile-info h1.name {
        font-size: 1.8rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .job-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* Print Styles */

@media print {
    body {
        background: white;
        padding: 0;
    }
    .container {
        box-shadow: none;
        border-radius: 0;
    }
    .header {
        background: #1e3c72 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    .timeline-content,
    .education-item,
    .language-item {
        background: #f8fafc !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    .skill-tag {
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    .footer {
        background: #2d3748 !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
}


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}


/* Custom scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2a5298, #4facfe);
}