:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --section-bg: #f3f4f6;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none !important;
  transition: color 0.2s;
}

.nav-brand:hover, .nav-brand:focus {
  color: #10b981;
  text-decoration: none !important;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Resume Button in Navbar */
.resume-btn {
    background: #2563eb;
    color: #fff !important;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(37,99,235,0.15);
    border: none;
    outline: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    /* margin-left: .0rem; */
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.resume-btn:hover, .resume-btn:focus {
    background: #10b981;
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(16,185,129,0.18);
    text-decoration: none;
}

@media (max-width: 768px) {
    .resume-btn {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        display: block;
        text-align: center;
    }
}

/* Hero Flex Layout */
.hero-flex {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
}

.hero-text {
    flex: 2 1 0;
    min-width: 320px;
}

.hero-image-container {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 320px;
}

.hero-image {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    border: 8px solid transparent;
    background: linear-gradient(135deg, #f0f9ff 60%, #e0f2fe 100%) border-box;
    box-shadow: 0 12px 40px rgba(37,99,235,0.18), 0 4px 16px rgba(16,185,129,0.12);
    padding: 6px;
    position: relative;
    animation: heroImagePop 1.2s cubic-bezier(.4,2,.6,1), heroImageFloat 3.5s ease-in-out infinite;
}

.hero-image:hover {
    transform: scale(1.15) translateY(-10px);
    box-shadow: 0 20px 60px rgba(37,99,235,0.22), 0 8px 32px rgba(16,185,129,0.18);
    z-index: 2;
}

@media (max-width: 1100px) {
    .hero {
        min-height: unset;
        padding: 4rem 0 0 0;
    }
    .hero-flex {
        flex-direction: column-reverse;
        gap: 2rem;
        padding: 3rem 0 0 0;
        align-items: center;
        justify-content: center;
    }
    .hero-image {
        width: 200px;
        height: 200px;
        padding: 3px;
    }
    .hero-image-container {
        min-width: 120px;
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: unset;
        padding: 2.5rem 0 0 0;
    }
    .hero-flex {
        flex-direction: column-reverse;
        gap: 1.5rem;
        padding: 1.5rem 0 0 0;
        align-items: center;
        text-align: center;
        justify-content: center;
    }
    .hero-text {
        min-width: 0;
        width: 100%;
    }
    .hero-image-container {
        min-width: 0;
        width: 100%;
        justify-content: center;
    }
    .hero-image {
        width: 140px;
        height: 140px;
        padding: 2px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 5% 0 5%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-color);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

.btn.primary {
  background: var(--primary-color);
  color: white;
}

.btn.primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn.primary:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn.secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sections */
section {
  padding: 5rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

/* Skills Section */
.skills {
  background: var(--section-bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  min-height: 320px;
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tags span {
  background: var(--section-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
}

.project-btn-group {
  margin-top: auto;
}

.project-btn-group .btn {
  border-radius: 40px;
  padding: 0.45rem 1.1rem;
  font-size: 0.98rem;
  letter-spacing: 0.1px;
}

/* Experience Section */
.experience {
  background: var(--section-bg);
  position: relative;
  padding: 6rem 5% 5rem;
}

.timeline {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.timeline-dot {
  position: absolute;
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 50%;
  left: 50%;
  margin-left: -12px;
  top: 0;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--section-bg);
}

.timeline-content {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: calc(50% - 50px);
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-content h3 {
  color: #1a56db;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.timeline-content h4 {
  color: #1f2937;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.timeline-content .date {
  color: #4b5563;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.timeline-content ul {
  list-style: none;
  padding-left: 0;
}

.timeline-content ul li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #374151;
  font-size: 1.05rem;
}

.timeline-content ul li::before {
  content: '•';
  color: #1a56db;
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-item p {
  margin: 0;
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--primary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form validation styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.contact-form input:valid {
    border-color: #10b981;
}

.contact-form input:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.contact-form textarea:valid {
    border-color: #10b981;
}

.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444 !important;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.error-message i {
    font-size: 0.75rem;
}

.form-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #ef4444;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Success Message */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: white;
  padding: 2rem 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  z-index: 1000;
  border-left: 4px solid #10B981;
  min-width: 300px;
  text-align: center;
  pointer-events: none;
  transition: all 0.3s ease;
}

.success-message.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: all;
}

.success-message i {
  font-size: 3rem;
  color: #10B981;
  margin-bottom: 0.5rem;
}

.success-message h3 {
  color: #1F2937;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.success-message p {
  color: #6B7280;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.5;
}

/* Footer */
footer {
  background: var(--text-color);
  color: white;
  padding: 2rem 5%;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid #444;
}

#last-updated {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #fff;
  margin-top: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  /* .nav-links {
    display: none;
  } */
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .timeline::before,
  .timeline-dot {
    left: 40px;
  }
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 80px !important;
    padding: 2rem;
  }
  .timeline-content h3 {
    font-size: 1.3rem;
  }
  .timeline-content h4 {
    font-size: 1.1rem;
  }
  .success-message {
    width: 90%;
    max-width: 400px;
    padding: 1.5rem 2rem;
  }
  .success-message h3 {
    font-size: 1.3rem;
  }
  .success-message p {
    font-size: 1rem;
  }
}

.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.skill-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@keyframes heroImagePop {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    80% {
        opacity: 1;
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes heroImageFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}

/* Eye-catching Articles Button */
.articles-btn {
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    color: #fff !important;
    font-size: 1.18rem;
    font-weight: 700;
    padding: 1rem 2.2rem;
    border-radius: 40px;
    box-shadow: 0 0 0 rgba(221,36,118,0.18), 0 4px 24px rgba(255,81,47,0.18);
    letter-spacing: 0.5px;
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.7em;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
    overflow: hidden;
}

.articles-btn i {
    font-size: 1.3em;
    margin-right: 0.2em;
    color: #fff;
    transition: color 0.3s;
}

.articles-btn:hover, .articles-btn:focus {
    background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
    box-shadow: 0 0 16px 4px #ffb6b6, 0 8px 32px rgba(221,36,118,0.22);
    transform: scale(1.08) translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.articles-btn:active {
    transform: scale(0.98);
}

/* Articles (Blog) Section */

/* Dark Mode Toggle Button */
.dark-toggle-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-left: 0.7rem;
    transition: color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3em 0.6em;
    border-radius: 50%;
}
.dark-toggle-btn:hover, .dark-toggle-btn:focus {
    color: #ffb300;
    background: rgba(37,99,235,0.08);
    transform: scale(1.15);
}

/* Dark Mode Variables and Overrides */
body.dark-mode {
    --primary-color: #60a5fa;
    --secondary-color: #1e293b;
    --text-color: #f3f4f6;
    --light-text: #a1a1aa;
    --background: #18181b;
    --section-bg: #23232a;
    --section-alt-bg: #202027;
    background: var(--background);
    color: var(--text-color);
}
body.dark-mode,
body.dark-mode section,
body.dark-mode .navbar,
body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .timeline-content,
body.dark-mode .blog,
body.dark-mode .blog-post,
body.dark-mode .contact-form,
body.dark-mode footer {
    background: var(--background) !important;
    color: var(--text-color) !important;
}
body.dark-mode .section-title {
    color: var(--primary-color) !important;
}
body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .timeline-content,
body.dark-mode .blog-post {
    box-shadow: 0 4px 24px rgba(96,165,250,0.10), 0 2px 8px rgba(16,185,129,0.08);
}
body.dark-mode .btn.primary,
body.dark-mode .articles-btn {
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    color: #fff !important;
}
body.dark-mode .btn.secondary,
body.dark-mode .contact-btn {
    background: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}
body.dark-mode .btn.secondary:hover,
body.dark-mode .contact-btn:hover {
    background: var(--primary-color);
    color: #fff !important;
}
body.dark-mode .resume-btn {
    background: #23232a;
    color: #60a5fa !important;
    border: 2px solid #60a5fa;
}
body.dark-mode .resume-btn:hover {
    background: #60a5fa;
    color: #23232a !important;
}
body.dark-mode .navbar {
    background: rgba(24,24,27,0.95) !important;
    box-shadow: 0 2px 10px rgba(96,165,250,0.08);
}
body.dark-mode .social-links a {
    color: #60a5fa;
}
body.dark-mode .social-links a:hover {
    color: #10b981;
}
body.dark-mode .success-message {
    background: #23232a;
    color: #f3f4f6;
    border-left: 4px solid #10b981;
}
body.dark-mode .success-message h3 {
    color: #60a5fa;
}
body.dark-mode .success-message p {
    color: #a1a1aa;
}
body.dark-mode .experience {
    background: var(--section-bg) !important;
}
body.dark-mode .timeline-content {
    background: #23232a !important;
    color: #f3f4f6 !important;
    box-shadow: 0 8px 32px rgba(96,165,250,0.10), 0 2px 8px rgba(16,185,129,0.08);
}
body.dark-mode .timeline-dot {
    background: #60a5fa !important;
    box-shadow: 0 0 0 6px #23232a;
}
body.dark-mode .timeline-content h3 {
    color: #60a5fa !important;
}
body.dark-mode .timeline-content h4 {
    color: #f3f4f6 !important;
}
body.dark-mode .timeline-content .date {
    color: #a1a1aa !important;
}
body.dark-mode .timeline-content ul li::before {
    color: #60a5fa !important;
}
body.dark-mode .timeline-content ul li {
    color: #e5e7eb !important;
}
body.dark-mode .skills,
body.dark-mode .experience,
body.dark-mode .contact {
    background: var(--section-alt-bg) !important;
}
body.dark-mode .projects,
body.dark-mode .blog {
    background: var(--section-bg) !important;
}

#go-to-top {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 60%, #10b981 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37,99,235,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    z-index: 1200;
    transition: opacity 0.3s, background 0.3s, transform 0.2s;
    overflow: visible;
}

#progress-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    display: block;
}

#progress-circle circle {
    transition: stroke-dashoffset 0.2s;
}

.go-to-top-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    width: 22px;
}

#go-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
#go-to-top:hover, #go-to-top:focus {
    background: linear-gradient(135deg, #10b981 60%, #2563eb 100%);
    transform: scale(1.12);
    outline: none;
}
#go-to-top i {
    pointer-events: none;
}
@media (max-width: 700px) {
    #go-to-top {
        right: 1.5rem;
        bottom: 1rem;
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    #progress-circle {
        width: 38px;
        height: 38px;
    }
    .go-to-top-icon {
        height: 18px;
        width: 18px;
    }
}
body.dark-mode #go-to-top {
    background: linear-gradient(135deg, #23232a 60%, #60a5fa 100%);
    color: #10b981;
    box-shadow: 0 4px 24px rgba(16,185,129,0.18);
}

body.dark-mode #progress-circle circle {
    stroke: #10b981;
    filter: drop-shadow(0 0 6px #10b98188);
}

body.dark-mode .go-to-top-icon svg path {
    stroke: #60a5fa;
    filter: drop-shadow(0 0 4px #60a5fa88);
}

.go-to-top-tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
    color: #fff;
    padding: 0.32em 0.7em;
    border-radius: 1em;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 70px;
    text-overflow: ellipsis;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(37,99,235,0.13);
    transition: opacity 0.25s, transform 0.25s;
    z-index: 10;
    letter-spacing: 0.5px;
}
#go-to-top:hover .go-to-top-tooltip,
#go-to-top:focus .go-to-top-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.go-to-top-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px;
    border-style: solid;
    border-color: #2563eb transparent transparent transparent;
    filter: drop-shadow(0 2px 4px rgba(37,99,235,0.13));
}
body.dark-mode .go-to-top-tooltip {
    background: linear-gradient(90deg, #60a5fa 0%, #10b981 100%);
    color: #23232a;
}
body.dark-mode .go-to-top-tooltip::after {
    border-color: #60a5fa transparent transparent transparent;
}

@media (max-width: 700px) {
    .go-to-top-tooltip {
        font-size: 0.72rem;
        max-width: 55px;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: auto;
    z-index: 2002;
    padding: 0.2em 0.6em;
}

@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
        z-index: 4000;
        position: relative;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--background);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 6rem 0 2rem 0;
        box-shadow: 0 8px 32px rgba(37,99,235,0.10);
        transform: translateY(-120%);
        transition: transform 0.3s cubic-bezier(.4,2,.6,1);
        z-index: 2001;
        opacity: 0.98;
        pointer-events: none;
    }
    .nav-links.active {
        transform: translateY(0);
        pointer-events: auto;
        z-index: 3000;
    }
    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 700px) {
    .nav-links {
        padding: 4.5rem 0 1rem 0;
        gap: 1.2rem;
    }
}
body.dark-mode .nav-links {
    background: #18181b;
}

