/* MODERN PORTFOLIO DESIGN - BEAUTIFUL THEMES */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

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

:root {
  /* DEFAULT THEME - Purple & Pink */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #f59e0b;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --border: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --success: #10b981;
  --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-3: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-light: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(236, 72, 153, 0.08) 100%
  );
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* OCEAN THEME */
[data-theme="ocean"]:root,

/* SUNSET THEME */
[data-theme="sunset"]:root,

/* FOREST THEME */
[data-theme="forest"]:root,

/* DARK THEME */
[data-theme="dark"]:root,

html {
  scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--bg-secondary) 50%,
    var(--light) 100%
  );
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-padding-top: 80px;
  transition: var(--transition);
}

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

/* ===== THEME TOGGLE ===== */
/* ===== THEME-SPECIFIC TEXT & COLOR OVERRIDES ===== */

/* DEFAULT THEME - Purple & Pink */
:root {
  --theme-text-color: #1e293b;
  --theme-text-light: #64748b;
  --theme-bg-card: rgba(99, 102, 241, 0.04);
  --theme-border-color: #e2e8f0;
}

/* OCEAN THEME */

/* SUNSET THEME */

/* FOREST THEME */

/* DARK THEME */

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    var(--light) 100%
  );
  transition: var(--transition);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

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

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--gradient-2);
  bottom: 50px;
  left: 50px;
  animation-delay: 2s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  top: 50%;
  left: 30%;
  animation-delay: 4s;
}

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

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 1.8rem;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

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

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

/* ===== HAMBURGER MENU ===== */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 50px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text h1 {
  font-family: "Poppins", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  word-spacing: -0.05em;
}

.text-gradient {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.block {
  display: block;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  animation: floatImage 3s ease-in-out infinite;
}

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

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  animation: bobbing 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bobbing {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

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

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

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

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

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  color: var(--primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: 100px 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

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

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 1.5rem;
  background: var(--gradient-light);
  border-radius: 12px;
  transition: var(--transition);
  text-align: center;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.stat h3 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--gradient-light);
  border-radius: 15px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

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

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(236, 72, 153, 0.08)
  );
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  color: white;
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.resume-section {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: 100px 20px;
  background: var(--gradient-light);
  transition: var(--transition);
}

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

.project-card {
  background: linear-gradient(
    135deg,
    var(--bg-primary),
    rgba(99, 102, 241, 0.05)
  );
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px var(--shadow-xl);
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    var(--bg-primary),
    rgba(99, 102, 241, 0.1)
  );
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 2.5rem;
  animation: bounce 3s ease-in-out infinite;
}

.project-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 1px;
}

.project-card h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.project-card h3:hover {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.projects-footer {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  border: 1px solid var(--border);
}

.projects-footer p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: 100px 20px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.skill-category {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05) 0%,
    rgba(236, 72, 153, 0.05) 100%
  );
  padding: 2.5rem;
  border-radius: 15px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.category-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title i {
  color: var(--primary);
}

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

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--bg-primary),
    rgba(99, 102, 241, 0.03)
  );
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.skill-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
  background: linear-gradient(
    135deg,
    var(--bg-primary),
    rgba(99, 102, 241, 0.08)
  );
}

.skill-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}

.skill-item:hover img {
  animation: rotateScale 0.6s ease-in-out;
  filter: brightness(1.1) drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
}

@keyframes rotateScale {
  0% {
    transform: rotate(0) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.1);
  }
  100% {
    transform: rotate(0) scale(1);
  }
}

