@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
  --bg-color: #0b0f19;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-color: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.5);
  --gradient-1: #38bdf8;
  --gradient-2: #818cf8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background-color 0.5s ease, color 0.5s ease;
  cursor: none;
}

a,
button,
input,
textarea {
  cursor: none;
}

body.light-theme {
  --bg-color: #f8fafc;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(0, 0, 0, 0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-color: #4f46e5;
  --accent-glow: rgba(79, 70, 229, 0.2);
}

body.light-theme .app-card::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
}

body.light-theme h1 {
  background: linear-gradient(to right, #0f172a, #334155);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Theme Toggle */
.theme-toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: 0.3s;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* Background animated orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  animation: float 10s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

.orb-2 {
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

/* Main Container */
.container {
  width: 100%;
  max-width: 1400px;
  padding: 40px 5%;
  margin: 0 auto;
  z-index: 1;
}

/* Profile Section */
.profile-section {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 1s ease-out forwards;
}

.profile-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  position: relative;
}

.profile-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  z-index: -1;
  filter: blur(15px);
  opacity: 0.7;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 300;
  min-height: 30px;
  /* For typing effect */
}

/* Skills Marquee */
.skills-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  margin-bottom: 50px;
  display: flex;
  white-space: nowrap;
  position: relative;
}

.skills-marquee::before,
.skills-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
}

.skills-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.skills-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-content span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 30px;
  opacity: 0.85;
}

.marquee-content span i {
  color: var(--gradient-1);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Apps Grid */
.apps-header {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-align: center;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* App Card - Glassmorphism */
.app-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.app-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.app-icon {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 20px;
  z-index: 1;
  /* Above gradient overlay */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  font-size: 40px;
  color: var(--gradient-1);
}

/* Specific app icon backgrounds if images missing */
.icon-kiddolearn {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  color: white;
}

.icon-photobilling {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: white;
}


.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  z-index: 1;
  text-align: center;
}

.app-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.5;
  z-index: 1;
  flex-grow: 1;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.app-card:hover .app-badge {
  background: var(--text-primary);
  color: var(--bg-color);
}

/* Footer */
footer {
  margin-top: 60px;
  text-align: center;
  padding: 30px 0;
}

.footer-socials {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  color: #fff;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gradient-1);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--gradient-2);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(99, 102, 241, 0.5);
}

/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 20px 30px;
  text-align: center;
  min-width: 150px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Timeline */
.timeline-section {
  margin: 60px 0;
}

.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
  opacity: 1;
  transform: translateX(0);
  transition: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item.hidden {
  opacity: 0;
  transform: translateX(-30px);
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 5px;
  width: 20px;
  height: 20px;
  background: var(--bg-color);
  border: 3px solid var(--gradient-1);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-glow);
}

body.light-theme .timeline-dot {
  background: #fff;
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 20px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Form */
.contact-section {
  max-width: 600px;
  margin: 0 auto 60px;
  width: 100%;
}

.glass-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.input-group {
  margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: 0.3s;
}

body.light-theme .input-group input,
body.light-theme .input-group textarea {
  background: rgba(0, 0, 0, 0.03);
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--gradient-1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-color);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulseLogo 1.5s infinite alternate;
}

@keyframes pulseLogo {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px var(--accent-glow));
  }

  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px var(--gradient-1));
  }
}

/* tsParticles */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Terminal Container */
.terminal-container {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  text-align: left;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f56;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #27c93f;
}

.terminal-title {
  color: #888;
  font-size: 0.85rem;
  margin-left: 15px;
  font-family: monospace;
}

.terminal-body {
  padding: 20px;
  color: #38bdf8;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  min-height: 100px;
}

.terminal-body span.typed-cursor {
  color: #fff;
  animation: blink 1s infinite;
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Skills Rings Grid */
.skills-rings-section {
  margin: 40px 0 60px;
}

.rings-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.skill-ring {
  position: relative;
  width: 120px;
  height: 150px;
  text-align: center;
}

.skill-ring svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}

.ring-bg,
.ring-progress {
  fill: none;
  stroke-width: 6;
}

.ring-bg {
  stroke: var(--glass-border);
}

.ring-progress {
  stroke-linecap: round;
  stroke-dasharray: 283;
  /* 2 * pi * 45 */
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-ring:nth-child(1) .ring-progress {
  stroke: #38bdf8;
}

.skill-ring:nth-child(2) .ring-progress {
  stroke: #f59e0b;
}

.skill-ring:nth-child(3) .ring-progress {
  stroke: #cbd5e1;
}

body.light-theme .skill-ring:nth-child(3) .ring-progress {
  stroke: #333;
}

body.light-theme .skill-ring:nth-child(3) i {
  color: #333 !important;
}

.ring-content {
  position: absolute;
  top: 50px;
  left: 50px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ring-content i {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.ring-content .percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-ring p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Testimonial Carousel */
.testimonial-section {
  margin: 60px 0;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  gap: 20px;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 20px;
}

.review-card {
  min-width: 300px;
  scroll-snap-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  text-align: center;
  transition: 0.3s;
}

.review-card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.review-card .stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 20px;
}

.review-card h4 {
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Kiddo Learn Universe CSS */
.kiddo-universe-section {
  padding: 60px 0;
  text-align: center;
}

.kiddo-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.kiddo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.kiddo-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(10px);
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: kiddo-float 4s ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kiddo-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(255, 107, 107, 0.2);
  z-index: 10;
}

.kiddo-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

@keyframes kiddo-float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(2deg);
  }

  100% {
    transform: translateY(5px) rotate(-2deg);
  }
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .profile-avatar {
    width: 110px;
    height: 110px;
    font-size: 40px;
  }

  .container {
    padding: 30px 15px;
  }
}