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

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
}

:focus {
  outline: 2px solid var(--highlight-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:root {
  --bg-color: #ffffff;
  --text-color: #1a1e2c;
  --secondary-text-color: #4a5568;

  --card-bg-color: #ffffff;
  --card-bg: rgba(0, 0, 0, 0.03);
  --card-border: #e2e8f0;

  --nav-bg: rgba(255, 255, 255, 0.95);

  --highlight-color: #2563eb;
  --gradient: linear-gradient(135deg, #2563eb 0%, #059669 100%);

  --shadow-color: rgba(0, 0, 0, 0.06);
  --shadow-hover: rgba(0, 0, 0, 0.12);

  --btn-bg: linear-gradient(135deg, #2563eb, #059669);
  --btn-outline-border: #2563eb;

  --social-icon-filter: none;

  --about-bg: #f8fafc;
  --badge-bg: #eef2ff;
  --badge-border: #2563eb;

  --journey-color: #2563eb;

  --card-hover-shadow: rgba(37, 99, 235, 0.15);
  --card-hover-border: rgba(37, 99, 235, 0.3);

  --education-bg: #f8fafc;
  --cert-bg: #ffffff;
  --cert-border: #e2e8f0;

  --project-card-bg: rgba(0, 0, 0, 0.02);
  --tech-stack-bg: rgba(37, 99, 235, 0.08);
  --tech-stack-color: #2563eb;

  --contact-box-bg: rgba(0, 0, 0, 0.03);
  --input-bg: #f8fafc;

  --footer-bg: #f1f5f9;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.dark-theme {
  --bg-color: #0a0c10;
  --text-color: #e8edf5;
  --secondary-text-color: #9ca3af;

  --card-bg-color: #111827;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: #1f2937;

  --nav-bg: rgba(17, 24, 39, 0.92);

  --highlight-color: #3b82f6;
  --gradient: linear-gradient(135deg, #3b82f6, #10b981);

  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-hover: rgba(0, 0, 0, 0.6);

  --btn-bg: linear-gradient(135deg, #3b82f6, #10b981);
  --btn-outline-border: #3b82f6;

  --social-icon-filter: brightness(0) invert(1);

  --about-bg: #111827;
  --badge-bg: #1e293b;
  --badge-border: #3b82f6;

  --journey-color: #3b82f6;

  --card-hover-shadow: rgba(59, 130, 246, 0.2);
  --card-hover-border: rgba(59, 130, 246, 0.4);

  --education-bg: #0f172a;
  --cert-bg: #111827;
  --cert-border: #1f2937;

  --project-card-bg: rgba(255, 255, 255, 0.02);
  --tech-stack-bg: rgba(59, 130, 246, 0.12);
  --tech-stack-color: #60a5fa;

  --contact-box-bg: rgba(255, 255, 255, 0.03);
  --input-bg: #1e293b;

  --footer-bg: #0f172a;
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  background-color: var(--bg-color);
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Theme Toggle - Bottom Right */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
}

.theme-switch {
  display: inline-block;
  height: 32px;
  position: relative;
  width: 64px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #cbd5e1;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.3s;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider:before {
  background-color: white;
  bottom: 4px;
  content: "☀️";
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  left: 4px;
  position: absolute;
  transition: 0.3s;
  width: 24px;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #1e293b;
}

input:checked + .slider:before {
  content: "🌙";
  transform: translateX(32px);
}

/* Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  color: var(--highlight-color);
}

.nav-links li a.active {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

.nav-links li a.active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 6px;
  width: 100%;
  background: var(--gradient);
  border-radius: 2px;
  position: absolute;
  bottom: -8px;
  left: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: var(--nav-bg);
  padding: 20px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 24px var(--shadow-color);
  backdrop-filter: blur(12px);
  gap: 16px;
}

/* Hero Section - Layered Background System */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  min-height: 85vh;
  isolation: isolate;
  background-image: url('assets/images/hero9.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Light theme overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(5, 150, 105, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Dark theme - same image with darker overlay */
body.dark-theme .hero {
  background-image: url('assets/images/hero9.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.dark-theme .hero::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  padding: 48px 56px;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

body.dark-theme .hero-content {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
  font-size: 3rem;
  margin: 0 0 16px 0;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content .home-highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.btn {
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  font-size: 0.9rem;
  display: inline-block;
}

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.social-icons {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-icons a i {
  font-size: 24px;
  color: #ffffff;
  transition: all 0.2s ease;
  opacity: 0.85;
}

.social-icons a i:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* About Section */
.about-main {
  background-color: var(--about-bg);
  color: var(--text-color);
  padding: 80px 20px;
}

.about-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-section {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

.profile-image {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #2563eb, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--highlight-color);
  box-shadow: 0 20px 40px var(--shadow-color);
  overflow: hidden;
}

.profile-wrapper {
  text-align: center;
}

.about-heading {
  font-size: 2.2rem;
  margin-bottom: 24px;
  color: var(--text-color);
}

.about-heading::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  margin: 12px auto 0;
  background: var(--gradient);
  border-radius: 3px;
}

.actual-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.about-content {
  flex: 2 1 500px;
  max-width: 100%;
}

.journey {
  font-size: 2rem;
  color: var(--journey-color);
  margin-bottom: 20px;
  text-align: left;
  font-weight: 700;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--secondary-text-color);
}

.myjourney {
  padding: 0;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.badges span {
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--highlight-color);
}

/* Skills Section */
.skills-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 20px;
}

.title {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 700;
}

.underline {
  width: 80px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto 50px auto;
  border-radius: 3px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.work-experience {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 60px;
  text-align: left;
}

.experience-item {
  padding: 1.5rem;
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow-hover);
}

.experience-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.experience-header .role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--highlight-color);
  margin-bottom: 0.3rem;
}

.experience-header .dates {
  font-size: 0.85rem;
  color: var(--secondary-text-color);
  margin-bottom: 1rem;
}

.responsibilities {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.responsibilities li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--secondary-text-color);
  margin-bottom: 0.6rem;
  padding-left: 20px;
  position: relative;
}

.responsibilities li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--highlight-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 60px;
}

.skill-item.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-item.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px var(--card-hover-shadow);
  border-color: var(--card-hover-border);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  color: var(--highlight-color);
}

.skill-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.skill-item p {
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
}

.lang {
  padding: 20px 0;
  max-width: 900px;
  margin: 40px auto 0;
}

.category-title {
  color: var(--journey-color);
  font-size: 1.3rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.languages-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.lang-box.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
  min-width: 100px;
}

.lang-box.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px var(--card-hover-shadow);
}

.lang-box i {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  color: var(--highlight-color);
}

.lang-box p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

/* Education Section */
.education-section {
  background-color: var(--education-bg);
  padding: 80px 20px;
}

.education-content {
  max-width: 1200px;
  margin: 0 auto;
}

.education-section h1 {
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
}

.head {
  text-align: center;
}

.subtitle {
  font-size: 1rem;
  color: var(--secondary-text-color);
  margin-bottom: 1rem;
  text-align: center;
}

.cv-download {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}

.cv-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cv-icon {
  font-size: 1.5rem;
}

.cv-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.cv-button {
  background: var(--btn-bg);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.85rem;
}

.cv-button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.credly-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.credly-button {
  background: var(--btn-bg);
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  font-size: 0.85rem;
}

.credly-button:hover {
  transform: scale(1.02);
}

.education-header {
  font-size: 1.6rem;
  color: var(--highlight-color);
  margin-top: 2rem;
  text-align: center;
  font-weight: 700;
}

.education-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem auto;
  max-width: 900px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px var(--shadow-hover);
}

.card-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.5rem;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.card-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--secondary-text-color);
}

