/* ============================================
   Personal Portfolio - Stylesheet
   Modern • Responsive • Dark/Light Mode
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  /* Colors - Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #555;
  --text-muted: #888;
  --border-color: #e5e7eb;
  --accent: #6c5ce7;
  --accent-2: #00cec9;
  --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --accent-glow: rgba(108, 92, 231, 0.3);
  --card-bg: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 10px 30px rgba(108, 92, 231, 0.25);

  /* Typography */
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Layout */
  --container-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0f0f1e;
  --bg-secondary: #16162a;
  --bg-tertiary: #1d1d35;
  --text-primary: #f1f1f5;
  --text-secondary: #b8b8c8;
  --text-muted: #6c6c80;
  --border-color: #2a2a40;
  --accent: #8b7bff;
  --accent-2: #2ee5e0;
  --accent-gradient: linear-gradient(135deg, #8b7bff 0%, #2ee5e0 100%);
  --accent-glow: rgba(139, 123, 255, 0.4);
  --card-bg: #1d1d35;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 10px 30px rgba(139, 123, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
  width: 100%;
}

/* ===== Layout Helpers ===== */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section:nth-of-type(even) {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--accent-glow);
}

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

.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  gap: 10px;
}

.loader span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-gradient);
  animation: bounce 0.6s infinite alternate;
}

.loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-20px);
    opacity: 0.5;
  }
}

/* ===== Scroll Progress ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  width: 0;
  z-index: 9998;
  transition: width 0.1s;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition);
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
  transform: rotate(20deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  padding: 5px 0;
}

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

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 350px;
  height: 350px;
  background: var(--accent-2);
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  top: 50%;
  left: 40%;
  animation-delay: 4s;
  opacity: 0.3;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(40px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.95);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-greeting {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 16px;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 2.5rem;
}

.typed-text {
  color: var(--accent);
  font-weight: 700;
}

.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
  font-weight: 300;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-socials {
  display: flex;
  gap: 14px;
}

.hero-socials a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.hero-socials a:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.image-bg {
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  animation: morph 8s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes morph {
  0%,
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  50% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.avatar {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.95);
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.floating-badge {
  position: absolute;
  background: var(--card-bg);
  padding: 10px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge i {
  color: var(--accent);
  font-size: 16px;
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 15%;
  right: -10%;
  animation-delay: 1.5s;
}

.badge-3 {
  bottom: -5%;
  left: 30%;
  animation-delay: 2.5s;
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 20px;
  position: relative;
}

.wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: wheel 1.5s infinite;
}

@keyframes wheel {
  to {
    transform: translate(-50%, 12px);
    opacity: 0;
  }
}

/* ===== Stats Section ===== */
.stats {
  padding: 50px 0;
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.stat-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  padding: 30px;
}

.about-img-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: 0;
}

.about-avatar {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--card-bg);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.exp-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.exp-text {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.3;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.info-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.info-value.available {
  color: #22c55e;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-value.available::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

.about-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== Skills Section ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.skills-left h3,
.skills-right h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 28px;
  font-weight: 600;
}

.skill-bar {
  margin-bottom: 22px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.progress {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 50px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.circular-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.circular-skill {
  text-align: center;
}

.circle {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 12px;
}

.circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: var(--bg-secondary);
  stroke-width: 8;
}

.circle-fill {
  fill: none;
  stroke: url(#gradient);
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.circular-skill p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.tech-stack {
  text-align: center;
  padding: 40px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stack-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 24px;
  font-weight: 600;
}

.stack-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.stack-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
}

.stack-icon:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-6px) scale(1.05);
  box-shadow: var(--shadow-accent);
}

/* ===== Services Section ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 22px;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: #fff;
  transform: rotate(8deg) scale(1.05);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.service-link:hover {
  gap: 14px;
}

/* ===== Projects Section ===== */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.project-card.hide {
  display: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  position: relative;
  height: 220px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
  transition: transform var(--transition);
}

.project-card:hover .project-icon {
  transform: scale(1.1) rotate(5deg);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 30, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.project-links {
  display: flex;
  gap: 14px;
}

.project-links a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  transform: translateY(20px);
  opacity: 0;
}

.project-card:hover .project-links a {
  transform: translateY(0);
  opacity: 1;
}

.project-card:hover .project-links a:nth-child(2) {
  transition-delay: 0.1s;
}

.project-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.project-info {
  padding: 22px 24px;
}

.project-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ===== Testimonials Section ===== */
.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 50px 40px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
}

.quote-icon {
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 26px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.testimonial-author h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.stars {
  color: #fbbf24;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--accent);
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item a,
.contact-item span:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 12px;
}

.contact-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.contact-socials a:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-4px);
}

.contact-form-wrap {
  background: var(--card-bg);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 28px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 2px solid var(--border-color);
  resize: none;
  transition: border-color var(--transition);
}

.form-group label {
  position: absolute;
  top: 10px;
  left: 0;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition);
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -14px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 18px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-secondary);
  padding: 60px 0 20px;
}

.footer-top {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.footer-top .logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-top p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 22px;
  font-size: 15px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-bottom .fa-heart {
  color: #ef4444;
  animation: heartBeat 1.2s infinite;
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-4px);
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .hero-socials {
    justify-content: center;
  }

  .about-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-img-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    z-index: 999;
  }

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

  .nav-link {
    display: block;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .image-wrapper {
    width: 280px;
    height: 280px;
  }

  .avatar {
    font-size: 6rem;
  }

  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form-wrap {
    padding: 24px;
  }

  .testimonial-card {
    padding: 30px 24px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .circular-skills {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .about-info {
    grid-template-columns: 1fr;
  }

  .floating-badge {
    font-size: 11px;
    padding: 8px 12px;
  }
}
