/* Base Styles & Variables */
:root {
  --bg-color: #050508;
  --bg-surface: #101018;
  --bg-surface-hover: #181824;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;

  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #0ea5e9;

  --gradient-bg: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0) 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-text: linear-gradient(to right, #818cf8, #c084fc, #38bdf8);

  --font-main: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

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

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



h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.gradient-text {
  background: linear-gradient(to right, #818cf8, #c084fc, #38bdf8, #818cf8);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: shineText 4s linear infinite;
}

@keyframes shineText {
  to { background-position: 300% center; }
}

/* Utilities */
.card-style {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-bg);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.card-style:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.card-style:hover::before {
  opacity: 1;
}

.card-style>* {
  position: relative;
  z-index: 1;
}

/* Card Shine Hover Animation */
.card-style::after,
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-25deg);
  z-index: 2;
  pointer-events: none;
}

.card-style:hover::after,
.project-card:hover::after {
  animation: cardShine 1.5s ease-in-out infinite;
}

@keyframes cardShine {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.btn-light {
  background: white;
  color: var(--bg-color);
}

.btn-outline-light {
  border-color: white;
  color: white;
}

/* Section Shared */
section {
  padding: 80px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-description {
  color: var(--text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.125rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 5%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo-icon {
  background: var(--gradient-primary);
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 120px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-avatar {
  margin-bottom: 24px;
}

.avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  animation: floatAvatar 6s ease-in-out infinite;
}

@keyframes floatAvatar {
  0% { transform: translateY(0); box-shadow: 0 0 30px rgba(99, 102, 241, 0.4); }
  50% { transform: translateY(-15px); box-shadow: 0 20px 45px rgba(99, 102, 241, 0.6); }
  100% { transform: translateY(0); box-shadow: 0 0 30px rgba(99, 102, 241, 0.4); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-description {
  color: var(--text-secondary);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  max-width: 700px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
  opacity: 0.5;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.skill-category h4 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  border-color: rgba(99, 102, 241, 0.3);
}

.tag.outline {
  background: transparent;
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--text-secondary);
}

.tag.outline-small {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 15px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.job-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.company {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.job-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

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

.job-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Featured Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.project-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-img-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-surface));
  opacity: 0.5;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.project-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.project-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.project-link:hover {
  color: var(--text-primary);
}

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

.project-link.primary:hover {
  color: var(--primary-hover);
}

/* Metrics Banner */
.metrics {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 60px 5%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  background-image: var(--gradient-bg);
}

.metric-item {
  text-align: center;
}

.metric-number {
  display: block;
  font-size: 3.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.metric-label {
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.quote {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
}

.client-name {
  font-size: 1rem;
}

.client-role {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* CTA Banner */
.cta-banner {
  margin: 60px auto;
}

.cta-content {
  background: var(--gradient-primary);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(-15deg);
  pointer-events: none;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cta-title {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.125rem;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
  }
}

/* Contact Form */
.contact-card {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  text-align: center;
}

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

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.submit-btn {
  width: 100%;
  margin-top: 10px;
}

.form-status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.875rem;
  min-height: 20px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(5, 5, 8, 0.5);
  padding: 40px 5%;
}

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

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

.footer-right {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.social-link:hover {
  color: white;
  border-color: var(--primary-color);
  background: var(--primary-color);
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Particle Background Overlay */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}