:root {
  /* Light Theme Colors - Material 3 */
  --light-primary: #6750a4;
  --light-primary-container: #eaddff;
  --light-secondary: #9a82db;
  --light-secondary-container: #e8def8;
  --light-tertiary: #7d5260;
  --light-tertiary-container: #ffd8e4;
  --light-surface: #fef7ff;
  --light-surface-variant: #e7e0ec;
  --light-background: #fffbfe;
  --light-error: #b3261e;
  --light-on-primary: #ffffff;
  --light-on-primary-container: #21005e;
  --light-on-secondary: #ffffff;
  --light-on-secondary-container: #1e192b;
  --light-on-tertiary: #ffffff;
  --light-on-tertiary-container: #370b1e;
  --light-on-surface: #1c1b1f;
  --light-on-surface-variant: #49454e;
  --light-on-error: #ffffff;
  --light-outline: #79747e;
  --light-shadow: rgba(0, 0, 0, 0.08);

  /* Dark Theme Colors - Material 3 */
  --dark-primary: #d0bcff;
  --dark-primary-container: #4f378b;
  --dark-secondary: #ccc2dc;
  --dark-secondary-container: #4a4458;
  --dark-tertiary: #efb8c8;
  --dark-tertiary-container: #633b48;
  --dark-surface: #1c1b1f;
  --dark-surface-variant: #49454f;
  --dark-background: #141218;
  --dark-error: #f2b8b5;
  --dark-on-primary: #371e73;
  --dark-on-primary-container: #eaddff;
  --dark-on-secondary: #332d41;
  --dark-on-secondary-container: #e8def8;
  --dark-on-tertiary: #492532;
  --dark-on-tertiary-container: #ffd8e4;
  --dark-on-surface: #e6e1e5;
  --dark-on-surface-variant: #cac4d0;
  --dark-on-error: #601410;
  --dark-outline: #938f99;
  --dark-shadow: rgba(0, 0, 0, 0.3);

  /* Typography */
  --font-family: "Inter", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Animation */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Elevation */
  --elevation-1: 0 2px 10px rgba(0, 0, 0, 0.05);
  --elevation-2: 0 6px 20px rgba(0, 0, 0, 0.08);
  --elevation-3: 0 12px 30px rgba(0, 0, 0, 0.1);
  --elevation-4: 0 18px 40px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* Theme Styles */
body.light-theme {
  --primary: var(--light-primary);
  --primary-container: var(--light-primary-container);
  --secondary: var(--light-secondary);
  --secondary-container: var(--light-secondary-container);
  --tertiary: var(--light-tertiary);
  --tertiary-container: var(--light-tertiary-container);
  --surface: var(--light-surface);
  --surface-variant: var(--light-surface-variant);
  --background: var(--light-background);
  --error: var(--light-error);
  --on-primary: var(--light-on-primary);
  --on-primary-container: var(--light-on-primary-container);
  --on-secondary: var(--light-on-secondary);
  --on-secondary-container: var(--light-on-secondary-container);
  --on-tertiary: var(--light-on-tertiary);
  --on-tertiary-container: var(--light-on-tertiary-container);
  --on-surface: var(--light-on-surface);
  --on-surface-variant: var(--light-on-surface-variant);
  --on-error: var(--light-on-error);
  --outline: var(--light-outline);
  --shadow: var(--light-shadow);
}

body.dark-theme {
  --primary: var(--dark-primary);
  --primary-container: var(--dark-primary-container);
  --secondary: var(--dark-secondary);
  --secondary-container: var(--dark-secondary-container);
  --tertiary: var(--dark-tertiary);
  --tertiary-container: var(--dark-tertiary-container);
  --surface: var(--dark-surface);
  --surface-variant: var(--dark-surface-variant);
  --background: var(--dark-background);
  --error: var(--dark-error);
  --on-primary: var(--dark-on-primary);
  --on-primary-container: var(--dark-on-primary-container);
  --on-secondary: var(--dark-on-secondary);
  --on-secondary-container: var(--dark-on-secondary-container);
  --on-tertiary: var(--dark-on-tertiary);
  --on-tertiary-container: var(--dark-on-tertiary-container);
  --on-surface: var(--dark-on-surface);
  --on-surface-variant: var(--dark-on-surface-variant);
  --on-error: var(--dark-on-error);
  --outline: var(--dark-outline);
  --shadow: var(--dark-shadow);
}

body {
  background-color: var(--background);
  color: var(--on-surface);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Page Transition */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  z-index: 9999;
  transform: translateY(100%);
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-2xl);
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Theme Toggle */
.theme-toggle {
  margin-left: var(--spacing-md);
  display: flex;
  align-items: center;
}

#theme-toggle-btn {
  background-color: var(--surface);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--elevation-1);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
}

#theme-toggle-btn:hover {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  transform: scale(1.05);
}

/* Header */
header {
  background-color: rgba(var(--surface-rgb), 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--elevation-1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--spacing-md) 0;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary);
  transition: color var(--transition-normal);
  position: relative;
  z-index: 2;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.logo:hover::after {
  transform: scaleX(1);
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--on-surface-variant);
  font-weight: 500;
  position: relative;
  padding: var(--spacing-xs) 0;
  transition: color var(--transition-normal);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--on-surface);
  transition: all var(--transition-normal);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--surface);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right var(--transition-normal);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin: var(--spacing-lg) 0;
}

