/* Base & Variables */
:root {
  --blue: #3b82f6;
  --blue2: #2563eb;
  --blue-soft: #93c5fd;
  --muted: #a6b1c7;
  --glass: rgba(17,24,39,.6);
  --glass-b: rgba(125,162,255,.28);
}

/* Critical styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, #0a0f1e 0%, transparent 60%),
              radial-gradient(1000px 600px at 120% 10%, #0b1530 0%, transparent 60%),
              linear-gradient(135deg, #02030a 0%, #060812 50%, #02030a 100%);
  color: #fff;
  overflow-x: hidden;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Splash Screen */
.splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(1000px 600px at 50% -10%, #0a0f1e 0%, transparent 60%), #060812;
  display: grid;
  place-items: center;
  z-index: 2000;
  transition: opacity .6s ease, visibility .6s ease;
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
}

.splash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 26px 30px;
  border-radius: 18px;
  background: rgba(16,22,40,.7);
  border: 1px solid rgba(125,162,255,.25);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(76,128,255,.22);
}

.splash-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(125,162,255,.5);
}

.splash-title {
  font-weight: 800;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #7fb2ff, #3461ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(80,130,255,.14);
  transition: background .25s ease, transform .25s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(96,165,250,.5);
}

.logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #6ea8ff, #2f60ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #eaeefc;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .2px;
  position: relative;
  transition: color .25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #71a7ff, #2f60ff);
  box-shadow: 0 4px 14px rgba(59,130,246,.5);
  transition: width .25s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger .bar {
  width: 26px;
  height: 3px;
  background: #71a7ff;
  border-radius: 2px;
  transition: all .3s ease;
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Section Transitions */
.section-content {
  opacity: 1;
  transform: translateX(0);
  transition: opacity .5s ease, transform .5s ease;
}

.section-content.fade-out {
  opacity: 0;
  transform: translateX(-30px);
}

.section-content.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
}

.section-content.fade-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 70px;
  overflow: hidden;
}

.floating-orb {
  position: absolute;
  filter: blur(40px);
  opacity: .6;
  mix-blend-mode: screen;
  z-index: 0;
}

.orb-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #2f60ff, transparent 60%);
  top: -120px;
  left: -100px;
  animation: float 18s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #1ad1ff, transparent 60%);
  bottom: -120px;
  right: -80px;
  animation: float2 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(18px); }
}

.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}

