/* Base styles */

.profile-picture {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

section {
    padding: 2rem 0;
    background-color: #fff;
}

section:first-of-type {
    padding-top: 80px;
}

.hero {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 4rem 0;
    position: relative;
    margin-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(0, 0, 0, 0.2) 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, rgba(0, 0, 0, 0.2) 2%, transparent 0%);
    background-size: 100px 100px;
    opacity: 0.1;
    transform: rotate(30deg) scale(2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-picture-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.profile-picture {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-picture-bg {
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(52, 152, 219, 0.5) 100%);
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.5;
    z-index: 1;
}

.profile-header h1 {
    color: white;
    margin: 1rem 0;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.role-title {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 1rem 0 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.header-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.header-social a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.header-social a:hover {
    color: white;
    transform: translateY(-2px);
}

.download-button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.download-button:hover {
    color: white;
    transform: translateY(-2px);
}

.download-button i {
    font-size: 1.5rem;
}

.cv-section {
    background: #fff;
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cv-section h2 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.cv-section p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.experience-title {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.experience-period {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-description {
    color: #333;
    margin-bottom: 1rem;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.technology-tag {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.skill-card, .project-card, .certification-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px var(--card-shadow);
    transition: all 0.3s ease;
}

.skill-card:hover, .project-card:hover, .certification-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--card-shadow);
}

.key-skills-section {
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
    padding-top: 1rem;
}

.key-skills-section h3 {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.key-skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.key-skill-category {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-color);
}

.key-skill-category strong {
    color: var(--text-color);
    font-weight: 600;
}

.technical-expertise {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.technical-expertise h3 {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.skill-category h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* Certifications Section */
.certifications-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.certifications-section h3 {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
}

.certifications-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.certification-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certification-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-right: 2rem;
}

.cert-header h4 {
    font-size: 0.95em;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
}

.cert-category {
    font-size: 0.8em;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.certification-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85em;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0.5rem 0;
}

.certification-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.certification-skills .skill-tag {
    font-size: 0.8em;
    padding: 0.2rem 0.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    opacity: 0.8;
}

.certification-skills .more-skills {
    background: var(--bg-color);
    color: var(--accent-color);
}

.cert-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--accent-color);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.cert-link:hover {
    opacity: 1;
}

.hidden-certs {
    display: none;
    transition: all 0.3s ease;
}

.hidden-certs.visible {
    display: block;
}

.cert-toggle-container {
    margin-top: 1rem;
    text-align: center;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-pill {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85em;
    opacity: 0.9;
}

.show-more-btn {
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    padding: 0.25rem 0;
    cursor: pointer;
    font-size: 0.8em;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
}

.show-more-btn:hover,
.show-more-btn.expanded {
    opacity: 1;
    text-decoration: underline;
}

.show-more-btn.expanded {
    margin-top: 1rem;
}

.skill-toggle-container {
    margin-top: 0.5rem;
}

.hidden-skills {
    display: none;
    margin-top: 0.5rem;
}

.hidden-skills.visible {
    display: block;
}

.skill-toggle-container .skill-pills {
    margin-bottom: 0.5rem;
}

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

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

.skill-category li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.skill-category li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.experience-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.text-muted {
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    height: 60px;
}

nav {
    display: flex;
    justify-content: center;
    height: 100%;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007bff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.profile-header {
    text-align: center;
    margin-bottom: 50px;
}

.profile-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.profile-header .title {
    font-size: 1.5rem;
    color: #34495e;
    margin-bottom: 20px;
}

.header-social {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.header-social a {
    color: #2c3e50;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.header-social a:hover {
    color: #3498db;
}

/* CV Section */
.cv-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.cv-block {
    margin-bottom: 40px;
}

.cv-block:last-child {
    margin-bottom: 0;
}

.cv-block h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.experience-item, .education-item {
    margin-bottom: 25px;
}

.experience-item h3, .education-item h3 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 5px;
}

.company, .institution {
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 10px;
}

.experience-item ul {
    list-style-type: none;
    padding-left: 20px;
}

.experience-item ul li {
    position: relative;
    margin-bottom: 8px;
}

.experience-item ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: -20px;
}

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

.skill-category h3 {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 10px;
}

.skill-category p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Sections */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

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

.project-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.certification-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.cert-link {
    color: #3498db;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

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

.skill-category h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

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

.skill-category li {
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

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

.tech-pill {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 5px 5px 5px 0;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

/* Contact Section */
/* About Section */
.about-section {
    background-color: var(--bg-color);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    color: var(--text-color);
}

.about-intro {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.interests, .values {
    margin-bottom: 2rem;
}

.interests h3, .values h3 {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.interests ul, .values ul {
    list-style: none;
    padding: 0;
}

.interests li, .values li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.interests li:before, .values li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.connect-section {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 2rem;
}

.connect-section h3 {
    font-size: 1.2em;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.connect-section p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    opacity: 0.9;
}

.connect-section .social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.social-link i {
    font-size: 1.2em;
}

/* Header Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-links a {
    color: #333;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007bff;
}

/* Certification Styles */
.certification-category {
    margin-bottom: 30px;
}

.certification-category h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.4em;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skills-learned {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skill-tag {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    opacity: 0.9;
}

.skill-tag:hover {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 15px;
    }
}

/* Projects Section */
.projects-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.project-card {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.hidden-projects {
    display: none;
}

.show-more-btn {
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    padding: 0.25rem 0;
    cursor: pointer;
    font-size: 0.8em;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
}

.show-more-btn:hover,
.show-more-btn.expanded {
    opacity: 1;
    text-decoration: underline;
}

.show-more-btn.expanded {
    margin-top: 1rem;
}

.project-timeline {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.hidden-techs {
    display: none;
}

.tech-toggle-container .show-more-btn {
    background-color: transparent;
    border: none;
    color: var(--accent-color);
    padding: 0.25rem 0;
    cursor: pointer;
    font-size: 0.8em;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
}

.tech-toggle-container .show-more-btn:hover,
.tech-toggle-container .show-more-btn.expanded {
    opacity: 1;
    text-decoration: underline;
}

.tech-toggle-container .show-more-btn.expanded {
    margin-top: 1rem;
}

.projects-section {
    max-width: 1200px;
    margin: 0 auto 20px;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
}
