:root {
    --primary-color: #2A5C82;
    --accent-color: #3F88C5;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: var(--card-bg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

nav a {
    color: var(--text-color);
    padding: 0.8rem 1rem;
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s;
}

nav a.active,
nav a:hover {
    color: var(--primary-color);
}

nav a.active::after,
nav a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 1001;
}

.menu-icon .line {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

#intro {
    text-align: center;
    padding: 8rem 5%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 4px solid white;
    margin: 2rem auto;
    box-shadow: var(--shadow);
}

section {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 3rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow);
}

#skills ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    list-style: none;
}

#skills li {
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

#portfolio ul {
    display: grid;
    gap: 1.5rem;
}

#portfolio li {
    padding: 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-color);
    border-radius: 8px;
}

form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(42, 92, 130, 0.1);
}

button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

button:hover {
    background: var(--accent-color);
}

.socialbtns ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 20px;}

.socialbtns a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.socialbtns a:hover {
    color: var(--accent-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        background: var(--card-bg);
        width: 70%;
        max-width: 300px;
        padding: 80px 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        flex-direction: column;
    }
.nav-links a {
        padding: 1.5rem 0;
        top: -290px;
        font-size: 1.2rem;
    }   
    .nav-links.active {
        right: 0;
    }

    .menu-icon.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-icon.active .line:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    section {
        padding: 2rem;
        margin: 1rem;
    }
}
\section:not(#intro) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

section:not(#intro).active {
    opacity: 1;
    transform: translateY(0);
}

#skills li, #portfolio li {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease-out, 
                transform 0.4s ease-out;
}

#skills li.active, #portfolio li.active {
    opacity: 1;
    transform: translateX(0);
}

#skills li:nth-child(1) { transition-delay: 0.1s; }
#skills li:nth-child(2) { transition-delay: 0.2s; }
#skills li:nth-child(3) { transition-delay: 0.3s; }
#skills li:nth-child(4) { transition-delay: 0.4s; }
#skills li:nth-child(5) { transition-delay: 0.5s; }

#portfolio li:nth-child(1) { transition-delay: 0.1s; }
#portfolio li:nth-child(2) { transition-delay: 0.2s; }
#portfolio li:nth-child(3) { transition-delay: 0.3s; }