.mobile-nav-link {
  color: var(--on-surface);
  font-size: var(--font-size-xl);
  font-weight: 600;
  transition: color var(--transition-normal);
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--spacing-2xl) 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.15;
  transition: all 3s ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background-color: var(--primary);
  top: -100px;
  right: -100px;
  animation: float 15s ease-in-out infinite alternate;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background-color: var(--secondary);
  bottom: -150px;
  left: -100px;
  animation: float 18s ease-in-out infinite alternate-reverse;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background-color: var(--tertiary);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(10deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s var(--transition-bounce) forwards;
  animation-delay: 0.3s;
}

.profile-image {
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  position: relative;
  z-index: 1;
}

.profile-frame {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--primary);
  border-radius: 40%;
  z-index: -1;
  animation: rotateFrame 20s linear infinite;
  box-shadow: var(--elevation-2);
}

@keyframes rotateFrame {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.profile-image img {
  width: 94%;
  height: 94%;
  object-fit: cover;
  border-radius: 38%;
  position: absolute;
  top: 3%;
  left: 3%;
  transition: all var(--transition-normal);
}

.hero-text {
  max-width: 600px;
}

.hero-subtitle {
  color: var(--primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-sm);
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  position: relative;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-text p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: var(--spacing-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--elevation-1);
}

.primary-btn:hover {
  background-color: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--elevation-2);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.secondary-btn:hover {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  transform: translateY(-2px);
}

/* Section Styles */
section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: var(--spacing-sm);
  opacity: 0;
  transform: translateY(20px) translateX(-50%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0) translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s ease 0.2s;
}

.section-title.visible::after {
  transform: scaleX(1);
}

/* Card Styles */
.card {
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--elevation-1);
  transition: all var(--transition-normal);
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(var(--outline-rgb), 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition-normal), background-color
    var(--transition-normal);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--elevation-2);
}

/* About Section */
.about-section .card {
  margin-bottom: var(--spacing-xl);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition-delay: calc(var(--index) * 0.1s);
}

.skill-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  transition: all var(--transition-normal);
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
  background-color: var(--primary);
  color: var(--on-primary);
}

.skill-icon .material-symbols-rounded {
  font-size: 32px;
}

.skill-card ul {
  list-style-position: inside;
  text-align: left;
  margin-top: var(--spacing-md);
}

.skill-card li {
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: var(--spacing-md);
  list-style-type: none;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

/* Education Section */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--spacing-2xl);
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  z-index: 1;
  transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 5px rgba(var(--primary-rgb), 0.2);
}

.timeline-content {
  width: calc(50% - 40px);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  font-style: italic;
  color: var(--on-surface-variant);
}

/* Certifications Section */
.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.cert-card {
  display: flex;
  flex-direction: column;
  transition-delay: calc(var(--index) * 0.1s);
}

.cert-card h3 {
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.cert-card p {
  margin-bottom: var(--spacing-sm);
}

/* Contact Section */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 500px;
  margin: 0 auto;
}

.social-card,
.support-card {
  width: 100%;
  text-align: center;
}

.social-card h3,
.support-card h3 {
  margin-bottom: var(--spacing-xl);
  color: var(--primary);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: 0 auto;
  max-width: 300px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  background-color: var(--surface-variant);
  color: var(--on-surface-variant);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
  transform: translateX(5px);
  box-shadow: var(--elevation-2);
}

.support-link {
  display: inline-block;
  transition: transform var(--transition-normal);
}

.support-link:hover {
  transform: scale(1.1);
}

.support-img {
  transition: transform var(--transition-normal);
  max-width: 65%;
}

.support-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Instagram link styling */
.instagram-link {
  background-color: var(--surface-variant); /* Match other buttons instead of gradient */
  color: var(--on-surface-variant); /* Match other buttons */
}

.instagram-link:hover {
  background-color: var(--primary-container); /* Match other buttons hover state */
  color: var(--on-primary-container); /* Match other buttons hover state */
  transform: translateX(5px);
  box-shadow: var(--elevation-2);
}

.social-link .material-symbols-rounded {
  transition: transform 0.3s ease;
}

.social-link:hover .material-symbols-rounded {
  transform: rotate(15deg);
}

/* Footer */
footer {
  background-color: var(--surface-variant);
  color: var(--on-surface-variant);
  padding: var(--spacing-xl) 0;
  text-align: center;
  margin-top: var(--spacing-2xl);
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1::after {
    left: 25%;
    width: 50%;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    margin-left: var(--spacing-md);
  }

  .skills-container,
  .certifications-container {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .btn {
    width: 100%;
  }

  .profile-image {
    width: 180px;
    height: 180px;
  }
}

/* CSS Variables with RGB values for opacity */
:root {
  --primary-rgb: 103, 80, 164;
  --surface-rgb: 254, 247, 255;
  --outline-rgb: 121, 116, 126;
}

body.dark-theme {
  --primary-rgb: 208, 188, 255;
  --surface-rgb: 28, 27, 31;
  --outline-rgb: 147, 143, 153;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.3);
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
