:root {
  --pine-green: #2d4a22;
  --light-pine: #3a5a2c;
  --white: #ffffff;
  --off-white: #f5f5f5;
  --text-dark: #333333;
  --code-bg: #1e1e1e;
  --accent: #ffd43b;
  --shadow: 0 4px 24px rgba(45, 74, 34, 0.10);
  --radius: 16px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Twemoji Mozilla', 'Segoe UI Emoji', 'Apple Color Emoji', 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  font-family: 'Inter', 'Poppins', 'Urbanist', 'Vazirmatn', system-ui, -apple-system, sans-serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

section:not(#home) {
  padding: 50px 0 0 0;
  position: relative;
  scroll-margin-top: 70px;
}

section:not(#home) .container {
  padding-top: 0px;
  padding-bottom: 0px;
}

p, .about-text p, .resume-header p, .resume-edu ul, .resume-skills ul, .resume-projects ul {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.13rem;
  line-height: 2.1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Poppins', 'Urbanist', 'Vazirmatn', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pine-green);
  margin-bottom: 3.5rem;
  text-align: left;
  position: relative;
  padding-left: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 2.7rem;
  background: linear-gradient(135deg, var(--accent) 60%, var(--pine-green) 100%);
  border-radius: 6px;
  margin-right: 0.5rem;
}

.section-title {
  animation: fadeInLeft 1s cubic-bezier(.4,0,.2,1) both;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Subtle background shapes/gradients for visual depth */
/* section:not(#home)::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 180px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, #e6f7e6 0%, transparent 80%),
              radial-gradient(ellipse 60% 100% at 50% 0%, #f7fbe6 0%, transparent 90%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.32;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
}
section:nth-of-type(even):not(#home)::after {
  background: radial-gradient(ellipse 80% 100% at 50% 0%, #e6f7f7 0%, transparent 80%),
              radial-gradient(ellipse 60% 100% at 50% 0%, #f7e6f7 0%, transparent 90%);
}

section:not(#home) > .container {
  position: relative;
  z-index: 1;
} */

/* Navigation */
nav {
  background-color: var(--pine-green);
  position: fixed;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: background 0.3s;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  direction: rtl;
}

.logo {
  color: var(--white);
  font-size: 1.7rem;
  font-weight: bold;
  margin-left: auto;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.python-symbol {
  color: #ffd43b;
  font-family: monospace;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  margin: 0;
  align-items: center;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 0.3rem 1.1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--pine-green);
  background: var(--accent);
}

/* Mobile Navigation */
.menu-btn {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s;
}
.menu-btn.active {
  transform: rotate(90deg) scale(1.1);
}
.menu-btn .bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: background 0.2s;
}

.blinking-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background-color: #e6e6e6;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  position: relative;
  top: 5px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--pine-green);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: flex;
  }
}

/* Hero Section */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  background: linear-gradient(135deg, var(--pine-green) 0%, var(--light-pine) 100%);
  color: var(--white);
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  justify-content: space-between;
}

.text-content {
  flex: 1;
}

.text-content h1 {
  font-size: 3.1rem;
  margin-bottom: 1.1rem;
  line-height: 1.2;
}
.text-content h2 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}
.text-content p {
  font-size: 1.2rem;
  margin-bottom: 2.2rem;
}

.highlight {
  color: #ffd43b;
}

.python-text {
  display: inline;
  direction: ltr;
  unicode-bidi: embed;
  background-color: #ffffff;
  color: #3776ab;
  padding: 2px 4px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: bold;
}

/* Code Block */
.code-block {
  flex: 1;
  background: var(--code-bg);
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 320px;
  max-width: 480px;
}

.code-block pre {
  margin: 0;
  color: #e6e6e6;
  font-family: 'Fira Code', monospace;
  direction: ltr;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .code-block {
    width: 100%;
    font-size: 0.97rem;
    margin-bottom: 40px;
    min-width: unset;
    max-width: unset;
  }
}

