/* GENERAL */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Theme Variables */
:root {
    /* Dark Mode (Default) */
    --bg-gradient-start: #1a1f3a;
    --bg-gradient-end: #2d1b4e;
    --text-primary: rgba(230, 235, 245, 0.95);
    --text-secondary: rgba(200, 210, 230, 0.9);
    --text-tertiary: rgba(180, 195, 220, 0.8);
    --nav-bg: rgba(20, 25, 45, 0.7);
    --nav-border: rgba(100, 120, 180, 0.2);
    --container-bg: rgba(30, 40, 70, 0.5);
    --container-bg-hover: rgba(40, 50, 85, 0.6);
    --container-border: rgba(100, 120, 180, 0.3);
    --accent-color: #f39c12;
    --accent-secondary: #e74c3c;
    --icon-filter: brightness(0.9) invert(0.9);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --border-subtle: rgba(100, 120, 180, 0.15);
}

body.light-mode {
    /* Light Mode */
    --bg-gradient-start: #8b9dc3;
    --bg-gradient-end: #697a9e;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(245, 245, 250, 0.9);
    --text-tertiary: rgba(230, 235, 245, 0.85);
    --nav-bg: rgba(60, 70, 95, 0.8);
    --nav-border: rgba(255, 255, 255, 0.2);
    --container-bg: rgba(70, 85, 115, 0.6);
    --container-bg-hover: rgba(80, 95, 125, 0.7);
    --container-border: rgba(255, 255, 255, 0.25);
    --accent-color: #f39c12;
    --accent-secondary: #e74c3c;
    --icon-filter: brightness(0.95) invert(0.95);
    --shadow-color: rgba(0, 0, 0, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    transition: background 0.5s ease;
}

.title, .logo, h1, h2, h3 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
}

html {
    scroll-behavior: smooth;
}

p {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Transitions */
a, .btn, .details-container, .icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Navigation */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
    backdrop-filter: blur(10px);
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--nav-border);
}

.nav-links {
    gap: 2.5rem;
    list-style: none;
    font-size: 1.1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

a:hover {
    color: var(--accent-color);
}

.logo {
    font-size: 2rem;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo:hover {
    cursor: pointer;
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(243, 156, 18, 0.5));
}

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

/* Profile Section */
#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: 80vh;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
    position: relative;
}

.section__pic-container img {
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(243, 156, 18, 0.2);
    transition: all 0.4s ease;
}

.section__pic-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(243, 156, 18, 0.4);
}

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

.section__text p {
    font-weight: 500;
}

.section__text__p1 {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.section__text__p2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, #f39c12);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title {
    font-size: 3.5rem;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0 4px 15px var(--shadow-color);
    margin: 1rem 0;
}

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

/* Icons */
.icon {
    cursor: pointer;
    height: 2.5rem;
    filter: var(--icon-filter);
    transition: all 0.3s ease;
}

.icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: var(--icon-filter) drop-shadow(0 5px 15px rgba(243, 156, 18, 0.5));
}

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

.btn {
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 2rem;
    min-width: 10rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-color-1 {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

.btn-color-1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.6);
}

.btn-color-2 {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-color-2:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(243, 156, 18, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(243, 156, 18, 0.3);
}

/* Details Containers */
.details-container {
    padding: 2rem;
    flex: 1;
    background: var(--container-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--container-border);
    text-align: center;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.details-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-color);
    background: var(--container-bg-hover);
}

.details-container h3 {
    color: var(--accent-color);
    margin-top: 0.5rem;
}

.details-container p {
    color: var(--text-primary);
}

/* About Section */
#about {
    position: relative;
}

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

.about-details-container {
    justify-content: center;
    flex-direction: column;
    display: flex;
}

.about-pic {
    border-radius: 2rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.about-pic:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.arrow {
    position: absolute;
    right: -5rem;
    bottom: 2.5rem;
    filter: var(--icon-filter);
    opacity: 0.7;
}

.arrow:hover {
    opacity: 1;
    transform: scale(1.2);
}

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

.text-container {
    background: var(--container-bg);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-subtle);
}

/* Experience Section */
#experience {
    position: relative;
    scroll-margin-top: 240px;
}

#experience .arrow {
    bottom: 17.5rem;
}

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

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

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

article {
    display: flex;
    width: 10rem;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

article:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

article h3 {
    color: var(--text-primary);
    font-size: 1rem;
}

article p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

article .icon {
    cursor: default;
    filter: var(--icon-filter);
}

/* Projects */
#projects {
    position: relative;
    scroll-margin-top: 240px;
}

#projects .arrow {
    bottom: 17.5rem;
}

.color-container {
    border: 1px solid var(--container-border);
    background: var(--container-bg);
    backdrop-filter: blur(10px);
}

.project-img {
    border-radius: 1rem;
    width: 90%;
    height: 90%;
    transition: all 0.3s ease;
}

.project-img:hover {
    transform: scale(1.05);
}

.project-title {
    margin: 1rem;
    color: var(--text-primary);
    text-shadow: 0 2px 10px var(--shadow-color);
}

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

/* 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: 1px solid var(--container-border);
    background: var(--container-bg);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--shadow-color);
}

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

.contact-info-container p {
    font-size: 1.1rem;
}

.contact-info-container a {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-info-container a:hover {
    color: var(--accent-color);
}

/* Footer */
footer {
    height: 26vh;
    margin: 0 1rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

footer p {
    text-align: center;
    color: var(--text-tertiary);
    margin-top: 1rem;
}

/* Hamburger Menu */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.menu-links a {
    display: block;
    padding: 15px 30px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-links a:hover {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 400px;
    margin-top: 1rem;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--container-bg);
    border: 2px solid var(--container-border);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: all 0.3s ease;
    z-index: 1001;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.theme-toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.5s ease;
}

.theme-toggle:active .theme-toggle-icon {
    transform: rotate(360deg);
}

/* Sun/Moon Icons */
.sun-icon, .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    opacity: 0;
    transform: scale(0.5);
}

.moon-icon {
    opacity: 1;
    transform: scale(1);
}

body.light-mode .sun-icon {
    opacity: 1;
    transform: scale(1);
}

body.light-mode .moon-icon {
    opacity: 0;
    transform: scale(0.5);
}

/* Theme Toggle Button for Mobile */
.theme-toggle-mobile {
    display: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--container-bg);
    border: 2px solid var(--container-border);
    backdrop-filter: blur(10px);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.theme-toggle-mobile:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px var(--shadow-color);
}