.institution {
  font-weight: 500;
  color: var(--highlight-color);
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
}

.description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--secondary-text-color);
  margin-bottom: 1rem;
}

.badge {
  background-color: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--highlight-color);
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}

/* Projects Section */
.projects-section {
  padding: 80px 20px;
  color: var(--text-color);
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.line {
  width: 80px;
  height: 3px;
  background: var(--gradient);
  margin: 0 auto 50px auto;
  border-radius: 3px;
}

.project-card {
  background-color: var(--card-bg-color);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: left;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 36px var(--shadow-hover);
  border-color: var(--card-hover-border);
}

.project-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.project-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.project-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--secondary-text-color);
  margin-bottom: 1.25rem;
}

.tech-stack span {
  display: inline-block;
  background-color: var(--tech-stack-bg);
  color: var(--tech-stack-color);
  border: 1px solid var(--tech-stack-color);
  padding: 0.25rem 0.75rem;
  margin: 0.2rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
}

.project-links {
  margin-top: 1.25rem;
}

.project-links .btn {
  display: inline-block;
  margin-right: 0.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.25s ease;
}

.btn.code {
  background: var(--highlight-color);
  color: #fff;
}

.btn.code:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* Interests Section */
.interests-section {
  padding: 80px 20px;
  background-color: var(--about-bg);
}

