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

:root {
  /* Fresh Mint & Coral Theme */
  --primary-color: #38E4AE;
  /* Mint Green */
  --secondary-color: #2BB894;
  /* Deep Mint */
  --accent-color: #FF7E5F;
  /* Coral */
  --accent-hover: #FF5A36;
  /* Dark Coral */
  --background-dark: #121A23;
  /* Dark Navy */
  --background-light: #1A2532;
  /* Navy Blue */
  --card-bg: #1F2E3D;
  /* Lighter Navy */
  --text-light: #ffffff;
  /* White */
  --text-gray: #CED7E0;
  /* Light Blue Gray */
  --text-dark: #333333;
  /* Dark Gray */
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(to right, #38E4AE, #2BB894);
  --gradient-accent: linear-gradient(to right, #FF7E5F, #FF5A36);
}

/* ── Light Mode Variables ── */
body.light-mode {
  --background-dark: #f0f4f8;
  --background-light: #e2eaf3;
  --card-bg: #ffffff;
  --text-light: #1a2532;
  --text-gray: #4a5568;
  --text-dark: #1a2532;
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  --primary-color: #0ea878;
  --secondary-color: #0b9066;
  --accent-color: #e85d3a;
  --gradient-primary: linear-gradient(to right, #0ea878, #0b9066);
  --gradient-accent: linear-gradient(to right, #e85d3a, #c4431e);
}

/* ── Smooth global transition for theme switch ── */
*,
*::before,
*::after {
  transition: background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ── nav-right wrapper ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Theme toggle button ── */
#theme-toggle {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

#theme-toggle:hover {
  background: var(--primary-color);
  color: #fff;
  transform: rotate(20deg) scale(1.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--background-dark);
  color: var(--text-light);
  line-height: 1.6;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  background: rgba(18, 26, 35, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(56, 228, 174, 0.1);
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem;
  transition: var(--transition);
}

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

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

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

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  margin: 5px;
  border-radius: 3px;
  transition: var(--transition);
}

/* Welcome Section */
#welcome-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 2rem;
}

#welcome-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.intro-text {
  flex: 1;
}

.profile-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

#welcome-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#welcome-section h1 span {
  color: var(--accent-color);
}

#welcome-section #web {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#welcome-section #web span {
  color: var(--primary-color);
  font-weight: 600;
}

#welcome-section #about {
  color: var(--text-gray);
  margin-bottom: 2rem;
  max-width: 500px;
}

.profile-image img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(56, 228, 174, 0.2);
  border: 4px solid var(--primary-color);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}

.primary-btn {
  background: var(--gradient-primary);
  color: var(--text-dark);
  font-weight: 600;
}

.primary-btn:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(56, 228, 174, 0.2);
}

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

.secondary-btn:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(56, 228, 174, 0.2);
}

/* Section Styles */
section,
#aboutMore,
#skills,
#Profiles {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title span {
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Project Category Titles */
.project-category-title {
  font-size: 1.8rem;
  text-align: center;
  margin: 2rem 0 2rem;
  color: var(--text-light);
  font-weight: 600;
  position: relative;
  padding-bottom: 0.8rem;
}

.project-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

/* Projects Section */
#projects .card {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.box {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(56, 228, 174, 0.1);
}

.box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(56, 228, 174, 0.3);
}

.project-img {
  overflow: hidden;
  height: 200px;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.project-info p {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  justify-content: space-between;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: var(--transition);
}

.github-link {
  color: var(--text-gray);
}

.demo-link {
  color: var(--accent-color);
}

.project-links a:hover {
  background: rgba(56, 228, 174, 0.1);
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  border: 3px solid var(--primary-color);
}

/* Skills Section — Categorized Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 1rem;
}

.skill-category {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(56, 228, 174, 0.1);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  border-color: rgba(56, 228, 174, 0.25);
}

/* Category header strip */
.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(56, 228, 174, 0.1);
}

.skill-category-header i {
  font-size: 1.4rem;
}

