:root {
  --primary: #0a0a0a;
  --secondary: #151515;
  --accent: #c00000;
  --accent-light: #ff0000;
  --accent-purple: #6a0dad;
  --accent-blue: #000080;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --border: #333333;
  --success: #00cc66;
  --warning: #ffcc00;
  --danger: #ff3300;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Interactive Background Canvas */
#magic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: #000;
}

/* Main Layout */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex: 1;
}

/* Left Section - Hero Image */
.hero-section {
  width: 40%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.7);
  border-right: 1px solid var(--border);
}

.hero-image-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
}

.hero-image-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ff0000, #6a0dad, #4b0082, #ff0000);
  background-size: 400% 400%;
  z-index: -1;
  border-radius: 17px;
  animation: rgb-border 5s ease infinite;
  opacity: 0.7;
}

.hero-image-container:hover {
  transform: scale(1.03) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 15px;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  background: linear-gradient(90deg, #ff0000, #6a0dad, #4b0082, #ff0000);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rgb-text 5s linear infinite;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Right Section - Content */
.content-section {
  width: 60%;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.navbar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(192, 0, 0, 0) 0%, 
    rgba(192, 0, 0, 1) 50%, 
    rgba(192, 0, 0, 0) 100%);
  animation: flow-light 5s linear infinite;
}

@keyframes flow-light {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-link {
  margin-right: 2rem;
  position: relative;
}

.nav-link:last-child {
  margin-right: 0;
}

.nav-link a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-purple) 100%);
  transition: width 0.3s ease;
}

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

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

/* Social Links */
.social-links {
  display: flex;
  list-style: none;
}

.social-link {
  margin-right: 1rem;
}

.social-link:last-child {
  margin-right: 0;
}

.social-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent) 0%, var(--accent-purple) 100%);
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-link a::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link a:hover::before {
  opacity: 1;
}

.social-link a:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

/* Content */
.welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-shadow: 0 0 10px rgba(192, 0, 0, 0.5);
}

.welcome-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: linear-gradient(45deg, var(--accent) 0%, var(--accent-purple) 100%);
  background-size: 200% 200%;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: gradient-shift 5s ease infinite;
  text-decoration: none;
}

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

.cta-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.cta-button i {
  margin-right: 10px;
}

/* Floating Elements Animation */
.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  animation: float-element 15s ease-in-out infinite;
}

@keyframes float-element {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Animations */
@keyframes rgb-border {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rgb-text {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }
  
  .hero-section, .content-section {
    width: 100%;
  }
  
  .hero-section {
    padding: 2rem 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .welcome-description {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    justify-content: center;
  }
  
  .nav-link {
    margin-right: 1rem;
  }
  
  .social-links {
    justify-content: center;
  }
}