/* ============================================
   MOLIAM - Modern AI Marketing Agency Styles
   ============================================ */

/* CSS Variables for consistency */
:root {
  --primary-gradient-start: #0f172a;
  --primary-gradient-end: #581c87;
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --text-glow: #e9d5ff;
  --card-bg: rgba(30, 41, 59, 0.7);
  --glass-opacity: 0.6;
  --transition-speed: 0.3s;
  --border-pale: rgba(255, 255, 245, 0.1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-pale);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

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

nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  transition: all var(--transition-speed);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  transition: width var(--transition-speed);
}

nav a:hover {
  opacity: 1;
  color: #d8b4fe;
}

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

/* Hero Section */
header {
  padding-top: 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(168, 85, 247, 0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,218.7C672,203,768,149,864,133.3C960,117,1056,139,1152,160C1248,181,1344,203,1392,213.3L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  pointer-events: none;
}

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

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  animation: fadeInUp 1s ease-out;
}

.subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  opacity: 0.9;
  max-width: 650px;
  margin-bottom: 2rem;
  line-height: 1.7;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Buttons */
.btn-main {
  display: inline-block;
  background: linear-gradient(90deg, #7c3aed, #db2777);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  margin: 0.5rem;
  transition: all var(--transition-speed);
  box-shadow: 0 8px 20px rgba(168, 99, 247, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(192, 46, 163, 0.6);
}

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

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  background: rgba(30, 41, 59, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: -1px;
}

.section:nth-child(even) {
  background: rgba(30, 41, 59, 0.3);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1200px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  transition: all var(--transition-speed);
  position: relative;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-purple), transparent);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-purple);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.35);
}

.icon {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.5));
  animation: float 3s ease-in-out infinite;
}

.card:nth-child(2n) .icon {
  animation-delay: 1.5s;
}

.card h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--text-glow);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.card p {
  opacity: 0.85;
  line-height: 1.7;
  text-align: left;
}

/* Form Styles */
form {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(51, 65, 85, 0.6);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--text-glow);
  font-weight: 500;
  font-size: 1rem;
}

input, textarea {
  width: 100%;
  padding: clamp(0.75rem, 1.5vw, 1rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 0.75rem;
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  transition: all var(--transition-speed);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.25);
  background: rgba(30, 41, 59, 0.95);
}

input::placeholder, textarea::placeholder {
  color: rgba(233, 213, 255, 0.6);
}

button[type="submit"] {
  background: linear-gradient(90deg, #7c3aed, #db2777);
  color: white;
  padding: clamp(1rem, 2vw, 1.5rem) 2rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-speed);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(192, 46, 163, 0.5);
}

/* Footer */
footer {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border-pale);
  margin-top: auto;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0;
  }
  
  .nav-container {
    padding: 1rem;
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  header {
    padding-top: 5rem;
    padding: 3rem 1.5rem;
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Loading States */
.loading .card {
  opacity: 0.6;
  pointer-events: none;
}

/* Scrollbar Customization - Chrome/Safari/Webkit */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #581c87, #7c3aed);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c3aed, #db2777);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
