/* Personal Portfolio Website - Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f9f9f9;
}

nav {
    background-color: #2c3e50;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    background-color: #753ce7;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e74c3c;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 70vh;
}

.hero {
    padding: 2rem ;
}

.hero-content {
    display: flex;
    align-items: left;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-text {
    order: 2
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.highlight {
    color: #3c6de7;
}

.tagline {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1rem;
}

.intro {
    margin-bottom: 1.5rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-small {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.btn-small:hover {
    background-color: #2980b9;
}

.about-section h2,
.projects-section h2,
.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    border-bottom: 3px solid #e74c3c;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.bio {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.bio p {
    margin-bottom: 1rem;
}

.skills-section {
    margin-bottom: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.skills-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.skill {
    margin-bottom: 1rem;
}

.skill span {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.skill-bar {
    background-color: #e0e0e0;
    height: 25px;
    border-radius: 12px;
    overflow: hidden;
}

.skill-level {
    background-color: #e74c3c;
    color: white;
    text-align: right;
    padding-right: 10px;
    line-height: 25px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.timeline-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-section h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.timeline-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #e74c3c;
}

.timeline-year {
    font-weight: bold;
    color: #3c80e7;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    margin-bottom: 0.3rem;
    color: #2c3e50;
}

.projects-section .section-desc {
    margin-bottom: 2rem;
    color: #666;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.project-info p {
    margin-bottom: 1rem;
    color: #666666;
}

.project-links {
    margin-top: 1rem;
}

.contact-container {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-form {
    flex: 2;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.contact-info {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: #e74c3c;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #e74c3c;
}

.availability {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    color: #666;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 150px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.8rem;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-image{
        order: 2;
    }
    .hero-text h1 {
        font-size: 2rem;
        order 1
    }
    
    .contact-container {
        flex-direction: column;
    }
}