/* CSS Variables for theming */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-color: #eaeaea;
  --text-secondary: #a0a0a0;
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.08);
  --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--highlight-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--highlight-color);
  transition: var(--transition);
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 50px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Typing Cursor Animation */
.typing-cursor {
  display: inline-block;
  margin-left: 3px;
  animation: blink 1s infinite;
  color: var(--highlight-color);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--highlight-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 2rem;
  color: var(--highlight-color);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--highlight-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
  animation: fadeInUp 1s ease-out 0.6s backwards;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
}

/* Section Styles */
.section {
  padding: 100px 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--highlight-color);
  border-radius: 2px;
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Music Player Container - Winamp Style */
.music-player-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Audio Visualizer */
#audioVisualizer {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.5);
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Audio Player */
#mainAudioPlayer {
  width: 100%;
  outline: none;
  display: block;
  background: rgba(0, 0, 0, 0.3);
}

/* Playlist */
.playlist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.2);
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.playlist-item.active {
  background: rgba(233, 69, 96, 0.3);
}

.track-number {
  color: var(--highlight-color);
  font-weight: bold;
  font-size: 0.9rem;
  min-width: 35px;
  font-family: monospace;
}

.track-name {
  color: var(--text-color);
  font-size: 1rem;
  flex: 1;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.portfolio-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.portfolio-card:hover {
  background: var(--card-hover);
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card h3 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.audio-player {
  width: 100%;
  margin-top: 1rem;
  border-radius: 10px;
  outline: none;
}

/* Video Section */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-item {
  animation: fadeIn 0.8s ease-out;
}

.video-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.video-card:hover {
  background: var(--card-hover);
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.video-card h3 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.video-wrapper {
  position: relative;
  width: 100%;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
}

.video-player {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* Business Plan Section */
.business-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.business-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.business-card:hover {
  background: var(--card-hover);
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.business-card h3 {
  color: var(--highlight-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.business-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  color: var(--text-secondary);
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.services-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--highlight-color);
  font-size: 1.2rem;
}

/* Contact Section */
.contact-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-intro {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-info {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.contact-item {
  padding: 1rem 0;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.contact-item strong {
  color: var(--text-color);
  margin-right: 0.5rem;
}

.contact-item a {
  color: var(--highlight-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--text-color);
}

/* Hero Education */
.hero-education {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.5s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button-secondary {
  background: transparent;
  border: 2px solid var(--highlight-color);
  box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.cta-button-secondary:hover {
  background: var(--highlight-color);
  box-shadow: 0 15px 40px rgba(233, 69, 96, 0.4);
}

/* Business Plan Specific Styles */
.business-header {
  text-align: center;
  margin-bottom: 3rem;
}

.business-tagline {
  font-size: 2rem;
  color: var(--highlight-color);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.business-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.business-card-full {
  grid-column: 1 / -1;
}

.business-link {
  color: var(--highlight-color);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  transition: var(--transition);
}

.business-link:hover {
  color: var(--text-color);
}

.business-download {
  margin-top: 1.5rem;
}

.download-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-button:hover {
  background: var(--highlight-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.3);
}

/* Footer */
.footer {
  background: var(--primary-color);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .portfolio-grid,
  .video-grid,
  .business-content {
    grid-template-columns: 1fr;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .music-player-container {
    padding: 1.5rem;
  }

  #audioVisualizer {
    height: 150px;
  }

  .now-playing h3 {
    font-size: 1.5rem;
  }

  .now-playing p {
    font-size: 0.9rem;
  }

  .track-number {
    min-width: 30px;
    font-size: 1rem;
  }

  .track-name {
    font-size: 1rem;
  }

  .track-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .cta-button {
    padding: 0.75rem 2rem;
  }
}
