/* 
   Styles for undresscode.love
   A modern, sleek design with gradients and smooth transitions
*/

/* Base Styles & CSS Reset */
:root {
  --primary-color: #FF3366;    /* Vibrant pink */
  --secondary-color: #FF9500;  /* Bright orange */
  --accent-color: #00C6FF;     /* Bright blue */
  --dark-color: #222222;       /* Near black */
  --light-color: #FFFFFF;      /* White */
  --text-color: #333333;       /* Dark gray for text */
  --bg-color: #F9F9F9;         /* Light gray background */
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4 {
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 1.5rem;
  color: #555;
}

ul {
  list-style: none;
}

section {
  padding: 5rem 0;
}

/* Background gradient overlay */
.gradient-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: radial-gradient(circle at top right, rgba(255, 51, 102, 0.05) 0%, transparent 70%),
              radial-gradient(circle at bottom left, rgba(0, 198, 255, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* Header */
header {
  padding: 1.5rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.logo span {
  margin-left: 12px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary-color);
}

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

/* Hero Section */
.hero {
  padding: 5rem 0 7rem;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #555;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  background: var(--gradient);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.button:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 51, 102, 0.4);
  color: white;
}

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

.button span {
  position: relative;
  z-index: 1;
}

.button .arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.button:hover .arrow {
  transform: translateX(4px);
}

.button.large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Features Section */
.features {
  background-color: white;
  border-radius: 30px 30px 0 0;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
}

.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.feature-card p {
  margin-bottom: 0;
  color: #666;
}

/* How It Works Section */
.how-it-works {
  background: linear-gradient(to bottom, white, #f9f9f9);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.step:last-child {
  margin-bottom: 0;
}

.step-number {
  background: var(--gradient);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
  margin-top: 0.25rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0;
}

/* Get Code Section */
.get-code {
  background: white;
  padding-top: 6rem;
  padding-bottom: 8rem;
  text-align: center;
}

.get-code p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f9f9f9 0%, #f2f2f2 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 3rem 2rem;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: #444;
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-logo span {
  margin-left: 10px;
  font-weight: 700;
  color: white;
}

.footer-links ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.footer-legal {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.footer-legal p:last-child {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .header-flex {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  .hero .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
  }
  
  .hero-content {
    margin-bottom: 0;
  }
  
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .benefits {
    flex-direction: row;
    justify-content: center;
    gap: 3rem;
  }
  
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  section {
    padding: 4rem 0;
  }
  
  .features {
    margin-top: -20px;
  }
}

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

.hero-content, .hero-visual, .feature-card, .step, .cta-box {
  animation: fadeIn 0.8s ease-out forwards;
}

.feature-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.4s;
}

.step:nth-child(2) {
  animation-delay: 0.15s;
}

.step:nth-child(3) {
  animation-delay: 0.3s;
}

.step:nth-child(4) {
  animation-delay: 0.45s;
}

/* Accessibility */
:focus {
  outline: 3px solid rgba(255, 51, 102, 0.5);
  outline-offset: 3px;
}
