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

/* CSS Variables for Theme Switching */
:root {
  --bg-primary: #0f0f13;
  --bg-secondary: #1a1a24;
  --bg-tertiary: #181818;
  --text-primary: #eee;
  --text-secondary: #aaa;
  --accent-primary: #ff6e3a;
  --accent-secondary: #0ff;
  --shadow-color: rgba(0, 0, 0, 0.5);
  --card-shadow: rgba(0, 255, 255, 0.08);
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8e8e8;
  --text-primary: #1a1a24;
  --text-secondary: #555;
  --accent-primary: #ff6e3a;
  --accent-secondary: #0099cc;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --card-shadow: rgba(0, 153, 204, 0.15);
}

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding-top: 60px;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: default;
}

/* Animated Background Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    #a855f7
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

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

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Typing Effect */
.typing-text {
  overflow: hidden;
  border-right: 3px solid var(--accent-primary);
  white-space: nowrap;
  animation: typing 3.5s steps(30) 1s 1 normal both,
    blink 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 2px solid var(--accent-secondary);
  color: var(--accent-secondary);
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
  transform: rotate(180deg);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 110, 58, 0.4);
}

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

.scroll-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  margin-right: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.primary {
  background: linear-gradient(135deg, var(--accent-primary), #e85d29);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 110, 58, 0.4);
}

.primary:hover {
  box-shadow: 0 6px 20px rgba(255, 110, 58, 0.6);
  transform: translateY(-2px);
}

.outline {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  background: transparent;
}

.outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 8%;
}
.hero-left h2 {
  font-size: 1.5rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}
.hero-left h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.skills-bar {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.skills-bar span {
  background: rgba(255, 110, 58, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 110, 58, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.skills-bar span:hover {
  background: rgba(255, 110, 58, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 110, 58, 0.4);
}
.hero-right .avatar-container {
  position: relative;
  width: 250px;
  height: 250px;
}
.avatar-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 30px rgba(255, 110, 58, 0.4);
}
.glow-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border-radius: 50%;
  box-shadow: 0 0 30px 10px rgba(255, 110, 58, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}
.about {
  display: flex;
  gap: 4rem;
  align-items: center;
  padding: 4rem 8%;
}
.about-icons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-icons div {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.about-icons img {
  width: 40px;
}
.stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}
.stats div h3 {
  font-size: 2rem;
  color: #ff6e3a;
}
.projects {
  padding: 4rem 8%;
}
.project {
  text-decoration: none;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  min-width: 0;
  word-break: break-word;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(26, 26, 36, 0.8),
    rgba(26, 26, 36, 0.9)
  );
  border: 1px solid rgba(255, 110, 58, 0.1);
  animation: fadeInUp 0.6s ease-out both;
  transform-origin: bottom;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px) rotateX(20deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 4px 20px var(--shadow-color);
  }
  50% {
    box-shadow: 0 8px 40px rgba(255, 110, 58, 0.4),
      0 0 30px rgba(0, 255, 255, 0.2);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-12px) scale(1.03) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) scale(1.04) rotate(1deg);
  }
}

.project-card.pulse-once {
  animation: pulse-glow 0.6s ease-in-out;
}

[data-theme="light"] .project-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.95)
  );
  border: 1px solid rgba(0, 153, 204, 0.2);
}

.project-card-inner {
  position: relative;
  z-index: 1;
}

/* Animated corner accent */
.project-card-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 50px 50px 0;
  border-color: transparent var(--accent-primary) transparent transparent;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-card-corner {
  opacity: 0.3;
  border-width: 0 80px 80px 0;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 110, 58, 0.15),
    transparent
  );
  transition: left 0.6s ease;
}

.project-card:hover::before {
  left: 100%;
}

.project-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 110, 58, 0.05) 0%,
    transparent 50%,
    rgba(0, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  border-radius: 12px;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 60px var(--card-shadow), 0 0 30px rgba(255, 110, 58, 0.3);
  border-color: rgba(255, 110, 58, 0.4);
  animation: float 2s ease-in-out infinite;
}

.project-card.expanded {
  transform: translateY(-8px) scale(1.02);
}

/* Project card header with title and expand icon */
.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.expand-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.project-card:hover .expand-icon {
  color: var(--accent-secondary);
  transform: scale(1.2);
}

.project-card.expanded .expand-icon {
  transform: rotate(180deg);
  color: var(--accent-secondary);
}