.skill-item span {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: 100px 20px;
  background: linear-gradient(135deg, #e6d9f8 0%, #f0e9ff 100%);
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.contact::before {
  display: none;
}

.contact .container {
  position: relative;
  z-index: 1;
}

@keyframes gradientShift {
  0%,
  100% {
    background: radial-gradient(
        circle at 20% 50%,
        rgba(99, 102, 241, 0.2) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 80%,
        rgba(59, 130, 246, 0.15) 0%,
        transparent 50%
      );
  }
  50% {
    background: radial-gradient(
        circle at 30% 40%,
        rgba(99, 102, 241, 0.2) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 70% 90%,
        rgba(59, 130, 246, 0.15) 0%,
        transparent 50%
      );
  }
}

/* Theme-specific contact section backgrounds */
[data-theme="default"] .contact {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

[data-theme="default"] .contact::before {
  display: none;
}

[data-theme="default"] .contact .section-label {
  background: rgba(99, 102, 241, 0.15);
  color: rgba(79, 70, 229, 0.9);
}

[data-theme="default"] .contact .section-title {
  color: #1e1b4b;
}

[data-theme="default"] .contact-subtitle {
  color: #334155;
}

/* Ocean Theme */
[data-theme="ocean"] .contact {
  background: linear-gradient(135deg, #608ad1 0%, #7ba3d9 100%);
}

[data-theme="ocean"] .contact::before {
  display: none;
}

[data-theme="ocean"] .contact .section-label {
  background: rgba(2, 132, 199, 0.15);
  color: rgba(2, 132, 199, 0.9);
}

[data-theme="ocean"] .contact .section-title {
  color: #164e63;
}

[data-theme="ocean"] .contact-subtitle {
  color: #164e63;
}

/* Sunset Theme */
[data-theme="sunset"] .contact {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

[data-theme="sunset"] .contact::before {
  display: none;
}

[data-theme="sunset"] .contact .section-label {
  background: rgba(234, 88, 12, 0.15);
  color: rgba(192, 58, 13, 0.9);
}

[data-theme="sunset"] .contact .section-title {
  color: #7c2d12;
}

[data-theme="sunset"] .contact-subtitle {
  color: #7c2d12;
}

/* Forest Theme */
[data-theme="forest"] .contact {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

[data-theme="forest"] .contact::before {
  display: none;
}

[data-theme="forest"] .contact .section-label {
  background: rgba(5, 150, 105, 0.15);
  color: rgba(4, 120, 87, 0.9);
}

[data-theme="forest"] .contact .section-title {
  color: #065f46;
}

[data-theme="forest"] .contact-subtitle {
  color: #065f46;
}

/* Dark Theme */
[data-theme="dark"] .contact {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

[data-theme="dark"] .contact::before {
  display: none;
}

[data-theme="dark"] .contact .section-label {
  background: rgba(167, 139, 250, 0.15);
  color: rgba(126, 34, 206, 0.9);
}

[data-theme="dark"] .contact .section-title {
  color: #581c87;
}

[data-theme="dark"] .contact-subtitle {
  color: #6b21a8;
}

.contact .section-label {
  background: rgba(99, 102, 241, 0.15);
  color: rgba(79, 70, 229, 0.9);
}

.contact .section-title {
  color: #1e1b4b;
}

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-subtitle {
  font-size: 1.1rem;
  color: #334155;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  color: #1e293b;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.2) 0%,
    rgba(59, 130, 246, 0.2) 100%
  );
  border-radius: 10px;
  font-size: 1.5rem;
  flex-shrink: 0;
  color: #3730a3;
}

.contact-btn h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
}

.contact-btn p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

/* Theme-specific contact button colors */
[data-theme="default"] .contact-btn {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

[data-theme="default"] .contact-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);
}

[data-theme="default"] .contact-icon {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5) 0%,
    rgba(59, 130, 246, 0.5) 100%
  );
  color: #ffffff;
}

[data-theme="ocean"] .contact-btn {
  border-color: rgba(2, 132, 199, 0.25);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.1);
}

[data-theme="ocean"] .contact-btn:hover {
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.2);
}

[data-theme="ocean"] .contact-icon {
  background: linear-gradient(
    135deg,
    rgba(2, 132, 199, 0.5) 0%,
    rgba(6, 182, 212, 0.5) 100%
  );
  color: #ffffff;
}