/* About Section */
#about {
  padding: 60px 0;
  background-color: var(--off-white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-text {
  text-align: center;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 2rem; /* فاصله بین دسته‌بندی‌ها */
  margin-top: 3rem;
  align-items: center;
  width: 100%;
}

.skill-category {
  width: 100%;
  max-width: 800px;
}

.skill-category h4 {
  margin-bottom: 1rem;
  color: var(--pine-green);
  font-size: 1.2rem;
  text-align: center;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-item {
  background-color: var(--pine-green);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

/* Resume Section */
#resume {
  padding: 60px 0;
  background-color: var(--off-white);
  text-align: center;
}

.section-title {
  text-align: center;
  color: var(--pine-green);
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  padding: 2rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(58, 90, 44, 0.2);
  margin-bottom: 2rem;
  border: 1px solid rgba(45, 74, 34, 0.3);
}

/* Projects Section */
#projects {
  padding: 60px 0;
  background-color: var(--off-white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--white);
  border: 1.5px solid #e0e0e0;
  padding: 1.7rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(45,74,34,0.07);
  transition: transform 0.22s, box-shadow 0.22s, border 0.22s;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-card:hover {
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 16px 32px rgba(45,74,34,0.13);
  border: 1.5px solid var(--accent);
}
.project-card h3 {
  color: var(--pine-green);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}
.project-card a {
  color: #3776ab;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  border-bottom: 1.5px solid #3776ab;
  transition: color 0.2s, border 0.2s;
}
.project-card a:hover {
  color: var(--pine-green);
  border-bottom: 1.5px solid var(--pine-green);
}

/* Fade-in Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Section */
#contact {
  padding: 60px 0;
  background-color: var(--off-white);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

input,
textarea {
  width: 100%;
  padding: 1.1rem;
  border: 2px solid var(--pine-green);
  border-radius: 10px;
  font-size: 1.05rem;
  background: #f9f9f9;
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: 0.2rem;
}
input:focus, textarea:focus {
  border: 2px solid var(--accent);
  outline: none;
  box-shadow: 0 2px 8px rgba(45,74,34,0.08);
}
.submit-btn {
  background-color: var(--pine-green);
  color: var(--white);
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(45,74,34,0.08);
}
.submit-btn:hover {
  background-color: var(--accent);
  color: var(--pine-green);
  transform: translateY(-2px) scale(1.04);
}

/* Footer */
footer {
  background-color: var(--pine-green);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

/* CTA Button */
.cta-button {
  display: inline-block;
  background-color: var(--accent);
  color: var(--pine-green);
  padding: 1rem 2.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 2rem;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(45,74,34,0.08);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cta-button:hover {
  background-color: var(--pine-green);
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}

/* Close Button (Mobile Menu) */
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .nav-links.active .close-btn {
    display: block;
  }
}

/* Language Switcher */
.language-switcher {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  display: flex;
  gap: 18px;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0 28px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 2px 12px rgba(45,74,34,0.10);
  transition: background 0.2s, box-shadow 0.2s;
}
.language-switcher span {
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.language-switcher span:hover {
  transform: scale(1.13);
  background: var(--accent);
  color: var(--pine-green);
}

/* RTL & LTR Support */
.ltr .nav-content {
  direction: ltr;
}

.ltr .logo {
  margin-right: auto;
  margin-left: 0;
}

.ltr .nav-links {
  margin-left: auto;
  margin-right: 0;
}

.rtl .nav-content {
  direction: rtl;
}

.rtl .logo {
  margin-left: auto;
  margin-right: 0;
}

.rtl .nav-links {
  margin-right: auto;
  margin-left: 0;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-ltr .python-symbol {
  order: -1;
  margin-right: 5px;
  margin-left: 0;
}

.logo-rtl .python-symbol {
  order: 1;
  margin-left: 5px;
  margin-right: 0;
}



@media (max-width: 768px) {
  .code-block {
    text-align: left; /* خود بلوک */
  }

  .code-block pre,
  .code-block code {
    text-align: left !important; /* متن داخل کد */
    direction: ltr !important;
  }
}


/* --- Resume Section Harmony --- */

.resume-header {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(45, 74, 34, 0.07);
  padding: 2.2rem 1.5rem;
  margin-bottom: 1.5rem;
  transition: box-shadow 0.2s;
  text-align: center !important;
}
.resume-header:hover, .resume-edu:hover, .resume-skills:hover, .resume-projects:hover {
  box-shadow: 0 8px 32px rgba(45,74,34,0.13);
}

.resume-header[dir="rtl"] {
  /* text-align: right; */
  direction: rtl;
}
.resume-header[dir="ltr"] {
  /* text-align: left; */
  direction: ltr;
}

.resume-header h3 {
  color: var(--pine-green);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: bold;
}
.resume-header a {
  color: #3776ab;
  text-decoration: none;
  margin: 0 5px;
  font-weight: 500;
}
.resume-header a:hover {
  text-decoration: underline;
}

.resume-header p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.resume-edu, .resume-skills, .resume-projects {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(45, 74, 34, 0.07);
  padding: 2.2rem 1.5rem;
  margin-bottom: 1.5rem;
}
.resume-edu[dir="rtl"], .resume-skills[dir="rtl"], .resume-projects[dir="rtl"] {
  text-align: right;
  direction: rtl;
}
.resume-edu[dir="ltr"], .resume-skills[dir="ltr"], .resume-projects[dir="ltr"] {
  text-align: left;
  direction: ltr;
}

.resume-edu h4, .resume-skills h4, .resume-projects h4 {
  color: var(--pine-green);
  margin-bottom: 1rem;
  font-size: 1.15rem;
  font-weight: bold;
}

.resume-edu ul, .resume-skills ul, .resume-projects ul {
  list-style: disc inside;
  padding-right: 1.2rem;
  padding-left: 1.2rem;
  font-size: 1rem;
  line-height: 2;
}
.resume-edu[dir="ltr"] ul, .resume-skills[dir="ltr"] ul, .resume-projects[dir="ltr"] ul {
  padding-left: 1.2rem;
  padding-right: 0;
}
.resume-edu[dir="rtl"] ul, .resume-skills[dir="rtl"] ul, .resume-projects[dir="rtl"] ul {
  padding-right: 1.2rem;
  padding-left: 0;
}

.resume-edu li, .resume-skills li, .resume-projects li {
  margin-bottom: 0.5rem;
}

.resume-projects a {
  color: #3776ab;
  text-decoration: none;
  font-size: 1rem;
}
.resume-projects a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .resume-header, .resume-edu, .resume-skills, .resume-projects {
    padding: 1.2rem 0.5rem;
    font-size: 0.98rem;
  }
}

/* هماهنگ با تم سایت */
#resume {
  background: var(--off-white);
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Card/Grid Layout Base */
.card, .panel, .glass {
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 8px 32px rgba(45,74,34,0.13), 0 1.5px 8px rgba(45,74,34,0.07);
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover, .panel:hover, .glass:hover {
  box-shadow: 0 16px 48px rgba(45,74,34,0.18), 0 2px 12px rgba(45,74,34,0.10);
  transform: translateY(-6px) scale(1.02);
}

.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border: 1.5px solid #e0e0e0;
}

/* Animation Utility Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide-in {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 1s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes slideInRight {
  to {
    opacity: 1;
    transform: none;
  }
}
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.55s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.7s; }


/* --- ABOUT SECTION REDESIGN --- */
#about .about-panel {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(45,74,34,0.13), 0 1.5px 8px rgba(45,74,34,0.07);
  padding: 3rem 3.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.about-columns {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  justify-content: space-between;
  align-items: flex-start;
}

.about-left {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.profile-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45,74,34,0.18);
  border: 5px solid var(--accent);
  margin-bottom: 1.2rem;
  background: linear-gradient(135deg, #f7fbe6 0%, #e6f7e6 100%);
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text {
  text-align: left;
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 1.2rem;
}

.mini-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
  position: relative;
  padding-left: 2.2rem;
}
.mini-timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--pine-green) 100%);
  border-radius: 2px;
}
.timeline-point {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
}
.timeline-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--pine-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(45,74,34,0.10);
  position: relative;
  z-index: 1;
}
.timeline-label {
  font-size: 1.05rem;
  color: var(--pine-green);
  font-weight: 500;
}

