
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #3498db 100%);
    min-height: 100vh;
    position: relative;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    padding: 0 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    padding: 18px 30px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: #64748b;
    background: transparent;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-item:hover::before,
.nav-item.active::before {
    left: 0;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.nav-item i {
    font-size: 16px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    min-height: 100vh;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #20608b 100%), #2c3e50;
    color: white;
    padding: 30px 20px;
    /* overflow-y: auto; */
    z-index: 100;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 80px;
    width: 100%;
    background: linear-gradient(to top, #476d86, transparent);
    z-index: -1;
}

.profile-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    position: relative;
}


.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: bold;
    color: #3498db;
    margin: 0 auto 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-title {
    font-size: 18px;
    margin-bottom: 12px;
    opacity: 0.95;
    font-weight: 600;
}

/* -- Section Removed
.profile-skills {
    font-size: 14px;
    margin-bottom: 35px;
    opacity: 0.85;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
} */


.contact-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 475;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-info li:last-child {
    border-bottom: none;
}

.contact-info li:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 10px;
}

.contact-info i {
    margin-right: 15px;
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
}

/* Custom */
.contact-item {
    display: flex;
    color: var(--white);
    text-decoration: none;  
}

/* Main Content */
.main-content {
    margin-left: 320px;
    padding: 130px 50px 50px 50px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    position: relative;
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
    position: relative;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 30px 40px;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: headerShine 4s infinite;
}

@keyframes headerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.section-header i {
    margin-right: 20px;
    font-size: 28px;
    opacity: 0.9;
}

.section-content {
    padding: 40px;
}

/* Summary Stats */
.stats-container {
    margin-bottom: 40px;
}

.summary-text {
    margin-bottom: 25px;
    font-size: 17px;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 20px;
    border-left: 5px solid #3498db;
}

.summary-highlights {
    list-style: none;
}

.summary-highlights li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.summary-highlights li::before {
    /* content: '→'; */
    content: '▶';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.summary-highlights li:hover {
    color: #3498db;
    transform: translateX(5px);
}

.summary-highlights li:hover::before {
    transform: translateX(5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card:hover {
    border-color: #3498db;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 42px;
    font-weight: 650;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technology Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.tech-category {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tech-category h4 {
    color: #2d3748;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-category h4::before {
    content: '';
    width: 4px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #3498db 100%);
    border-radius: 2px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.tech-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: all 0.3s ease;
}

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

.tech-tag:hover {
    background: linear-gradient(135deg, #dd2b66 0%, #d44071 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Experience */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
}

.experience-item {
    border-left: 4px solid #3498db; /* adds left border like a timeline */
    padding-left: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.9) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px white;
}


.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}


.job-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.job-company {
    color: #3498db;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 16px;
}

.job-time {
    color: #718096;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.job-description {
    margin-bottom: 20px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
    font-style: italic;
}

.job-highlights {
    list-style: none;
}

.job-highlights li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: #4a5568;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.job-highlights li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
}

.job-highlights li:hover {
    color: #3498db;
    transform: translateX(5px);
}

.job-highlights li:hover::before {
    transform: translateX(5px);
}

/* Education */
.education-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 35px;
    border-radius: 20px;
    border-left: 6px solid #3498db;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #3498db 100%);
    opacity: 0.05;
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.15);
}

.degree-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.degree-university {
    color: #3498db;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 16px;
}

.degree-time {
    color: #718096;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
}

.degree-description {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

/* Certifications */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.cert-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-card:hover {
    border-color: #3498db;
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.3);
}

.cert-img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.cert-name {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4; 
}

.cert-link {
    text-decoration: none;  
}



/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 25px 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 100px 20px 30px 20px;
    }

    .navbar {
        left: 0;
        padding: 0 15px;
    }

    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px;
    }

    .nav-item {
        padding: 12px 18px;
        font-size: 12px;
    }

    .profile-image {
        width: 110px;
        height: 110px;
        font-size: 44px;
    }

    .profile-name {
        font-size: 26px;
    }

    .section-content {
        padding: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .experience-timeline {
        padding-left: 25px;
    }

    .experience-item::before {
        left: -40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-item {
        padding: 10px 14px;
        font-size: 11px;
    }

    .nav-item i {
        display: none;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 70px;
    left: 320px;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    width: 0%;
    transition: width 0.3s ease;
}

@media (max-width: 768px) {
    .scroll-indicator {
        left: 0;
    }

}

/* On small screens, hide the scroll-progress indicator, increase margin before profile margin, reduce sidebar height  */
@media (max-width: 1024px) {
    .scroll-indicator {
        display: none;
    }

    .profile-section {
        margin-top: 80px;
    }

    .sidebar {
        min-height: 85vh;
        height: 85vh;
    }
}