[data-theme="sunset"] .contact-btn {
  border-color: rgba(234, 88, 12, 0.25);
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.1);
}

[data-theme="sunset"] .contact-btn:hover {
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 8px 30px rgba(234, 88, 12, 0.2);
}

[data-theme="sunset"] .contact-icon {
  background: linear-gradient(
    135deg,
    rgba(234, 88, 12, 0.5) 0%,
    rgba(239, 68, 68, 0.5) 100%
  );
  color: #ffffff;
}

[data-theme="forest"] .contact-btn {
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.1);
}

[data-theme="forest"] .contact-btn:hover {
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.2);
}

[data-theme="forest"] .contact-icon {
  background: linear-gradient(
    135deg,
    rgba(5, 150, 105, 0.5) 0%,
    rgba(16, 185, 129, 0.5) 100%
  );
  color: #ffffff;
}

[data-theme="dark"] .contact-btn {
  border-color: rgba(167, 139, 250, 0.25);
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.1);
}

[data-theme="dark"] .contact-btn:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.2);
}

[data-theme="dark"] .contact-icon {
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.5) 0%,
    rgba(196, 181, 253, 0.5) 100%
  );
  color: #ffffff;
}

.email-box {
  background: rgba(99, 102, 241, 0.15) !important;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-family: "Inter", monospace;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-btn:hover .email-box {
  background: rgba(99, 102, 241, 0.25) !important;
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* Email box theme variations */
[data-theme="ocean"] .email-box {
  background: rgba(2, 132, 199, 0.15) !important;
  border-color: rgba(2, 132, 199, 0.3);
}

[data-theme="ocean"] .contact-btn:hover .email-box {
  background: rgba(2, 132, 199, 0.25) !important;
  border-color: rgba(2, 132, 199, 0.5);
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.2);
}

[data-theme="sunset"] .email-box {
  background: rgba(234, 88, 12, 0.15) !important;
  border-color: rgba(234, 88, 12, 0.3);
}

[data-theme="sunset"] .contact-btn:hover .email-box {
  background: rgba(234, 88, 12, 0.25) !important;
  border-color: rgba(234, 88, 12, 0.5);
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.2);
}

[data-theme="forest"] .email-box {
  background: rgba(5, 150, 105, 0.15) !important;
  border-color: rgba(5, 150, 105, 0.3);
}

[data-theme="forest"] .contact-btn:hover .email-box {
  background: rgba(5, 150, 105, 0.25) !important;
  border-color: rgba(5, 150, 105, 0.5);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.2);
}

[data-theme="dark"] .email-box {
  background: rgba(167, 139, 250, 0.15) !important;
  border-color: rgba(167, 139, 250, 0.3);
}

[data-theme="dark"] .contact-btn:hover .email-box {
  background: rgba(167, 139, 250, 0.25) !important;
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4c1d95;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  border: 2px solid #6d28d9;
}

