/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #4a90e2;
  --secondary-color: #f39c12;
  --accent-color: #e74c3c;
  --background-color: #f4f4f4;
  --text-color: #333;
  --text-color-light: #666;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #e0e0e0;
  --gray-medium: #9e9e9e;
  --gray-dark: #616161;
  --success-color: #2ecc71;
  --warning-color: #f1c40f;
  --error-color: #e74c3c;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 16px;
  overflow-x: hidden;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

:root {
  --primary-color: #007bff;
  --white: #ffffff;
  --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

header {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links li {
  margin: 0.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  white-space: nowrap;
}

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

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media screen and (max-width: 1024px) {
  .nav-links {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      left: 0;
      right: 0;
      background-color: var(--white);
      padding: 1rem;
  }

  .nav-links.active {
      display: flex;
  }

  .nav-links li {
      margin: 0.5rem 0;
  }

  .menu-toggle {
      display: block;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
      flex-direction: row;
      justify-content: center;
      flex-wrap: wrap;
  }

  .nav-links li {
      margin: 0.5rem;
  }
}
/* Hero Section */
#hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  text-align: center;
  padding: 12rem 0;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  animation: fadeInUp 1s ease 0.4s;
}

.cta-button:hover {
  background-color: var(--white);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Animated background for hero section */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  z-index: 1;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* About Section */
#about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-content img {
  max-width: 300px;
  height: auto;
  text-align: center;

}

.about-content img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text ul {
  list-style: none;
  margin-left: 1rem;
}

.about-text ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.about-text ul li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Skills Section */
#skills {
  background-color: var(--gray-light);
}

.skills-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.skill-category {
  flex: 1;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  margin-bottom: 1rem;
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.skill-bar {
  height: 10px;
  background-color: var(--gray-light);
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--primary-color);
  width: 0;
  transition: width 1s ease-in-out;
}

/* Updated skill level animation */
@keyframes skillFill {
  0% { width: 0; }
  100% { width: var(--skill-percentage); }
}

.skill-level {
  animation: skillFill 1.5s ease-out forwards;
}

.skills-chart {
  margin-top: 3rem;
}

/* Projects Section */
#projects {
  background-color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

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

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.25rem;
}

.project-card p {
  padding: 0 1.5rem 1rem;
  color: var(--text-color-light);
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  padding: 0 1.5rem 1rem;
  list-style: none;
}

.project-tags li {
  background-color: var(--gray-light);
  color: var(--text-color);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-link {
  display: block;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem;
  transition: var(--transition);
}

.project-link:hover {
  background-color: var(--secondary-color);
}

/* Writing Section */
#writing {
  background-color: var(--gray-light);
}

.writing-samples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.writing-card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.writing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.writing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.writing-card p {
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  align-self: flex-start;
}

.read-more:hover {
  background-color: var(--secondary-color);
}

/* Education Section */
#education {
  background-color: var(--white);
}

.education-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.education-timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: 6px;
  box-shadow: var(--box-shadow);
}

.timeline-date {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* Achievements Section */
#achievements {
  background-color: var(--gray-light);

 
}

.center{

  text-align: center;
}

.center {
  text-align: center;
}

/* Social Work Section */
#social-work {
  background-color: var(--white);
}

.social-work-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.social-work-item {
  background-color: var(--gray-light);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
}

.social-work-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.social-work-item h3 {
  
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.social-work-item p {
  margin-bottom: 1rem;
}

.social-work-item ul {
  list-style: none;
  margin-left: 1rem;
}

.social-work-item ul li {
  margin-bottom: 0.5rem;
  position: relative;
}

.social-work-item ul li::before {
  content: "✓";
  color: var(--success-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

/* Contact Section */
#contact {
  background-color: var(--gray-light);
}

.contact-content {
  display: flex;
  gap: 4rem;
}

.contact-info {
  flex: 1;
}

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

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-info ul {
  list-style: none;
  margin-bottom: 2rem;
}

.contact-info ul li {
  margin-bottom: 1rem;
}

.contact-info ul li strong {
  display: inline-block;
  width: 100px;
  color: var(--text-color-light);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-medium);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.submit-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--secondary-color);
}

