/* ===============================
   style.css (Base Only)
   =============================== */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");

/* Root Variables */
:root {
    --header-height: 3rem;
    --font-semi: 600;
    --first-color: #4070F4;
    --second-color: #0E2431;

    --body-font: 'Quicksand', sans-serif;
    --big-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: 0.9rem;

    --mb1: .5rem;
    --mb2: 1rem;
    --mb3: 1.5rem;
    --mb4: 0.90rem;
    --mb5: 2.5rem;
    --mb6: 3rem;

    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
}

@media screen and (min-width: 768px) {
    :root {
        --big-font-size: 2rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
    }
}

/* Reset & Base Styles */
*,
::before,
::after {
    box-sizing: border-box;
}

* {
    transition: background-color 0.2s ease,
        color 0.1s ease,
        box-shadow 0.1s ease;
}

html {
    scroll-behavior: smooth;
    /* background-color: aliceblue; */
}

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    color: var(--second-color);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: black;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Section Titles & Layout */
.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--first-color);
    margin-top: var(--mb2);
    margin-bottom: var(--mb4);
    text-align: center;
}

.section-title::after {
    position: absolute;
    content: '';
    width: 64px;
    height: 0.18rem;
    left: 0;
    right: 0;
    margin: auto;
    top: 2rem;
    background-color: var(--first-color);
}

.section {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.bd-grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb2);
    margin-right: var(--mb2);
}

/* Header */
.l-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: #ffffff;
    box-shadow: 0 1px 4px rgba(146, 161, 176, .15);
}

/* Home Section */
.home {
    height: calc(100vh - 3rem);
    row-gap: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.home-title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb5);
}

.home-title-color {
    color: var(--first-color);
}

.home-social {
    display: flex;
    flex-direction: column;
}

.home-social-icon {
    width: max-content;
    margin-bottom: var(--mb2);
    font-size: 1.5rem;
    color: var(--second-color);
    transition: .3s;
}

.home-social-icon:hover {
    color: var(--first-color);
}

