@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #120A16;
    color: #D1C4E9;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

h1, h2, h3 {
    color: #F3E8FF;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #D1C4E9;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #200D2B;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.sidebar-top {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.sidebar-logo {
    font-size: 2.2rem;
    color: #F3E8FF;
    text-decoration: none;
    font-weight: 700;
    margin-top: 1rem;
    text-align: center;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 2rem;
    gap: 1rem;
}

.sidebar-nav a {
    font-size: 1.15rem;
    color: #D1C4E9;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.sidebar-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #A366FF;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
    transform: translateX(0);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: #F3E8FF;
}

.sidebar-nav a i {
    font-size: 1.5rem;
    z-index: 2;
    position: relative;
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    color: #F3E8FF;
    cursor: pointer;
    align-self: flex-end;
    margin-right: 1rem;
}

.main-content {
    margin-left: 280px;
    flex-grow: 1;
    padding-top: 2rem;
}

.main-content section {
    min-height: 100vh;
    padding: 4rem 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInSlideUp 1s ease-out forwards;
}

.home {
    background: linear-gradient(135deg, #200D2B, #120A16);
}

.home-content {
    max-width: 800px;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.home-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.home-sci {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.5rem;
    height: 3.5rem;
    background: #3D2156;
    border: 2px solid #A366FF;
    border-radius: 50%;
    font-size: 1.8rem;
    color: #A366FF;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s ease, box-shadow 0.3s ease;
}

.home-sci a:hover {
    color: #F3E8FF;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 15px #A366FF;
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #A366FF;
    z-index: -1;
    transition: .5s ease;
}

.home-sci a:hover::before {
    width: 100%;
}

.about {
    background-color: #200D2B;
    text-align: left;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #301A40;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #F3E8FF;
}

.about-content .skills-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
}

.about-content .skills-list li {
    background-color: #3D2156;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    color: #F3E8FF;
    font-size: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.about-content .skills-list li:hover {
    background-color: #A366FF;
    transform: translateY(-3px);
}

.portfolio {
    background-color: #120A16;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.portfolio-item {
    background-color: #200D2B;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(163, 102, 255, 0.5);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #A366FF;
}

.portfolio-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    flex-grow: 1;
}

.portfolio-item ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
}

.portfolio-item ul li {
    font-size: 0.95rem;
    color: #D1C4E9;
    margin-bottom: 0.4rem;
}

.btn {
    display: inline-block;
    background-color: #A366FF;
    color: #F3E8FF;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #844DCC;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(163, 102, 255, 0.7);
}

.resume {
    background-color: #200D2B;
}

.resume-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #301A40;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.resume-content .coming-soon {
    margin-top: 1.5rem;
    font-style: italic;
    color: #D1C4E9;
    font-size: 0.9rem;
}

.contact {
    background-color: #120A16;
}

.contact-info {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #301A40;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #D1C4E9;
}

.contact-info p i {
    font-size: 1.5rem;
    color: #A366FF;
}

.contact-info p a {
    color: #A366FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info p a:hover {
    color: #844DCC;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .sidebar {
        width: 220px;
    }
    .main-content {
        margin-left: 220px;
    }
    h1 {
        font-size: 3rem;
    }
    h2 {
        font-size: 2.2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
    p {
        font-size: 1rem;
    }
    .sidebar-logo {
        font-size: 1.8rem;
    }
    .sidebar-nav a {
        font-size: 1rem;
    }
    .home-sci a {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 4%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .sidebar-top {
        flex-direction: row;
        width: auto;
        gap: 0;
    }

    .sidebar-logo {
        margin-top: 0;
        font-size: 1.8rem;
        text-align: left;
    }

    .sidebar-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4.5rem;
        left: 0;
        width: 100%;
        background-color: #200D2B;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
        padding: 1rem 0;
        border-radius: 0 0 8px 8px;
    }

    .sidebar-nav.active {
        display: flex;
    }

    .sidebar-nav a {
        padding: 0.8rem 4%;
        margin: 0.2rem 0;
        text-align: left;
        border-radius: 0;
    }

    .menu-toggle {
        display: block;
        margin-right: 0;
    }

    .main-content {
        margin-left: 0;
        padding-top: 0;
    }

    .main-content section {
        padding: 4rem 4%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .home-content p {
        font-size: 1rem;
    }

    .home-sci {
        gap: 1rem;
    }

    .home-sci a {
        width: 2.8rem;
        height: 2.8rem;
        font-size: 1.3rem;
    }

    .about-content,
    .portfolio-container,
    .resume-content,
    .contact-info {
        padding: 1.5rem;
    }

    .about-content ul {
        grid-template-columns: 1fr;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-item {
        padding: 1.5rem;
    }
}
