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

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #151b2e;
  --bg-tertiary: #1a2332;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --cyan-400: #06b6d4;
  --gray-300: #d1d5db;
  --gray-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1a2332;
  --slate-900: #0a0e1a;
  --emerald: var(--emerald-500);
  --emerald-dark: var(--emerald-600);
  --cyan: var(--cyan-400);
  --bg-card: var(--slate-800);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --heading-white: #fff;
  --border: #2d3748;
}

/* === Home Page (index.html) Specific Styles === */
body.home {
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-50px, 50px) rotate(180deg);
  }
}

.hero-content {
  max-width: 1100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  color: var(--emerald);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: slideDown 0.8s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -2px;
  animation: slideUp 0.8s ease 0.2s both;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--emerald), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: slideUp 0.8s ease 0.4s both;
}

.cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease 0.6s both;
}

.btn {
  padding: 1rem 2.2rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 5rem;
  animation: slideUp 0.8s ease 0.8s both;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--emerald);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

body.home .footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  margin-top: 5rem;
}

body.home .footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

body.home .footer-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

body.home .footer-social {
  display: flex;
  gap: 1.5rem;
}

body.home .footer-social a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

body.home .footer-social a:hover {
  color: var(--emerald);
  transform: translateY(-3px);
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  text-transform: capitalize;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--emerald-400);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: 1.5rem;
  cursor: pointer;
}

/* === ABOUT PAGE STYLES === */

/* Full Width Container for Experience/Education */
.experience-education-wrapper {
  width: 100%;
  padding: 6rem 2rem 2rem;
  /* background: var(--bg-secondary); */
}

.dual-section-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Experience & Education Sections */
.experience-section {
  background: transparent;
  padding: 0;
  margin: 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--heading-white);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  /* color: var(--emerald-400); */
  color: white;
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.experience-card {
  /* background: var(--slate-800); */
  border: 1px solid var(--slate-700);
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.experience-card:hover {
  border-color: var(--emerald-400);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.card-icon {
  background: var(--emerald-400);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(52, 211, 153, 0.10);
  flex-shrink: 0;
}

.card-title-section {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-badge {
  background: rgba(52, 211, 153, 0.10);
  color: var(--emerald-400);
  font-size: 0.85rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.25rem;
  display: inline-block;
  width: fit-content;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-white);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.card-date {
  color: var(--gray-400);
  font-size: 0.95rem;
}

.card-description ul {
  margin-left: 1.25rem;
  color: var(--gray-300);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.card-description li {
  margin-bottom: 0.5rem;
}

/* Tech Stack Section */
.tech-section {
  /* background: var(--bg-secondary); */
  padding: 1rem 2rem;
  width: 100%;
}

.tech-section .section-title {
  text-align: center;
  justify-content: center;
}

.tech-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
  max-width: 1400px;
}

.tech-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate-800);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(15, 23, 42, 0.05);
  min-width: 90px;
  transition: all 0.3s ease;
}

.tech-icon-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px 0 rgba(52, 211, 153, 0.15);
}

.tech-icon-item i {
  font-size: 2.25rem;
}

.tech-icon-item span {
  color: var(--gray-300);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Tech stack icons: use brand colors */
.tech-icon-item i.devicon-html5-plain {
  color: #e34c26;
}

.tech-icon-item i.devicon-css3-plain {
  color: #1572b6;
}

.tech-icon-item i.devicon-javascript-plain {
  color: #f7df1e;
}

.tech-icon-item i.devicon-react-original {
  color: #61dafb;
}

.tech-icon-item i.devicon-nextjs-original {
  color: #fff;
}

.tech-icon-item i.devicon-android-plain {
  color: #3ddc84;
}

.tech-icon-item i.devicon-php-plain {
  color: #777bb4;
}

.tech-icon-item i.devicon-laravel-plain {
  color: #ff2d20;
}

.tech-icon-item i.devicon-java-plain {
  color: #007396;
}

.tech-icon-item i.devicon-django-plain {
  color: #092e20;
}

.tech-icon-item i.devicon-mysql-plain {
  color: #4479a1;
}

.tech-icon-item i.devicon-firebase-plain {
  color: #ffca28;
}

.tech-icon-item i.devicon-bootstrap-plain {
  color: #7952b3;
}

.tech-icon-item i.devicon-tailwindcss-plain {
  color: #38bdf8;
}

.tech-icon-item i.devicon-git-plain {
  color: #f34f29;
}

/* === PORTFOLIO PAGE STYLES === */
.category-header {
  margin-bottom: 12px;
}

.category-section {
  margin-top: 12px;
  padding-left: 20px;
  padding-right: 20px;
}

.content-section {
  min-height: 100vh;
  padding: 8rem 1.5rem 4rem;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.container-large {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  /* margin-bottom: 3rem; */
}

.section-header svg {
  color: var(--emerald-400);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--slate-700);
  background: var(--slate-800);
  color: var(--gray-300);
  cursor: pointer;
  font-size: 0.875rem;
}

.filter-btn:hover {
  background: var(--slate-700);
}

.filter-btn.active {
  background: var(--emerald-500);
  color: white;
  border-color: var(--emerald-500);
  box-shadow: 0 10px 15px rgba(16, 185, 129, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  /* background: rgba(30, 41, 59, 0.5); */
  backdrop-filter: blur(10px);
  border: 1px solid var(--slate-700);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.1);
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  color: var(--emerald-400);
}

.project-category {
  padding: 0.25rem 0.75rem;
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald-400);
  font-size: 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.project-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: var(--emerald-400);
}

.project-description {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  padding: 0.25rem 0.625rem;
  background: rgba(51, 65, 85, 0.5);
  color: var(--gray-300);
  font-size: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid var(--slate-600);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  flex: 1;
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.link-demo {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald-400);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.link-demo:hover {
  background: rgba(16, 185, 129, 0.2);
}

.link-code {
  background: rgba(51, 65, 85, 0.5);
  color: var(--gray-300);
  border: 1px solid var(--slate-600);
}

.link-code:hover {
  background: var(--slate-700);
}

/* === CONTACT PAGE STYLES === */

.contact-intro {
  /* background: rgba(30, 41, 59, 0.5); */
  backdrop-filter: blur(10px);
  border: 1px solid var(--slate-700);
  border-radius: 0.75rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-intro p {
  font-size: 1.125rem;
  color: var(--gray-300);
  line-height: 1.8;
  margin-bottom: 2rem;
}

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

.form-group label {
  display: block;
  color: var(--gray-300);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--slate-600);
  border-radius: 0.5rem;
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-400);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.social-link:hover {
  color: var(--emerald-400);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--slate-800);
  padding: 2.5rem 2rem;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--emerald-400);
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dual-section-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background: rgba(10, 14, 26, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    z-index: 1000;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

  .experience-education-wrapper {
    padding: 5rem 1rem 2rem;
  }

  .tech-section {
    padding: 3rem 1rem;
  }

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

  .tech-icon-grid {
    gap: 1rem;
  }

  .tech-icon-item {
    padding: 0.75rem 1rem;
    min-width: 70px;
  }

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

  .filter-buttons {
    justify-content: center;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .card-header {
    flex-direction: column;
    gap: 1rem;
  }

  .experience-card {
    padding: 1.5rem 1rem;
  }

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

/* Utility Classes */
.hidden {
  display: none;
}

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