.home-img {
    margin-top: 100px;
    grid-column: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img img {
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.home-img img:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Button */
.button {
    display: inline-block;
    background-color: var(--first-color);
    color: #ffffff;
    padding: 0.75rem 2.5rem;
    font-weight: var(--font-semi);
    border-radius: .5rem;
    cursor: pointer;
}

.button:hover {
    box-shadow: 0 10px 36px rgba(0, 0, 0, .15);
}

/* About Section */
.about-container {
    row-gap: 2rem;
    text-align: center;
}

.about-subtitle {
    margin-bottom: var(--mb2);
}

.about-img {
    justify-self: center;
}

.about-img img {
    width: 200px;
    border-radius: .5rem;
}

/* Skills Section */
.skills-container {
    row-gap: 0rem;
    text-align: center;
}

.skills-subtitle {
    margin-bottom: var(--mb2);
}

.skills-text {
    margin-bottom: var(--mb4);
}

.skills-data {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    font-weight: var(--font-semi);
    padding: 0.25rem 0.5rem;
    margin-bottom: var(--mb4);
    border-radius: .5rem;
    box-shadow: 0 4px 25px rgba(14, 36, 49, .15);
}

.skills-icon {
    font-size: 2rem;
    margin-right: var(--mb2);
    color: var(--first-color);
}

.skills-names {
    margin: var(--mb2);
    display: flex;
    align-items: center;
    font-weight: bolder;
    color: #4070F4
}

/* Work Section */
.work {
    text-align: center;
    padding: 2rem 0;
}

.work-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.work-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    text-align: center;
}

.work-item a {
    display: inline-block;
}

.work-item a img {
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.work-item img {
    transition: transform 0.3s ease;
}

.work-item img:hover {
    transform: scale(1.1);
}

.work-description {
    margin-top: 1rem;
    line-height: 1.4;
}

/* Contact Section */
.contact-input {
    width: 100%;
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi);
    padding: 1rem;
    border-radius: .5rem;
    border: 1px solid var(--second-color);
    outline: none;
    margin-bottom: var(--mb4);
}

.contact-button {
    display: block;
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
    margin-left: auto;
}

/* Footer */
.footer {
    background-color: var(--second-color);
    color: #ffffff;
    text-align: center;
    font-weight: var(--font-semi);
    padding: 2rem 0;
}

/* Larger Screen Queries */
@media screen and (min-width: 769px) {

    body {
        margin: 0;
    }

    .section {
        padding-top: 4rem;
        padding-bottom: 3rem;
    }

    .section-title {
        margin-bottom: var(--mb6);
    }

    .section-title::after {
        width: 80px;
        top: 3rem;
    }

    .nav {
        height: calc(var(--header-height) + 1rem);
    }

    .nav-list {
        display: flex;
        padding-top: 0;
    }

    .nav-item {
        margin-left: var(--mb6);
        margin-bottom: 0;
    }

    .nav-toggle {
        display: none;
    }

    .nav-link {
        color: var(--second-color);
    }

    .home {
        height: 100vh;
    }

    .home-data {
        grid-column: 1;
        padding-left: 5rem;
        padding-bottom: 10rem;
    }

    .home-social {
        padding-left: 5rem;
        position: relative;
        padding-top: 0;
        padding-bottom: 2.5rem;
        flex-direction: row;
        align-self: flex-end;
    }

    .home-social-icon {
        margin-bottom: 0;
        margin-right: var(--mb4);
    }

    .home-img {
        width: 100%;
        height: auto;
        max-width: 800px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        overflow: hidden;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .home-img img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 15px;
    }

    .home-img:hover {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

    .about-container,
    .skills-container {
        grid-template-columns: repeat(1, 1fr);
        align-items: center;
        text-align: initial;
    }

    .about-img img {
        width: 300px;
    }

    .work-container {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
        column-gap: 2rem;
    }

    .contact-form {
        width: 460px;
    }

    .contact-container {
        justify-items: center;
    }
}

@media screen and (min-width: 1024px) {
    .bd-grid {
        margin-left: auto;
        margin-right: auto;
    }

    .home-img {
        right: 10%;
    }
}

/* Custom icon classes */

.skills-icon {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    filter: brightness(0) saturate(100%) invert(32%) sepia(93%) saturate(748%) hue-rotate(196deg) brightness(95%) contrast(101%);
    transition: transform 0.3s ease-in-out;
}

.skills-icon:hover {
    cursor: pointer;
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(45%) sepia(78%) saturate(747%) hue-rotate(196deg) brightness(95%) contrast(101%);
}

#typed::before {
    content: "> ";
    color: #4070F4;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.skills-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: var(--first-color);
    height: 0.25rem;
    border-radius: .5rem;
    z-index: var(--z-back);
    transition: width 0.5s ease-in-out;
}

.skills-percentage {
    display: flex;
    align-items: center;
    position: relative;
    margin-left: auto;
    padding-right: 0.5rem;
    font-weight: bolder;
    font-size: 12px;
    color: #4070F4;
}

.skills-description {
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    margin-right: auto;
}

/* Centering the button below the title */
.skills-info-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    scale: 0.75;
}

/* Info button style */
.info-button {
    background-color: var(--first-color);
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: var(--font-semi);
    color: #ffffff;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-bottom: 15px;
}

.info-button:hover {
    background-color: var(--second-color);
    transform: scale(1.025);
}

/* Close Button */
.close {
    position: absolute;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--second-color);
}

.close:hover {
    color: red;
    transition: background-color 0.5s ease,
        color 0.5s ease,
        box-shadow 0.5s ease;
}

.pointer{
    cursor: pointer;
}

a {
    color: var(--first-color);
}


.skills-bar.actively-learning {
    background: linear-gradient(to right, #28a745 25%, #34d058 50%, #28a745 75%);
    background-size: 200% 100%;
    animation: gradientLoadingEffect 2s infinite linear;
}

@keyframes gradientLoadingEffect {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Actively Learning Heading Effect */
.actively-learning-heading {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
    background: linear-gradient(to right, #28a745, #34d058, #28a745);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientMove 3s infinite linear;
}

/* Text Gradient Animation */
@keyframes textGradientMove {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* .skills-actively-learning {
    border: 2px solid #28a745;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.8);
    animation: pulseEffect 1.5s infinite alternate ease-in-out;
}

@keyframes pulseEffect {
    0% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.6);
        background-color: rgba(40, 167, 69, 0.1);
    }
    100% {
        box-shadow: 0 0 25px rgba(40, 167, 69, 0.9);
        background-color: rgba(40, 167, 69, 0.2);
    }
} */