/* Reset and Global Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}


:root {
    --primary-color: rgb(197, 83, 200);
    --primary-dark: rgb(157, 66, 160);
    --primary-light: rgb(227, 119, 238);
    --text-color: #ffffff;
    --navbar-height: 4rem;
    --transition-speed: 0.4s;
    --container-padding: max(15%, 1rem);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    background: var(--primary-color);
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-dark) transparent;
}

/* Custom Scrollbar */
.container::-webkit-scrollbar {
    width: 8px;
}

.container::-webkit-scrollbar-track {
    background: transparent;
}

.container::-webkit-scrollbar-thumb {
    background-color: var(--primary-dark);
    border-radius: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: var(--navbar-height);
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.navbar ul {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style: none;
    gap: 1rem;
    padding: 0 1rem;
}

.nav-ele a, .nav-ele a i  {
    text-decoration: none;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: all var(--transition-speed) ease;
}

.nav-ele a:hover {
    cursor: pointer;
}

.nav-ele a i:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.hover-text {
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease-in-out, visibility var(--transition-speed) ease-in-out;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-dark);
    border: 0.1rem solid white;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.nav-ele:hover .hover-text {
    opacity: 1;
    visibility: visible;
}


/* Sections */
section {
    min-height: 100vh;
    padding: calc(var(--navbar-height) + 2rem) var(--container-padding);
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-dark)
    );
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

/* Home Section */
#home {
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-dark)
    );
}

#home > div {
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap; */
    /* gap: 2rem;
    margin: 2rem; */
}

#home > div #scroll {
    margin-top: auto;
    justify-content: flex-end;
}

#home > div #scroll div {
    margin-left: 10rem;
    display: flex;
    background-color: var(--primary-dark);
    flex-direction: column;
    border: 0.1rem solid var(--primary-dark);
    border-radius: 1rem;
    overflow: hidden;
    width: 5rem;
    height: 6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    position: relative;

    transform: scale(1.5);
    
}

#mouse {
    margin-left: auto;
    margin-right: auto;
    justify-self: start;
    margin-top: 1.5rem;
    padding: auto;
    transition: transform var(--transition-speed) ease;
}

#down-arrow {
    margin-left: auto;
    margin-right: auto;
    transition: transform var(--transition-speed) ease;
}

#home > div #scroll div:hover {
    transform: scale(1.6);
    border-color: white;
    z-index: 1;
}

#home > div #scroll div:hover #down-arrow {
    transform: scale(1.3) translateY(0.75rem);
}

#home > div #scroll div:hover #mouse {
    transform: scale(1.3);
}

#home > div #greeting {
    display: block;
    margin-top: 10rem;
    max-width: 40rem;
    position: relative;
    gap: 2rem;

}


#greeting h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#greeting #wave {
    display: inline-block;
    font-size: 5rem;
    transition: transform var(--transition-speed) ease-in-out;
}

#greeting #wave:hover {
    transform: scale(1.1) rotate(15deg);
    cursor: default;
}


#greeting p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

#home > div img {
    width: 18rem;
    /* max-width: 100%; */
    margin-top: 10rem;
    height: auto;
    border-radius: 2rem;
    border: 0.2rem solid var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

#home > div img:hover {
    transform: translateY(-0.5rem) scale(1.1);
    border-color: white;
}

/* Social Media Buttons */
.socials {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.socials button {
    font-size: 2rem;
    padding: 0.5rem;
    border: 0.1rem solid var(--primary-dark);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 1rem;
    
    transition: all var(--transition-speed) ease;
}

.socials button:hover {
    transform: translateY(-0.2rem) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border-color: white;
}

.socials button:active {
    transform: translateY(0) scale(0.95);
}

/* About Section */
#about {
    background: linear-gradient(
        225deg,
        var(--primary-color),
        var(--primary-dark)
    );
}

#about h1 {
    text-align: center;
}

#about div {
    max-width: 100rem;
    margin: 0 auto;
    
    /* border-radius: 1rem; */
    /* padding: 1rem; */
}


#about #skill-blocks {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;

}

#about #skill-blocks .skill-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    background-color: var(--primary-dark);
    border: 0.1rem solid var(--primary-dark);
    border-radius: 1rem;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
    padding: 2rem; 
}

#about #skill-blocks > div:hover {
    transform: translateY(-0.5rem) scale(1.03);
    border-color: white;
}

.skill-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}


#about #skill-blocks > div h3 {
    text-align: center;
    margin-bottom: 1rem;
}

#about #skill-blocks > div ul {
    list-style: none;
    padding: 0.25rem;
    margin: 0;
}

#about #skill-blocks > div ul li {
    padding: 0.5rem 0;
    text-align: left;
    display: flex;
    align-items: center;
    /* margin: 0.5rem; */

}

.bx {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Projects Section */
#projects {
    gap: 2rem;
    background: linear-gradient(
        315deg,
        var(--primary-color),
        var(--primary-dark)
    );
}

#projects div {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}


/* Media Queries */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .navbar ul {
        gap: 1rem;
    }

    .navbar ul li a {
        padding: 0.25rem 0.5rem;
        font-size: 0.9rem;
    }

    #greeting, #about div {
        max-width: 100%;
    }

    #projects div {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section > * {
    animation: fadeIn 0.8s ease-out forwards;
}