.skill-category-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* Per-category accent colors */
.skill-category:nth-child(1) .skill-category-header {
  background: rgba(45, 212, 191, 0.08);
  border-bottom-color: rgba(45, 212, 191, 0.15);
}

.skill-category:nth-child(1) .skill-category-header i {
  color: #2dd4bf;
}

.skill-category:nth-child(2) .skill-category-header {
  background: rgba(56, 228, 174, 0.08);
  border-bottom-color: rgba(56, 228, 174, 0.15);
}

.skill-category:nth-child(2) .skill-category-header i {
  color: #38E4AE;
}

.skill-category:nth-child(3) .skill-category-header {
  background: rgba(168, 85, 247, 0.1);
  border-bottom-color: rgba(168, 85, 247, 0.2);
}

.skill-category:nth-child(3) .skill-category-header i {
  color: #c084fc;
}

.skill-category:nth-child(4) .skill-category-header {
  background: rgba(251, 191, 36, 0.08);
  border-bottom-color: rgba(251, 191, 36, 0.15);
}

.skill-category:nth-child(4) .skill-category-header i {
  color: #fbbf24;
}

.skill-category:nth-child(5) .skill-category-header {
  background: rgba(56, 189, 248, 0.08);
  border-bottom-color: rgba(56, 189, 248, 0.15);
}

.skill-category:nth-child(5) .skill-category-header i {
  color: #38bdf8;
}

/* Skills list inside each category */
.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.6rem 0;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.4rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skills-list li:last-child {
  border-bottom: none;
}

.skills-list i {
  font-size: 1.35rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.skills-list span {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  flex: 1;
  min-width: 100px;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  flex-basis: 100%;
  margin-left: calc(24px + 0.85rem);
}

.skill-level {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1.2s ease;
}

/* Per-category skill icon colors */
.skill-category:nth-child(1) .skills-list i {
  color: #2dd4bf;
}

.skill-category:nth-child(2) .skills-list i {
  color: #38E4AE;
}

.skill-category:nth-child(3) .skills-list i {
  color: #c084fc;
}

.skill-category:nth-child(3) .skill-level {
  background: linear-gradient(to right, #c084fc, #818cf8);
}

.skill-category:nth-child(4) .skills-list i {
  color: #fbbf24;
}

.skill-category:nth-child(4) .skill-level {
  background: linear-gradient(to right, #fbbf24, #f59e0b);
}

.skill-category:nth-child(5) .skills-list i {
  color: #38bdf8;
}

.skill-category:nth-child(5) .skill-level {
  background: linear-gradient(to right, #38bdf8, #0891b2);
}


/* Contact Section */
#Profiles {
  background: var(--background-light);
}

#profiles-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.profile-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 10px;
  background: var(--card-bg);
  transition: var(--transition);
  width: 120px;
  border: 1px solid rgba(56, 228, 174, 0.1);
}

.profile-link i {
  font-size: 2rem;
  color: var(--accent-color);
}

.profile-link span {
  color: var(--text-gray);
}

.profile-link:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
  border-color: var(--accent-color);
}

.profile-link:hover i {
  animation: bounce 1s ease infinite;
}

/* Footer */
footer {
  background: var(--background-light);
  padding: 2rem 0;
  border-top: 1px solid rgba(56, 228, 174, 0.1);
}

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

.footer-content p {
  color: var(--text-gray);
}

.scroll-top a {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-dark);
}

.scroll-top a:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(56, 228, 174, 0.3);
}

