/* Universal Animation Styles */
* {
    animation: fadeIn 1s ease-in-out forwards;
    box-sizing: border-box; /* Improves layout stability */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* General Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for better accessibility */
}

body {
    margin: 20px;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #0a192f;
    color: #ccd6f6;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding-left: 40px;
    opacity: 0;
    animation: slideIn 1.5s forwards;
}

@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo {
    margin-right: auto;
    width: 40px;
}

.navbar li {
    margin-left: 20px;
}

.navbar a {
    text-decoration: none;
    color: #64ffda;
    font-size: 14px;
    position: relative;
    display: inline-block;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #64ffda;
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

/* Introduction Section */
.intro {
    margin-top: 100px;
    text-align: left;
    animation: fadeUp 1.5s ease-in-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro p {
    font-size: 18px;
    color: #ccd6f6;
}

.intro h1 {
    font-size: 60px;
    color: #ccd6f6;
}

.intro h2 {
    font-size: 40px;
    color: #8892b0;
}

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: transparent;
    color: #64ffda;
    border: 1px solid #64ffda;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

.cta-btn:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
}

/* Content Sections */
.about, .edu, .skills, .project {
    display: flex;
    align-items: flex-start;
    margin-top: 50px;
    opacity: 0;
    animation: fadeUp 2s ease-in-out forwards;
}

.about-description {
    padding-left: 40px;
}

.about h2, .project h2, .skills h2 {
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    font-size: 24px;
    color: #8892b0;
    padding-bottom: 50px;
    margin: 0;
}

.edu h2 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 24px;
    color: #8892b0;
    margin: 0;
}

.project li {
    list-style: none;
}

h6 {
    margin: 0;
    font-size: 20px;
    margin-top: 50px;
}

.about-description, .edu-description, .skills-description, .project-description {
    max-width: 800px;
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ccd6f6;
    animation: fadeUp 2s ease-in-out forwards;
}

/* Social Links */
.socials {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 50px;
    left: 10px;
}

.socials li {
    margin-bottom: 10px;
    background-color: #0a192f;
    border-radius: 5px;
}

.socials a {
    text-decoration: none;
    color: #ccd6f6;
    font-size: 14px;
}

.email {
    position: fixed;
    bottom: 50px;
    text-decoration: none;
    right: 20px;
    writing-mode: vertical-rl;
    color: #8892b0;
    font-size: 14px;
}

/* Footer Section */
#bottom {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    .navbar li {
        margin: 0 10px;
    }

    .intro h1 {
        font-size: 50px;
    }

    .intro h2 {
        font-size: 35px;
    }
}

@media (min-width: 1024px) {
    header {
        text-align: left;
        padding: 30px;
    }

    .navbar {
        justify-content: flex-end;
    }

    .navbar li {
        margin: 0 15px;
    }

    section {
        padding: 40px;
    }

    .container {
        max-width: 960px;
        margin: 0 auto;
    }
}

@media (min-width: 1200px) {
    header {
        font-size: 1.5em;
    }

    .navbar li {
        font-size: 1.2em;
    }

    section {
        padding: 50px;
    }

    .container {
        max-width: 1140px;
    }
}
