/* 
   Modern CSS for sexyai.pro
   Optimized for SEO, performance, and mobile responsiveness
*/

:root {
  --primary-color: #ff3366;
  --secondary-color: #4b0082;
  --dark-color: #1a1a2e;
  --light-color: #f8f8f8;
  --text-color: #333333;
  --text-light: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 10px 30px rgba(75, 0, 130, 0.15);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 4.8rem;
  margin-bottom: 2rem;
}

h1 span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

h1 span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.3rem;
  background: var(--gradient);
  bottom: -0.5rem;
  left: 0;
}

h2 {
  font-size: 3.6rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  width: 8rem;
  height: 0.3rem;
  background: var(--gradient);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 2rem;
}

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

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

/* Layout & Containers */
section {
  padding: 10rem 5% 10rem;
}

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

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

.logo-icon {
  width: 4rem;
  height: 4rem;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-left: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

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

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

.btn-start {
  background: var(--gradient);
  color: var(--text-light);
  padding: 1rem 2rem;
  border-radius: 5rem;
  font-weight: 600;
}

.btn-start:hover {
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 2.4rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 248, 0.8));
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 30%, rgba(255, 51, 102, 0.05) 0%, transparent 50%), 
              radial-gradient(circle at 90% 70%, rgba(75, 0, 130, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  flex: 1;
  padding: 0 5%;
  max-width: 60rem;
}

.hero-content p {
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #666;
}

.hero-visual {
  flex: 1;
  max-width: 60rem;
  height: 40rem;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: var(--text-light);
  padding: 1.5rem 3rem;
  border-radius: 5rem;
  font-size: 1.8rem;
  font-weight: 600;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 51, 102, 0.3);
  color: var(--text-light);
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 5rem;
}

.about-text {
  flex: 1;
}

.about-visual {
  flex: 1;
  height: 30rem;
}

/* Features Section */
.features {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(255, 51, 102, 0.05);
  z-index: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-1rem);
}

.feature-icon {
  margin-bottom: 2rem;
}

/* Gallery Section */
.gallery {
  background-color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  height: 20rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-1rem);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.overlay p {
  color: white;
  text-align: center;
  margin: 0;
}

/* CTA Section */
.cta {
  background: var(--gradient);
  color: var(--text-light);
  text-align: center;
}

.cta h2 {
  color: var(--text-light);
}

.cta h2::after {
  background: rgba(255, 255, 255, 0.3);
}

.cta p {
  max-width: 60rem;
  margin: 0 auto 3rem;
  font-size: 2rem;
}

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

.cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 5rem 5% 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

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

.footer-logo span {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-left: 1rem;
}

.footer-links {
  display: flex;
  gap: 5rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section ul li a {
  color: #bbb;
}

.footer-section ul li a:hover {
  color: white;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  html {
    font-size: 57.5%; /* 9.2px = 1rem */
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-visual {
    width: 100%;
  }
  
  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%; /* 8.8px = 1rem */
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content, .hero-visual {
    max-width: 100%;
  }
  
  .hero-content {
    margin-bottom: 5rem;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 8rem;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 0.4s ease-in-out;
    z-index: 999;
  }
  
  nav.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  nav ul {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 50%; /* 8px = 1rem */
  }
  
  section {
    padding: 8rem 5%;
  }
  
  h1 {
    font-size: 3.6rem;
  }
  
  h2 {
    font-size: 3rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 3rem;
  }
}

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

.hero-content, .feature-card, .about-content, .gallery-item {
  animation: fadeIn 1s forwards;
}

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

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

.gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3) {
  animation-delay: 0.4s;
}

/* Accessibility */
:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
