* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --accent-color: #3b82f6;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Main Content Styles */
main {
    padding-top: 80px;
}

.section {
    min-height: calc(100vh - 80px);
    display: none;
    padding: 2rem;
}

.section.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.content {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Home Page Styles */
.hero-section {
    text-align: center;
    padding: 2rem 0;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease;
}

.roles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.role {
    font-weight: 500;
    animation: fadeIn 1s ease;
}

.role-separator {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

.about-me {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
}

.about-me p {
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.about-me p:nth-child(1) { animation-delay: 0.2s; }
.about-me p:nth-child(2) { animation-delay: 0.4s; }
.about-me p:nth-child(3) { animation-delay: 0.6s; }
.about-me p:nth-child(4) { animation-delay: 0.8s; }
.about-me p:nth-child(5) { animation-delay: 1s; }

.email {
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    font-size: 1.8rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 1.2s; }
.social-link:nth-child(2) { animation-delay: 1.4s; }
.social-link:nth-child(3) { animation-delay: 1.6s; }

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-link.youtube {
    color: #FF0000;
}

.social-link.youtube:hover {
    color: #FF0000;
    transform: translateY(-3px) scale(1.1);
}

/* Resume Page Styles */
.resume-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.resume-section h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.objective {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.objective p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.education-item {
    margin-bottom: 2rem;
}

.education-item h4 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.degree {
    font-weight: 500;
    color: var(--secondary-color);
}

.graduation-date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.achievements, .coursework {
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.experience-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateX(10px);
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-header h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.company {
    font-weight: 500;
    color: var(--secondary-color);
}

.date {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.experience-item ul {
    list-style-type: none;
    padding-left: 0;
}

.experience-item li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.experience-item li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .resume-section {
        padding: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .experience-item:hover {
        transform: none;
    }
}

/* Projects Page Styles */
.projects-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Skill Map Section */
.skill-map-section {
    margin-bottom: 3rem;
    text-align: center;
}

.skill-map-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.skill-map-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.skill-map-embed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #fff;
    border: 1px solid #e5e7eb;
}

.skill-map-embed iframe {
    border: none;
    width: 100%;
    height: 600px;
    display: block;
}

@media (max-width: 768px) {
    .skill-map-embed iframe {
        height: 400px;
    }
    
    .skill-map-title {
        font-size: 1.5rem;
    }
    
    .skill-map-description {
        font-size: 1rem;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-role {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.project-description ul {
    list-style-type: none;
    padding-left: 0;
}

.project-description li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-description li::before {
    content: '→';
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.project-link i {
    font-size: 0.9rem;
}

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

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

/* Profile Image Styles */
.profile-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    margin: 15px 0;
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

/* Adjust navbar padding to accommodate larger image */
.nav-content {
    padding: 0.5rem 2rem;
}

@media (max-width: 768px) {
    .profile-image {
        width: 90px;
        height: 90px;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .menu-btn {
        display: block;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
