/* Main Styles */

:root {
  /* Space Theme Colors */
  --primary-color: #8A2BE2; /* Vibrant purple */
  --secondary-color: #4169E1; /* Royal blue */
  --accent-color: #00FFFF; /* Cyan */
  --background-dark: #0A0E17; /* Deep space black */
  --background-medium: #141B2D; /* Dark blue */
  --text-bright: #FFFFFF; /* White */
  --text-medium: #B0B7C3; /* Light gray */
  --text-dim: #7A85A1; /* Medium gray */
  --success-color: #00FF9D; /* Neon green */
  --warning-color: #FFD700; /* Gold */
  --danger-color: #FF4500; /* Red-orange */
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(20, 27, 45, 0.7);
  --glass-effect: rgba(255, 255, 255, 0.05);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 50%;
}

/* Base Styles */
body {
  background-color: var(--background-dark);
  color: var(--text-bright);
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-bright);
  text-align: center;
}

h3 {
  font-size: 1.75rem;
  color: var(--text-bright);
}

h4 {
  font-size: 1.25rem;
  color: var(--text-bright);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-medium);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  z-index: -1;
  transition: all 0.3s ease;
}

.btn:hover::before {
  transform: scale(1.1);
  filter: brightness(1.2);
}

.primary-btn {
  color: var(--text-bright);
  border: none;
}

.secondary-btn {
  color: var(--text-bright);
  border: 2px solid var(--primary-color);
  background: transparent;
}

.secondary-btn::before {
  opacity: 0;
}

.secondary-btn:hover::before {
  opacity: 0.5;
}

.github-btn, .demo-btn {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.github-btn {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}

.demo-btn {
  background-color: var(--primary-color);
  color: var(--text-bright);
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  transition: all 0.3s ease;
  background-color: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.desktop-nav ul {
  display: flex;
}

.desktop-nav li {
  margin-left: var(--spacing-md);
}

.desktop-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--text-bright);
}

.desktop-nav a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-bright);
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--spacing-md) 0;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav li {
  margin: var(--spacing-xs) 0;
}

.mobile-nav a {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.2), transparent 50%);
  z-index: -1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(0, 255, 255, 0.1), transparent 50%);
  z-index: -1;
}

.hero-content {
  max-width: 600px;
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.hero-image {
  position: relative;
  width: 400px;
  height: 400px;
}

.orbit-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 15s linear infinite;
}

.orbit:nth-child(1) {
  width: 150px;
  height: 150px;
  animation-duration: 10s;
}

.orbit:nth-child(2) {
  width: 200px;
  height: 200px;
  animation-duration: 15s;
}

.orbit:nth-child(3) {
  width: 250px;
  height: 250px;
  animation-duration: 20s;
}

.orbit:nth-child(4) {
  width: 300px;
  height: 300px;
  animation-duration: 25s;
}

.orbit:nth-child(5) {
  width: 350px;
  height: 350px;
  animation-duration: 30s;
}

.planet {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-bright);
  text-align: center;
  animation: counter-rotate 15s linear infinite;
}

