/*
This file is divided into sections:
  1. Variables & Reset
  2. Base Styles
  3. Layout & Components
  4. Sections
  5. Utilities
  6. Media Queries
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Variables & Reset --- */
:root {
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --mid-gray: #adb5bd;
  --dark-gray: #343a40;
  --black: #212529;

  --main-color: #4a4994;
  --main-color-dark: #3a3a74;
  --main-color-light: #6b6bb2;
  --secondary-color: #dfdfff;

  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  --container-max-width: 1200px;
  --section-spacing: 100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--main-color-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style-type: none;
}

/* --- Layout & Components --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-divider {
  height: 4px;
  width: 60px;
  background: var(--main-color);
  margin: 1rem auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--font-size-lg);
  max-width: 700px;
  margin: 0 auto;
  color: var(--mid-gray);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: all var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--main-color);
  background-color: var(--secondary-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links li a {
  font-weight: 500;
  color: var(--dark-gray);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--main-color);
  transition: width var(--transition-normal);
}

.nav-links li a:hover {
  color: var(--main-color);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.btn-primary {
  background-color: var(--main-color);
  color: var(--white);
  border: 2px solid var(--main-color);
}

.btn-primary:hover {
  background-color: var(--main-color-dark);
  border-color: var(--main-color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--main-color);
  border: 2px solid var(--main-color);
}

.btn-outline:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resume:hover {
  color: var(--white);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 80px;
  background-color: var(--off-white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 80%;
  background-color: var(--secondary-color);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  z-index: 0;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  margin-bottom: 1.5rem;
  color: var(--main-color-dark);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: max-content;
  width: max-content;
}

#profile-picture {
  display: flex;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#profile-picture:hover {
  transform: scale(1.05);
}

#profile-img,
#actualSVG {
  height: 290px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  width: auto;
}
/* --- M

/* --- Mobile Menu --- */
.hamburger-container {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-button {
  position: relative;
  width: 24px;
  height: 2px;
  background-color: var(--main-color);
  transition: all var(--transition-fast);
}

.hamburger-button::before,
.hamburger-button::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--main-color);
  transition: all var(--transition-fast);
}

.hamburger-button::before {
  transform: translateY(-7px);
}

.hamburger-button::after {
  transform: translateY(7px);
}

.menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1001;
  padding: 2rem;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.menu.active {
  right: 0;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

#menu-bar {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

#menu-bar::before,
#menu-bar::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--main-color);
  transition: all var(--transition-fast);
}

#menu-bar::before {
  transform: rotate(45deg);
}

#menu-bar::after {
  transform: rotate(-45deg);
}

.menu-item {
  margin-bottom: 1.5rem;
}

.menu-item a {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--dark-gray);
  transition: color var(--transition-fast);
}

.menu-item a:hover {
  color: var(--main-color);
}

.theme-selector {
  margin: 2rem 0;
}

.theme-selector p {
  font-weight: 500;
  margin-bottom: 1rem;
}

.theme-options {
  display: flex;
  gap: 1rem;
}

.theme-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.theme-option:hover {
  transform: scale(1.1);
}

.theme-option.default {
  background-color: #4a4994;
}

.theme-option.red {
  background-color: #944949;
}

.theme-option.blue {
  background-color: #497894;
}

.theme-option.green {
  background-color: #499449;
}

/* --- About Section --- */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-text {
  flex: 3;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.about-stats {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
}

.stat:hover {
  transform: translateY(-5px);
}

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--font-size-md);
  color: var(--dark-gray);
}

