/* Reset & Variables */
:root {
  --primary: #00d8f9;
  --dark: #020617;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --text-light: #e2e8f0;
  --text-muted: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  background-color: var(--dark);
  color: var(--text-light);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--slate-900);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Utilities */
.font-mono {
  font-family: var(--font-mono);
}

.text-primary-custom {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}

/* Background Glows */
.glow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
}

.glow-orb-1 {
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: var(--primary);
}

.glow-orb-2 {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: #a855f7;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.3);
  z-index: 1;
}

/* Navigation */
.navbar {
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.logo-icon-box {
  padding: 0.5rem;
  background: rgba(0, 216, 249, 0.1);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 216, 249, 0.2);
  transition: all 0.3s;
}

.navbar-brand:hover .logo-icon-box {
  border-color: rgba(0, 216, 249, 0.5);
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.05em;
}

.nav-link-custom {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-link-custom:hover {
  color: var(--primary);
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-link-custom:hover::after {
  width: 100%;
}

.btn-neon {
  background-color: var(--primary);
  color: var(--dark);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  border: none;
  box-shadow: 0 0 15px rgba(0, 216, 249, 0.3);
  transition: all 0.3s;
}

.btn-neon:hover {
  background-color: #67e8f9;
  box-shadow: 0 0 25px rgba(0, 216, 249, 0.5);
  color: var(--dark);
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.mobile-menu.show {
  display: flex;
}

.mobile-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--primary);
}

.btn-reset {
  background: none;
  border: none;
  padding: 0;
}

/* Hero Elements */
.badge-custom {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 216, 249, 0.1);
  border: 1px solid rgba(0, 216, 249, 0.2);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.btn-outline-custom {
  background: transparent;
  border: 1px solid #334155;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-outline-custom:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 216, 249, 0.05);
}

/* Profile Image & Animations */
.profile-image-container {
  position: relative;
  width: 300px;
  height: 300px;
}

@media (min-width: 768px) {
  .profile-image-container {
    width: 400px;
    height: 400px;
  }
}

.spin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.spin-ring-1 {
  border: 2px solid rgba(0, 216, 249, 0.2);
  animation: spin 10s linear infinite;
}

.spin-ring-2 {
  inset: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  animation: spin 15s linear infinite reverse;
}

.profile-image-box {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--slate-800);
  background: var(--slate-900);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: all 0.5s;
}

.profile-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.floating-badge {
  position: absolute;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid #334155;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  animation: bounce 2s infinite;
}

.badge-top {
  top: 2rem;
  right: -1rem;
}

.badge-bottom {
  bottom: 4rem;
  left: -1rem;
  animation-delay: 1s;
}

/* Components */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  transition: all 0.3s;
}

.divider-glow {
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto;
  box-shadow: 0 0 10px var(--primary);
}

/* Timeline */
.timeline {
  border-left: 2px solid #334155;
  margin-left: 1rem;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dark);
  border: 3px solid var(--primary);
}

.date-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 216, 249, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
}

.cert-item {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--slate-800);
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.cert-item:hover {
  border-color: rgba(0, 216, 249, 0.5);
}

.cert-item:hover h4 {
  color: var(--primary) !important;
}

/* Skills */
.skill-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  transition: all 0.3s;
  cursor: default;
}

.skill-box:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 216, 249, 0.15);
}

.skill-icon {
  width: 2rem;
  height: 2rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.skill-box:hover .skill-icon {
  color: var(--primary);
}

.skill-name {
  font-size: 0.875rem;
  color: #cbd5e1;
  font-weight: 500;
}

/* Services */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(0, 216, 249, 0.5);
  background: rgba(30, 41, 59, 0.5);
}

.service-glow {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(0, 216, 249, 0.1);
  border-radius: 50%;
  filter: blur(40px);
  transition: all 0.3s;
}

.service-card:hover .service-glow {
  background: rgba(0, 216, 249, 0.2);
}

.icon-box {
  width: 48px;
  height: 48px;
  background: var(--slate-800);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.service-card:hover .icon-box {
  border-color: rgba(0, 216, 249, 0.5);
  box-shadow: 0 0 15px rgba(0, 216, 249, 0.3);
}

.icon-md {
  width: 24px;
  height: 24px;
}

.icon-sm {
  width: 20px;
  height: 20px;
}

.icon-xs {
  width: 16px;
  height: 16px;
}

/* Projects */
.project-card:hover {
  border-color: rgba(0, 216, 249, 0.5);
  box-shadow: 0 0 20px rgba(0, 216, 249, 0.1);
}

.project-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: transform 0.7s, opacity 0.3s;
}

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

.img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0f172a, transparent);
  opacity: 0.9;
}

.badge-category {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  background: rgba(0, 216, 249, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 216, 249, 0.2);
}

.tech-badge {
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-title {
  transition: color 0.3s;
}

.project-card:hover .project-title {
  color: var(--primary) !important;
}

.clamp-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-link {
  font-size: 0.875rem;
  color: #cbd5e1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--primary);
}

/* Contact */
.contact-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--slate-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.3s;
}

.social-btn:hover {
  background: var(--primary);
  color: var(--dark);
}

.form-control-custom {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid #334155;
  color: white;
  padding: 0.75rem;
}

.form-control-custom:focus {
  background: rgba(15, 23, 42, 0.5);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  color: white;
}

/* Keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Intersection Observer Reveal Animation */
.reveal-section>div {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.reveal-section.active>div {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}