/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

nav h1 {
    font-size: 1.5rem;
}

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

nav ul li {
    margin-left: 20px;
}

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

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

/* Sections */
section {
    padding: 80px 0;
    margin-top: 60px; /* Account for fixed header */
}

#hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 120px 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex-shrink: 0;
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-name {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.hero-phone, .hero-email, .hero-links {
    margin: 0;
    font-size: 1.1rem;
}

.hero-link {
    color: #fff;
    text-decoration: underline;
    margin: 0 5px;
}

.hero-link:hover {
    color: #ddd;
}

.hero-personal-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
    max-width: 400px;
}

.hero-personal-info h3 {
    margin-bottom: 10px;
    color: #fff;
}

.hero-personal-info p {
    margin: 5px 0;
}

#hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info a {
    color: #fff;
    text-decoration: underline;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

section p, section ul {
    margin-bottom: 20px;
}

/* Experience, Education */
.experience-item, .education-item {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.experience-item h3, .education-item h3 {
    color: #3498db;
    margin-bottom: 10px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-category {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.skill-category h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 5px;
}

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

.project-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.project-item h3 {
    color: #3498db;
    margin-bottom: 10px;
}

.project-item a {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-item a:hover {
    background: #2980b9;
}

/* Achievements */
#achievements ul {
    list-style: none;
    padding-left: 0;
}

#achievements li {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

#achievements li img {
    margin-right: 15px;
    border-radius: 5px;
}

/* Personal, References */
#personal, #references {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.reference-item {
    margin-bottom: 20px;
}

.reference-item h3 {
    color: #3498db;
}

/* Contact */
#contact {
    background: #2c3e50;
    color: #fff;
    text-align: center;
}

/* Footer */
footer {
    background: #34495e;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

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

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        margin-left: 10px;
    }

    #hero h2 {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }
}