/* --- Skills Section --- */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-category {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(74, 73, 148, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background-color: rgba(74, 73, 148, 0.1);
  color: var(--main-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
}

.strengths-grid {
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.strength-item {
  text-align: center;
  max-width: 280px;
  padding: 1.5rem;
  margin: 8px;
  background-color: rgba(74, 73, 148, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-radius: 16px;
}

.strength-item:hover {
  background-color: rgba(74, 73, 148, 0.1);
  transform: translateY(-3px);
}

.strength-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--white);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--main-color);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* --- Project Section --- */
#projects-section {
  padding: 80px 0 60px 0;
  background-color: var(--white);
  z-index: 1;
}

.project-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(5px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.project-header h3 {
  font-size: 32px;
  margin: 0;
  font-weight: 400;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  padding: 8px 16px;
  border-radius: 8px;
  background-color: var(--main-color-light);
  color: var(--white);
  font-weight: 400;
  transition: all 0.3s ease;
}

.project-link:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-showcase {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.project-image {
  flex: 1 1 500px;
  min-width: 300px;
}

.project-showcase-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.project-details {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-description p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: left;
}

.project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
  border-radius: 16px;
}

.feature-icon {
  font-size: 24px;
  min-width: 30px;
}

.feature-text {
  font-size: 16px;
}

.tech-stack {
  margin-top: 20px;
}

.tech-stack h4 {
  font-size: 20px;
  margin-bottom: 15px;
  text-align: left;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  padding: 6px 12px;
  background-color: var(--secondary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 400;
}

.project-impact {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.impact-metric {
  text-align: center;
  padding: 15px;
  flex: 1;
  min-width: 150px;
}

.impact-number {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 5px;
}

.impact-label {
  font-size: 16px;
  opacity: 0.9;
}

.project-cta {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.cta-button {
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--main-color);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 400;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button:hover {
  background-color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media only screen and (max-width: 850px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .project-impact {
    flex-direction: column;
    align-items: center;
  }

  .impact-metric {
    width: 100%;
    max-width: 250px;
  }
}

@media only screen and (max-width: 600px) {
  .project-container {
    padding: 20px;
  }

  .project-showcase {
    gap: 30px;
  }

  .project-features {
    grid-template-columns: 1fr;
  }
}

/* --- Testimonial Section --- */
.testimonial-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  text-align: center;
  gap: 2rem;
}

#testimonial-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial {
  padding: 20px;
  flex: 1 1 30%;
  justify-content: center;
  min-width: 200px;
}

.testimonial-content {
  text-align: justify;
}

.testimonial-picture {
  border-radius: 50%;
  height: 100px;
  width: 100px;
}

#testimonial-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 10px 10%;
}

/* --- Footer --- */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-info h3 {
  font-size: var(--font-size-xl);
  margin-bottom: 0.5rem;
}

.footer-info p {
  color: var(--mid-gray);
  margin-bottom: 0.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  font-size: var(--font-size-lg);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--main-color);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--mid-gray);
  font-size: var(--font-size-sm);
  margin-bottom: 0;
}

.px-4 {
  padding-right: 8px;
  padding-left: 8px;
}

/* --- Utilities --- */
.shadow {
  box-shadow: var(--shadow-md);
}

/* --- Media Queries --- */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .project-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 60px;
  }

  .section {
    padding: 60px 0;
  }

  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .nav-links {
    display: none;
  }

  .hamburger-container {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .about-stats {
    grid-template-columns: repeat(1, 1fr);
  }

  .project-showcase {
    gap: 1.5rem;
  }

  .project-features {
    grid-template-columns: 1fr;
  }

  .project-impact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .testimonial-container {
    grid-template-columns: 1fr;
  }
}

/* --- Theme Switcher Functionality --- */
body.theme-red {
  --main-color: #944949;
  --main-color-dark: #743a3a;
  --main-color-light: #b26b6b;
  --secondary-color: #ffdfdf;
}

body.theme-blue {
  --main-color: #497894;
  --main-color-dark: #3a5a74;
  --main-color-light: #6b96b2;
  --secondary-color: #dff3ff;
}

body.theme-green {
  --main-color: #499449;
  --main-color-dark: #3a743a;
  --main-color-light: #6bb26b;
  --secondary-color: #e4ffdf;
}
