@charset "UTF-8";

/* ==========================================
   CSS Variables & Design System
   ========================================== */
:root[data-theme="dark"] {
  /* Colors - Dark Theme */
  --bg-color: #07090f;
  --bg-darker: #030407;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --glass-hover-bg: rgba(255, 255, 255, 0.06);

  /* Elements */
  --nav-bg: rgba(7, 9, 15, 0.8);
  --timeline-dot: #07090f;
}

:root[data-theme="light"] {
  /* Colors - Light Theme */
  --bg-color: #f8fafc;
  --bg-darker: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --accent-blue: #2563eb;
  --accent-cyan: #0891b2;
  --accent-purple: #7c3aed;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --glass-hover-bg: rgba(255, 255, 255, 0.9);

  /* Elements */
  --nav-bg: rgba(248, 250, 252, 0.8);
  --timeline-dot: #ffffff;
}

:root {
  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Space Grotesk', sans-serif;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Icons fixes for themes */
:root[data-theme="dark"] .theme-icon {
  fill: #ffffff;
}

:root[data-theme="light"] .theme-icon {
  fill: #0f172a;
}

/* Background Blobs */
.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: float 20s ease-in-out infinite alternate;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.5;
  }

  50% {
    opacity: 0.8;
  }

  100% {
    transform: translate(50px, 50px) rotate(10deg);
    opacity: 0.5;
  }
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.7;
  }

  100% {
    transform: scale(1);
    opacity: 0.4;
  }
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  animation: float 20s ease-in-out infinite alternate, pulse-glow 10s ease-in-out infinite alternate;
}

:root[data-theme="light"] .bg-shape {
  opacity: 0.3;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.25);
  top: -200px;
  left: -200px;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(139, 92, 246, 0.25);
  bottom: 0px;
  right: -100px;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.2);
  top: 40%;
  left: 30%;
  animation-delay: -10s;
}

/* Background Particles Container */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

@keyframes float-particle {
  0% {
    transform: translateY(0vh) translateX(0vw);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(20vw);
    opacity: 0;
  }
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-secondary);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Glass Card Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--glass-hover-bg);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-secondary);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border: none;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-secondary);
}

.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Theme Toggle Button */
.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-btn:hover {
  background: var(--glass-border);
}

/* Section Styling */
.section {
  padding: 6rem 10%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.section-title {
  font-size: 3rem;
  margin-bottom: 3rem;
}

/* ==========================================
   Navbar
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 10%;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 10%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.5rem;
}

.nav-links li a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links li a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.role-text {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 550px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.4), rgba(6, 182, 212, 0.4));
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  animation: orb-pulse 8s ease-in-out infinite alternate;
}

@keyframes orb-pulse {
  0% {
    transform: scale(0.9) rotate(0deg);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.1) rotate(180deg);
    opacity: 1;
  }
}

.hero-image {
  width: 320px;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  border-radius: 40px;
  z-index: 2;
  border: 4px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
  filter: grayscale(40%) contrast(1.1);
  transform: rotate(2deg);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: float-profile 6s ease-in-out infinite alternate;
  position: relative;
}

.hero-image:hover {
  transform: rotate(0deg) scale(1.05) translateY(-5px);
  filter: grayscale(0%) contrast(1.1);
  border-color: var(--accent-blue);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.4);
}

@keyframes float-profile {
  0% {
    transform: translateY(0) rotate(2deg);
  }

  100% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

.experience-badge {
  position: absolute;
  bottom: -10px;
  left: 10px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  animation: bounce 3s infinite;
}

:root[data-theme="light"] .experience-badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

:root[data-theme="light"] .experience-badge .text {
  color: #475569;
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-blue);
  font-family: var(--font-secondary);
}

.experience-badge .text {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ==========================================
   About Section
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==========================================
   Skills Section
   ========================================== */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: rgba(128, 128, 128, 0.1);
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--glass-border);
}

.skill-icon svg {
  width: 30px;
  height: 30px;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-skill {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

.primary-badge {
  font-size: 0.7rem;
  background: var(--accent-blue);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================
   Experience Timeline
   ========================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-dot {
  position: absolute;
  left: 11px;
  top: 30px;
  width: 20px;
  height: 20px;
  background: var(--timeline-dot);
  border: 4px solid var(--accent-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-content.current {
  border-left: 4px solid var(--accent-blue);
}

.timeline-date {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(128, 128, 128, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.timeline-role {
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-list {
  padding-left: 1.2rem;
  color: var(--text-secondary);
}

.timeline-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.project-client {
  display: block;
  font-size: 0.9rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: var(--text-primary);
}

/* ==========================================
   Footer
   ========================================== */
footer {
  padding: 2rem 10%;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================
   Tools & Tech Section
   ========================================== */
.tools-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.subsection-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tool-badge {
  padding: 0.8rem 1.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: default;
}

.tool-badge:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* ==========================================
   Space Shooter Game Section
   ========================================== */
.game-teaser {
  max-width: 500px;
  margin: 0 auto;
}

.game-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.game-modal-content {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-primary);
}

.canvas-container {
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

#space-game {
  display: block;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-item h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--accent-blue);
}

/* ==========================================
   Animations
   ========================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 968px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 8rem;
    gap: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    display: flex;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}