.about-right {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

.skills-group {
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  margin-top: 0;
  align-items: flex-start;
  width: 100%;
}

.skill-category {
  width: 100%;
  max-width: 500px;
}

.skill-category h4 {
  margin-bottom: 1rem;
  color: var(--pine-green);
  font-size: 1.1rem;
  text-align: left;
}

.skills.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #e6f7e6;
  color: var(--pine-green);
  padding: 0.5rem 1.3rem;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(45,74,34,0.07);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  border: 1.5px solid #e0e0e0;
}
.skill-item.colored {
  background: linear-gradient(90deg, var(--accent) 60%, #fffbe6 100%);
  color: var(--pine-green);
  border: 1.5px solid var(--accent);
}
.skill-item i {
  font-size: 1.2em;
  margin-left: 0.4em;
  color: inherit;
}
.skill-item.colored i {
  color: var(--pine-green);
}
.skill-item:hover {
  background: var(--accent);
  color: var(--pine-green);
  transform: scale(1.07);
  border-color: var(--accent);
}

@media (max-width: 1024px) {
  #about .about-panel,
  .resume-glass,
  .contact-panel {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .about-columns {
    gap: 1.5rem;
  }
}
@media (max-width: 900px) {
  .about-columns {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .about-left, .about-right {
    align-items: center;
    width: 100%;
  }
  .about-text, .skill-category h4 {
    text-align: center;
  }
  .skills.skill-chips {
    justify-content: center;
  }
}

/* --- PROJECTS SECTION REDESIGN --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  width: 100%;
}

.project-card {
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(45,74,34,0.13), 0 1.5px 8px rgba(45,74,34,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
  min-height: 420px;
  width: 100%;
  max-width: 100%;
}
.project-card:hover {
  box-shadow: 0 16px 48px rgba(45,74,34,0.18), 0 2px 12px rgba(45,74,34,0.10);
  transform: translateY(-8px) scale(1.025);
}

/* Remove project-thumb and project-logo styles */
.project-thumb, .project-thumb img, .project-logo {
  display: none !important;
}

.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.project-content h3 {
  font-size: 1.5rem;
  color: var(--pine-green);
  margin-bottom: 1rem;
  font-weight: 700;
}
.project-content p {
  font-size: 1.08rem;
  color: #444;
  margin-bottom: 1.2rem;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.stack-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f7fbe6;
  color: var(--pine-green);
  border-radius: 18px;
  padding: 0.35rem 1.1rem;
  font-size: 0.98rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(45,74,34,0.07);
  border: 1.2px solid #e0e0e0;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.stack-chip i {
  font-size: 1.1em;
  color: inherit;
}
.stack-chip:hover {
  background: var(--accent);
  color: var(--pine-green);
  transform: scale(1.08);
  border-color: var(--accent);
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}
.btn-outline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--pine-green);
  border: 2px solid var(--accent);
  border-radius: 22px;
  padding: 0.6rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border 0.18s, transform 0.18s;
  box-shadow: 0 1px 4px rgba(45,74,34,0.07);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--pine-green);
  border-color: var(--pine-green);
  transform: scale(1.06);
}
.btn-live {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, var(--accent) 60%, #fffbe6 100%);
  color: var(--pine-green);
  border: none;
  border-radius: 22px;
  padding: 0.6rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  box-shadow: 0 1px 4px rgba(45,74,34,0.07);
}
.btn-live:hover {
  background: var(--pine-green);
  color: var(--accent);
  transform: scale(1.06);
}

