/* ========== GLOBAL RESET & VARIABLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #05070a;
  --bg-card: #0c0f15;
  --surface: #11151c;
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.35);
  --primary-light: #ff8c42;
  --text-light: #f0f3f8;
  --text-muted: #a6b0c0;
  --border-dim: #1e2a32;
  --transition-fast: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', 'Poppins', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
  padding-top: 70px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f1219;
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* ========== UTILITIES ========== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 4rem 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #ffb347 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.heading {
  font-size: 3.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3.5rem;
  letter-spacing: -0.02em;
}

.heading span {
  background: linear-gradient(125deg, var(--primary), #ff884d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ========== HEADER - FIXED POSITION ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  padding: 1rem 7%;
  background: rgba(5, 7, 10, 0.98);
  backdrop-filter: blur(14px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  border-bottom: 2px solid rgba(249, 115, 22, 0.3);
  transition: all 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-light);
}

.logo span {
  color: var(--primary);
  background: none;
  -webkit-background-clip: unset;
}

.navbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar a {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: 0.2s;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}

.navbar a:hover::after,
.navbar a.active-nav::after {
  width: 80%;
}

.navbar a:hover,
.navbar a.active-nav {
  color: var(--primary);
}

#menu-icon {
  font-size: 2.5rem;
  color: var(--primary);
  display: none;
  cursor: pointer;
}

/* HIRE ME BUTTON - PROPERLY POSITIONED */
.hire-btn {
  background: linear-gradient(95deg, #f97316, #ff5722);
  padding: 0.6rem 1.8rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.2s;
  color: #111;
  box-shadow: 0 0 8px var(--primary-glow);
  white-space: nowrap;
  display: inline-block;
}

.hire-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px var(--primary);
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  padding-top: 9rem;
}