.planet.flutter {
  background: linear-gradient(45deg, #42A5F5, #2196F3);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 10s;
}

.planet.laravel {
  background: linear-gradient(45deg, #FF2D20, #F05340);
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-duration: 15s;
}

.planet.kotlin {
  background: linear-gradient(45deg, #7F52FF, #A97BFF);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-duration: 20s;
}

.planet.java {
  background: linear-gradient(45deg, #F89820, #E76F00);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-duration: 25s;
}

.planet.firebase {
  background: linear-gradient(45deg, #FFCA28, #FFA000);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 30s;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.scroll-down a {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-down span {
  display: block;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent-color);
  border-right: 2px solid var(--accent-color);
  transform: rotate(45deg);
  margin: -10px;
  animation: scroll 2s infinite;
}

.scroll-down span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 0 auto;
}

/* About Section */
.about-section {
  background-color: var(--background-medium);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, rgba(138, 43, 226, 0.1), transparent 40%);
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.about-text h3 {
  margin-bottom: var(--spacing-md);
  color: var(--accent-color);
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-card {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.card-icon {
  width: 0px;
  height: 0px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-md);
}

.card-icon i {
  font-size: 1.5rem;
  color: var(--text-bright);
}

.card-content h4 {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.card-content p {
  font-size: 1.1rem;
  color: var(--text-bright);
  margin-bottom: 0;
}

/* Skills Section */
.skills-section {
  position: relative;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom right, rgba(0, 255, 255, 0.1), transparent 40%);
  z-index: 0;
}

.skills-content {
  position: relative;
  z-index: 1;
}

.skills-tabs {
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: var(--spacing-md);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-medium);
  background-color: transparent;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tab-btn.active {
  color: var(--accent-color);
  background-color: rgba(0, 255, 255, 0.05);
}

.tab-content {
  padding: var(--spacing-md);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.skill-item {
  margin-bottom: var(--spacing-md);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-info h4 {
  font-size: 1rem;
  color: var(--text-bright);
  margin-bottom: 0;
}

.skill-info span {
  font-size: 0.9rem;
  color: var(--accent-color);
}

.skill-bar {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border-radius: var(--border-radius-full);
  width: 0;
  transition: width 1.5s ease;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-family: 'Orbitron', sans-serif;
  font-weight: 500;
  color: var(--text-bright);
  text-align: center;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

/* Projects Section */
.projects-section {
  background-color: var(--background-medium);
  position: relative;
}

.projects-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1), transparent 60%);
  z-index: 0;
}

.projects-content {
  position: relative;
  z-index: 1;
}

.project-carousel {
  margin-bottom: var(--spacing-xl);
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  height: 500px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.project-card.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 1rem;
}

.project-info {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.75rem;
  color: var(--text-bright);
  margin-bottom: var(--spacing-sm);
}

.project-info p {
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--spacing-md);
}

.project-tech span {
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  color: var(--accent-color);
}

.project-links {
  display: flex;
  gap: var(--spacing-sm);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--spacing-md);
}

.carousel-prev, .carousel-next {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-bright);
  transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
  background-color: var(--primary-color);
}

.carousel-dots {
  display: flex;
  align-items: center;
  margin: 0 var(--spacing-md);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--accent-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

.project-card .project-image {
  height: 200px;
}

.project-card .project-info {
  padding: var(--spacing-md);
}

.project-card .project-info h3 {
  font-size: 1.5rem;
}

/* Contact Section */
.contact-section {
  position: relative;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom left, rgba(138, 43, 226, 0.1), transparent 40%);
  z-index: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.contact-form h3, .contact-info h3 {
  font-size: 1.75rem;
  color: var(--accent-color);
  margin-bottom: var(--spacing-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

input, textarea {
  width: 100%;
  padding: var(--spacing-sm);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-bright);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info p {
  margin-bottom: var(--spacing-md);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-md);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
}

.social-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.social-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.social-icon.linkedin {
  background-color: rgba(0, 119, 181, 0.2);
  color: #0077B5;
}

.social-icon.github {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}

.social-icon.instagram {
  background-color: rgba(225, 48, 108, 0.2);
  color: #E1306C;
}

.social-icon.email {
  background-color: rgba(138, 43, 226, 0.2);
  color: var(--primary-color);
}

.social-item span {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-medium);
}

/* Footer */
#footer {
  background-color: var(--background-medium);
  padding: var(--spacing-lg) 0;
  position: relative;
  overflow: hidden;
}

#footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 14, 23, 0), var(--background-medium));
  z-index: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.copyright p {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--text-bright);
  transform: translateY(-5px);
}

/* Scroll to Top Button */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-full);
  background-color: var(--primary-color);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

#scrollToTop.active {
  opacity: 1;
  visibility: visible;
}

#scrollToTop:hover {
  background-color: var(--accent-color);
  transform: translateY(-5px);
}

/* Particles Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