/* Project Card Overlay on Hover (Tech Stack) */
/*
.project-card:hover .project-stack {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 12px rgba(45,74,34,0.10);
  border-radius: 18px;
  padding: 0.5rem 0.5rem;
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: 60%;
  z-index: 3;
  transform: translateY(-10px) scale(1.04);
  opacity: 1;
  pointer-events: auto;
  transition: all 0.22s cubic-bezier(.4,0,.2,1);
}
*/

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-card {
    min-height: 340px;
  }
  .project-content {
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
}
@media (max-width: 600px) {
  .project-card {
    min-height: 220px;
    border-radius: 18px;
  }
}


/* --- RESUME SECTION REDESIGN --- */
.resume-glass {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 3rem auto;
  border-radius: 36px;
  box-shadow: 0 16px 48px rgba(45,74,34,0.18), 0 2px 12px rgba(45,74,34,0.10);
  padding: 3.5rem 3.5rem 2.5rem 3.5rem;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 2.5px solid #e0e0e0;
  position: relative;
}

.resume-timeline-wrapper {
  display: flex;
  justify-content: center;
  margin: 3rem 0 2.5rem 0;
}
.resume-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-width: 340px;
  max-width: 800px;
  width: 100%;
}
.resume-timeline[dir="ltr"] {
  padding-left: 50px;
  align-items: flex-start;
}
.resume-timeline[dir="rtl"] {
  padding-right: 50px;
  align-items: flex-end;
}
.resume-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--pine-green) 100%);
  border-radius: 3px;
  z-index: 0;
}
.resume-timeline[dir="ltr"]::before {
  left: 32px;
}
.resume-timeline[dir="rtl"]::before {
  right: 32px;
}
.timeline-dot {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  position: absolute;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(45,74,34,0.10);
}
.resume-timeline[dir="ltr"] .timeline-dot {
  left: 25px;
}
.resume-timeline[dir="rtl"] .timeline-dot {
  right: 25px;
}
.timeline-item-card {
  width: 100%;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(45,74,34,0.10);
  padding: 2rem 2rem 1.5rem 2rem;
  min-width: 320px;
  max-width: 740px;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: box-shadow 0.22s, transform 0.22s;
}
.timeline-item-card:hover {
  box-shadow: 0 12px 32px rgba(45,74,34,0.13);
  transform: translateY(-4px) scale(1.02);
}
.timeline-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 60%, #fffbe6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--pine-green);
  box-shadow: 0 2px 8px rgba(45,74,34,0.10);
  margin-top: 0.2rem;
}
.timeline-item-content {
  flex: 1;
}
.timeline-item-content h3 {
  font-size: 1.15rem;
  color: var(--pine-green);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.timeline-date {
  font-size: 1rem;
  color: #888;
  margin-bottom: 0.7rem;
  display: block;
}
.timeline-item-content ul {
  padding-left: 1.2rem;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 0;
}
.timeline-item-content li {
  margin-bottom: 0.4rem;
}

/* Education Cards */
.resume-edu-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 2.5rem 0 2rem 0;
  flex-wrap: wrap;
}
.edu-card {
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(45,74,34,0.10);
  padding: 1.5rem 1.2rem;
  min-width: 200px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.22s, transform 0.22s;
}
.edu-card:hover {
  box-shadow: 0 12px 32px rgba(45,74,34,0.13);
  transform: translateY(-4px) scale(1.03);
}
.edu-icon {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
.edu-degree {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--pine-green);
  margin-bottom: 0.3rem;
}
.edu-inst {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.2rem;
}
.edu-year {
  font-size: 0.98rem;
  color: #888;
}

