/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --background: #f8fafc;
    --foreground: #1e293b;
    --muted: #94a3b8;
    --border: #e2e8f0;
    --card: #ffffff;
    --success: #10b981;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.section {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}
.btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--card);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s;
}
.nav-link:hover {
    color: var(--primary);
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.bar {
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    margin: 3px 0;
    transition: 0.3s;
}
.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.profile-section {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.profile-image {
    flex-shrink: 0;
}
.profile-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.profile-content {
    flex: 1;
}
.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.hero-description {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}
.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.social-link.linkedin {
    background-color: #0a66c2;
    color: white;
}
.social-link.github {
    background-color: #333;
    color: white;
}
.social-link.twitter {
    background-color: #1da1f2;
    color: white;
}
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}
.about-content p {
    margin-bottom: 1.5rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill-category {
    background-color: var(--card);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.skill-item {
    background-color: var(--background);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: 500;
    border: 1px solid var(--border);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.project-card {
    background-color: var(--card);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.project-content {
    padding: 1.5rem;
}
.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.project-content p {
    color: var(--secondary);
    margin-bottom: 1rem;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.project-tech span {
    background-color: var(--background);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}
.project-links {
    display: flex;
    gap: 1rem;
}
.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.project-link:hover {
    text-decoration: underline;
}
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-date {
    min-width: 120px;
    padding-right: 2rem;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    margin-left: 20px;
}

.timeline-content {
    padding-left: 2rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 3px solid var(--background);
}

.timeline-content h3 {
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--secondary);
    margin-bottom: 0.25rem;
}

/* Contact Section */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

.contact-form {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background-color: var(--foreground);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: white;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--accent);
}

/* Responsive Design */
@media (max-width: 992px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--card);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .profile-image img {
        width: 250px;
        height: 250px;
    }
    
    .social-link span {
        display: none;
    }
    
    /* Corrected Timeline Styles */
    .education-timeline::before {
        left: 15px;
    }

    .timeline-item {
        flex-direction: column;
        margin-left: 20px; /* Add margin to prevent timeline from touching edge */
    }

    .timeline-date {
        padding-right: 0;
        text-align: left;
        margin-left: 0;
        margin-bottom: 0.25rem;
        font-size: 0.9rem; /* Reduced font size for mobile */
        min-width: auto;
    }

    .timeline-content {
        padding-left: 1.5rem; /* Adjusted padding to prevent overlap */
        padding-top: 0;
    }

    .timeline-content::before {
        left: -24px; /* Move the dot to the correct position on the line */
        top: 4px; /* Adjust vertical position */
    }
}