:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --max-width: 1200px;
    --border-radius: 4px;
    --box-shadow: 0 5px 15px rgb(0 0 0 / 10%);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    padding: 0;
    margin: 0;
}

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

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

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

/* Utils */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--secondary-color)
}

/* Header */
header {
    background: var(--primary-color);
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(44 62 80 / 90%), rgb(52 152 219 / 80%));
}

header .container{
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.header-contact {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.header-contact a, .header-contact span {
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact a:hover {
    color: var(--accent-color)
}

header p{
    font-size: 1.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background-color: var(--light-color);
}

#about {
    width: 100%;
    overflow: hidden;
}

#about .container {
    display: block;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

#about .section-title #about p {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Skills */
.skills-container {
    max-width: var(--max-width);
    margin: 2rem auto 0;
}

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

.skill-category {
    width: 100%;
    max-width: 300px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.skill-category h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 0.5rem;
}

.skill-category ul li {
    margin-bottom: 0.5rem;
}

/* Experience */
.experience-articles {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.experience-item:hover {
    transform: translateY(-5px);
}

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

.experience-header h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-header h4 {
    color: var(--text-light);
    font-weight: normal;
}

.experience-details {
    padding-left: 1.5rem;
}

.experience-details ul li {
    margin-bottom: 0.75rem;
    position: relative;
}

.experience-details li::before {
    content: "•";
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

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

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

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

.project-content {
    padding: 1.5rem;
}

.project h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Education */
.education-item {
    max-width: 800px;
    margin: 0 auto;
}

.education-item h3 {
    color: var(--primary-color);
}

.education-item h4 {
    color: var(--text-light);
    font-weight: normal;
    margin-bottom: 1rem;
}

/* Contact */
#contact .container {
    max-width: 800px;
    text-align: center;
}

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

/* .social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
} */

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* Media responses */
@media (width <= 768px) {
    header {
        padding: 6rem 0 4rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    #about .container {
        grid-template-columns: 1fr;
    }

    #about img {
        max-width: 70%;
        margin: 0 auto;
    }
    
    .skills-container {
        overflow: visible;
        mask-image: none;
        padding: 0;
    }

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

    .skill-category {
        max-width: 100%;
    }

    .experience-item {
        padding: 1.5rem;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (width <= 500px) {
    html {
        font-size: 14px;
    }

    .section-title::after {
        width: 50px;
    }

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