/* Footer Styles */
footer {
  background-color: var(--gray-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section {
  flex: 1;
}

.footer-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--gray-light);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-medium);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

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

  .about-content img {
    margin-bottom: 2rem;
  }

  .skills-content {
    flex-direction: column;
  }

  .contact-content {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  nav ul {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
  }

  .education-timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::before {
    left: 60px;
    border: medium solid var(--white);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
  }

  .timeline-item::after {
    left: 15px;
  }

  .timeline-item:nth-child(even) {
    left: 0%;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .project-card,
  .writing-card,
  .social-work-item {
    padding: 1.5rem;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #1a1a1a;
    --text-color: #f4f4f4;
    --text-color-light: #b0b0b0;
    --white: #2a2a2a;
    --gray-light: #333333;
    --gray-medium: #4a4a4a;
    --gray-dark: #1a1a1a;
  }

  body {
    background-color: var(--background-color);
    color: var(--text-color);
  }

  header,
  #about,
  #projects,
  #education,
  .timeline-content,
  .project-card,
  .writing-card {
    background-color: var(--white);
  }

  .skill-category,
  .contact-form input,
  .contact-form textarea {
    background-color: var(--gray-light);
    color: var(--text-color);
  }

  .skill-bar {
    background-color: var(--gray-medium);
  }

  .project-tags li {
    background-color: var(--gray-medium);
    color: var(--text-color-light);
  }

  .social-links a {
    background-color: var(--gray-medium);
  }

  footer {
    background-color: var(--gray-dark);
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
  }

  header, footer, .cta-button, .project-link, .read-more, .submit-btn {
    display: none;
  }

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

  .container {
    width: 100%;
    max-width: none;
  }

  section {
    page-break-inside: avoid;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
  }

  @page {
    margin: 2cm;
  }
}

/* Additional Enhancements */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}

.scroll-to-top.visible {
  opacity: 1;
}

.scroll-to-top:hover {
  background-color: var(--secondary-color);
}

/* Hover Effects */
.project-card::before,
.writing-card::before,
.social-work-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
  border-radius: 8px;
}

.project-card:hover::before,
.writing-card:hover::before,
.social-work-item:hover::before {
  opacity: 0.1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Animation */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: var(--background-color);
}

.loading::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 5px solid var(--gray-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Text Selection */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Responsive Font Sizes */
@media screen and (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

@media screen and (max-width: 600px) {
  html {
    font-size: 14px;
  }
}

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gray-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Fancy Link Underline Effect */
.fancy-link {
  position: relative;
  text-decoration: none;
}

.fancy-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.fancy-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Glassmorphism Effect */
.glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 2rem;
}

/* Text Gradient Animation */
.animated-gradient-text {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rainbow 8s ease infinite;
  background-size: 400% 100%;
}

@keyframes rainbow {
  0%,100% {
    background-position: 0 0;
  }
  50% {
    background-position: 100% 0;
  }
}

/* Floating Animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translate(0,  0px); }
  50%  { transform: translate(0, 15px); }
  100%   { transform: translate(0, -0px); }   
}

/* Typing Animation */
.typing {
  width: 22ch;
  animation: typing 2s steps(22), blink .5s step-end infinite alternate;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid;
  font-family: monospace;
  font-size: 2em;
}

@keyframes typing {
  from { width: 0 }
}
    
@keyframes blink {
  50% { border-color: transparent }
}

/* 3D Button Effect */
.button-3d {
  position: relative;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  border: none;
  letter-spacing: 0.1rem;
  font-size: 1rem;
  padding: 1rem 3rem;
  transition: all 0.3s ease;
}

.button-3d:hover {
  letter-spacing: 0.2rem;
  padding: 1.1rem 3.1rem;
  background: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 0 35px var(--secondary-color);
}

.button-3d::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--white);
}

.button-3d span {
  position: relative;
  z-index: 1;
}

.button-3d i {
  position: absolute;
  inset: 0;
  display: block;
}

.button-3d i::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 2px;
  left: 80%;
  top: -2px;
  border: 2px solid var(--secondary-color);
  background: var(--background-color);
  transition: 0.2s;
}

.button-3d:hover i::before {
  width: 15px;
  left: 20%;
  animation: move 3s infinite;
}