.hero-content {
  flex: 1;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-content h1 {
  font-size: 4.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-content h3 {
  font-size: 2rem;
  margin: 0.8rem 0 1.2rem;
  font-weight: 500;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin-bottom: 2rem;
}

.hero-img img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 38% 62% 70% 30% / 44% 50% 50% 56%;
  border: 3px solid var(--primary);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite, fadeUp 0.8s ease 0.4s both;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.social-icons a {
  background: #0f131a;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  transition: 0.25s;
  border: 1px solid var(--border-dim);
  position: relative;
}

.social-icons a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

/* Tooltip */
.social-link[data-tooltip] {
  position: relative;
}

.social-link[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  white-space: nowrap;
  font-weight: 600;
}

/* Buttons */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  background: var(--primary);
  color: #111;
  transition: 0.2s;
  display: inline-block;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
}

/* Resume button */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ========== ABOUT SECTION ========== */
.about-section {
  background: #070a0f;
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-img img {
  width: 260px;
  border-radius: 2rem;
  border: 3px solid var(--primary);
  transition: 0.4s;
}

.about-img img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px var(--primary-glow);
}

.about-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.skill-badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.skill-badge span {
  background: #151e26;
  padding: 0.4rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  border-left: 2px solid var(--primary);
  transition: 0.2s;
}

.skill-badge span:hover {
  transform: translateX(5px);
  background: #1e2a36;
}

/* ========== SERVICES SECTION ========== */
.services-section {
  background: #05080e;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.2rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-dim);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.7s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}

.service-card:nth-child(2) {
  animation-delay: 0.2s;
}

.service-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.service-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 20px 35px -12px var(--primary-glow);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: 0.3s;
}

.service-card:hover i {
  transform: scale(1.1);
}

.service-card h4 {
  font-size: 1.7rem;
  margin: 1rem 0;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ========== CAROUSEL SECTION ========== */
.carousel-section {
  background: #070b10;
  overflow: hidden;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 2rem 0;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem 2rem;
  scrollbar-width: thin;
}

.carousel-track::-webkit-scrollbar {
  height: 6px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 20px;
}

.carousel-item {
  flex: 0 0 330px;
  background: var(--bg-card);
  border-radius: 1.8rem;
  scroll-snap-align: start;
  transition: 0.25s;
  border: 1px solid #212933;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9);
  animation: carouselPop 0.6s ease forwards;
}

@keyframes carouselPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-item:hover {
  transform: scale(1.02);
  border-color: var(--primary);
  box-shadow: 0 15px 30px -12px var(--primary-glow);
}

.carousel-img {
  height: 180px;
  background: linear-gradient(145deg, #1f2a36, #0e121a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--primary);
}

.carousel-content {
  padding: 1.5rem;
}

.carousel-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.carousel-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tech-stack span {
  background: #1a232e;
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #ffaa66;
  transition: 0.2s;
}

.tech-stack span:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.carousel-btn {
  background: var(--primary);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 3rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  color: #111;
}

.carousel-btn:hover {
  transform: scale(1.05);
  background: #ff8c42;
  box-shadow: 0 0 12px var(--primary);
}

/* ========== PROJECTS GRID ========== */
.projects-grid-section {
  background: #05080e;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #0c1018;
  border-radius: 1.6rem;
  overflow: hidden;
  transition: all 0.35s;
  border: 1px solid #1f2a32;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.7s ease forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 30px -15px rgba(249, 115, 22, 0.2);
}

.card-img {
  height: 170px;
  background: #111b24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
  transition: 0.3s;
}

.project-card:hover .card-img {
  background: #1a2a36;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== IMPACT SECTION ========== */
.impact-section {
  background: #070b10;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.impact-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 2rem;
  text-align: center;
  border: 1px solid var(--border-dim);
  transition: 0.3s;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.7s ease forwards;
}

.impact-card:nth-child(1) {
  animation-delay: 0.1s;
}

.impact-card:nth-child(2) {
  animation-delay: 0.2s;
}

.impact-card:nth-child(3) {
  animation-delay: 0.3s;
}

.impact-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px -10px var(--primary-glow);
}

.impact-card i {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.impact-card h4 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.impact-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
  background: linear-gradient(135deg, #070a0f 0%, #0c1018 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid var(--border-dim);
  transition: 0.3s;
  position: relative;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.7s ease forwards;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 15px 30px -10px var(--primary-glow);
}

.testimonial-card i {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== STATS SECTION ========== */
.stats-section {
  background: var(--bg-dark);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid var(--border-dim);
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.7s ease forwards;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff8c42);
  transition: 0.5s;
}

.stat-card:hover::before {
  left: 0;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stat-card i {
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
}

/* ========== BLOG SECTION ========== */
.blog-section {
  background: #070a0f;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 2rem;
  border: 1px solid var(--border-dim);
  transition: 0.3s;
  text-align: center;
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation: cardReveal 0.7s ease forwards;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
}

.blog-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}

.read-more:hover {
  letter-spacing: 1px;
}

/* ========== SKILLS SECTION ========== */
.skills-section {
  background: var(--bg-dark);
}

.skills-container {
  max-width: 700px;
  margin: 0 auto;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.progress-bar {
  background: #1e2a32;
  height: 8px;
  border-radius: 10px;
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, var(--primary), #ff8c42);
  height: 100%;
  border-radius: 10px;
  width: 0%;
  animation: progressAnimation 1.5s ease-out forwards;
}

@keyframes progressAnimation {
  from {
    width: 0;
  }
  to {
    width: var(--target-width);
  }
}

/* ========== NEWSLETTER SECTION ========== */
.newsletter-section {
  background: linear-gradient(135deg, #0f131a 0%, #05070a 100%);
  padding: 4rem 0;
}

.newsletter-wrapper {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--surface);
  border-radius: 2rem;
  border: 1px solid var(--border-dim);
}

.newsletter-wrapper h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-wrapper p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border-radius: 3rem;
  border: 1px solid var(--border-dim);
  background: #0b0f16;
  color: white;
}

.newsletter-form button {
  padding: 1rem 2rem;
  border-radius: 3rem;
  background: var(--primary);
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.modal-content {
  background: var(--surface);
  margin: 10% auto;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 2rem;
  border: 1px solid var(--primary);
  position: relative;
  animation: modalSlide 0.4s ease;
}

@keyframes modalSlide {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary);
}

.modal-tech {
  margin: 1rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  background: #05080e;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--border-dim);
  transition: 0.3s;
}

.contact-form:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.input-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.input-row input,
textarea {
  width: 100%;
  background: #0b0f16;
  border: 1px solid #29323e;
  padding: 1rem;
  border-radius: 1.5rem;
  color: white;
  font-size: 0.9rem;
  transition: 0.2s;
}

.input-row input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.submit-btn {
  background: var(--primary);
  width: 100%;
  padding: 1rem;
  border-radius: 3rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
  border: none;
  margin-top: 1rem;
  color: #111;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
  background: #ff8c42;
}

/* ========== FOOTER ========== */
.footer {
  background: #030507;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #1b232c;
  margin-top: 1rem;
}

.footer-social {
  justify-content: center;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.credit-line {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* ========== RESPONSIVE DESIGN - FIXED ========== */

/* Large screens (desktop) */
@media (min-width: 1200px) {
  .container {
    max-width: 1300px;
    padding: 0 3rem;
  }
  
  section {
    padding: 5rem 0;
  }
}

/* Tablet and Desktop (default - button visible) */
@media (max-width: 992px) {
  .header {
    padding: 1rem 5%;
  }
  
  .navbar a {
    margin-left: 1rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
  }
  
  .hire-btn {
    display: inline-block; /* Keep button visible */
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .heading {
    font-size: 3rem;
  }
  
  .hero {
    gap: 2rem;
    padding-top: 8rem;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
  
  .hero-img img {
    width: 250px;
    height: 250px;
  }
  
  .carousel-item {
    flex: 0 0 300px;
  }
  
  .projects-grid,
  .services-grid,
  .impact-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  .input-row {
    gap: 0.8rem;
  }
}

/* Mobile Menu - Button moves inside menu */
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .header {
    padding: 1rem 4%;
  }
  
  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 21, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--primary);
    z-index: 999;
  }

  .navbar.active-navbar {
    display: flex;
  }

  .navbar a {
    margin: 0;
    font-size: 1rem;
    padding: 0.8rem;
    text-align: center;
    width: 100%;
  }

  #menu-icon {
    display: block;
  }

  /* Hide Hire Me button in header on mobile, show it in mobile menu instead */
  .header .hire-btn {
    display: none;
  }
  
  /* Add Hire Me button to mobile menu */
  .navbar .mobile-hire-btn {
    display: block;
    background: linear-gradient(95deg, #f97316, #ff5722);
    color: #111;
    text-align: center;
    padding: 0.8rem;
    border-radius: 3rem;
    margin-top: 0.5rem;
    font-weight: 600;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 6rem;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h3 {
    font-size: 1.4rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
  }

  .heading {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
  }
  
  .about-img img {
    width: 220px;
    border-radius: 1.5rem;
  }

  .skill-badge {
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  
  .skill-badge span {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  .social-icons {
    justify-content: center;
    gap: 1rem;
  }

  .btn-group {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .btn-outline {
    width: 100%;
  }
  
  .services-grid,
  .projects-grid,
  .impact-grid,
  .blog-grid,
  .testimonials-grid,
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .carousel-item {
    flex: 0 0 90vw;
    min-width: 280px;
  }
  
  .carousel-controls {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .carousel-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .contact-form {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  
  .input-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .input-row input,
  textarea {
    padding: 0.8rem;
    font-size: 1rem;
  }
  
  .submit-btn {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  
  .newsletter-wrapper {
    padding: 1.5rem;
    border-radius: 1.5rem;
  }
  
  .newsletter-wrapper h3 {
    font-size: 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
    padding: 0.8rem;
  }
  
  .skills-container {
    max-width: 100%;
    padding: 0;
  }
  
  .skill-item {
    margin-bottom: 1.2rem;
  }
  
  .modal-content {
    width: 95%;
    max-width: 100%;
    padding: 1.5rem;
    margin: 20% auto;
  }
  
  .modal-tech {
    margin: 1rem 0;
    gap: 0.3rem;
  }
  
  .footer {
    padding: 1.5rem;
  }
  
  .footer p {
    font-size: 0.8rem;
  }
  
  .credit-line {
    font-size: 0.7rem;
  }
}

/* Medium tablets */
@media (max-width: 768px) and (min-width: 600px) {
  .projects-grid,
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-item {
    flex: 0 0 300px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .header {
    padding: 0.8rem 3%;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  #menu-icon {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-content h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 1rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .container {
    padding: 0 1rem;
    max-width: 100%;
  }

  section {
    padding: 2.5rem 0;
  }
  
  .heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .carousel-item {
    flex: 0 0 calc(100vw - 2rem);
  }
  
  .carousel-controls {
    flex-direction: column;
  }
  
  .carousel-btn {
    width: 100%;
    padding: 0.6rem 1rem;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    width: 100%;
  }
  
  .btn-group {
    gap: 0.5rem;
  }

  .hero-img img {
    width: 180px;
    height: 180px;
  }
  
  .about-img img {
    width: 180px;
  }
  
  .service-card,
  .project-card,
  .blog-card,
  .impact-card,
  .testimonial-card,
  .stat-card {
    padding: 1.5rem 1rem;
    border-radius: 1.2rem;
  }
  
  .service-card i,
  .impact-card i {
    font-size: 2.5rem;
  }
  
  .carousel-img {
    height: 150px;
    font-size: 3rem;
  }
  
  .card-img {
    height: 140px;
    font-size: 2.5rem;
  }
  
  .contact-form {
    padding: 1.2rem;
  }
  
  .input-row input,
  textarea {
    padding: 0.7rem;
    font-size: 0.95rem;
    border-radius: 1rem;
  }
  
  textarea {
    min-height: 100px;
  }
  
  .newsletter-wrapper {
    padding: 1.2rem;
    margin: 0 1rem;
  }
  
  .modal-content {
    margin: 30% auto;
    padding: 1.2rem;
  }
  
  .close-modal {
    font-size: 1.5rem;
    top: 10px;
    right: 15px;
  }
}

/* Extra small phones (under 360px) */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .heading {
    font-size: 1.5rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 0 0.8rem;
  }
  
  .btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.8rem;
  }
}

/* ========== WHATSAPP FLOATING BUTTON ========== */
.whatsapp-btn {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 998;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1eda57;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
  .whatsapp-btn {
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

/* ========== ANIMATIONS & TRANSITIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--primary-glow); }
  50% { box-shadow: 0 0 20px var(--primary); }
}

/* ========== PRELOADER STYLES ========== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.preloader::after {
  content: '';
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-dim);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

.slide-left {
  animation: slideInLeft 0.6s ease forwards;
}

.slide-right {
  animation: slideInRight 0.6s ease forwards;
}

/* ========== FOCUS & ACCESSIBILITY ========== */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== FORM VALIDATION STYLES ========== */
.input-row input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
  border-color: #ff6b6b;
}

.input-row input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: #51cf66;
}

/* ========== SCROLL SMOOTH BEHAVIOR ========== */
html {
  scroll-behavior: smooth;
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }

/* ========== PRINT STYLES ========== */
@media print {
  .header,
  .footer,
  .navbar,
  #menu-icon,
  .hire-btn,
  .btn,
  .carousel-controls,
  .newsletter-section,
  .contact-section {
    display: none !important;
  }

  body {
    background: white;
    color: #000;
  }

  section {
    page-break-inside: avoid;
    padding: 2rem 0;
  }
}