/* General Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ecf0f1;
    --text-color: #34495e;
    --white: #ffffff;
    --container-padding: 20px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 var(--container-padding);
}

h1, h2, h3 {
    font-weight: 600;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

section {
    padding: 60px 0;
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

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

nav .nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav .nav-links a:hover {
    color: var(--primary-color);
}

/* Header */
header {
    background: var(--white);
    padding-top: 120px;
    padding-bottom: 60px;
}

.header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: 40px;
}

.header-text h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.header-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.header-image img {
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

/* About Section */
#about {
    background: var(--white);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skill {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.skill h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.skill ul {
    list-style: none;
}

.skill li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.skill li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
}

/* Experience Section */
#experience {
    background: var(--white);
}

.experience-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

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

.experience-item h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.experience-item p {
    margin: 5px 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.project h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.project p {
    margin-bottom: 15px;
    flex-grow: 1;
}

.project a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 10px;
}

/* Contact Section */
#contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-item {
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media(max-width: 768px) {
    nav .container {
        flex-direction: column;
    }

    nav .nav-links {
        margin-top: 15px;
    }

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

    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .header-image {
        grid-row: 1;
        margin-bottom: 20px;
    }

    .skills-grid, .projects-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
}