.button-3d i::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 2px;
  left: 20%;
  bottom: -2px;
  border: 2px solid var(--secondary-color);
  background: var(--background-color);
  transition: 0.2s;
}

.button-3d:hover i::after {
  width: 15px;
  left: 80%;
  animation: move 3s infinite;
}

@keyframes move {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* Neon Text Effect */
.neon {
  font-size: 4rem;
  color: #fff;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 20px #fff,
    0 0 40px var(--primary-color),
    0 0 80px var(--primary-color),
    0 0 90px var(--primary-color),
    0 0 100px var(--primary-color),
    0 0 150px var(--primary-color);
}

/* Glitch Effect */
.glitch {
  position: relative;
  font-size: 4rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 5px;
  animation: glitch 1s linear infinite;
}

@keyframes glitch {
  2%,64% {
    transform: translate(2px,0) skew(0deg);
  }
  4%,60% {
    transform: translate(-2px,0) skew(0deg);
  }
  62% {
    transform: translate(0,0) skew(5deg); 
  }
}

.glitch:before,
.glitch:after {
  content: attr(title);
  position: absolute;
  left: 0;
}

.glitch:before {
  animation: glitchTop 1s linear infinite;
  clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

@keyframes glitchTop {
  2%,64% {
    transform: translate(2px,-2px);
  }
  4%,60% {
    transform: translate(-2px,2px);
  }
  62% {
    transform: translate(13px,-1px) skew(-13deg); 
  }
}

.glitch:after {
  animation: glitchBotom 1.5s linear infinite;
  clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
  -webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}

@keyframes glitchBotom {
  2%,64% {
    transform: translate(-2px,0);
  }
  4%,60% {
    transform: translate(-2px,0);
  }
  62% {
    transform: translate(-22px,5px) skew(21deg); 
  }
}

/* Responsive Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* CSS-only Accordion */
.accordion {
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.accordion-item {
  background-color: var(--white);
  border: 1px solid var(--gray-light);
  margin-bottom: 5px;
}

.accordion-header {
  background-color: var(--gray-light);
  padding: 15px;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item:target .accordion-content {
  max-height: 500px; /* Adjust based on content */
}

/* Infinite Marquee */
.marquee {
  width: 100%;
  overflow: hidden;
  background: var(--primary-color);
  color: var(--white);
}

.marquee-content {
  display: flex;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
  padding: 10px;
  min-width: 100%;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Circular Progress Bar */
.progress-circle {
  position: relative;
  width: 100px;
  height: 100px;
}

.progress-circle-bg {
  fill: none;
  stroke: var(--gray-light);
  stroke-width: 4;
}

.progress-circle-bar {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  animation: progress-circle 1s ease-out forwards;
}

@keyframes progress-circle {
  to {
    stroke-dashoffset: 0;
  }
}

/* Responsive Image Gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* CSS-only Tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
}

.tabs label {
  order: 1;
  display: block;
  padding: 1rem 2rem;
  margin-right: 0.2rem;
  cursor: pointer;
  background: var(--gray-light);
  font-weight: bold;
  transition: background ease 0.2s;
}

.tabs .tab {
  order: 99;
  flex-grow: 1;
  width: 100%;
  display: none;
  padding: 1rem;
  background: var(--white);
}

.tabs input[type="radio"] {
  display: none;
}

.tabs input[type="radio"]:checked + label {
  background: var(--white);
}

.tabs input[type="radio"]:checked + label + .tab {
  display: block;
}

/* Responsive Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--gray-medium);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--white);
  border: 4px solid var(--primary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left {
  left: 0;
}

.right {
  left: 50%;
}

.left::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  right: 30px;
  border: medium solid var(--white);
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--white);
}

.right::before {
  content: " ";
  height: 0;
  position: absolute;
  top: 22px;
  width: 0;
  z-index: 1;
  left: 30px;
  border: medium solid var(--white);
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--white) transparent transparent;
}

.right::after {
  left: -16px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: var(--white);
  position: relative;
  border-radius: 6px;
}

@media screen and (max-width: 600px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-container::before {
    left: 60px;
    border: medium solid var(--white);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
  }

  .left::after, .right::after {
    left: 15px;
  }
  
  .right {
    left: 0%;
  }
}

/* Animated Background */
.animated-bg {
  width: 100%;
  height: 100vh;
  background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--success-color));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Flip Card */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: var(--gray-light);
  color: var(--text-color);
}

.flip-card-back {
  background-color: var(--primary-color);
  color: var(--white);
  transform: rotateY(180deg);
}

/* Responsive Masonry Layout */
.masonry {
  column-count: 4;
  column-gap: 1em;
}

.masonry-item {
  display: inline-block;
  margin: 0 0 1em;
  width: 100%;
}

@media (max-width: 1200px) {
  .masonry {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .masonry {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .masonry {
    column-count: 1;
  }
}

/* CSS Grid Layout System */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animated Gradient Border */
.gradient-border {
  --borderWidth: 3px;
  background: var(--white);
  position: relative;
  border-radius: var(--borderWidth);
}

.gradient-border:after {
  content: '';
  position: absolute;
  top: calc(-1 * var(--borderWidth));
  left: calc(-1 * var(--borderWidth));
  height: calc(100% + var(--borderWidth) * 2);
  width: calc(100% + var(--borderWidth) * 2);
  background: linear-gradient(60deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--success-color));
  border-radius: calc(2 * var(--borderWidth));
  z-index: -1;
  animation: animatedgradient 3s ease alternate infinite;
  background-size: 300% 300%;
}

@keyframes animatedgradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Table */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
}

.responsive-table th, .responsive-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
}

@media screen and (max-width: 600px) {
  .responsive-table thead {
    display: none;
  }
  
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td {
    display: block;
    width: 100%;
  }
  
  .responsive-table tr {
    margin-bottom: 15px;
  }
  
  .responsive-table td {
    text-align: right;
    padding-left: 50%;
    position: relative;
  }
  
  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
  }
}

/* CSS-only Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: var(--white);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--gray-light);
  width: 80%;
  max-width: 500px;
}

.close {
  color: var(--gray-medium);
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
}

/* Animated Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--gray-light);
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Responsive Sidebar */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: var(--white);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidebar a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: var(--text-color);
  display: block;
  transition: 0.3s;
}

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

