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

body {
    background-color: #111111;
    color: #E1E1E1;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    overflow-x: hidden;
}

@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    width: 100%;
    max-width: 750px;
    margin-bottom: 5rem;
    display: flex;
    justify-content: center;
    animation: fadeSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

main, section {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

main {
    opacity: 0;
    animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

h1 {
    color: #FFFFFF;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h2, h3 {
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

h4, h5 {
    color: #E1E1E1;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

p {
    color: #A1A1A1;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

b, strong {
    color: #FFFFFF;
}

hr {
    border: 0;
    height: 1px;
    background: #252525;
    margin-bottom: 2.5rem;
}

nav {
    display: flex;
    gap: 0.75rem;
    background-color: #1A1A1A;
    padding: 0.4rem 0.6rem;
    border-radius: 30px;
    border: 1px solid #222222;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

nav a {
    color: #A1A1A1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav a:hover {
    color: #FFFFFF;
    background-color: #262626;
    transform: scale(1.05);
}

#hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#hero h3 {
    color: #A1A1A1;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

#hero a img {
    margin-right: 1.2rem;
    margin-top: 1.5rem;
    height: 28px;
    width: auto;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

#hero a img:hover {
    opacity: 1;
}

#hero .social-links a:first-child img {
    filter: brightness(0) invert(1);
}

button, .btn {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: 1px solid #262626;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

button:hover {
    background-color: #FFFFFF;
    color: #111111;
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

a {
    color: #4D88FF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

a:hover {
    color: #FFFFFF;
}

.skills-container, #projects, #education, #contact {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.degree, .school, .skill-category, #projects div, .certification {
    background-color: #161616;
    border: 1px solid #202020;
    padding: 2.5rem;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.degree:hover, .school:hover, .skill-category:hover, #projects div:hover, .certification:hover {
    border-color: #3d3d3d;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    background-color: #1a1a1a;
}

ul {
    list-style-type: none;
    color: #A1A1A1;
}

li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #444444;
}

.certification img {
    border-radius: 8px;
    margin-top: 1.2rem;
    border: 1px solid #222222;
    max-width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.certification:hover img {
    transform: scale(1.02);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    background-color: #161616;
    padding: 2.5rem;
    border-radius: 14px;
    border: 1px solid #202020;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

form:hover {
    border-color: #333333;
}

label {
    display: flex;
    flex-direction: column;
    color: #E1E1E1;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
}

input, textarea {
    background-color: #111111;
    border: 1px solid #262626;
    color: #FFFFFF;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input:focus, textarea:focus {
    outline: none;
    border-color: #4D88FF;
    box-shadow: 0 0 0 3px rgba(77, 136, 255, 0.15);
    background-color: #161616;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

form button {
    align-self: flex-start;
    margin-top: 0.5rem;
}