/* Creative Project Displays */
.creative-project-display {
  height: 220px;
  width: 100%;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: var(--navy-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-icon {
  font-size: 3rem;
  color: var(--mint-green);
  z-index: 5;
  animation: pulse 2s infinite ease-in-out;
}

.animated-icon i {
  filter: drop-shadow(0 0 8px var(--mint-green-transparent));
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Blog Display */
.blog-display {
  background: linear-gradient(135deg, var(--navy-blue), var(--dark-navy));
}

/* RAG Chatbot Display */
.chatbot-display {
  background: linear-gradient(135deg, #1a0533, #0d1b4b);
}

.chatbot-display .floating-element {
  color: #c084fc;
  background: rgba(88, 28, 135, 0.6);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.chatbot-display .animated-icon {
  color: #c084fc;
  filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.7));
}

/* Tech Tags — base */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.72rem;
  padding: 0.22rem 0.65rem;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Tag color variants */
.tag-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.tag-teal {
  background: rgba(20, 184, 166, 0.15);
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.tag-sky {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.tag-gold {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.tag-rose {
  background: rgba(251, 113, 133, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.35);
}

.tag-cyan {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.35);
}

/* Blog App Display — teal theme */
.blog-app-display {
  background: linear-gradient(135deg, #031b17, #0a2a3b);
}

.blog-app-display .floating-element {
  color: #2dd4bf;
  background: rgba(13, 74, 65, 0.7);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.blog-app-display .animated-icon {
  color: #2dd4bf;
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.7));
}

/* Task Manager Display — rose/pink theme */
.task-display {
  background: linear-gradient(135deg, #2d0a18, #1a0a2e);
}

.task-display .floating-element {
  color: #fb7185;
  background: rgba(136, 19, 55, 0.6);
  box-shadow: 0 0 15px rgba(251, 113, 133, 0.4);
}

.task-display .animated-icon {
  color: #fb7185;
  filter: drop-shadow(0 0 12px rgba(251, 113, 133, 0.7));
}

/* Persona AI Display — indigo/violet theme */
.persona-display {
  background: linear-gradient(135deg, #0f0a2e, #1a0d3b);
}

.persona-display .floating-element {
  color: #818cf8;
  background: rgba(49, 46, 129, 0.6);
  box-shadow: 0 0 15px rgba(129, 140, 248, 0.4);
}

.persona-display .animated-icon {
  color: #818cf8;
  filter: drop-shadow(0 0 12px rgba(129, 140, 248, 0.7));
}

/* Tokenization Display — cyan theme */
.token-display {
  background: linear-gradient(135deg, #021a1f, #0a1f2e);
}

.token-display .floating-element {
  color: #22d3ee;
  background: rgba(8, 79, 92, 0.6);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.4);
}

.token-display .animated-icon {
  color: #22d3ee;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.7));
}

/* Weather Display — sky blue theme (restyle) */
.weather-display {
  background: linear-gradient(135deg, #082040, #0c2d5e);
}

.weather-display .animated-icon {
  color: #38bdf8;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.7));
}

.animated-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.floating-element {
  position: absolute;
  font-size: 1.2rem;
  color: var(--coral);
  background: var(--navy-blue);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--coral-transparent);
}

.floating-element.e1 {
  top: 20%;
  left: 15%;
  animation: float 3s infinite ease-in-out;
}

.floating-element.e2 {
  top: 60%;
  left: 25%;
  animation: float 4s infinite ease-in-out 0.5s;
}

.floating-element.e3 {
  top: 30%;
  right: 15%;
  animation: float 3.5s infinite ease-in-out 1s;
}

.floating-element.e4 {
  top: 65%;
  right: 20%;
  animation: float 4.5s infinite ease-in-out 0.7s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

/* Weather Display */
.weather-display {
  background: linear-gradient(135deg, #87ceeb, var(--dark-navy));
  perspective: 1000px;
}

.sun {
  position: absolute;
  width: 60px;
  height: 60px;
  background: #FFD700;
  border-radius: 50%;
  top: 30px;
  left: 30px;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
  animation: rotate 20s linear infinite;
}

.cloud {
  position: absolute;
  background: white;
  border-radius: 20px;
}

.cloud.c1 {
  width: 80px;
  height: 30px;
  top: 50px;
  right: 30px;
  animation: drift 15s linear infinite;
}

.cloud.c2 {
  width: 60px;
  height: 25px;
  top: 80px;
  left: 30%;
  animation: drift 20s linear infinite 2s;
}

.cloud:before,
.cloud:after {
  content: '';
  position: absolute;
  background: white;
  border-radius: 50%;
}

.cloud.c1:before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: 15px;
}

.cloud.c1:after {
  width: 30px;
  height: 30px;
  top: -15px;
  left: 35px;
}

.cloud.c2:before {
  width: 30px;
  height: 30px;
  top: -15px;
  left: 10px;
}

.cloud.c2:after {
  width: 25px;
  height: 25px;
  top: -10px;
  left: 25px;
}

.raindrops {
  position: absolute;
  bottom: 30px;
  left: 40%;
  width: 60px;
  height: 60px;
}

.drop {
  position: absolute;
  width: 8px;
  height: 15px;
  background: #add8e6;
  border-radius: 50%;
}

.drop.d1 {
  left: 10px;
  animation: raindrop 2s infinite linear;
}

.drop.d2 {
  left: 25px;
  animation: raindrop 1.8s infinite linear 0.4s;
}

.drop.d3 {
  left: 40px;
  animation: raindrop 2.2s infinite linear 0.7s;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-30px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes raindrop {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(50px);
    opacity: 0;
  }
}

/* Expense Tracker Display */
.expense-display {
  background: linear-gradient(135deg, var(--dark-navy), var(--navy-blue));
}

.chart-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  gap: 15px;
}

.bar {
  width: 30px;
  background: var(--mint-green);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 10px var(--mint-green-transparent);
  position: relative;
}

.bar.b1 {
  height: 60px;
  animation: grow 3s infinite alternate;
}

.bar.b2 {
  height: 90px;
  animation: grow 3s infinite alternate 0.3s;
}

.bar.b3 {
  height: 45px;
  animation: grow 3s infinite alternate 0.6s;
}

.coin {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.coin.c1 {
  top: 40%;
  left: 25%;
  animation: spin 4s infinite linear;
}

.coin.c2 {
  bottom: 30%;
  right: 25%;
  animation: spin 4s infinite linear reverse;
}

@keyframes grow {
  from {
    height: 20px;
  }

  to {
    height: 90px;
  }
}

@keyframes spin {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .creative-project-display {
    height: 180px;
  }

  .animated-icon {
    font-size: 2.5rem;
  }

  .floating-element {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .sun {
    width: 50px;
    height: 50px;
  }

  .cloud.c1 {
    width: 60px;
  }

  .bar {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .creative-project-display {
    height: 150px;
  }

  .animated-icon {
    font-size: 2rem;
  }

  .floating-element {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  #welcome-section .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .intro-text {
    margin-top: 2rem;
  }

  #welcome-section #about {
    margin: 0 auto 2rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-image {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-dark);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition);
  }

  .nav-links.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .section-title {
    font-size: 2rem;
  }

  #welcome-section h1 {
    font-size: 2.5rem;
  }

  #welcome-section #web {
    font-size: 1.5rem;
  }

  .skills-list {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }
}

@media screen and (max-width: 576px) {
  #welcome-section h1 {
    font-size: 2rem;
  }

  #projects .card {
    grid-template-columns: 1fr;
  }

  #profiles-links {
    gap: 1rem;
  }

  .profile-link {
    width: 100px;
  }
}

/* ════════════════════════════════════════════
   LIGHT MODE — component-specific overrides
   (Things that don't inherit from CSS vars)
═══════════════════════════════════════════════ */
body.light-mode header {
  background: rgba(240, 244, 248, 0.92);
  border-bottom-color: rgba(14, 168, 120, 0.2);
}

body.light-mode .hamburger .line {
  background-color: var(--text-light);
}

body.light-mode .nav-links {
  background: var(--background-dark);
}

/* Project card panels */
body.light-mode .box {
  border-color: rgba(14, 168, 120, 0.15);
}

body.light-mode .box:hover {
  border-color: rgba(14, 168, 120, 0.4);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Display panels — lighten in light mode */
body.light-mode .blog-app-display {
  background: linear-gradient(135deg, #c8f0e9, #d4eaf7);
}

body.light-mode .weather-display {
  background: linear-gradient(135deg, #cce8f7, #d6e9fb);
}

body.light-mode .expense-display {
  background: linear-gradient(135deg, #f7f0cc, #fdf0d5);
}

body.light-mode .task-display {
  background: linear-gradient(135deg, #fce4ec, #f3e0f7);
}

body.light-mode .chatbot-display {
  background: linear-gradient(135deg, #ede0fb, #dce0fb);
}

body.light-mode .persona-display {
  background: linear-gradient(135deg, #e0e0fb, #d8d0f5);
}

body.light-mode .token-display {
  background: linear-gradient(135deg, #ccf4fb, #d0ecfb);
}

/* Keep icons dark in light panels */
body.light-mode .blog-app-display .animated-icon {
  color: #0b9066;
  filter: drop-shadow(0 0 8px rgba(11, 144, 102, 0.5));
}

body.light-mode .weather-display .animated-icon {
  color: #1a85c7;
  filter: drop-shadow(0 0 8px rgba(26, 133, 199, 0.5));
}

body.light-mode .expense-display .animated-icon {
  color: #c47d00;
  filter: drop-shadow(0 0 8px rgba(196, 125, 0, 0.5));
}

body.light-mode .task-display .animated-icon {
  color: #c1324a;
  filter: drop-shadow(0 0 8px rgba(193, 50, 74, 0.5));
}

body.light-mode .chatbot-display .animated-icon {
  color: #7c3aed;
  filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.5));
}

body.light-mode .persona-display .animated-icon {
  color: #4338ca;
  filter: drop-shadow(0 0 8px rgba(67, 56, 202, 0.5));
}

body.light-mode .token-display .animated-icon {
  color: #0891b2;
  filter: drop-shadow(0 0 8px rgba(8, 145, 178, 0.5));
}

/* Floating elements in light mode */
body.light-mode .blog-app-display .floating-element {
  color: #0b9066;
  background: rgba(14, 168, 120, 0.15);
  box-shadow: none;
}

body.light-mode .task-display .floating-element {
  color: #c1324a;
  background: rgba(193, 50, 74, 0.12);
  box-shadow: none;
}

body.light-mode .chatbot-display .floating-element {
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.12);
  box-shadow: none;
}

body.light-mode .persona-display .floating-element {
  color: #4338ca;
  background: rgba(67, 56, 202, 0.12);
  box-shadow: none;
}

body.light-mode .token-display .floating-element {
  color: #0891b2;
  background: rgba(8, 145, 178, 0.12);
  box-shadow: none;
}

/* Weather children */
body.light-mode .sun {
  box-shadow: 0 0 30px rgba(255, 200, 0, 0.5);
}

body.light-mode .cloud.c1,
body.light-mode .cloud.c2 {
  background: rgba(100, 150, 220, 0.35);
}

body.light-mode .drop {
  background: #5aabdd;
}

/* Chart bars in light mode */
body.light-mode .bar {
  background: var(--primary-color);
  box-shadow: none;
}

body.light-mode .coin {
  box-shadow: 0 0 8px rgba(200, 160, 0, 0.4);
}

/* Skills section */
body.light-mode .skill-category {
  border-color: rgba(14, 168, 120, 0.12);
}

body.light-mode .skill-category:hover {
  border-color: rgba(14, 168, 120, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .skills-list li {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .skill-bar {
  background: rgba(0, 0, 0, 0.08);
}

/* Connect section */
body.light-mode #Profiles {
  background: var(--background-light);
}

body.light-mode .profile-link {
  border-color: rgba(14, 168, 120, 0.15);
}

/* Footer */
body.light-mode footer {
  background: var(--background-light);
  border-top-color: rgba(14, 168, 120, 0.15);
}

/* Scroll-top button */
body.light-mode .scroll-top a {
  box-shadow: 0 5px 15px rgba(14, 168, 120, 0.3);
}

/* Section title underline */
body.light-mode .section-title::after {
  background: var(--gradient-primary);
}