/* Modern minimalistic styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #121212;
  font-size: 16px;
  position: relative;
  cursor: none;
}

/* Custom Sun Ray Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: screen;
  will-change: transform;
  transform: translateZ(0); /* Force GPU layer */
}

/* Bright central core */
.cursor-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.9) 20%,
    rgba(255, 248, 220, 0.7) 40%,
    rgba(255, 235, 102, 0.4) 70%,
    transparent 100%);
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 1),
    0 0 20px rgba(255, 255, 255, 0.8),
    0 0 30px rgba(255, 248, 220, 0.6);
  will-change: transform, opacity, scale;
}

/* Inner glow layer */
.cursor-inner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 248, 220, 0.5) 20%,
    rgba(255, 235, 102, 0.4) 40%,
    rgba(255, 215, 0, 0.2) 60%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(3px);
  will-change: transform, opacity, scale;
}

/* Medium glow layer */
.cursor-medium-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle,
    rgba(255, 248, 220, 0.4) 0%,
    rgba(255, 235, 102, 0.3) 30%,
    rgba(255, 215, 0, 0.2) 50%,
    rgba(255, 193, 7, 0.1) 70%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(8px);
  will-change: transform, opacity, scale;
}

/* Outer atmospheric glow */
.cursor-outer-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle,
    rgba(255, 235, 102, 0.3) 0%,
    rgba(255, 215, 0, 0.2) 25%,
    rgba(255, 193, 7, 0.15) 40%,
    rgba(255, 171, 64, 0.1) 60%,
    rgba(255, 152, 0, 0.05) 80%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(15px);
  will-change: transform, opacity, scale;
}

/* Far atmospheric halo */
.cursor-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,
    rgba(255, 215, 0, 0.15) 0%,
    rgba(255, 193, 7, 0.1) 20%,
    rgba(255, 171, 64, 0.08) 40%,
    rgba(255, 152, 0, 0.06) 60%,
    rgba(255, 140, 0, 0.03) 80%,
    transparent 100%);
  border-radius: 50%;
  filter: blur(25px);
  opacity: 0.7;
  will-change: transform, opacity, scale;
}


/* Sparkle particles */
.cursor-sparkle {
  position: absolute;
  width: 1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

/* Hover states for cursor */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.project-card:hover ~ .custom-cursor {
  transform: scale(1.5);
}

.custom-cursor.clicking {
  transform: scale(0.8);
}


/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(to right, rgba(18, 18, 18, 0.7) 0%, rgba(18, 18, 18, 0.85) 30%, rgba(18, 18, 18, 0.95) 60%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
}

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

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.nav-links a:hover {
  color: #ffffff;
}

/* Main content */
main {
  margin-top: 0;
}

.section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-section {
  padding: calc(8rem + 80px) 2rem 6rem;
  text-align: left;
  position: relative;
}

.about-section > * {
  position: relative;
  z-index: 1;
}


.hero-title {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #d4d4d4;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f1efef;
  max-width: 600px;
}

.inline-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: #ffffff;
  border-bottom: 1px solid #ffffff;
  text-decoration: none;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: flex-start;
}

.social-icon {
  color: #d4d4d4;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 8px;
}

.social-icon:hover {
  color: #ffffff;
  transform: translateY(-1.5px);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}

/* Projects section */
.projects-section {
  padding: 6rem 2rem;
  background: transparent;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0.9;
}

.project-content {
  padding: 1.5rem;
}

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

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.project-link {
  color: #7bb3e0;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #9cc5e8;
}

.project-description {
  color: #d6d4d4;
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: #2a2a2a;
  color: #c0c0c0;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #404040;
}



/* Responsive design */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

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

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .about-section {
    padding: 8rem 1.5rem 4rem;
  }

  .projects-section {
    padding: 4rem 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .project-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .project-content {
    padding: 1.25rem;
  }

  .nav-container {
    padding: 0 1.5rem;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .social-links {
    gap: 1.5rem;
    margin-top: 2.5rem;
  }
}

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

  .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.9rem;
    padding: 0.75rem 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .about-section {
    padding: 10rem 1rem 10rem;
  }

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

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

  .projects-grid {
    gap: 1.25rem;
    margin-top: 1.5rem;
  }

  .project-card {
    max-width: 100%;
  }

  .project-content {
    padding: 1rem;
  }

  .project-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  .social-links {
    gap: 1rem;
    margin-top: 2rem;
  }

  .social-icon {
    padding: 0.4rem;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .nav-container {
    padding: 0 0.75rem;
  }

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

  .section {
    padding: 2rem 0.75rem;
  }

  .about-section {
    padding: 6.5rem 0.75rem 2.5rem;
  }

  .projects-section {
    padding: 2.5rem 0.75rem;
  }

  .project-content {
  padding: 0.875rem;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  }
  
  .project-card:active {
    transform: scale(0.98);
  }
  
  .nav-links a:hover {
    color: #e0e0e0;
  }
  
  .nav-links a:active {
    color: #ffffff;
  }
  
  .inline-link:hover {
    color: #d0d0d0;
    border-bottom: 1px solid transparent;
  }
  
  .inline-link:active {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
  }
}
} 