@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* GENERAL */

/* Light Theme */
:root {
    /* Base Colors */
    --bg-color: #f5f6fa;
    --bg-color-rgb: 250, 250, 250;
    --card-bg-color: #dcdde1;
    --text-color: #222;
    --heading-color: #444;
    --sub-heading-color: rgb(85, 85, 85);

    /* Accent Colors */
    --accent-color: #555;
    --accent-hover: #000;

    /* Borders & Underline */
    --border-color: #e0e0e0;
    --underline-color: #ffffff;

    /* Button Colors */
    --btn-bg: #333;
    --btn-hover-bg: #000;
    --btn-text: #fff;
}

/* Dark Theme */
.dark-theme {
    /* Base Colors */
    --bg-color: #2f3640;
    --bg-color-rgb: 26, 26, 26;
    --card-bg-color: #353b48;
    --text-color: #f0f0f0;
    --heading-color: #e0e0e0;
    --sub-heading-color: #c0c0c0;

    /* Accent Colors */
    --accent-color: #a0a0a0;
    --accent-hover: #ffffff;

    /* Borders & Underline */
    --border-color: #555;
    --underline-color: #ffffff;

    /* Button Colors */
    --btn-bg: #333;
    --btn-hover-bg: #444;
    --btn-text: #fff;
}

::-webkit-scrollbar {
    width: 0.625rem;
}

::-webkit-scrollbar-track {
    background: var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-hover);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

li {
    list-style: none;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: var(--accent-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
}

/* TRANSITION */
a,
.btn {
    transition: all 300ms ease;
}

/* THEME TOGGLE */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.theme-icon {
    font-size: 18px;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

.theme-icon.inactive {
    opacity: 0.4;
}

.theme-toggle {
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    position: relative;
    width: 60px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    font-size: 18px;
    color: var(--text-color);
}

.theme-toggle::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

body.dark-theme .theme-toggle::after {
    transform: translateX(14px);
    background-color: var(--text-color);
}

body.light-theme .theme-toggle::after {
    transform: translateX(-14px);
}

/* DESKTOP-NAV */
#desktop-nav {
    height: 17vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
}

#desktop-nav .logo {
    color: var(--heading-color);
    font-size: 2rem;
    text-wrap: nowrap;
}

.logo:hover {
    cursor: default;
}

#desktop-nav .nav-links {
    display: flex;
    gap: 2rem;
    font-size: 1.5rem;
}

/* NAVBAR TOGGLE BUTTON */
.toggle_btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: none;
}

.toggle_btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.toggle_btn.open .bar:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.toggle_btn.open .bar:nth-child(2) {
    opacity: 0;
}

.toggle_btn.open .bar:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* HAMBURGER MENU */
.hamburger_menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    height: 0;
    width: 270px;
    background: rgba(var(--bg-color-rgb), 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(7px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.dark-theme .hamburger_menu {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.hamburger_menu.open {
    height: 190px;
}

.hamburger_menu li {
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger_menu a {
    text-decoration: none;
}

/* SECTIONS */
section {
    padding-top: 4vh;
    height: 96vh;
    margin: 0 10rem;
    min-height: fit-content;
}

.section-container {
    position: relative;
    display: flex;
}

/* PROFILE SECTION */
#profile {
    display: flex;
    justify-content: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    justify-content: center;
    align-items: center; 
    height: 400px;
    width: 400px;
    margin: auto 0;
    position: relative;
    overflow: hidden; 
    perspective: 1000px;
    border-radius: 50%; 
}

.flipper {
    position: relative;
    width: 90%;
    height: 100%;
    transform-style: preserve-3d; 
    transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-pic {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    backface-visibility: hidden; 
    border-radius: 50%; 
}

.profile-pic-front {
    transform: rotateY(0deg);
}

.profile-pic-back {
    transform: rotateY(180deg);
}

body.dark-theme .flipper {
    transform: rotateY(180deg);
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
    color: var(--accent-color);
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    color: var(--heading-color);
    font-size: 3rem;
    text-align: center;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
}

/* ICONS */
.icon {
    cursor: pointer;
    height: 2rem;
}

body.dark-theme .icon {
    filter: invert(1) hue-rotate(180deg);
}

/* BUTTON CONTAINER */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* BUTTON BASE STYLE */
.btn {
    font-weight: 600;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    transition: all 300ms ease;
    text-align: center;
    border: 0.1rem solid var(--border-color);
    background-color: transparent;
    color: inherit;
}

.btn:hover {
    cursor: pointer;
}

/* DARK BUTTON (Primary) */
.btn-filled {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

.btn-filled:hover {
    background-color: var(--btn-hover-bg);
}

/* OUTLINED BUTTON (Secondary) */
.btn-outlined {
    background: none;
    color: inherit;
}

.btn-outlined:hover {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border-color: var(--border-color);
}

/* ABOUT SECTION */
#about {
    position: relative;
}

.about-containers,
.about-details-container {
    display: flex;
}

.about-containers {
    gap: 2rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.about__pic-container {
    display: flex;
    justify-content: center;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.about-pic {
    border-radius: 2rem;
}

.about-details-container {
    justify-content: center;
    flex-direction: column;
    margin-top: 1rem;
}

.about-details-container h1 {
    color: var(--heading-color);
}

.about-details-container p {
    color: var(--accent-color);
}

.about-details-container .text-container p {
    text-align: justify;
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
}

.details-container {
    padding: 1.5rem;
    flex: 1;
    background: var(--card-bg-color);
    border-radius: 2rem;
    border: var(--border-color) 0.1rem solid;
    text-align: center;
}

.section-container {
    gap: 4rem;
    height: 80%;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* SKILLS SECTION */
#skills {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.experience-sub-title {
    color: var(--sub-heading-color);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-wrap: nowrap;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    width: 100%;
}

#skills .about-containers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0;
    flex: 1;
}

.article-container {
    text-align: initial;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: space-evenly;
}

article {
    display: flex;
    width: 10rem;
    justify-content: flex-start;
    gap: 0.5rem;
}

article div {
    display: flex;
    flex-direction: column;
}

article h1 {
    font-size: 1.1rem;
    color: var(--heading-color);
}

article p {
    font-size: 1rem;
    color: var(--accent-color);
}

article .icon {
    cursor: default;
}

/* PROJECTS SECTION */
#projects {
    position: relative;
}

.color-container {
    border-color: var(--border-color);
    background: var(--bg-color);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    filter: contrast(1.05) saturate(1.1);
}

.project-title {
    margin: 1rem;
    color: var(--heading-color);
}

.project-btn {
    color: var(--text-color);
    border-color: var(--border-color);
}

/* CONTACT */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: var(--border-color) 0.1rem solid;
    margin: 2rem auto;
    padding: 0.5rem;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem;
}

.contact-info-container p {
    color: var(--accent-color);
    font-size: larger;
}

.contact-icon {
    cursor: default;
}

.email-icon {
    height: 2.5rem;
}

/* FOOTER */
footer {
    height: 20vh;
    margin: 0 1rem;
}

footer .nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

footer p {
    color: var(--accent-color);
    text-align: center;
}
