/* Manus + Me Website Styles */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Alice&family=Raleway:wght@300;400;600&family=Montserrat:wght@400;600;700&display=swap');

/* CSS Variables */
:root {
  --red: #e31b23;
  --purple: #4b0082;
  --gold: #d4af37;
  --beige: #f5f5dc;
  --green: #2e8b57;
  --blue: #4169e1;
  --white: #ffffff;
  --black: #000000;
  
  --font-playfair: 'Playfair Display', serif;
  --font-alice: 'Alice', serif;
  --font-raleway: 'Raleway', sans-serif;
  --font-montserrat: 'Montserrat', sans-serif;
}

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

body {
  font-family: var(--font-raleway);
  color: var(--black);
  overflow-x: hidden;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, var(--beige) 25%, transparent 25%),
    linear-gradient(-45deg, var(--beige) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--beige) 75%),
    linear-gradient(-45deg, transparent 75%, var(--beige) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
  opacity: 0.2;
  z-index: -1;
}

/* Split Screen Layout */
.split-container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

.split-left {
  flex: 1;
  background-color: var(--purple);
  color: var(--white);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.split-right {
  flex: 1;
  background-color: var(--white);
  color: var(--black);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.split-left::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/science-bg.png');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.split-right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/creative-bg.png');
  background-size: cover;
  opacity: 0.1;
  z-index: 0;
}

.split-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 60px;
}

.logo img {
  height: 100%;
}

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

nav a {
  text-decoration: none;
  color: var(--black);
  font-family: var(--font-alice);
  font-size: 1.1rem;
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--red);
}

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

nav a:hover::after {
  width: 100%;
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1000;
}

/* Main Content */
main {
  padding-top: 100px;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-playfair);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.alice-text {
  font-family: var(--font-alice);
}

.montserrat-text {
  font-family: var(--font-montserrat);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  margin: 0.5rem 0;
}

.btn-primary {
  background-color: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #c01017;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(227, 27, 35, 0.3);
}

.btn-secondary {
  background-color: var(--purple);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #3a0066;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(75, 0, 130, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Rabbit Hole Elements */
.rabbit-hole {
  position: relative;
  text-align: center;
  margin: 2rem 0;
}

.rabbit-hole-btn {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--red);
  color: var(--white);
  font-family: var(--font-alice);
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.5s ease;
  z-index: 1;
}

.rabbit-hole-btn::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.5s ease;
}

.rabbit-hole-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.rabbit-hole-btn:hover::before {
  left: 100%;
}

/* Footer */
footer {
  background-color: var(--purple);
  color: var(--white);
  padding: 3rem 2rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: var(--font-alice);
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.footer-section p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--gold);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
}

.newsletter-form button {
  padding: 0.8rem 1.5rem;
  background-color: var(--gold);
  color: var(--purple);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #c09c30;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 992px) {
  .split-container {
    flex-direction: column;
  }
  
  .split-left, .split-right {
    min-height: 50vh;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transform: translateX(100%);
  }
  
  nav ul.active {
    display: flex;
    transform: translateX(0);
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .footer-section {
    flex: 100%;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-up {
  animation: slideUp 1s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
