/* Base Styles and Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

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

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 25%;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

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

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

.nav-links a {
    color: #fff;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

.menu-btn {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('/api/placeholder/1200/800') center/cover no-repeat;
    color: #fff;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.hero-btn:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* About Section */
.about {
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text .skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Experience Section */
.experience {
    background-color: #f9f9f9;
}

.experience-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

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

.position {
    font-size: 20px;
    margin-bottom: 5px;
}

.duration {
    color: #777;
}

.experience-list {
    margin-top: 15px;
    padding-left: 20px;
}

.experience-list li {
    margin-bottom: 10px;
}

/* Education Section */
.education {
    background-color: #fff;
}

.education-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.education-item {
    flex: 1 0 300px;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.degree {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.institute {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.year {
    font-size: 14px;
    color: #777;
}

/* Projects Section */
.projects {
    background-color: #f9f9f9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

.project-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.project-tag {
    background-color: var(--light-color);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
}

/* Project Detail Page Styles */
.project-detail {
    padding-top: 120px;
    background-color: #fff;
}

.project-detail h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.project-detail h1::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    color: #777;
    font-size: 16px;
}

.project-date {
    display: flex;
    align-items: center;
}

.project-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    margin-right: 8px;
    color: var(--secondary-color);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

.project-content {
    margin-top: 40px;
}

.project-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.project-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.project-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 5px;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tech-list li {
    background-color: var(--light-color);
    padding: 10px 15px;
    border-radius: 5px;
    transition: var(--transition);
}

.tech-list li:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
}

.project-gallery {
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.back-to-projects {
    display: inline-block;
    margin-top: 40px;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.back-to-projects:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Responsive styles for project detail pages */
@media (max-width: 768px) {
    .project-detail {
        padding-top: 100px;
    }
    
    .project-detail h1 {
        font-size: 28px;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .project-detail h1 {
        font-size: 24px;
    }
    
    .tech-list li {
        padding: 8px 12px;
    }
}

/* Contact Section */
.contact {
    background-color: #fff;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--secondary-color);
    color: #fff;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer-text {
    margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }
}