/* Modern Dark Mode Professional Design */
:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #707070;
  --accent-primary: #00d4ff;
  --accent-secondary: #0099cc;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #007acc 100%);
  --border-color: #333333;
  --shadow-light: rgba(0, 212, 255, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.5);
  
  /* Light Theme Colors */
  --light-bg-primary: #ffffff;
  --light-bg-secondary: #f8f9fa;
  --light-bg-tertiary: #e9ecef;
  --light-text-primary: #1a1a1a;
  --light-text-secondary: #4a4a4a;
  --light-text-muted: #6c757d;
  --light-border-color: #dee2e6;
  --light-shadow: rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 18px;
  transition: all 0.3s ease;
}

/* Light Theme Styles */
body.light-theme {
  --bg-primary: var(--light-bg-primary);
  --bg-secondary: var(--light-bg-secondary);
  --bg-tertiary: var(--light-bg-tertiary);
  --text-primary: var(--light-text-primary);
  --text-secondary: var(--light-text-secondary);
  --text-muted: var(--light-text-muted);
  --border-color: var(--light-border-color);
  --shadow-light: var(--light-shadow);
  --shadow-heavy: var(--light-shadow);
}

/* Light theme specific fixes */
body.light-theme .hero-content h1 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

body.light-theme .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modern-loader {
  width: 60px;
  height: 60px;
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.98);
  padding: 10px 0;
  box-shadow: 0 4px 20px var(--shadow-heavy);
}

.navbar-brand .logo {
  height: 45px;
  transition: all 0.3s ease;
}

.navbar-nav li a {
  color: var(--text-primary) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px !important;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-nav li a:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav li a:hover:before,
.navbar-nav li.current a:before {
  width: 80%;
}

.navbar-nav li a:hover {
  color: var(--accent-primary) !important;
}

/* Hero Section */
#hero-area {
  background: var(--bg-primary);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

#hero-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 153, 204, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 35px;
  line-height: 1.8;
}

.btn-modern {
  background: var(--accent-gradient);
  color: white;
  padding: 15px 35px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-modern:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.6s ease;
}

.btn-modern:hover:before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-light);
  color: white;
  text-decoration: none;
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-heavy);
  transition: all 0.3s ease;
}

.hero-image:hover img {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px var(--shadow-heavy);
}

/* Features Section */
.features-section {
  background: var(--bg-secondary);
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: all 0.3s ease;
}

.feature-card:hover:before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-light);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 35px;
  color: white;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

.pricing-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card.featured {
  border: 2px solid var(--accent-primary);
  transform: scale(1.05);
}

.pricing-card.featured:before {
  content: 'Most Popular';
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-gradient);
  color: white;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-light);
}

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
}

.pricing-header h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 25px;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: var(--accent-primary);
  margin-right: 10px;
}

/* About Section */
.about-section {
  background: var(--bg-secondary);
  padding: 100px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 25px;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow-heavy);
}

/* Contact Section */
.contact-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

.contact-form {
  background: var(--bg-tertiary);
  border-radius: 20px;
  padding: 50px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 25px;
}

.form-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 20px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px var(--shadow-light);
  background: var(--bg-primary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  margin-bottom: 30px;
}

.footer-logo img {
  height: 50px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.social-links a {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-fade-left {
  animation: fadeInLeft 0.8s ease forwards;
}

.animate-fade-right {
  animation: fadeInRight 0.8s ease forwards;
}

/* Particles Background */
.particles-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .about-content {
    flex-direction: column;
    gap: 40px;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .theme-toggle {
    top: 10px;
    right: 10px;
    padding: 8px 15px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-10px);
  }
}

/* Additional Styles for New Elements */

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Floating Cards */
.hero-dashboard {
  position: relative;
}

.floating-cards {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 10px 30px var(--shadow-heavy);
}

.floating-card i {
  color: var(--accent-primary);
  font-size: 18px;
}

.floating-card span {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.floating-card.card-1 {
  top: 20%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  top: 60%;
  left: -15%;
  animation-delay: 1s;
}

.floating-card.card-3 {
  bottom: 25%;
  right: -5%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
}

/* About Features */
.about-features {
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.about-feature:hover {
  transform: translateX(10px);
  border-color: var(--accent-primary);
}

.about-feature i {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.about-feature h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.about-feature p {
  color: var(--text-secondary);
  margin: 0;
}

/* About Stats */
.about-stats {
  position: absolute;
  bottom: -20px;
  left: 20px;
  right: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 10px 30px var(--shadow-heavy);
}

.about-stats .stat {
  text-align: center;
}

.about-stats .stat h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.about-stats .stat p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Details */
.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-light);
}

.contact-item i {
  width: 45px;
  height: 45px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Form Messages */
.form-messages {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  display: none;
}

.form-messages.success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid #28a745;
  color: #28a745;
  display: block;
}

.form-messages.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid #dc3545;
  color: #dc3545;
  display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-stats {
    gap: 20px;
    margin-top: 30px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .floating-cards {
    display: none;
  }
  
  .about-stats {
    position: static;
    margin-top: 30px;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-item {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .about-feature {
    padding: 15px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}