:root {
  /* Color Palette */
  --color-bg: hsl(224, 71%, 4%);
  --color-foreground: hsl(213, 31%, 91%);
  --color-card: hsl(224, 71%, 6%);
  --color-primary: hsl(263, 70%, 50%);
  --color-secondary: hsl(216, 34%, 17%);
  --color-muted: hsl(217, 10%, 64%);
  --color-border: hsl(216, 34%, 17%);
  
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(224, 71%, 4%) 0%, hsl(263, 70%, 15%) 50%, hsl(224, 71%, 4%) 100%);
  --gradient-card: linear-gradient(145deg, hsla(224, 71%, 6%, 0.8) 0%, hsla(216, 34%, 17%, 0.4) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(263, 70%, 50%) 0%, hsl(263, 70%, 60%) 100%);
  --gradient-text: linear-gradient(135deg, hsl(263, 70%, 60%) 0%, hsl(213, 31%, 91%) 100%);
  
  /* Shadows */
  --shadow-glow: 0 0 40px hsla(263, 70%, 50%, 0.3);
  --shadow-card: 0 10px 30px -10px hsla(224, 71%, 4%, 0.5);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --section-padding: 5rem 0;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-foreground);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-gradient {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  border: 1px solid hsla(216, 34%, 17%, 0.1);
}

.smooth-transition {
  transition: var(--transition-smooth);
}

.spring-transition {
  transition: var(--transition-spring);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--gradient-card);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--color-foreground);
  transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.floating-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

.floating-1 {
  top: 5rem;
  left: 2.5rem;
  width: 18rem;
  height: 18rem;
  background: hsla(263, 70%, 50%, 0.2);
}

.floating-2 {
  bottom: 5rem;
  right: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: hsla(263, 70%, 50%, 0.2);
  animation-delay: 2s;
}

.floating-3 {
  top: 50%;
  left: 33%;
  width: 16rem;
  height: 16rem;
  background: hsla(263, 70%, 50%, 0.1);
  animation-delay: 4s;
}

.hero-container {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}

.hero-content {
  animation: slideUp 0.8s ease-out;
}

.profile-image {
  position: relative;
  width: 12rem;
  height: 12rem;
  margin: 0 auto 2rem;
}

.profile-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.6;
  animation: glow 3s ease-in-out infinite;
}

.profile-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid hsla(263, 70%, 50%, 0.3);
  transition: var(--transition-smooth);
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.hero-text {
  margin-bottom: 2rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1;
}

.hero-role {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsla(213, 31%, 91%, 0.9);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: hsla(213, 31%, 91%, 0.7);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-card);
  border-radius: 50%;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.social-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.social-link i {
  font-size: 1.25rem;
}

/* Buttons */
.btn-primary {
  background: var(--gradient-accent);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid hsla(263, 70%, 50%, 0.3);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background: hsla(263, 70%, 50%, 0.1);
  border-color: var(--color-primary);
}

.btn-outline-large {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid hsla(263, 70%, 50%, 0.3);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline-large:hover {
  background: hsla(263, 70%, 50%, 0.1);
  transform: scale(1.05);
}

.btn-full {
  width: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid hsla(263, 70%, 50%, 0.5);
  border-radius: 15px;
  display: flex;
  justify-content: center;
}

.scroll-wheel {
  width: 4px;
  height: 12px;
  background: hsla(263, 70%, 50%, 0.5);
  border-radius: 2px;
  margin-top: 8px;
  animation: pulse 2s infinite;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-line {
  width: 6rem;
  height: 4px;
  background: var(--color-primary);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 32rem;
  margin: 0 auto;
}

/* About Section */
.about {
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text {
  font-size: 1.125rem;
  color: hsla(213, 31%, 91%, 0.8);
  line-height: 1.7;
}

.highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.highlight-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.highlight-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-accent);
  border-radius: 8px;
  flex-shrink: 0;
}

.highlight-icon i {
  color: white;
  font-size: 1.25rem;
}

.highlight-content h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.highlight-content p {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.about-skills {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-item {
  padding: 1rem;
  background: var(--gradient-card);
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.skill-item:hover {
  transform: scale(1.05);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 12px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Services Section */
.services {
  background: hsla(224, 71%, 6%, 0.5);
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background: var(--gradient-card);
  padding: 2rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px hsla(263, 70%, 50%, 0.4);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: var(--gradient-accent);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  width: 4rem;
  height: 4rem;
  background: hsla(263, 70%, 50%, 0.2);
  border-radius: 16px;
  filter: blur(20px);
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon::before {
  filter: blur(30px);
}

.service-icon i {
  color: white;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  color: hsla(213, 31%, 91%, 0.8);
  margin-bottom: 0.75rem;
}

.service-features li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  margin-right: 0.75rem;
}

.service-link {
  padding-top: 1.5rem;
  border-top: 1px solid hsla(263, 70%, 50%, 0.2);
}

.service-link span {
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.service-card:hover .service-link span {
  transform: translateX(8px);
}

/* Projects Section */
.projects {
  background: var(--color-bg);
}

.projects-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--gradient-card);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px hsla(263, 70%, 50%, 0.4);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 12rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: hsla(263, 70%, 50%, 0.2);
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--color-muted);
  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.75rem;
  background: hsla(263, 70%, 50%, 0.2);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 20px;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.projects-cta {
  text-align: center;
}

/* Contact Section */
.contact {
  background: hsla(224, 71%, 6%, 0.5);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-text p {
  color: var(--color-muted);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: 12px;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.contact-method:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-accent);
  border-radius: 8px;
  flex-shrink: 0;
}

.contact-icon i {
  color: white;
  font-size: 1.25rem;
}

.contact-label {
  color: var(--color-muted);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.contact-value {
  font-weight: 500;
}

.contact-form-container {
  background: var(--gradient-card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.contact-form-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: hsla(224, 71%, 4%, 0.5);
  border: 1px solid hsla(263, 70%, 50%, 0.3);
  border-radius: 8px;
  color: var(--color-foreground);
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px hsla(263, 70%, 50%, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--color-bg);
  border-top: 1px solid hsla(263, 70%, 50%, 0.2);
  padding: 3rem 0;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--color-muted);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.back-to-top {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--gradient-card);
  border: none;
  border-radius: 50%;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.back-to-top:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.footer-copyright {
  padding-top: 2rem;
  border-top: 1px solid hsla(263, 70%, 50%, 0.2);
}

.footer-copyright p {
  color: var(--color-muted);
  font-size: 0.875rem;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes glow {
  0%, 100% { 
    box-shadow: 0 0 20px hsla(263, 70%, 50%, 0.3);
    opacity: 0.6;
  }
  50% { 
    box-shadow: 0 0 40px hsla(263, 70%, 50%, 0.6);
    opacity: 0.8;
  }
}

@keyframes slideUp {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .hero-role {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
