/* ===== General settings ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-color: #4361ee;
    --primary-light: #4895ef;
    --secondary-color: #3f37c9;
    --accent-color: #f72585;
    --text-dark: #2b2d42;
    --text-light: #6c757d;
    --bg-light: #ffffff;
    --bg-secondary: #f8f9fa;
    --linear-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------------Typography--------------- */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ---------------Navigation--------------- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background-color: var(--linear-gradient);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 12px;
}
.logo {
    color: var(--primary-color);
    width: 50px;
    height: auto;
    animation: glowAccent 4s ease-in-out infinite alternate;
}
.nav-menu {
    display: flex;
    gap: 2rem;
}
.nav-link {
    position: relative;
    margin-left: auto;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--primary-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover::after {
    width: 100%;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------------Hero--------------- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--linear-gradient);
    position: relative;
    padding: 0 20px;
}
.hero-content {
    max-width: 800px;
}
.hero-title {
    margin-bottom: 1.5rem;
}
.title-name {
    display: block;
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    animation: fadeInDown 1s ease;
}
.title-role {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}
.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    min-height: 2rem;
    opacity: 0;
    animation: fadeIn 0.1s ease 1s forwards;
}
.contact-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    animation: fadeIn 1s ease 0.9s both;
}
.contact-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    cursor: pointer;
}
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    animation: bounce 2s infinite;
}
.arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(45deg);
    margin-top: 5px;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}
.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}
.avatar-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    margin: 0 auto;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.avatar {
    width: 100%;
    height: 100%;
}

/* Skills Section */
.skills {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.skill-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}
.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.skill-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.skill-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.skill-progress {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));;
    gap: 2.5rem;
}
.project-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.project-card:hover {    
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}
.project-image {
    height: 200px;
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
}
.image-placeholder img {
    height: 11.5rem;
}
.project-content {
    padding: 1.5rem;
}
.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.tech-tag {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: var(--transition);
}
.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.project-link:hover {
    color: var(--secondary-color);
}
/* Resume Section */
.resume {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}
.resume-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));;
    gap: 3rem;
}
.resume-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.resume-card-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}
.timeline-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.timeline-subtitle {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}
.timeline-description {
    color: var(--text-light);
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.tool-name {
    font-weight: 500;
}
.download-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.download-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--bg-light);
}
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));;
    gap: 3rem;
}
.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.social-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}
.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(10px);
}
.social-icon {    
    font-size: 1.5rem;
    margin-right: 1rem;
}
.social-icon img {
    height: 30px;
}
.contact-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    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 2px rgba(67, 97, 238, 0.2);
}
.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--text-dark);
    color: white;
    text-align: center;
}
.footer-text {
    transition: var(--transition);
    cursor: default;
}
.footer-text:hover {
    color: var(--primary-light);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 46%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {        
        transform: translateY(-5px);
    }
}
@keyframes glowAccent {
    0% {
        text-shadow: 0 0 4px var(--primary-color);
    }
    100% {        
        text-shadow: 0 0 15px var(--primary-color);
    }
}

/* Fade-in animation for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .title-name {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: var(--bg-light);    
    }
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--bg-light);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 1rem;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-link {
        right: 26px;
    }
    .nav-toggle {
        display: block;
    }
    .title-name {
        font-size: 2.5rem;
    }
    .title-role {
        font-size: 1.5rem;
    }
    .hero-tagline {
        font-size: 1.2rem;
    }

    .resume-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .avatar-placeholder {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    .nav {
        padding: 1rem 15px;
    }
    .title-name {
        font-size: 2.2rem;
    }
    .title-role {
        font-size: 1.3rem;
    }
    .hero-tagline {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .avatar-placeholder {
        width: 200px;
        height: 200px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .resume-content {
        grid-template-columns: 1fr;
    }
    .contact-content {
        grid-template-columns: 1fr;
    }
}