.sidebar .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: var(--secondary-color);
}

/* Animated Counter */
.counter {
  font-size: 40px;
  font-weight: bold;
  animation: count 4s steps(10) infinite;
}

@keyframes count {
  from {
    content: "0";
  }
  to {
    content: "100";
  }
}

/* CSS-only Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: var(--gray-light);
}

/* Animated Text Shadow */
.text-shadow {
  font-size: 4em;
  font-weight: bold;
  color: var(--primary-color);
  animation: textShadow 5s ease-in-out infinite alternate;
}

@keyframes textShadow {
  from {
    text-shadow: 2px 2px 0px var(--secondary-color);
  }
  to {
    text-shadow: 15px 15px 0px var(--accent-color);
  }
}

/* Responsive Pricing Table */
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  width: 100%;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  background: var(--white);
  margin: 20px 10px;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  color: var(--text-color);
  transition: .3s linear;
}

.pricing-card-header {
  background: var(--primary-color);
  display: inline-block;
  color: var(--white);
  padding: 12px 30px;
  border-radius: 0 0 20px 20px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  transition: .4s linear;
}

.price {
  font-size: 70px;
  color: var(--primary-color);
  margin: 40px 0;
  transition: .2s linear;
}

.price sup, .price span {
  font-size: 22px;
  font-weight: 700;
}

.pricing-card:hover .price,
.pricing-card:hover .pricing-card-header {
  color: var(--white);
}

.pricing-card:hover .pricing-card-header {
  box-shadow: 0 0 0 26em var(--primary-color);
}

.pricing-card li {
  font-size: 16px;
  padding: 10px 0;
  text-transform: uppercase;
}

.order-btn {
  display: inline-block;
  margin-bottom: 40px;
  margin-top: 80px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 18px 40px;
  border-radius: 8px;
  text-transform: uppercase;
  font-weight: 500;
  transition: .3s linear;
}

.order-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

@media screen and (max-width: 1100px) {
  .pricing-card {
    flex: 50%;
  }
}

