* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  cursor: none;
}

body {
  font-family: 'Inter', sans-serif;
  background: #05070f;
  color: #e6e8ff;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  position: relative;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #7c3aed;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 20px #7c3aed;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(124, 58, 237, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.floating-bubble {
  position: absolute;
  background: rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  padding: 8px 16px;
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 5;
  animation: floatBubble 6s infinite ease-in-out;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-bubble i {
  color: #7c3aed;
  font-size: 14px;
}

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -10px); }
  50% { transform: translate(10px, 5px); }
  75% { transform: translate(-5px, 10px); }
}

.bubble-1 { top: 10%; left: -20px; animation-delay: 0s; }
.bubble-2 { top: 40%; right: -30px; animation-delay: 1s; }
.bubble-3 { bottom: 15%; left: -15px; animation-delay: 2s; }
.bubble-4 { top: 20%; right: -20px; animation-delay: 1.5s; }
.bubble-5 { bottom: 30%; left: -25px; animation-delay: 2.5s; }
.bubble-6 { top: 60%; right: -25px; animation-delay: 0.5s; }

.shape {
  position: fixed;
  opacity: 0.15;
  z-index: -1;
  animation: float 14s infinite ease-in-out;
}

.circle {
  width: 80px;
  height: 80px;
  background: #7c3aed;
  border-radius: 50%;
  top: 20%;
  left: 10%;
}

.square {
  width: 70px;
  height: 70px;
  background: #7c3aed;
  top: 60%;
  right: 15%;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid #7c3aed;
  top: 40%;
  right: 30%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-40px); }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
}

.nav-container {
  width: 90%;
  max-width: 800px;
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 14px 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto;
}

.nav-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.nav-links a {
  text-decoration: none;
  color: #cfd2ff;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s ease;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.nav-links a.active {
  outline: 1px solid #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}

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

.container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 100px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
  min-height: auto;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin: 20px 0;
  padding: 40px 0;
  position: relative;
}

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

.section > div {
  width: 100%;
  max-width: 450px;
  text-align: left;
  justify-self: end;
}

.section .image-wrapper {
  position: relative;
  justify-self: start;
  display: inline-block;
}

.section#home > div,
.section#oxynet > div,
.section#contact > div {
  justify-self: end;
}

.section#home .image-wrapper,
.section#oxynet .image-wrapper,
.section#contact .image-wrapper {
  justify-self: start;
}

.section#about > div,
.section#featured > div,
.section#projects > div {
  justify-self: start;
  grid-column: 2;
}

.section#about .image-wrapper,
.section#featured .image-wrapper,
.section#projects .image-wrapper {
  justify-self: end;
  grid-column: 1;
}

.section img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #7c3aed;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
  display: block;
  position: relative;
  z-index: 2;
}

.experience-badge {
  position: absolute;
  bottom: 10px;
  right: -10px;
  background: #7c3aed;
  color: white;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  backdrop-filter: blur(4px);
  letter-spacing: 0.5px;
  z-index: 10;
}

.experience-badge::before {
  content: "⭐";
  margin-right: 6px;
  font-size: 14px;
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  margin-bottom: 10px;
  color: #e1dcff;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  margin-bottom: 20px;
  color: #ddd8ff;
  font-weight: 600;
  letter-spacing: -0.3px;
}

p {
  color: #c7c9ff;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 15px;
  font-weight: 300;
}

.typing {
  font-size: 24px;
  color: #a78bfa;
  margin-bottom: 20px;
  font-weight: 500;
  min-height: 50px;
  display: flex;
  align-items: center;
  letter-spacing: 0.3px;
}

#typing {
  display: inline-block;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: #a78bfa;
  margin-left: 4px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

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

.bubble-box {
  background: rgba(14, 19, 37, 0.7);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  backdrop-filter: blur(5px);
  margin-top: 20px;
}

.bubble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.bubble-item {
  background: #0e1325;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
}

