@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --primary: #06b6d4;
  --primary-dark: #0891b2;
  --primary-light: #67e8f9;
  --secondary: #8b5cf6;
  --secondary-dark: #7c3aed;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --dark-lighter: #334155;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --white: #ffffff;
  --bg: #f8fafc;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 28px;
  height: 2.5px;
  background: var(--dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
  animation: pulseGlow 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.02) 2px,
      rgba(255, 255, 255, 0.02) 4px
    );
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.hero-content {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -3px;
  text-shadow: 0 0 80px rgba(6, 182, 212, 0.5);
}

.highlight {
  position: relative;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

.hero-subtitle {
  font-size: 1.75rem;
  margin-bottom: 3rem;
  min-height: 3rem;
  color: var(--gray-light);
  font-weight: 400;
}

.hero-subtitle::after {
  content: '|';
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1.125rem 2.75rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px -5px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
}

.scroll-indicator span {
  display: block;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 25px;
  position: relative;
}

.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

.section {
  padding: 7rem 3rem;
  position: relative;
}

.section-dark {
  background: var(--white);
}

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

.section-title {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  position: relative;
  color: var(--dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.about-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text {
  font-size: 1.25rem;
  line-height: 2;
  color: var(--gray);
  font-weight: 400;
}

.about-text p {
  margin-bottom: 1.75rem;
  animation: fadeIn 1s ease;
}

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

.about-stats {
  display: grid;
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.stat-item:hover::before {
  transform: scaleX(1);
}

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

.stat-number {
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -3px;
}

.stat-label {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.skill-category {
  background: var(--white);
  padding: 3rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.skill-category-title {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-category-title::before {
  content: '';
  width: 6px;
  height: 30px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.skill-item {
  padding: 0.75rem 1.5rem;
  background: var(--bg);
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  cursor: default;
}

.skill-item:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
  border-color: var(--primary-light);
}

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

.project-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.project-image {
  height: 260px;
  background: var(--gradient-1);
  position: relative;
  overflow: hidden;
}

.project-card:nth-child(2) .project-image {
  background: var(--gradient-2);
}

.project-card:nth-child(3) .project-image {
  background: var(--gradient-3);
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.project-link {
  padding: 1rem 2.5rem;
  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.project-link:hover {
  transform: scale(1.1);
  background: var(--gradient-primary);
  color: var(--white);
}

.project-info {
  padding: 2.5rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

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

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

.tag {
  padding: 0.5rem 1.25rem;
  background: var(--bg);
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  border: 2px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

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

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}

.contact-info h3 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 3rem;
  font-size: 1.15rem;
  line-height: 1.9;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 16px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(0, 0, 0, 0.05);
  font-weight: 500;
}

.contact-item:hover {
  transform: translateX(12px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, transparent 100%);
}

.contact-icon {
  font-size: 2rem;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.contact-item:hover .contact-icon {
  filter: grayscale(0%);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.social-link {
  padding: 1rem 2rem;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 14px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  border: 2px solid var(--dark);
}

.social-link:hover {
  background: var(--gradient-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.4);
  border-color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.5rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

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

.contact-form .btn {
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
}

.footer {
  background: var(--dark);
  color: var(--gray-light);
  padding: 3.5rem 3rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

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

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

@media (max-width: 1024px) {
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero-title {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-menu li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: -1.5px;
  }

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

  .section {
    padding: 5rem 2rem;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .btn {
    width: 100%;
  }
}