.hero-container {
  max-width: 1100px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .6rem;
  background: linear-gradient(180deg, #e8eeff 0%, #9db8ff 60%, #dbe6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight {
  background: linear-gradient(135deg, #7fb2ff, #3461ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
}

.typing-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #c3d6ff;
  font-weight: 600;
  letter-spacing: .3px;
}

.cursor {
  color: #7fb2ff;
  animation: blink 1s steps(1,end) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-description {
  max-width: 760px;
  margin: .5rem auto 1.2rem;
  color: #b3bdd6;
  font-size: clamp(1rem, 2.2vw, 1.05rem);
}

.hero-buttons {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  padding: 12px 22px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, #7fb2ff 0%, #3563ff 100%);
  color: #070b18;
  box-shadow: 0 16px 36px rgba(76,128,255,.35), inset 0 1px 0 rgba(255,255,255,.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(76,128,255,.45);
}

.btn-secondary {
  color: #cfe0ff;
  background: linear-gradient(180deg, rgba(20,30,60,.8), rgba(10,16,36,.8));
  border: 1px solid rgba(125,162,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(76,128,255,.25);
}

/* Sections */
.section {
  padding: 96px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #cfe0ff, #6ea8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 .75rem;
}

.section-line {
  width: 86px;
  height: 4px;
  background: linear-gradient(135deg, #6ea8ff, #2f60ff);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 6px 14px rgba(76,128,255,.35);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Blue Decoration PFP */
.blue-decoration-pfp {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decoration-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, 
    #1e40af 0%, 
    #3b82f6 25%, 
    #60a5fa 50%, 
    #93c5fd 75%, 
    #3b82f6 100%);
  animation: ring-rotate 10s linear infinite;
  padding: 4px;
}

.decoration-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #0f172a;
}

.decoration-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
  filter: blur(15px);
  animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes ring-rotate {
  100% { transform: rotate(360deg); }
}

@keyframes glow-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

.profile-img {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e40af;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
  transition: transform .3s ease;
}

.about-text h3 {
  color: #cfe0ff;
  margin: 0 0 12px;
  font-weight: 800;
}

.about-text p {
  color: #b3bdd6;
  line-height: 1.8;
  margin: 0 0 14px;
}

.about-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.stat {
  flex: 1 1 120px;
  text-align: center;
  padding: 16px;
  background: rgba(16,22,40,.7);
  border: 1px solid var(--glass-b);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(76,128,255,.18);
  transition: transform .2s ease;
}

.stat:hover {
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: 1.7rem;
  color: #d7e6ff;
  font-weight: 800;
  text-shadow: 0 4px 16px rgba(76,128,255,.25);
}

.stat-label {
  color: #9db0d9;
  font-size: .92rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.skill-category h3 {
  color: #cfe0ff;
  margin: 0 0 18px;
  text-align: center;
  font-weight: 700;
}

.skill-item {
  display: grid;
  grid-template-columns: 120px 1fr 54px;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.skill-name {
  font-weight: 700;
  color: #d9e6ff;
}

.skill-bar {
  height: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.skill-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(180deg, #7fb2ff, #3563ff);
  box-shadow: 0 8px 22px rgba(76,128,255,.32);
  border-radius: 6px;
  transition: width 900ms cubic-bezier(.2,.8,.2,1);
}

.skill-percent {
  text-align: right;
  font-weight: 600;
  color: #cfe0ff;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 22px;
  border-radius: 20px;
  background: rgba(16,22,40,.7);
  border: 1px solid rgba(125,162,255,.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(76,128,255,.18);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}

.service-card .shine {
  position: absolute;
  inset: -40% -40% auto auto;
  background: conic-gradient(from 0deg, rgba(255,255,255,.0), rgba(255,255,255,.12), rgba(255,255,255,.0));
  width: 180%;
  height: 180%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: shine 6s linear infinite;
  pointer-events: none;
  opacity: .25;
}

@keyframes shine {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(76,128,255,.28);
}

.service-icon {
  font-size: 2rem;
  color: #cfe0ff;
  margin-bottom: 10px;
  text-shadow: 0 6px 18px rgba(76,128,255,.35);
}

.service-card h3 {
  margin: 0 0 6px;
  color: #e5edff;
  font-weight: 800;
  letter-spacing: .3px;
}

.service-card p {
  margin: 0 0 10px;
  color: #b5c2dc;
  line-height: 1.6;
}

.service-features {
  margin: 0;
  padding-left: 18px;
  color: #a8b6d5;
}

.service-features li {
  margin: 4px 0;
}

/* Connect Section */
.connect-description {
  text-align: center;
  color: #b3bdd6;
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(16,22,40,.7);
  border: 1px solid rgba(125,162,255,.22);
  color: #eaf0ff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(76,128,255,.28);
}

.social-link.discord:hover {
  background: rgba(88,101,242,.22);
  border-color: #5865f2;
  color: #c7ceff;
}

.social-link.instagram:hover {
  background: rgba(225,48,108,.22);
  border-color: #e1306c;
  color: #ffd1e1;
}

.social-link.github:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8b6d5;
}

.contact-item i {
  color: #cfe0ff;
}

/* Footer */
.footer {
  background: rgba(2,3,12,.86);
  border-top: 1px solid rgba(125,162,255,.22);
  padding: 20px 0;
  text-align: center;
  color: #9fb0d1;
}

/* Scroll Animations */
.fade-in, .slide-up {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 860px) {
  .hamburger { 
    display: flex; 
    position: relative;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(2,3,12,.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(125,162,255,.3);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right .4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  
  .nav-menu.active { 
    right: 0; 
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid rgba(125,162,255,.1);
    font-size: 1.1rem;
    justify-content: flex-start;
  }
  
  .nav-link i {
    width: 20px;
    color: #7fb2ff;
  }
  
  .nav-link:after {
    display: none;
  }
  
  .nav-link:hover {
    color: #7fb2ff;
    background: rgba(59,130,246,.1);
    border-radius: 8px;
    padding-left: 12px;
  }
}

@media (max-width: 980px) {
  .about-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
  }
  
  .blue-decoration-pfp { 
    width: 200px; 
    height: 200px; 
  }
  
  .profile-img { 
    width: 160px; 
    height: 160px; 
  }
}

@media (max-width: 640px) {
  .hero-buttons { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .social-links { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .contact-info { 
    flex-direction: column; 
    align-items: center; 
  }
  
  .services-grid { 
    grid-template-columns: 1fr; 
  }
  
  .skills-grid { 
    grid-template-columns: 1fr; 
  }
  
  .nav-menu {
    width: 280px;
    padding: 80px 25px 25px;
  }
  
  .blue-decoration-pfp { 
    width: 180px; 
    height: 180px; 
  }
  
  .profile-img { 
    width: 140px; 
    height: 140px; 
  }
}
