@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root {
    /* Default (Light Mode) */
    --primary-color: #b74b4b;
    --secondary-color: #f5f5f5;
    --bg-color: white;
    --text-color: black;
    --hover-color: white;
    --shadow-color: black;
    --font-family: 'Poppins', sans-serif;
}

body.dark-theme {
    --secondary-color: #161616;
    --bg-color: black;
    --text-color: white;
    --hover-color: black;
    --shadow-color: white;
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: var(--font-family);
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* HEADER START*/
header {
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* SCROLLED HEADER (LIGHT MODE) */
header.scrolled {
    background-color: transparent;
    backdrop-filter: blur(50px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    margin-top: 0;
}

/* SCROLLED HEADER (DARK MODE) */
body.dark-theme header.scrolled {
    background-color: transparent;
    backdrop-filter: blur(50px);
    box-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

.logo {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.toggle-theme {
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 2rem;
    transition: 0.3s ease;
}

.toggle-theme:hover {
    transform: rotate(20deg) scale(1.2);
}

.menu-btn {
    display: none;
    font-size: 3rem;
    color: var(--primary-color);
    cursor: pointer;
}
/* HEADER END*/

/* HOME SECTION START*/
section {
    min-height: 100vh;
    padding: 5rem 9%;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: var(--bg-color);
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: -0.5rem;
    text-align: center;
    text-shadow: 0 0 15px var(--shadow-color);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.section-title.active{
    opacity: 1;
    transform: translateY(0);
}

span {
    color: var(--primary-color);
}

.section-title span{
    text-shadow: 0 0 15px var(--primary-color);
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}
/* HOME SECTION END*/

/* HOME IMAGES START*/
.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s linear;
}
/* HOME IMAGES END*/

.home-img img:hover {
    transform: scale(1.05);
}

/* SOCIAL ICONS START*/
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid var(--primary-color);
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: var(--primary-color);
}

.social-icons a:hover {
    color: var(--hover-color);
    transform: scale(1.2) translateY(-5px);
    background-color: var(--primary-color);
    box-shadow: 0 0 25px var(--primary-color);
}
/* SOCIAL ICONS END*/

/* BUTTON START*/
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--bg-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--primary-color);
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background-color: var(--primary-color);
    color: var(--hover-color);
    box-shadow: 0 0 25px var(--primary-color);
}
/* BUTTON END*/

/* TYPING TEXT START*/
.typing-text {
    font-size: 3.4rem;
    font-weight: 600;
    min-width: 280px;
    text-shadow: 0 0 15px var(--shadow-color);
}

.typing-text span {
    position: relative;
    text-shadow: 0 0 15px var(--primary-color);
}
/* TYPING TEXT END*/

/* ABOUT ME START */
.about-me {
    padding: 6rem 9%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: justify;
}

.about-me-content {
    margin-top: 2rem;
    box-shadow: 0 0 25px var(--primary-color);
    border-radius: 30px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
    font-size: 1.8rem;
}

.about-me-content.active {
    opacity: 1;
    transform: translateY(0);
}

.about-me-content h3 {
    padding: 2rem 5rem;
}
/* ABOUT ME END */

/* GALLERY SECTION START */
.gallery {
    padding: 6rem 9%;
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
}

.gallery h2{
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.gallery h2.active{
    opacity: 1;
    transform: translateY(0);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    cursor: pointer;
    /* transition: transform 0.3s ease; */
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.gallery-item.active {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img:hover {
    transform: scale(1.1);
}
/* GALLERY SECTION END */

/* SKILLS SECTION START */
.skills {
    padding: 6rem 9%;
    text-align: center;
}

.skills-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.skill {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.skill.active {
    opacity: 1;
    transform: translateY(0);
}

.skill h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    background: #333;
    border-radius: 2rem;
    overflow: hidden;
}

.progress {
    background: var(--primary-color);
    color: #fff;
    text-align: right;
    padding: 0.5rem;
    border-radius: 2rem;
    font-size: 1.4rem;
    font-weight: bold;
}

.skills-quote {
    margin-top: 4rem;
    text-align: center;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.skills-quote.active{
    opacity: 1;
    transform: translateY(0);
}

/* SKILLS SECTION END */

/* EXPERIENCE & EDUCATION SECTION START */
.experience,
.education {
    padding: 6rem 9%;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.experience h2,
.education h2 {
    text-align: center;
}

.timeline {
    position: relative;
    margin: 4rem auto;
    max-width: 800px;
    padding-left: 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-dot {
    position: absolute;
    left: -1px;
    top: 5px;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background-color: var(--secondary-color);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 1.5rem;
    line-height: 1.6;
}

.experience-quote,
.education-quote {
    margin-top: 5rem;
    text-align: center;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.experience-quote.active,
.education-quote.active {
    opacity: 1;
    transform: translateY(0);
}
/* EXPERIENCE & EDUCATION SECTION END */

/*  FOOTER SECTION START  */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 3rem 1rem;
    border-top: 3px solid var(--text-color);
    margin-top: 4rem;
}

.footer span{
    text-shadow: 0 0 15px var(--primary-color);
}

.footer-title{
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: -0.5rem;
    text-align: center;
    text-shadow: 0 0 15px var(--shadow-color);
}

.footer h1{
    margin-bottom: 2rem;
}

.footer-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: flex-start;
    text-align: center;
}

.footer-data h1 img.footer-logo {
    width: 90px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-data h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.footer-data p {
    font-size: 1.5rem;
    line-height: 1.6;
}

.footer-data-social {
    margin-top: 1rem;
}

.footer-data-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    margin: 0 0.4rem;
    border-radius: 50%;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer-data-social a:hover {
    background-color: var(--primary-color);
    color: var(--hover-color);
    transform: translateY(-5px);
}

.copy {
    background-color: var(--secondary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    padding-bottom: 3rem;
    text-align: center;
    font-size: 1.5rem;
    border-top: 3px solid var(--text-color);
}

.copy p {
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.copy span {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: none;
}
/* FOOTER SECTION END */


@keyframes cursor {
    to {
        border-left: 3px solid var(--primary-color);
    }
}