.social-link:hover {
  background: #6d28d9;
  transform: translateY(-5px) scale(1.1);
  border-color: #7c3aed;
  box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

/* ===== FOOTER ===== */
.footer {
  background: #e6d9f8;
  color: #475569;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(167, 139, 250, 0.3);
}

.heart {
  color: var(--secondary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* ===== THEME-SPECIFIC CONTACT SECTION COLORS ===== */

/* ===== THEME-SPECIFIC FOOTER ===== */

/* ===== THEME-SPECIFIC PROJECT CARDS ===== */

/* ===== THEME-SPECIFIC FEATURE CARDS ===== */

/* ===== THEME-SPECIFIC SKILL ITEMS ===== */

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-text {
  animation: slideInLeft 0.8s ease-out;
}

.hero {
  animation: fadeIn 0.6s ease-out;
}

.image-frame {
  animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.about-content > div:first-child {
  animation: slideInLeft 0.8s ease-out;
}

.about-content > div:last-child {
  animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.project-card:nth-child(1) {
  animation: slideInUp 0.6s ease-out 0s backwards;
}
.project-card:nth-child(2) {
  animation: slideInUp 0.6s ease-out 0.1s backwards;
}
.project-card:nth-child(3) {
  animation: slideInUp 0.6s ease-out 0.2s backwards;
}
.project-card:nth-child(4) {
  animation: slideInUp 0.6s ease-out 0.3s backwards;
}

.skill-item:nth-child(1) {
  animation: slideInUp 0.6s ease-out 0s backwards;
}
.skill-item:nth-child(2) {
  animation: slideInUp 0.6s ease-out 0.05s backwards;
}
.skill-item:nth-child(3) {
  animation: slideInUp 0.6s ease-out 0.1s backwards;
}
.skill-item:nth-child(4) {
  animation: slideInUp 0.6s ease-out 0.15s backwards;
}
.skill-item:nth-child(5) {
  animation: slideInUp 0.6s ease-out 0.2s backwards;
}
.skill-item:nth-child(6) {
  animation: slideInUp 0.6s ease-out 0.25s backwards;
}

/* ===== FOCUS STATES (ACCESSIBILITY) ===== */
.nav-link:focus,
.btn:focus,
.contact-btn:focus,
.social-link:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ===== ADVANCED CARD HOVER EFFECTS ===== */
.project-card {
  background: linear-gradient(135deg, white, rgba(248, 250, 252, 0.5));
  backdrop-filter: blur(10px);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(99, 102, 241, 0.15),
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

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

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

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

/* ===== ENHANCED SKILL EFFECTS ===== */
.skill-item {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.skill-item::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.skill-item:hover::after {
  transform: scaleX(1);
}

/* ===== BUTTON ENHANCEMENTS ===== */
.btn {
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ===== GRADIENT TEXT ANIMATION ===== */
.text-gradient {
  background: linear-gradient(90deg, #6366f1 0%, #ec4899 50%, #6366f1 100%);
  background-size: 200% auto;
  animation: gradientShift 3s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ===== ENHANCED SECTION TRANSITIONS ===== */
section {
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  animation: sectionDivider 0.8s ease-out forwards;
}

@keyframes sectionDivider {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.3;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
/* Tablets (768px and down) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 20px 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

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

  .btn {
    padding: 0.9rem 1.8rem;
    font-size: 0.95rem;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
  }

  .nav-link:hover {
    background: var(--bg-secondary);
  }

  .menu-toggle:checked ~ .nav-links {
    max-height: 320px;
  }

  .hamburger {
    display: flex;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat {
    padding: 1.2rem;
  }

  .stat h3 {
    font-size: 1.8rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1.2rem;
  }

  .skill-item {
    padding: 1.2rem 0.8rem;
  }

  .skill-item img {
    width: 50px;
    height: 50px;
  }

  .skill-item span {
    font-size: 0.85rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-btn {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .contact-btn h3 {
    font-size: 1rem;
  }

  .contact-btn p {
    font-size: 0.85rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-label {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .hero {
    padding: 80px 20px 40px;
    min-height: auto;
  }

  .about,
  .projects,
  .skills,
  .contact {
    padding: 60px 20px;
  }

  .social-links {
    gap: 1.5rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .image-frame {
    aspect-ratio: 1;
    border-radius: 16px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-indicator span {
    font-size: 0.85rem;
  }

  .scroll-arrow {
    font-size: 1.2rem;
  }
}

/* Small tablets and large phones (480px to 768px) */
@media (max-width: 600px) {
  .container {
    padding: 0 15px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 70px 16px 30px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about,
  .projects,
  .skills,
  .contact {
    padding: 50px 16px;
  }

  .about-stats {
    gap: 1rem;
  }

  .stat {
    padding: 1rem;
  }

  .stat h3 {
    font-size: 1.5rem;
  }

  .stat p {
    font-size: 0.85rem;
  }

  .project-card {
    padding: 1.2rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }

  .skill-item {
    padding: 1rem 0.5rem;
  }

  .skill-item img {
    width: 45px;
    height: 45px;
  }

  .contact-btn {
    padding: 1.2rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .email-box {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .nav-container {
    padding: 0 12px;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hamburger span {
    width: 22px;
    height: 2.5px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    gap: 0.8rem;
  }

  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    gap: 0.3rem;
  }

  .btn i {
    font-size: 0.8rem;
  }

  .hero {
    padding: 60px 12px 25px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-label {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

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

  .about,
  .projects,
  .skills,
  .contact {
    padding: 40px 12px;
  }

  .about-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .about-stats {
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 1.5rem 0;
  }

  .stat {
    padding: 0.9rem 0.8rem;
  }

  .stat h3 {
    font-size: 1.3rem;
  }

  .stat p {
    font-size: 0.8rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-header {
    gap: 0.5rem;
  }

  .project-icon {
    font-size: 2rem;
  }

  .project-label {
    font-size: 0.7rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
  }

  .project-card p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 1rem;
  }

  .skill-item {
    padding: 0.8rem 0.4rem;
  }

  .skill-item img {
    width: 40px;
    height: 40px;
  }

  .skill-item span {
    font-size: 0.8rem;
  }

  .category-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .contact-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .contact-methods {
    gap: 1.2rem;
  }

  .contact-btn {
    padding: 1rem;
    gap: 0.8rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .contact-btn h3 {
    font-size: 0.95rem;
  }

  .contact-btn p {
    font-size: 0.8rem;
  }

  .email-box {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
  }

  .social-links {
    gap: 1.2rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .footer {
    padding: 1.5rem 12px;
  }

  .scroll-indicator {
    bottom: 15px;
    gap: 8px;
  }

  .scroll-indicator span {
    font-size: 0.8rem;
  }

  .scroll-arrow {
    font-size: 1rem;
  }

  .image-frame {
    border-radius: 12px;
  }

  .nav-links {
    padding: 0.8rem;
  }

  .nav-link {
    padding: 0.6rem;
    font-size: 0.95rem;
  }
}

/* Extra small devices (320px and below) */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .about,
  .projects,
  .skills,
  .contact {
    padding: 30px 10px;
  }

  .stat h3 {
    font-size: 1.2rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .category-title {
    font-size: 1.1rem;
  }

  .contact-btn {
    padding: 0.8rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== TOUCH-FRIENDLY INTERACTIONS ===== */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
  }

  .project-card:hover {
    transform: none;
  }

  .contact-btn:hover {
    transform: translateY(-3px);
  }

  .skill-item:hover {
    transform: none;
  }

  .social-link:hover {
    transform: scale(1.05);
  }

  /* Increase touch targets for mobile */
  .btn {
    min-height: 48px;
    padding: 0.9rem 1.5rem;
  }

  .nav-link {
    padding: 0.8rem 0.5rem;
  }

  .contact-btn {
    min-height: 48px;
  }

  .social-link {
    min-height: 48px;
    min-width: 48px;
  }

  .skill-item {
    padding: 1.2rem 0.8rem;
  }
}

/* ===== LANDSCAPE ORIENTATION (Mobile) ===== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 60px 20px 20px;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .hero-buttons {
    gap: 0.8rem;
  }

  .section-header {
    margin-bottom: 1.5rem;
  }

  .about,
  .projects,
  .skills,
  .contact {
    padding: 40px 20px;
  }

  .scroll-indicator {
    display: none;
  }

  .image-frame {
    max-height: 400px;
  }
}

/* ===== HIGH DPI SCREENS ===== */
@media (min-device-pixel-ratio: 2) {
  .btn,
  .nav-link,
  .contact-btn {
    border: 1px solid transparent;
  }
}