.interests-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-align: center;
  color: var(--secondary-text-color);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 40px;
}

.interest-item.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  text-align: center;
}

.interest-item.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px var(--card-hover-shadow);
}

.interest-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  color: var(--highlight-color);
}

.interest-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.interest-item p {
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--secondary-text-color);
}

/* Contact Section */
.contact-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 40px;
  justify-content: center;
}

.contact-message.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  flex: 2 1 450px;
  text-align: left;
}

.contact-message.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px var(--shadow-hover);
}

.contact-info.card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--shadow-color);
  transition: all 0.3s ease;
  flex: 1 1 300px;
  text-align: left;
}

.contact-info.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px var(--shadow-hover);
}

.contact-message h3,
.contact-info h3 {
  color: var(--highlight-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

input, textarea {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.3rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background-color: var(--input-bg);
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--highlight-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button[type="submit"] {
  background: var(--btn-bg);
  border: none;
  width: 100%;
  color: white;
  border-radius: 40px;
  padding: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.info-item {
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.info-item:hover {
  transform: translateX(4px);
}

.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--badge-bg);
  color: var(--highlight-color);
}

.icons {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin: 20px 0 10px;
}

.icon-link {
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  transition: all 0.2s ease;
  background-color: var(--badge-bg);
  color: var(--text-color);
}

.icon-link:hover {
  background-color: var(--highlight-color);
  transform: scale(1.05);
  color: white;
}

.connect h3 {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--secondary-text-color);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

footer p {
  margin: 0.3rem 0;
  font-size: 0.85rem;
}

footer a {
  color: var(--highlight-color);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

/* Scroll Animations */
.animate-section,
.project-card,
.education-card,
.contact-message.card,
.contact-info.card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-section.visible,
.project-card.visible,
.education-card.visible,
.contact-message.card.visible,
.contact-info.card.visible {
  opacity: 1;
  transform: translateY(0);
}

section {
  scroll-margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-content {
    padding: 32px 24px;
  }
  
  .hero-content h2 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .skills-grid,
  .interests-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .about-layout {
    gap: 40px;
  }
  
  .profile-image {
    width: 200px;
    height: 200px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .journey {
    font-size: 1.6rem;
  }
  
  .cv-download {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .theme-toggle {
    bottom: 16px;
    right: 16px;
  }
  
  /* Better tap targets on mobile */
  .btn, 
  .nav-links li a, 
  .icon-link,
  .cv-button,
  .credly-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .hero-content {
    padding: 24px 20px;
  }
  
  .hero-content h2 {
    font-size: 1.6rem;
  }
}