/* Skills Badges */
.resume-skills-badges {
  margin: 2.5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}
.skills-badges-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #e6f7e6;
  color: var(--pine-green);
  border-radius: 18px;
  padding: 0.5rem 1.3rem;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(45,74,34,0.07);
  border: 1.2px solid #e0e0e0;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.badge.skill-badge {
  background: linear-gradient(90deg, var(--accent) 60%, #fffbe6 100%);
  color: var(--pine-green);
  border: 1.2px solid var(--accent);
}
.badge.soft-badge {
  background: #f7fbe6;
  color: #888;
  border: 1.2px solid #e0e0e0;
}
.badge.lang-badge {
  background: #e6f7f7;
  color: #3776ab;
  border: 1.2px solid #b3e6e6;
}
.badge i {
  font-size: 1.2em;
  color: inherit;
}
.badge:hover {
  background: var(--accent);
  color: var(--pine-green);
  transform: scale(1.07);
  border-color: var(--accent);
}

/* Resume Download Button */
.resume-download-btn.gradient-btn {
  background: linear-gradient(90deg, var(--accent) 60%, #fffbe6 100%);
  color: var(--pine-green);
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1.2rem 3rem;
  box-shadow: 0 4px 18px rgba(45,74,34,0.10);
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.resume-download-btn.gradient-btn:hover {
  background: var(--pine-green);
  color: var(--accent);
  transform: scale(1.05);
}

@media (max-width: 1100px) {
  .resume-glass {
    padding: 2rem 0.5rem 1.5rem 0.5rem;
  }
}
@media (max-width: 900px) {
  .resume-timeline {
    min-width: 0;
    max-width: 100%;
  }
  .timeline-item-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
  }
  .resume-edu-cards {
    gap: 1rem;
  }
}
@media (max-width: 600px) {
  .resume-glass {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
    border-radius: 18px;
  }
  .resume-edu-cards {
    flex-direction: column;
    align-items: center;
  }
  .edu-card {
    min-width: 0;
    max-width: 100%;
    padding: 1rem 0.5rem;
  }
}

/* --- CONTACT SECTION REDESIGN --- */
#contact {
  padding: 100px 0 90px 0;
  background: linear-gradient(135deg, #f7fbe6 0%, #e6f7e6 100%);
  position: relative;
  min-height: 600px;
}
#contact::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 20%, #ffd43b33 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, #2d4a2222 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}
#contact > .container {
  position: relative;
  z-index: 1;
}

