:root {
    --text-color: #1a1c20;
    --link-color: #f4f4f4;
    --background-color: #f8f8f8;
    --accent-color: #ab947e;
    --accent-light: #c3a995;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    font-size: 16px; 
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    height: 5rem;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--accent-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .left a {
    margin-left: 0.8rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-right: 1.5rem;
    position: relative;
}

nav .right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--link-color);
    transition: width 0.3s ease;
}

nav .right a:hover::after {
    width: 100%;
}

nav .right a:hover {
    color: var(--link-color);
}

/* Section Styles */
section {
    padding: 8rem 1rem;
    min-height: 80vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    transition: var(--transition);
    background-color: white;
    box-shadow: var(--box-shadow);
}

/* Section Heading Styles */
section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 90%;
    font-weight: 700;
    color: var(--text-color);
    margin: 2rem 1rem 4rem;
    letter-spacing: 1px;
    position: relative;
}

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

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.typewriter h2 {
    display: inline-block;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
    white-space: nowrap;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    border-right: 0.15em solid var(--accent-color);
    animation: 
        typing 4.5s steps(50, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

/* About Section */
#about-section {
    min-height: 100vh;
    display: flex; 
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
}

#about-section h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

#about-section .pic {
    display: block;
    margin: 1rem auto 2rem;
    width: 100%;
    max-width: 300px;
}

#about-section .pic img {
    width: 100%;
    height: auto;
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border: 4px solid white;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    object-fit: cover;
}

#about-section .pic img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#about-section .bio {
    margin: 0 auto 2.5rem;
    padding: 2rem;
    max-width: 56.25rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

#about-section .bio p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
}

#about-section .social-links {
    display: flex; 
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

#about-section .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

#about-section .social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

#about-section .social-links i {
    font-size: 2rem;
    color: var(--accent-color);
    transition: var(--transition);
}

#about-section .social-links a:hover i {
    color: var(--accent-light);
}

/* Projects Section */
#projects-section {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    overflow: visible;
    padding: 0 1rem;
    position: relative;
}

#projects-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

.projects-scroll-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    overflow: visible;
    flex-wrap: wrap;
    white-space: normal;
    position: relative;
}

.project-box {
    width: 100%;
    min-height: 500px;
    text-align: left;
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.project-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    transition: transform 0.5s ease;
}

.project-box:hover img {
    transform: scale(1.05);
}

.project-box h4 {
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.project-box h5 {
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    background-color: rgba(171, 148, 126, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.85rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.project-box p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #494a4a;
    line-height: 1.7;
    flex-grow: 1;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0;
}

/* Skills Section */
#skills-section {
    display: flex; 
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

#skills-section h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Experience Section */
#experience-section {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#experience-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.experience-item {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: left;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

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

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.experience-header h4 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.experience-duration {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

.experience-description ul {
    list-style: none;
    padding: 0;
}

.experience-description li {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-description li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.experience-description li:last-child {
    margin-bottom: 0;
}

#skills-section .skills-container {
    display: flex; 
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

#skills-section i {
    font-size: 2.2rem;
    color: var(--accent-color);
    background-color: white;
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills-section i:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
    letter-spacing: 0.5px;
    width: 100%;
}

footer p {
    color: white;
}

/* Media Queries for Responsiveness */
@media (min-width: 1400px) {
    .projects-scroll-container {
        max-width: 1200px;
        gap: 2.5rem;
    }
}

@media (max-width: 1399px) {
    .projects-scroll-container {
        max-width: 1000px;
        gap: 2rem;
    }
}

@media (max-width: 1200px) {
    .projects-scroll-container {
        max-width: 900px;
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .projects-scroll-container {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }
    
    .project-box {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    .typewriter h2 {
        font-size: 1.8rem;
        white-space: normal;
        animation: none;
        border-right: none;
    }
    
    nav {
        padding: 0 1rem;
    }
    
    nav .right a {
        margin-right: 0.8rem;
        font-size: 1rem;
    }
    
    #about-section .pic img {
        max-width: 250px;
        max-height: 250px;
    }
    
    #skills-section i {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    #skills-section .skills-container {
        gap: 20px;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .experience-header h3 {
        font-size: 1.3rem;
    }
    
    .experience-header h4 {
        font-size: 1.1rem;
    }
    
    .projects-scroll-container {
        gap: 1rem;
        padding: 0.5rem 0.5rem;
    }
    
    .project-box {
        min-height: 450px;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .typewriter h2 {
        font-size: 1.5rem;
    }
    
    #about-section .bio p {
        font-size: 1rem;
    }
    
    #skills-section .skills-container {
        gap: 15px;
    }
    
    #skills-section i {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .project-box {
        padding: 1rem;
        min-height: 450px;
    }
}