/* Base Styles */
:root {
    --primary: #4F46E5;
    --primary-light: #6366F1;
    --dark: #1F2937;
    --dark-light: #374151;
    --light: #F9FAFB;
    --gray: #6B7280;
    --bg-light: #F3F4F6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--dark);
    color: white;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
.header {
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    color: white;
    text-align: center;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.header h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
}

.profile-summary {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.header-actions {
    margin-top: 30px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Add to your CSS */
#animated-name {
    overflow: hidden;
    font-size: 1.8rem;
    white-space: nowrap;
    margin: 0 auto;
    animation: 
      typing 2s steps(20, end),
      blink-caret 0.75s step-end infinite;
  }
  
  @keyframes typing {
    from { width: 0 }
    to { width: 100% }
  }
  
  @keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary); }
  }
  

.logo {
    width: 50px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

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

.nav-links li {
    margin-left: 30px;
}

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

.nav-links a:hover {
    color: var(--primary);
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.expertise-areas {
    margin-top: 30px;
}

.expertise-areas h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.expertise-areas ul {
    list-style: none;
}

.expertise-areas li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.expertise-areas li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dp {
    height: 400px;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: linear-gradient(45deg, #4F46E5, #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-header {
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-header:hover {
    opacity: 0.9;
}

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
}

.timeline-date {
    color: var(--gray);
    font-weight: 400;
}

.collapse-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.timeline-content {
    /* background: white; */
    background: var(--bg-light);
    border-radius: 8px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.timeline-content.show {
    max-height: 1000px;
    padding: 25px;
}

.timeline-content.collapsed {
    max-height: 0;
    padding: 0 25px;
}

.timeline-content ul {
    margin-left: 20px;
    margin-bottom: 18px;
}

.timeline-content li {
    margin-bottom: 8px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px
}

.tech-tags span {
    background: var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--dark);
}

.timeline-header.active .collapse-icon {
    transform: rotate(180deg);
}

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

.skill-category {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.project-header {
    padding: 20px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-header:hover {
    opacity: 0.9;
}

.project-header h3 {
    margin-bottom: 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.project-content.show {
    max-height: 1000px;
    padding: 25px;
}

.project-content.collapsed {
    max-height: 0;
    padding: 0 25px;
}

.project-content p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.project-content ul {
    margin-left: 20px;
}

.project-content li {
    margin-bottom: 8px;
}

.project-header.active .collapse-icon {
    transform: rotate(180deg);
}

/* Education */
.education-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.education-degree {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--primary);
}

.education-date {
    color: var(--gray);
    margin-bottom: 20px;
}

.education-courses {
    margin-top: 20px;
    text-align: left;
}

.education-courses h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.education-courses ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
}

.education-courses li {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    background: var(--dark);
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: left 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .header h2 {
        font-size: 1.3rem;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Scrollable Project Content */
.project-content.scrollable {
    max-height: 200px; /* Adjust height as needed */
    overflow-y: auto;
    padding: 20px;
    transition: none;
}

.project-content.scrollable ul {
    margin-left: 20px;
}

.project-content.scrollable li {
    margin-bottom: 8px;
}

/* Custom scrollbar styling */
.project-content.scrollable::-webkit-scrollbar {
    width: 8px;
}

.project-content.scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.project-content.scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.project-content.scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}