.contact-panel {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 36px;
  box-shadow: 0 16px 48px rgba(45,74,34,0.18), 0 2px 12px rgba(45,74,34,0.10);
  padding: 3.5rem 3.5rem 2.5rem 3.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border: 2.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.contact-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.contact-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 320px;
  width: 100%;
}
.contact-illustration img {
  width: 80%;
  max-width: 220px;
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(45,74,34,0.18);
  border: 5px solid var(--accent);
  background: linear-gradient(135deg, #f7fbe6 0%, #e6f7e6 100%);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: none;
}
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
  min-width: 0;
  width: 100%;
}
.form-group.floating-label textarea {
  height: 200px;
}
.floating-label input,
.floating-label textarea {
  width: 100%;
  padding: 1.2rem 1.1rem 0.7rem 1.1rem;
  border: 2px solid var(--pine-green);
  border-radius: 28px;
  font-size: 1.08rem;
  background: #f9f9f9;
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: 0;
  outline: none;
  resize: none;
}
.floating-label label {
  position: absolute;
  top: 1.1rem;
  left: 1.3rem;
  color: #888;
  font-size: 1.08rem;
  background: transparent;
  pointer-events: none;
  transition: 0.18s cubic-bezier(.4,0,.2,1);
  padding: 0 0.2rem;
  z-index: 2;
}
.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown):not([value=""]) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown):not([value=""]) + label {
  top: -0.7rem;
  left: 1.1rem;
  font-size: 0.92rem;
  color: var(--pine-green);
  background: #fffbe6;
  border-radius: 8px;
  padding: 0 0.5rem;
  font-weight: 600;
}
.floating-label input:focus,
.floating-label textarea:focus {
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(45,74,34,0.08);
}
.submit-btn.gradient-btn {
  background: linear-gradient(90deg, var(--accent) 60%, #fffbe6 100%);
  color: var(--pine-green);
  border: none;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1.2rem 3rem;
  box-shadow: 0 4px 18px rgba(45,74,34,0.10);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  margin-top: 0.5rem;
}
.submit-btn.gradient-btn:hover {
  background: var(--pine-green);
  color: var(--accent);
  transform: scale(1.05);
}
.contact-socials {
  display: flex;
  gap: 1.2rem;
  margin-top: 2.2rem;
  justify-content: center;
}
.social-circle {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--pine-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(45,74,34,0.10);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  text-decoration: none;
}
.social-circle:hover {
  background: var(--pine-green);
  color: var(--accent);
  transform: scale(1.13);
}
.form-status {
  min-height: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #2d4a22;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.form-status.active {
  opacity: 1;
}

@media (max-width: 900px) {
  .contact-panel {
    padding: 2rem 0.5rem 1.5rem 0.5rem;
  }
  .contact-flex {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .contact-illustration {
    margin-bottom: 1.5rem;
    max-width: 180px;
  }
  .contact-form {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .contact-panel {
    padding: 1rem 0.2rem 0.5rem 0.2rem;
    border-radius: 18px;
  }
  .contact-form {
    max-width: 100%;
    padding: 0 0.2rem;
  }
  .contact-illustration img {
    max-width: 120px;
  }
}

/* --- FOOTER REDESIGN --- */
footer {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}
.footer-glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-top: 2.5px solid #e0e0e0;
  box-shadow: 0 -8px 32px rgba(45,74,34,0.10);
  padding: 2.5rem 0 1.5rem 0;
  margin-top: -1.5rem;
  position: relative;
}
.footer-glass::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1200px;
  height: 3px;
  background: linear-gradient(90deg, #ffd43b 0%, #e6f7e6 100%);
  border-radius: 0 0 12px 12px;
  opacity: 0.18;
}
.footer-glass .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.footer-glass p {
  color: #444;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  text-align: center;
  letter-spacing: 0.2px;
}
.footer-socials {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.2rem;
  justify-content: center;
}
.footer-social {
  width: 36px;
  height: 36px;
  background: #f7fbe6;
  color: #b3b3b3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 1px 4px rgba(45,74,34,0.07);
  transition: background 0.18s, color 0.18s, transform 0.18s;
  text-decoration: none;
  opacity: 0.7;
}
.footer-social:hover {
  background: var(--accent);
  color: var(--pine-green);
  opacity: 1;
  transform: scale(1.13);
}
@media (max-width: 600px) {
  .footer-glass {
    padding: 1.2rem 0 0.7rem 0;
  }
  .footer-glass .container {
    gap: 0.7rem;
  }
  .footer-social {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

/* Consistent section width for all except #home */
section:not(#home) > .container,
footer .container,
.footer-glass .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

/* Keep #home wider for hero effect */
#home > .container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 1300px) {
  section:not(#home) > .container,
  footer .container,
  .footer-glass .container {
    max-width: 98vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  #home > .container {
    max-width: 100vw;
    padding-left: 12px;
    padding-right: 12px;
  }
  #about .about-panel,
  .resume-glass,
  .contact-panel {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}
@media (max-width: 1024px) {
  #about .about-panel,
  .resume-glass,
  .contact-panel {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .about-columns {
    gap: 1.5rem;
  }
}

#about .about-panel[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
#about .about-panel[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

.about-text[dir="rtl"] {
  text-align: right;
}
.about-text[dir="ltr"] {
  text-align: left;
}

.about-columns[dir="rtl"] {
  flex-direction: row-reverse;
}
.about-columns[dir="ltr"] {
  flex-direction: row;
}

.mini-timeline[dir="rtl"] {
  padding-left: 0;
  padding-right: 2.2rem;
}
.mini-timeline[dir="ltr"] {
  padding-right: 0;
  padding-left: 2.2rem;
}

.mini-timeline[dir="rtl"]::before {
  left: auto;
  right: 12px;
}
.mini-timeline[dir="ltr"]::before {
  left: 12px;
  right: auto;
}

.skills-group[dir="rtl"] {
  align-items: flex-end;
}
.skills-group[dir="ltr"] {
  align-items: flex-start;
}

.skill-category[dir="rtl"] h4 {
  text-align: right;
}
.skill-category[dir="ltr"] h4 {
  text-align: left;
}

.skills.skill-chips[dir="rtl"] {
  justify-content: flex-end;
}
.skills.skill-chips[dir="ltr"] {
  justify-content: flex-start;
}

/* --- FORCE RESUME HEADER CENTER --- */
.resume-header, .resume-header h3, .resume-header p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.social-circle i {
  color: var(--pine-green) !important;
  font-size: 1.5rem !important;
  transition: color 0.2s;
}
.social-circle:hover i {
  color: var(--accent) !important;
}

@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .about-panel {
    padding: 1.2rem 0.5rem;
  }
  .about-columns {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .about-left, .about-right {
    align-items: center;
    width: 100%;
  }
  .about-text, .skill-category h4 {
    text-align: center;
  }
  .skills-group {
    align-items: center;
    gap: 1.2rem;
  }
  .skills.skill-chips {
    justify-content: center;
    gap: 0.5rem;
  }
  .profile-avatar {
    width: 110px;
    height: 110px;
    margin-bottom: 0.7rem;
  }
  .mini-timeline {
    padding: 0 0.5rem;
    margin-top: 1rem;
  }
  .project-card {
    min-height: 180px;
    padding: 1.1rem 0.7rem;
    border-radius: 18px;
  }
  .resume-header, .resume-edu, .resume-skills, .resume-projects {
    padding: 1.2rem 0.5rem;
    font-size: 0.98rem;
    border-radius: 18px;
  }
  .resume-glass {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    border-radius: 18px;
  }
  .resume-timeline {
    min-width: 0;
    max-width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .timeline-item-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    border-radius: 16px;
  }
  .resume-edu-cards {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  .edu-card {
    min-width: 0;
    max-width: 100%;
    padding: 1rem 0.5rem;
    border-radius: 16px;
  }
  .skills-badges-row {
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .contact-panel {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    border-radius: 18px;
  }
  .contact-flex {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .contact-illustration {
    margin-bottom: 1rem;
    max-width: 120px;
  }
  .contact-form {
    max-width: 100%;
    padding: 0 0.2rem;
    gap: 1rem;
  }
  .form-group.floating-label textarea {
    height: 120px;
  }
  .submit-btn.gradient-btn {
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }
  .contact-socials {
    gap: 0.7rem;
    margin-top: 1.2rem;
  }
  .social-circle {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .footer-glass {
    padding: 1.2rem 0 0.7rem 0;
    border-radius: 16px;
  }
  .footer-glass .container {
    gap: 0.7rem;
  }
  .footer-social {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }
  .language-switcher {
    padding: 0 10px;
    gap: 8px;
    font-size: 18px;
    border-radius: 12px 12px 0 0;
  }
  .language-switcher span {
    font-size: 18px;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
  }
  .cta-button, .resume-download-btn.gradient-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
  }
}
@media (max-width: 600px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
  }
  .container, section, #home > .container, section:not(#home) > .container, .footer-glass .container, footer .container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .about-panel, .resume-glass, .contact-panel, .project-card {
    padding-left: 0.2rem !important;
    padding-right: 0.2rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 10px !important;
    min-width: 0 !important;
    max-width: 100vw !important;
  }
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .about-columns {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
  }
  .project-content {
    padding: 0.7rem 0.2rem 0.7rem 0.2rem !important;
  }
  .resume-timeline, .timeline-item-card {
    min-width: 0 !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Toast Notification Styles - Improved for visibility and animation */
.toast-notification {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 90vw;
  background: #2d4a22;
  color: #fff;
  padding: 1rem 2.2rem;
  border-radius: 18px;
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(45,74,34,0.18);
  z-index: 99999;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  display: block;
  transition: opacity 0.4s, bottom 0.4s;
}
.toast-notification.toast-success {
  background: linear-gradient(90deg, #4caf50 60%, #e6f7e6 100%);
  color: #1b3c1b;
}
.toast-notification.toast-error {
  background: linear-gradient(90deg, #ff5252 60%, #fffbe6 100%);
  color: #7a1a1a;
}
.toast-notification.toast-visible {
  opacity: 0.97;
  bottom: 60px;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .toast-notification {
    font-size: 0.98rem;
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    bottom: 8px;
  }
  .toast-notification.toast-visible {
    bottom: 24px;
  }
}