.bubble-item:hover {
  transform: translateY(-3px);
  border-color: #7c3aed;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.bubble-item .icon {
  width: 40px;
  height: 40px;
  background: rgba(124, 58, 237, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #7c3aed;
}

.bubble-item .content {
  flex: 1;
}

.bubble-item .content .label {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}

.bubble-item .content .value {
  color: #e1dcff;
  font-size: 15px;
  font-weight: 500;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  background: #0e1325;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  border: 1px solid rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-3px);
  border-color: #7c3aed;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.3);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #7c3aed;
  font-size: 24px;
  border: 2px solid rgba(124, 58, 237, 0.3);
}

.info-item .info-label {
  color: #a78bfa;
  font-size: 12px;
  font-weight: 400;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item .info-value {
  color: #e1dcff;
  font-size: 16px;
  font-weight: 600;
}

.featured-description {
  color: #c7c9ff;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 25px;
  font-weight: 300;
  max-width: 90%;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin-top: 10px;
}

.featured-card {
  background: rgba(14, 19, 37, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(145deg, #7c3aed, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 20px 30px -10px rgba(124, 58, 237, 0.4);
}

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

.featured-icon {
  width: 80px;
  height: 80px;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  border: 2px solid rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
}

.featured-card:hover .featured-icon {
  border-color: #7c3aed;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
  transform: scale(1.05);
}

.featured-icon i {
  font-size: 36px;
  color: #7c3aed;
}

.featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #e1dcff;
  margin-bottom: 10px;
}

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.projects-description {
  color: #c7c9ff;
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 25px;
  font-weight: 300;
  max-width: 90%;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  width: 100%;
  margin-top: 10px;
}

.project-card {
  background: rgba(14, 19, 37, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(145deg, #7c3aed, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  box-shadow: 0 20px 30px -10px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.3) inset;
}

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

.project-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid rgba(124, 58, 237, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.project-card:hover .project-image {
  border-color: #7c3aed;
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5);
  transform: scale(1.05);
}

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

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

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #e1dcff;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
  text-align: center;
  word-wrap: break-word;
}

.project-description {
  color: #b0b3d1;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
  text-align: center;
  word-wrap: break-word;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  justify-content: center;
}

.tech-badge {
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 30px;
  border: 1px solid rgba(124, 58, 237, 0.3);
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(124, 58, 237, 0.3);
  border-color: #7c3aed;
  transform: translateY(-2px);
}

.project-actions {
  display: flex;
  gap: 10px;
  opacity: 0.7;
  transform: translateY(5px);
  transition: all 0.3s ease;
  margin-top: 5px;
}

.project-card:hover .project-actions {
  opacity: 1;
  transform: translateY(0);
}

.project-btn {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(124, 58, 237, 0.4);
  color: #cfd2ff;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(5px);
}

.project-btn:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  transform: scale(1.05);
}

.project-btn.source {
  background: rgba(124, 58, 237, 0.15);
  border-color: #7c3aed;
}

.project-btn.source:hover {
  background: #7c3aed;
}

.contact-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 15px;
}

.contact-bubble {
  flex: 1;
  min-width: 200px;
  background: #0e1325;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.contact-bubble:hover {
  transform: translateY(-2px);
  border-color: #7c3aed;
}

.contact-bubble img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border: none;
  box-shadow: none;
}

.contact-bubble span {
  color: #cfd2ff;
  font-size: 14px;
  font-weight: 400;
  word-break: break-all;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-content {
  background: #0e1325;
  border-radius: 14px;
  max-width: 500px;
  width: 90%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.modal-text {
  padding: 20px;
}

.modal-text h3 {
  color: #e1dcff;
  margin-bottom: 10px;
  font-size: 22px;
}

@media (max-width: 900px) {
  .cursor-dot, .cursor-outline {
    display: none;
  }
  
  * {
    cursor: auto;
  }

  .section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
    padding: 30px 0;
    margin: 10px 0;
  }

  .section > div,
  .section .image-wrapper {
    grid-column: auto !important;
    justify-self: center !important;
  }

  .section > div {
    max-width: 100%;
    text-align: center;
  }

  .image-wrapper {
    margin: 0 auto 15px;
  }

  .section img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .experience-badge {
    bottom: 5px;
    right: -5px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .bubble-grid {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-card {
    padding: 15px;
    width: 100%;
  }

  .project-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
  }

  .project-actions {
    opacity: 1;
    transform: translateY(0);
    flex-wrap: wrap;
  }

  .project-btn {
    padding: 6px 0;
    font-size: 11px;
  }

  .projects-description,
  .featured-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-bubble img {
    width: 20px;
    height: 20px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links a {
    font-size: 14px;
    padding: 5px 8px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  .contact-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .contact-bubble {
    min-width: 160px;
    flex: 0 1 auto;
    padding: 12px;
  }

  .typing {
    min-height: 45px;
    font-size: 20px;
    justify-content: center;
  }

  .nav-container {
    padding: 12px 16px;
    width: 95%;
  }

  .container {
    padding: 80px 15px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 70px 12px 15px;
  }

  h1 {
    font-size: 32px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    padding: 16px;
    width: 100%;
  }

  .project-image {
    width: 110px;
    height: 110px;
  }

  .contact-bubble {
    min-width: 100%;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 12px;
    padding: 4px 6px;
  }

  .projects-description,
  .featured-description {
    font-size: 14px;
  }

  .experience-badge {
    padding: 4px 10px;
    font-size: 11px;
  }
}