.education {
  background: linear-gradient(120deg, #f0f9ff 60%, #e0f2fe 100%);
  padding: 6rem 5% 5rem;
  position: relative;
  z-index: 1;
}
body.dark-mode .education {
  background: linear-gradient(120deg, #23232a 60%, #202027 100%) !important;
}
.edu-timeline {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  position: relative;
}
.edu-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
  z-index: 0;
  border-radius: 2px;
  transform: translateY(-50%);
}
.edu-step {
  background: white;
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(37,99,235,0.08);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  min-width: 260px;
  max-width: 320px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.25s, box-shadow 0.25s;
}
.edu-step:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 32px rgba(16,185,129,0.13);
}
.edu-badge {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #2563eb 60%, #10b981 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 10px rgba(37,99,235,0.13);
  border: 4px solid #fff;
  position: relative;
  z-index: 2;
}
body.dark-mode .edu-step {
  background: #23232a !important;
  color: #f3f4f6 !important;
  box-shadow: 0 8px 32px rgba(96,165,250,0.10), 0 2px 8px rgba(16,185,129,0.08);
}
body.dark-mode .edu-badge {
  background: linear-gradient(135deg, #60a5fa 60%, #10b981 100%);
  border: 4px solid #23232a;
  color: #23232a;
}
.edu-info h3 {
  font-size: 1.2rem;
  color: #1a56db;
  margin-bottom: 0.3rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}
.edu-info .edu-school {
  color: #1f2937;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}
.edu-info .edu-date {
  color: #4b5563;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}
.edu-info .edu-desc {
  color: #374151;
  font-size: 0.98rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}
body.dark-mode .edu-info h3 {
  color: #60a5fa !important;
}
body.dark-mode .edu-info .edu-school,
body.dark-mode .edu-info .edu-date,
body.dark-mode .edu-info .edu-desc {
  color: #e5e7eb !important;
}
.edu-subsections {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.edu-cards {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: stretch;
  position: relative;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.edu-cards::before {
  content: '';
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 8px;
  background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
  opacity: 0.13;
  border-radius: 4px;
  z-index: 0;
  transform: translateY(-50%);
}
.edu-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(37,99,235,0.08);
  padding: 2rem 2.2rem;
  min-width: 260px;
  max-width: 350px;
  margin-bottom: 1.5rem;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 320px;
  min-height: 260px;
  z-index: 1;
}
.edu-card:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: 0 10px 28px rgba(16,185,129,0.13);
}
.edu-card h4 {
  font-size: 1.15rem;
  color: #10b981;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.edu-card ul {
  list-style: none;
  padding-left: 0;
  color: #374151;
  font-size: 1.01rem;
}
.edu-card ul li {
  margin-bottom: 0.7em;
  position: relative;
  padding-left: 1.2em;
}
.edu-card ul li::before {
  content: '🏅';
  position: absolute;
  left: 0;
  font-size: 1em;
}
.edu-card:last-child ul li::before {
  content: '\1F4DC'; /* 📜 Unicode for scroll */
}
body.dark-mode .edu-card {
  background: #23232a !important;
  color: #f3f4f6 !important;
  box-shadow: 0 8px 32px rgba(96,165,250,0.10), 0 2px 8px rgba(16,185,129,0.08);
}
body.dark-mode .edu-card h4 {
  color: #60a5fa !important;
}
body.dark-mode .edu-card ul {
  color: #e5e7eb !important;
}
.edu-card:nth-child(2) ul li::before {
  content: '\1F4BB'; /* 💻 Unicode for laptop */
}
.edu-card:nth-child(2) ul li a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
}
.edu-card:nth-child(2) ul li a:hover, .edu-card:nth-child(2) ul li a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}
.edu-card:nth-child(3) ul li a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
}
.edu-card:nth-child(3) ul li a:hover, .edu-card:nth-child(3) ul li a:focus {
  color: var(--primary-color);
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .edu-timeline {
    flex-direction: column;
    gap: 2.5rem 0;
    align-items: center;
  }
  .edu-timeline::before {
    display: none;
  }
}
@media (max-width: 700px) {
  .edu-cards {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .edu-cards::before {
    left: 10%;
    right: 10%;
    height: 6px;
  }
  .edu-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
  }
}