@media screen and (max-width: 600px) {
  .pricing-card {
    flex: 100%;
  }
}

/* Animated Background Gradient */
.gradient-bg {
  width: 100%;
  height: 100vh;
  color: var(--white);
  background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--success-color));
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* CSS-only Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--text-color);
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: var(--text-color);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-color) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Animated Underline Effect */
.underline-animation {
  display: inline-block;
  position: relative;
  color: var(--primary-color);
}

.underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* CSS-only Accordion */
.accordion {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--gray-light);
}

.accordion-item {
  border-bottom: 1px solid var(--gray-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: block;
  padding: 15px;
  background-color: var(--white);
  color: var(--text-color);
  cursor: pointer;
  position: relative;
}

.accordion-header::after {
  content: '+';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  background-color: var(--gray-light);
}

.accordion-item input[type="checkbox"] {
  display: none;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-content {
  max-height: 500px;
}

.accordion-item input[type="checkbox"]:checked ~ .accordion-header::after {
  content: '-';
}

/* Animated Hamburger Menu Icon */
.hamburger {
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}

.hamburger:hover {
  opacity: 0.7;
}

.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 40px;
  height: 4px;
  background-color: var(--text-color);
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

.hamburger-inner::before, .hamburger-inner::after {
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* Hamburger Animation */
.hamburger--spin .hamburger-inner {
  transition-duration: 0.22s;
  transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin .hamburger-inner::before {
  transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner::after {
  transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
  transform: rotate(225deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--spin.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger--spin.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Additional Responsive Adjustments */
@media screen and (max-width: 768px) {
  .container {
    width: 95%;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-content h2 {
    font-size: 2.2rem;
  }

  .about-content, .skills-content, .projects-grid,
  .writing-samples, .contact-content {
    flex-direction: column;
  }

  .about-content img {
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .skill-category, .project-card, .writing-card,
  .social-work-item {
    width: 100%;
  }

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

  .footer-section {
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .skill-name, .project-tags li, .timeline-date {
    font-size: 0.9rem;
  }

  .contact-form input,
  .contact-form textarea,
  .submit-btn {
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  ul, ol, dl {
    page-break-before: avoid;
  }

  a:link, a:visited {
    background: transparent;
    font-weight: bold;
    text-decoration: underline;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after {
    content: "";
  }

  pre, blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr, img {
    page-break-inside: avoid;
  }

  @page {
    margin: 0.5cm;
  }

  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }

  .no-print, .no-print * {
    display: none !important;
  }
}

/* Accessibility Enhancements */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

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

[tabindex]:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.skip-link {
  background: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  left: 50%;
  padding: 4px;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
}

.skip-link:focus {
  transform: translateY(0%);
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Final touches and additional features */

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  height: 5px;
  background-color: var(--primary-color);
  z-index: 9999;
  transition: width 0.3s ease;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  transform: translateY(100px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--secondary-color);
}

/* Custom Selection Color */
::selection {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Smooth Scrolling (if not using CSS scroll-behavior) */
html {
  scroll-behavior: smooth;
}

/* CSS Variables for Easy Customization */
:root {
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  --border-radius: 4px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }
.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }

/* Add more utility classes as needed */

/* Ensure proper box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Remove default margin and padding */
body, h1, h2, h3, h4, h5, h6, p, ol, ul {
  margin: 0;
  padding: 0;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  line-height: var(--line-height-base);
}

/* Make images easier to work with */
img {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button, textarea, select {
  font: inherit;
}

/* Final touches */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* Add any additional styles or overrides here */

.review-popup {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.review-popup h2 {
  margin-top: 0;
  color: #333;
}
.review-popup textarea {
  width: 100%;
  height: 100px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
}
.review-popup button {
  background-color: #1256dd;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}
.review-popup .hide-btn {
  background-color: #f44336;
  float: right;
}
#showReviewButton {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #008CBA;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
}



/* Hire me */


.floating-button {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  z-index: 9999;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.floating-button svg {
  width: 32px;
  height: 32px;
  fill: white;
}

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

.tooltip {
  position: absolute;
  background-color: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  bottom: 100%;
  left: 0;
  margin-bottom: 10px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-button:hover .tooltip {
  opacity: 1;
}


/* hire me */


