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

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #ecf0f1;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-content {
    flex: 1;
    min-width: 300px;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    width: 20px;
    color: var(--accent-color);
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
}

/* Sidebar */
.sidebar {
    background: var(--light-gray);
    padding: 40px 30px;
    border-right: 1px solid var(--border-color);
}

/* Content Area */
.content {
    padding: 40px;
}

/* Section Styles */
.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: var(--secondary-color);
}

/* About Text */
.about-text {
    line-height: 1.8;
    text-align: justify;
}

/* Skills */
.skills-list {
    list-style: none;
    padding-left: 0;
}

.skills-list li {
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-left: 3px solid var(--secondary-color);
    border-radius: 3px;
    font-weight: 500;
    color: var(--primary-color);
}

.skills-list li::before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Languages */
.languages {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.language-name {
    font-weight: 600;
    color: var(--primary-color);
}

.language-level {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Certifications */
.certifications {
    list-style: none;
}

.certifications li {
    padding: 10px;
    margin-bottom: 8px;
    background: white;
    border-left: 3px solid var(--secondary-color);
    border-radius: 3px;
}

.certifications li::before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
}

/* Experience Items */
.experience-item {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.date {
    color: var(--secondary-color);
    font-weight: 600;
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.company {
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.company i {
    color: var(--secondary-color);
}

.responsibilities {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.responsibilities li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.7rem;
}

/* Education Items */
.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.degree {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.school {
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.school i {
    color: var(--secondary-color);
}

.description {
    color: #666;
    margin: 5px 0;
}

/* Projects */
.project-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
    border-top: 3px solid var(--secondary-color);
}

.project-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-desc {
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

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

.tag {
    background: var(--secondary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Interests */
.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.interest-tag {
    background: var(--light-gray);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.interest-tag i {
    color: var(--accent-color);
}

.interest-tag:hover i {
    color: white;
}

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

.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
    }

    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .content,
    .sidebar {
        padding: 25px 20px;
    }

    .exp-header,
    .edu-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .job-title,
    .degree {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .header {
        background: var(--primary-color);
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .footer {
        display: none;
    }

    .skill-progress,
    .tag,
    .interest-tag {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
