/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #777;
    --white: #fff;
    --black: #000;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    width: 100%;
    display: block;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    color: var(--dark-color);
}

.section-title span {
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo span {
    color: var(--primary-color);
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--light-color);
}

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

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

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-light);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.social-links {
    display: flex;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    margin-right: 15px;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

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

.image-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(52, 152, 219, 0.3), rgba(46, 204, 113, 0.3));
    z-index: 1;
}

.image-wrapper img {
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-left: 30px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.personal-info div span {
    font-weight: 600;
    color: var(--dark-color);
}

.download-cv {
    margin-top: 20px;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--light-color);
}

.skills-content {
    margin-top: 50px;
}

.skills-description {
    max-width: 600px;
    margin: 0 auto 50px;
    text-align: center;
}

.skills-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.skills-description p {
    color: var(--text-light);
}

.skills-list {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-info span:first-child {
    font-weight: 600;
    color: var(--dark-color);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}

.progress.html {
    width: 95%;
}

.progress.css {
    width: 90%;
}

.progress.js {
    width: 85%;
}

.progress.django {
    width: 87%;
}

.progress.node {
    width: 75%;
}

.progress.python {
    width: 87%;
}

.progress.postgreSQL {
    width: 74%;
}
.progress.mysql {
    width: 75%;
}

/* Education Section */
.education {
    padding: 100px 0;
    background-color: var(--white);
}

.education-content {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.education-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.education-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
    text-align: right;
}

.education-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
    text-align: left;
}

.education-date {
    position: absolute;
    top: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.education-item:nth-child(odd) .education-date {
    right: 0;
    transform: translateX(50%);
}

.education-item:nth-child(even) .education-date {
    left: 0;
    transform: translateX(-50%);
}

.education-details {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.education-details h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.education-details h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.education-details p {
    color: var(--text-light);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--light-color);
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image img {
    height: 250px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-color: var(--light-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

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

.project-links .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #bbb;
}

.footer-contact ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bbb;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .education-item:nth-child(odd) {
        padding-right: 40%;
    }
    
    .education-item:nth-child(even) {
        padding-left: 40%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .navbar {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        transition: var(--transition);
        z-index: 999;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar ul {
        flex-direction: column;
        align-items: center;
        padding-top: 30px;
    }
    
    .navbar ul li {
        margin: 15px 0;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .about-image {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .about-text {
        padding-left: 0;
    }
    
    .education-content::before {
        left: 30px;
    }
    
    .education-item {
        justify-content: flex-start !important;
        padding-left: 80px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .education-item .education-date {
        left: 0 !important;
        transform: translateX(0) !important;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .projects-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
}