/* Root Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #ecf0f1;
    --text-color: #333;
    --gray-text: #666;
    --border-color: #bdc3c7;
}

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

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header/Profile Section */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 50px 30px;
    text-align: center;
}

.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

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

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-info h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.title {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.content {
    padding: 50px 30px;
}

.section {
    margin-bottom: 50px;
}

.section h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

.section p {
    color: var(--gray-text);
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Contact Information */
.contact-info {
    display: grid;
    gap: 15px;
}

.contact-item {
    padding: 12px;
    background-color: var(--light-bg);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

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

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

.skill-category {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    border-top: 4px solid var(--secondary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

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

.skill-category li {
    padding: 8px 0;
    color: var(--gray-text);
    padding-left: 20px;
    position: relative;
}

.skill-category li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Experience & Education */
.experience-item,
.education-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
}

.experience-item h3,
.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.3em;
}

.company,
.school {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline {
    color: var(--gray-text);
    font-size: 0.9em;
    margin-bottom: 10px;
    font-style: italic;
}

.description {
    color: var(--gray-text);
    line-height: 1.8;
}

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

.project-card {
    background-color: var(--light-bg);
    padding: 25px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.2em;
}

.project-card p {
    margin-bottom: 15px;
    color: var(--gray-text);
}

/* Button Style */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    font-weight: 600;
}

.btn:hover {
    background-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px;
    border-top: 3px solid var(--secondary-color);
}

.footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        gap: 20px;
    }

    .profile-info h1 {
        font-size: 2em;
    }

    .title {
        font-size: 1.1em;
    }

    .section h2 {
        font-size: 1.6em;
    }

    .content {
        padding: 30px 20px;
    }

    .header {
        padding: 40px 20px;
    }

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

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

    .social-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0;
        box-shadow: none;
    }

    .profile-info h1 {
        font-size: 1.6em;
    }

    .title {
        font-size: 1em;
    }

    .section h2 {
        font-size: 1.3em;
    }

    .content {
        padding: 20px 15px;
    }

    .header {
        padding: 30px 15px;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }
}
