/*
 * Base Styling and Variables
 */
:root {
    --primary-color: #5d42e6;
    --secondary-color: #8b5cf6;
    --background-color: #f5f5f5;
    --card-background: #ffffff;
    --text-color-primary: #333333;
    --text-color-secondary: #666666;
    --border-color: #e0e0e0;
    --heading-color: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

/*
 * Header
 */
header {
    background-color: var(--card-background);
    padding: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color-primary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-primary);
}

/*
 * Hero Section
 */
.hero-section {
    background: linear-gradient(to right, #6d28d9, #5b21b6);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-text .role {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.hero-text .location {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.hero-text .tagline {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-contact i {
    margin-right: 0.5rem;
}


/*
 * General Sections
 */
.section {
    padding: 6rem 0;
}

.section.gray-bg {
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 4rem;
}

/*
 * About Section
 */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    text-align: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.stat-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-primary);
    margin-bottom: 0.5rem;
}

/*
 * Skills Section
 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item img, .skill-item i {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    color: var(--primary-color);
}

.skill-item span {
    font-weight: 500;
}

/*
 * Experience Section
 */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-card {
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-card {
    text-align: right;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    top: 25px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.timeline-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.timeline-card .company-name {
    font-weight: 500;
    color: var(--text-color-primary);
    margin-bottom: 0.5rem;
}

.timeline-card .duration {
    color: var(--text-color-secondary);
}

.timeline-card ul {
    list-style: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.timeline-card ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-card ul li::before {
    content: "\f00c"; /* Font Awesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
}


/*
 * Projects Section
 */
.project-filters {
    text-align: center;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    margin: 0.25rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
    color: var(--text-color-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
}

.project-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-color-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
}

.project-tech span {
    font-size: 0.8rem;
    background-color: var(--background-color);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-weight: 500;
}

/*
 * Education & Certs
 */
.education-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.card-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--heading-color);
}

.card-body .list-item {
    margin-bottom: 1.5rem;
}

.card-body h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.card-body p {
    margin-top: 0.25rem;
    font-size: 0.9rem;
}

.course-status {
    font-style: italic;
    color: var(--text-color-secondary);
}

/*
 * Accomplishments
 */
.accomplishments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.accomplishment-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accomplishment-card .value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.accomplishment-card p {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.accomplishment-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


/*
 * Contact Section
 */
.contact-section {
    padding-top: 4rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.contact-info-card, .contact-form-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-card h3, .contact-form-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.contact-info-card p {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.detail-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-form-card form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-card input, .contact-form-card textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
}

.contact-form-card textarea {
    resize: vertical;
}

.btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #6d28d9;
}

/*
 * Footer
 */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/*
 * Responsive Design
 */
@media (max-width: 1024px) {
    .experience-timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 14px;
        right: auto;
    }
    
    .timeline-card {
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: var(--card-background);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        position: absolute;
        top: 60px;
        left: 0;
        padding-bottom: 1rem;
    }
    
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text .role {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}