/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header and Navigation */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #3498db;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #34495e;
}

/* Hero Section */
#hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin: 0 -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
}

.hero-text {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.tagline {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.intro {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* About Section */
#about {
    padding-bottom: 1rem;
}

#about p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Projects Section */
#projects {
    padding-top: 2rem;
}

/* Experience Section */
.experience-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.experience-intro a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.experience-intro a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.experience-item:last-child {
    margin-bottom: 0;
}

.company {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.project-item {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    transition: box-shadow 0.3s;
}

.project-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-image-placeholder {
    flex-shrink: 0;
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    overflow: hidden;
}

.project-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    align-self: flex-start;
}

.project-link:hover {
    color: #2980b9;
}

/* Contact Section */
#contact {
    text-align: center;
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-links a,
.contact-button {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.contact-links a:hover,
.contact-button:hover {
    background-color: #2980b9;
}

.email-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.email-info p {
    margin: 0;
    color: #555;
    font-size: 1rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .project-item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .project-image-placeholder {
        width: 100%;
        height: 200px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-links a,
    .contact-button {
        width: 200px;
    }
}
