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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #0a0f1c 0%, #0b1220 100%);
  color: #e5e7eb;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0f1c;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  z-index: 1000;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.nav.scrolled {
  padding: 0.7rem 5%;
  background: rgba(10, 15, 28, 0.98);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.logo-bracket {
  color: #3b82f6;
}

.menu {
  display: flex;
  gap: 2rem;
}

.menu a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a:hover {
  color: #3b82f6;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 30px;
  height: 2px;
  background: #e5e7eb;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  color: #3b82f6;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #a3b3cc;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.btn {
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: #e5e7eb;
  border: 2px solid #3b82f6;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #3b82f6;
}

.stat-label {
  font-size: 0.875rem;
  color: #a3b3cc;
}

/* SECTIONS */
section {
  padding: 5rem 5%;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0;
}

/* ABOUT SECTION */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
}

.about-details {
  margin-top: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.detail-icon {
  font-size: 1.25rem;
}

.about-skills {
  background: rgba(17, 28, 51, 0.5);
  padding: 1.5rem;
  border-radius: 16px;
}

.skill-category h4 {
  color: #3b82f6;
  margin-bottom: 1rem;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.skill-items span {
  background: #1f2937;
  padding: 0.375rem 0.875rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(17, 28, 51, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-badge {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-stack span {
  background: #1f2937;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.card-links {
  display: flex;
  gap: 1rem;
}

.card-link {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #8b5cf6;
}

/* CAPABILITIES SECTION */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.capability-card {
  text-align: center;
  padding: 2rem;
  background: rgba(17, 28, 51, 0.4);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-5px);
  background: rgba(17, 28, 51, 0.6);
}

.capability-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.capability-card h3 {
  margin-bottom: 0.75rem;
}

.capability-card p {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tags span {
  background: linear-gradient(135deg, #1f2937, #111c33);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tags span:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* CONTACT SECTION */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background: rgba(17, 28, 51, 0.6);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: #3b82f6;
  text-decoration: none;
}

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

.social-link {
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #3b82f6;
  transform: translateY(-2px);
}

.contact-form {
  background: rgba(17, 28, 51, 0.6);
  padding: 2rem;
  border-radius: 16px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #e5e7eb;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* FOOTER */
footer {
  background: #0a0f1c;
  text-align: center;
  padding: 3rem 5%;
  border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.footer-logo {
  margin-bottom: 1rem;
}

footer p {
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.copyright {
  font-size: 0.875rem;
}

/* ANIMATIONS */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 28, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem;
    text-align: center;
    gap: 1rem;
  }

  .menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
  }
  
  .about-content,
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    gap: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 3rem 5%;
  }
}

@media (max-width: 480px) {
  .nav {
    padding: 1rem 5%;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}