/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  
  --body-bg: #080e24;
  --text-color: #ffffff;
  --text-muted: #6c757d;
  
  --border-radius: 0.375rem;
  --transition: all 0.3s ease;
  
  --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-secondary: 'IBM Plex Serif', Georgia, serif;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-primary);
  background: var(--body-bg) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-secondary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* ===== NAVIGATION ===== */
.navbar {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: rgba(52, 58, 64, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #080e24 0%, #1a1a2e 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.3;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.skill-card h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== SOLAR SYSTEM ===== */
.solar-system-container {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

ul.solarsystem {
  position: relative;
  height: 600px;
  list-style: none;
  transition: all 0.09s ease-in;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

ul.solarsystem li {
  text-indent: 40px;
  display: block;
  position: absolute;
  border: 2px solid #394057;
  border-radius: 50%;
  transition: all 0.2s ease-in;
}

ul.solarsystem li span {
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

ul.solarsystem li a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: var(--transition);
}

ul.solarsystem li:hover {
  border-color: var(--primary-color);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

ul.solarsystem li.active {
  border-color: #aa4200;
}

ul.solarsystem li.active.sun,
ul.solarsystem li.active span {
  transform: scale(1.3);
}

/* Sun */
ul.solarsystem li.sun {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fc3, #ff6b35);
  top: 280px;
  left: 280px;
  border: none;
  box-shadow: 0 0 50px #c90, inset 0 0 20px rgba(255, 255, 255, 0.3);
  z-index: 100;
}

ul.solarsystem li.sun span {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  top: -10px;
  left: -10px;
}

/* Mercury */
ul.solarsystem li.mercury {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  top: 230px;
  left: 230px;
  animation: orbit 5s linear infinite;
}

ul.solarsystem li.mercury span {
  top: -10px;
  left: 35px;
  background: #8c7853;
}

/* Venus */
ul.solarsystem li.venus {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 175px;
  left: 175px;
  animation: orbit 8s linear infinite;
}

ul.solarsystem li.venus span {
  top: -10px;
  left: 60px;
  background: #e7cdcd;
}

/* Earth */
ul.solarsystem li.earth {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  top: 130px;
  left: 130px;
  animation: orbit 12s linear infinite;
}

ul.solarsystem li.earth span {
  top: -10px;
  left: 85px;
  background: #6b93d6;
}

ul.solarsystem li.earth span.moon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: -4px;
  left: 95px;
  background: #c0c0c0;
  animation: moon 2s linear infinite;
}

/* Mars */
ul.solarsystem li.mars {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  top: 75px;
  left: 75px;
  animation: orbit 20s linear infinite;
}

ul.solarsystem li.mars span {
  top: -10px;
  left: 110px;
  background: #c1440e;
}

/* Asteroids */
ul.solarsystem li.asteroids_meteorids {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: 0px;
  left: 0px;
  border: 1px solid #666;
  animation: orbit 50s linear infinite;
}

/* Jupiter */
ul.solarsystem li.jupiter {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  top: -25px;
  left: -25px;
  animation: orbit 30s linear infinite;
}

ul.solarsystem li.jupiter span {
  top: -10px;
  left: 160px;
  background: #d8ca9d;
}

/* Saturn */
ul.solarsystem li.saturn {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  top: -50px;
  left: -50px;
  animation: orbit 60s linear infinite;
}

ul.solarsystem li.saturn span {
  top: -10px;
  left: 185px;
  background: #ead6b8;
}

ul.solarsystem li.saturn span.ring {
  width: 30px;
  height: 8px;
  border-radius: 50%;
  top: -4px;
  left: 175px;
  background: transparent;
  border: 2px solid #c0c0c0;
}

/* Uranus */
ul.solarsystem li.uranus {
  width: 450px;
  height: 450px;
  border-radius: 50%;
  top: -75px;
  left: -75px;
  animation: orbit 70s linear infinite;
}

ul.solarsystem li.uranus span {
  top: -10px;
  left: 210px;
  background: #d1e7e7;
}

/* Neptune */
ul.solarsystem li.neptune {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  top: -100px;
  left: -100px;
  animation: orbit 100s linear infinite;
}

ul.solarsystem li.neptune span {
  top: -10px;
  left: 235px;
  background: #5b5ddf;
}

/* Pluto */
ul.solarsystem li.pluto {
  width: 550px;
  height: 550px;
  border-radius: 50%;
  top: -125px;
  left: -125px;
  animation: orbit 120s linear infinite;
}

ul.solarsystem li.pluto span {
  top: -10px;
  left: 260px;
  background: #b0b0b0;
}

/* Descriptions */
ul#descriptions {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul#descriptions li {
  position: absolute;
  width: 300px;
  height: 200px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

ul#descriptions li.active {
  opacity: 1;
  pointer-events: auto;
}

ul#descriptions h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

ul#descriptions p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Animations */
@keyframes orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes moon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, var(--dark-color), #000);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a:hover {
  color: var(--primary-color) !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .solar-system-container {
    height: 400px;
    margin-top: 2rem;
  }
  
  ul.solarsystem {
    height: 400px;
    transform: scale(0.7);
  }
  
  .skill-card {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .solar-system-container {
    height: 300px;
  }
  
  ul.solarsystem {
    height: 300px;
    transform: scale(0.5);
  }
  
  ul#descriptions li {
    width: 250px;
    height: 150px;
  }
  
  ul#descriptions h2 {
    font-size: 1.2rem;
  }
  
  ul#descriptions p {
    font-size: 0.8rem;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== FOCUS STYLES ===== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .hero-section {
    min-height: auto;
    background: white !important;
  }
} 