.project-btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}
.btn.demo-btn {
  background: #10b981;
  color: #fff !important;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(16,185,129,0.10);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.btn.demo-btn:hover, .btn.demo-btn:focus {
  background: #2563eb;
  color: #fff;
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,0.13);
  text-decoration: none;
}
.project-btn-group .btn {
  border-radius: 40px;
  padding: 0.45rem 1.1rem;
  font-size: 0.98rem;
  letter-spacing: 0.1px;
}
@media (max-width: 700px) {
  .project-btn-group {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .project-btn-group .btn {
    width: 100%;
    text-align: center;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
  .articles-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

body.dark-mode .hero-description {
  background: linear-gradient(90deg, #23232a 60%, #202027 100%) !important;
  color: #60a5fa !important;
  box-shadow: 0 2px 12px rgba(96,165,250,0.10);
}

body.dark-mode .hero-description i {
  color: #fbbf24 !important;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
}

.cta-buttons .btn {
  text-decoration: none !important;
}

/* Default: Desktop - bottom left corner, fixed */
#last-updated {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #fff;
  margin-top: 1rem;
}


/* On mobile: static, centered under copyright */
@media (max-width: 700px) {
  #last-updated {
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
  }
}

/* Make the progress circle color pop in dark mode */
body.dark-mode #progress-circle circle {
  stroke: #10b981;
  filter: drop-shadow(0 0 6px #10b98188);
}

/* Make the up arrow icon pop in dark mode */
body.dark-mode .go-to-top-icon svg path {
  stroke: #60a5fa;
  filter: drop-shadow(0 0 4px #60a5fa88);
}

/* Hide vertical scrollbar but allow scrolling */

/* For Chrome, Safari, Edge */
body::-webkit-scrollbar {
  width: 0 !important;
  background: transparent; /* Optional */
}

/* For Firefox */
body {
  scrollbar-width: none; /* Firefox */
}

/* For IE and Edge (legacy) */
body {
  -ms-overflow-style: none; /* IE and Edge */
}

.no-scrollbar {
  height: 100vh;
  overflow-y: scroll;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}
.no-scrollbar::-webkit-scrollbar {
  width: 0 !important;
  background: transparent;
}

.welcome-message {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%) scale(1);
  background: linear-gradient(90deg, #2563eb 0%, #10b981 100%);
  color: #fff;
  padding: 1.5rem 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(37,99,235,0.13);
  font-size: 1.3rem;
  font-weight: 500;
  z-index: 5000;
  text-align: center;
  opacity: 0.97;
  transition:
    top 0.8s cubic-bezier(.4,2,.6,1),
    left 0.8s cubic-bezier(.4,2,.6,1),
    transform 0.8s cubic-bezier(.4,2,.6,1),
    padding 0.8s cubic-bezier(.4,2,.6,1),
    border-radius 0.8s cubic-bezier(.4,2,.6,1),
    font-size 0.8s cubic-bezier(.4,2,.6,1),
    width 0.8s cubic-bezier(.4,2,.6,1);
}

.welcome-message.shrink {
  top: 1.5rem; /* Adjust to match your .nav-brand or hero heading */
  left: 2.5rem; /* Adjust to match your .nav-brand or hero heading */
  transform: translateX(0) scale(0.7);
  padding: 0.5rem 1.2rem;
  border-radius: 1rem;
  font-size: 1rem;
  width: auto;
  text-align: left;
  opacity: 0.95;
}

@media (max-width: 700px) {
  .welcome-message {
    top: 1rem;
    padding: 1rem 1.2rem;
    font-size: 1.05rem;
    border-radius: 1rem;
  }
  .welcome-message.shrink {
    top: 0.7rem;
    left: 1rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0.7rem;
    transform: translateX(0) scale(0.85);
  }
}

.last-updated-date {
  color: #10b981;
  font-weight: 600;
  margin-left: 0.3em;
  letter-spacing: 0.5px;
}
body.dark-mode .last-updated-date {
  color: #60a5fa;
}

/* Hide the "Top" tooltip on mobile devices */
@media (max-width: 700px) {
  .go-to-top-tooltip {
    display: none !important;
  }
}

.hero-description {
  margin: 1.2rem 0 2.2rem 0;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(90deg, #f0f9ff 60%, #e0f2fe 100%);
  border-radius: 1.2em;
  box-shadow: 0 2px 12px rgba(37,99,235,0.07);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.13rem;
  font-weight: 500;
  color: #2563eb;
}

.hero-lightbulb {
  color: #fbbf24;
  font-size: 1.5em;
}

/* Utility classes for colored and bold text in hero-description */
.text-green { color: #10b981; font-weight: 600; }
.text-blue { color: #1e40af; font-weight: 600; }
.text-pink { color: #f43f5e; font-weight: 600; }
.text-indigo { color: #6366f1; font-weight: 600; }

/* Dark mode overrides for hero-description colored text */
body.dark-mode .text-green { color: #34d399; }
body.dark-mode .text-blue { color: #60a5fa; }
body.dark-mode .text-pink { color: #f472b6; }
body.dark-mode .text-indigo { color: #a5b4fc; }

/* Make skill list items gray and distinct from headings */
.skill-card ul li strong {
  color: #535863; /* Tailwind's gray-500, adjust as needed */
  font-weight: 600;
  font-size: 1em;
}

body.dark-mode .skill-card ul li strong {
  color: #d6c9c9; /* Tailwind's gray-300, adjust as needed */
}