.project-card h3 {
  margin: 0;
  color: var(--accent-primary);
  word-break: break-word;
  font-size: 1.2rem;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.project-card:hover h3 {
  color: var(--accent-secondary);
}

/* Project Meta Info */
.project-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.lang-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid var(--lang-color, #888);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.lang-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.lang-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lang-color, #888);
  box-shadow: 0 0 8px var(--lang-color, #888);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

.star-count,
.fork-count {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.star-count i {
  color: #ffd700;
}

.fork-count i {
  color: var(--accent-secondary);
}

.star-count:hover,
.fork-count:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Topics/Tags */
.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.topic-tag {
  padding: 0.3rem 0.7rem;
  background: linear-gradient(
    135deg,
    rgba(255, 110, 58, 0.15),
    rgba(0, 255, 255, 0.15)
  );
  border-radius: 15px;
  font-size: 0.75rem;
  color: var(--accent-secondary);
  border: 1px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: default;
}

.topic-tag:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 110, 58, 0.3),
    rgba(0, 255, 255, 0.3)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
}

.demo-link {
  color: var(--accent-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
}

.demo-link:hover {
  color: var(--accent-primary);
  transform: translateX(3px);
}

/* Short description always visible */
.project-short-desc {
  color: #aaa;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Hidden details section */
.project-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.project-card.expanded .project-details {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 1rem;
}

.project-info {
  background: rgba(255, 110, 58, 0.05);
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #ff6e3a;
  margin-bottom: 1rem;
}

.project-info p {
  margin: 0.5rem 0;
  color: #ddd;
  font-size: 0.9rem;
}

.project-info strong {
  color: #0ff;
  margin-right: 0.5rem;
}

.project-info a {
  color: #0ff;
  text-decoration: none;
  transition: color 0.2s;
}

.project-info a:hover {
  color: #ff6e3a;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1),
    rgba(255, 110, 58, 0.1)
  );
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.repo-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.repo-link:hover::before {
  left: 100%;
}

.repo-link:hover {
  color: white;
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}
a {
  text-decoration: none;
}
.navbar {
  width: 100%;
  background: rgba(24, 24, 24, 0.85);
  color: var(--text-primary);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 20px var(--shadow-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(24, 24, 24, 0.95);
  box-shadow: 0 4px 30px var(--shadow-color);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.nav-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.3s ease;
}

.logo-bracket {
  color: var(--accent-primary);
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.nav-logo:hover .logo-bracket:first-child {
  transform: translateX(-5px);
}

.nav-logo:hover .logo-bracket:last-child {
  transform: translateX(5px);
}

.nav-logo:hover {
  color: var(--accent-secondary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

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

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

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--accent-primary);
}

.resume-link {
  background: linear-gradient(135deg, var(--accent-primary), #e85d29);
  padding: 0.6rem 1.2rem !important;
  border-radius: 25px;
  color: white !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 110, 58, 0.3);
  transition: all 0.3s ease;
}

.resume-link::before {
  display: none;
}

.resume-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 110, 58, 0.5);
  color: white !important;
}
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-right {
    margin-bottom: 2rem;
  }
  .about {
    flex-direction: column;
  }

  /* Disable custom cursor on mobile */
  body {
    cursor: auto;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none;
  }

  /* Adjust typing effect for mobile */
  .typing-text {
    animation: none;
    border-right: none;
    white-space: normal;
  }

  /* Smaller gradients on mobile */
  .gradient-text {
    font-size: 0.9em;
  }
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-container {
    padding: 0.8rem 1.5rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
  }

  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    padding: 0.8rem 0;
    font-size: 1.1rem;
  }

  .nav-link::before {
    left: 0;
    transform: none;
  }

  .resume-link {
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
  }

  .theme-toggle {
    margin-top: 1rem;
  }

  .nav-logo {
    font-size: 1.5rem;
  }

  .logo-bracket {
    font-size: 1.5rem;
  }
}
.about-icons i {
  font-size: 2rem;
  color: #ff6e3a;
  transition: transform 0.3s ease;
}
.about-icons i:hover {
  transform: scale(1.2);
  color: #0ff;
}
#title {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}
#resume-btn {
  background: #0ff;
  color: #000;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  transition: background 0.3s ease;
  text-decoration: none;
}
.hero-title {
  font-size: 2.5rem;
  color: #ff6e3a;
  margin-bottom: 1rem;
}
.techstack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}
.tech-stack {
  text-align: center;
}
.tools-title {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.tools-stack img {
  vertical-align: middle;
  transition: transform 0.2s;
}
.tools-stack img:hover {
  transform: scale(1.15);
  animation: bounce 0.5s;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.tech-stack img:hover {
  animation: bounce 0.5s;
  transform: scale(1.15);
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero,
.about,
.projects,
.tech-stack,
.tools-stack {
  animation: fadeInUp 1s ease;
}
.contact-title {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.5rem;
  letter-spacing: 2px;
}
.contact-container {
  text-align: center;
  margin-bottom: 2rem;
  animation: fadeInUp 1s;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 1.5rem auto;
}
.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--accent-secondary);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  resize: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 110, 58, 0.3);
  transform: translateY(-2px);
}
.contact-form button {
  background: linear-gradient(135deg, var(--accent-secondary), #0099cc);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.contact-form button:hover {
  background: linear-gradient(135deg, var(--accent-primary), #e85d29);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 110, 58, 0.4);
}
.contact-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.contact-link {
  color: #00ffe7;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-link:hover {
  color: #ff6e3a;
}

/* Animations for interactivity */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pop {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes bounceBtn {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.animate-fadein {
  animation: fadeInUp 1s both;
}
.animate-pop {
  animation: pop 0.8s both;
}
.animate-bounce {
  animation: bounceBtn 1s infinite alternate;
}
.animate-slidein {
  animation: fadeInUp 1.2s both;
}

/* Parallax Effect */
[data-parallax] {
  transition: transform 0.3s ease-out;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}
* Footer styling */ .footer {
  background: #181818;
  color: #fff;
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: 1px;
}
.footer-content {
  max-width: 1100px;
  margin: 0 auto;
}

/* Section reveal on scroll (optional, JS needed for full effect) */
section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s, transform 0.8s;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add this at the end of your CSS file */

/* Make sections and containers more fluid */
body,
html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

.hero,
.about,
.projects,
.tech-stack,
.tools-stack,
.contact,
.footer {
  padding-left: 5vw;
  padding-right: 5vw;
  box-sizing: border-box;
}

/* Responsive grid and flex adjustments */
.projects-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 600px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive avatar and hero */
.hero {
  flex-direction: column-reverse;
  text-align: center;
  padding: 2rem 5vw;
}
.hero-right .avatar-container {
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem auto;
}
@media (min-width: 600px) {
  .hero {
    flex-direction: row;
    text-align: left;
    padding: 4rem 8vw;
  }
  .hero-right .avatar-container {
    width: 250px;
    height: 250px;
  }
}

/* About section responsive */
.about {
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 5vw;
}
@media (min-width: 900px) {
  .about {
    flex-direction: row;
    gap: 4rem;
    padding: 4rem 8vw;
  }
}

/* Tech stack and tools responsive */
.tech-stack,
.tools-stack {
  margin-left: 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

/* Contact form responsive */
.contact-form {
  max-width: 100%;
  width: 100%;
  padding: 0 2vw;
}
@media (min-width: 500px) {
  .contact-form {
    max-width: 400px;
    margin: 1.5rem auto;
    padding: 0;
  }
}

/* Footer responsive */
.footer {
  padding-left: 5vw;
  padding-right: 5vw;
  font-size: 0.95rem;
}

/* Prevent content from touching screen edges on curved displays */
section,
.header,
.footer,
div,
input,
textarea,
button {
  border-radius: 12px;
}

/* Hide horizontal scrollbars */
body {
  overflow-x: hidden;
}

/* Fix nav for mobile */
.navbar {
  padding: 0.7rem 5vw;
}
@media (max-width: 600px) {
  .nav-links {
    gap: 1rem;
    font-size: 0.95rem;
  }
  .nav-logo {
    font-size: 1.2rem;
    margin-right: 2rem;
  }
}

/* Make sure all images are fluid */
img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Responsive tech stack and tools images */
.tech-stack img,
.tools-stack img {
  max-width: 48px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s;
}

@media (max-width: 600px) {
  .tech-stack img,
  .tools-stack img {
    max-width: 32px;
    margin: 0 4px 6px 0;
  }
  .tech-stack,
  .tools-stack {
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
  }
}
