:root {
  --bg-main: #0a0a0c;
  --bg-secondary: rgba(255, 255, 255, 0.03);
  --primary: #ff1e3c;
  --primary-glow: rgba(255, 30, 60, 0.4);
  --primary-dark: #cc1830;
  --text-main: #fcfcfc;
  --text-muted: #a0a0a0;
  --border: rgba(255, 255, 255, 0.1);

  --font-sans: "Outfit", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;

  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background: radial-gradient(
    circle at 50% -20%,
    #2a040a 0%,
    var(--bg-main) 40%
  );
  min-height: 100vh;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* Background Blobs (Ambient Glow) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.blob-1 {
  top: 10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 30, 60, 0.25);
  animation: float 10s ease-in-out infinite alternate;
}

.blob-2 {
  bottom: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: rgba(200, 10, 30, 0.2);
  animation: float 12s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(50px) translateX(30px);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary-glow);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Glass Card Reusable Component */
.glass-card {
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 30, 60, 0.3);
  box-shadow: 0 8px 32px 0 rgba(255, 30, 60, 0.1);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(204, 24, 48, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(10, 10, 12, 0.7);
  transition: var(--transition);
}

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

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

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

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

/* Sections */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-container {
  padding: 6rem 0;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-header h2::after {
  content: "";
  display: block;
  height: 1px;
  width: 300px;
  background: var(--border);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-icon {
  position: absolute;
  color: var(--primary);
  opacity: 0.15;
  filter: drop-shadow(0 0 10px var(--primary-glow));
  animation: driftUp linear infinite;
  will-change: transform, opacity;
}

.floating-icon.i-1 { left: 5%; font-size: 4rem; animation-duration: 25s; animation-delay: 0s; }
.floating-icon.i-2 { left: 25%; font-size: 3.5rem; animation-duration: 30s; animation-delay: -5s; }
.floating-icon.i-3 { left: 85%; font-size: 5rem; animation-duration: 22s; animation-delay: -10s; }
.floating-icon.i-4 { left: 75%; font-size: 3rem; animation-duration: 28s; animation-delay: -15s; }
.floating-icon.i-5 { left: 45%; font-size: 2.5rem; animation-duration: 20s; animation-delay: -2s; }
.floating-icon.i-6 { left: 60%; font-size: 4.5rem; animation-duration: 35s; animation-delay: -8s; }
.floating-icon.i-7 { left: 15%; font-size: 5.5rem; animation-duration: 27s; animation-delay: -12s; }
.floating-icon.i-8 { left: 90%; font-size: 3.2rem; animation-duration: 32s; animation-delay: -20s; }

@keyframes driftUp {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
  animation: slideUp 0.8s ease forwards;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 30, 60, 0.1);
  color: var(--primary);
  border: 1px solid rgba(255, 30, 60, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.glitch-title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #fff;
  position: relative;
}

.subtitle {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

/* About Section Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Tech Orbit System */
.tech-orbit {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orbit-center {
  width: 90px;
  height: 90px;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px var(--primary-glow);
  z-index: 10;
}

.core-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1px;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  z-index: 1;
}

.inner-ring {
  width: 220px;
  height: 220px;
  animation: spinRight 20s linear infinite;
}

.outer-ring {
  width: 360px;
  height: 360px;
  animation: spinLeft 30s linear infinite;
}

@keyframes spinRight { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinLeft { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

.orbit-container {
  position: absolute;
  top: 50%;
  left: 50%;
}

.inner-ring .orbit-container { transform: rotate(var(--deg)) translateX(110px); }
.outer-ring .orbit-container { transform: rotate(var(--deg)) translateX(180px); }

.orbit-icon {
  width: 50px;
  height: 50px;
  margin-top: -25px;
  margin-left: -25px;
  background: rgba(10, 10, 12, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
}

.orbit-icon i {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.orbit-icon:hover i {
  color: var(--primary);
  filter: drop-shadow(0 0 10px var(--primary-glow));
  transform: scale(1.3);
}

.inner-ring .orbit-icon { animation: counterSpinRight 20s linear infinite; }
.outer-ring .orbit-icon { animation: counterSpinLeft 30s linear infinite; }

@keyframes counterSpinRight { 
  0% { transform: rotate(calc(-1 * var(--deg))); }
  100% { transform: rotate(calc(-360deg - var(--deg))); } 
}

@keyframes counterSpinLeft { 
  0% { transform: rotate(calc(-1 * var(--deg))); }
  100% { transform: rotate(calc(360deg - var(--deg))); } 
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-type {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-desc p {
  margin-bottom: 0.75rem;
}

.project-desc strong {
  color: #fff;
  font-family: var(--font-heading);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.project-tech li {
  font-size: 0.8rem;
  color: #bcc6ce;
  font-family: var(--font-heading);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
}

.project-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.project-link:hover {
  transform: translateX(5px);
}

/* Contact */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.contact-card h2 {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

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

/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.required-star {
  color: var(--primary);
  font-weight: 700;
  margin-left: 2px;
}

.form-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-style: italic;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-item i {
  color: var(--primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 30, 60, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Notification */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 350px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateX(400px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.notification.show {
  transform: translateX(0);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.notification-title {
  color: var(--text-main);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.notification-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-icon {
  color: var(--primary);
  margin-right: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1) translateX(0);
}

.reveal.fade-up {
  transform: translateY(50px);
}

.reveal.fade-left {
  transform: translateX(-50px);
}

.reveal.fade-right {
  transform: translateX(50px);
}

.reveal.zoom-in {
  transform: scale(0.9);
}

/* Delay modifiers */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .glitch-title {
    font-size: 2.5rem;
  }
  .subtitle {
    font-size: 1.2rem;
  }
  .description {
    font-size: 1rem;
    width: 100%;
  }

  .cta-group {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header h2::after {
    width: 100px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: stretch !important;
  }

  .contact-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .blob {
    opacity: 0.1;
  }
  
  .floating-icons {
    opacity: 0.15;
  }
}

@media (max-width: 480px) {
  .glitch-title {
    font-size: 2rem;
  }
  
  .section-container {
    padding: 4rem 0;
  }
  
  .project-card {
    padding: 1.5rem;
  }
  
  .orbit-ring.outer-ring {
    width: 250px;
    height: 250px;
  }
  
  .orbit-ring.inner-ring {
    width: 140px;
    height: 140px;
  }
  
  .orbit-icon {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
}
