/*
   generativeaiporn.love - Main Styles
   Teal/Green tech-inspired theme with modern grid layout
*/

:root {
  /* Color Palette - Teal/Green Tech Theme */
  --primary: #00BFA6;       /* Teal */
  --primary-light: #5DF2D6; /* Light Teal */
  --primary-dark: #008E76;  /* Dark Teal */
  --accent: #2E7D32;        /* Green */
  --accent-light: #60AD5E;  /* Light Green */
  --accent-dark: #005005;   /* Dark Green */
  --text-light: #FFFFFF;    /* White */
  --text-dark: #263238;     /* Dark Blue Grey */
  --bg-light: #ECEFF1;      /* Light Grey Blue */
  --bg-dark: #102027;       /* Dark Grey Blue */
  --grey: #B0BEC5;          /* Medium Grey */
  --border: rgba(176, 190, 197, 0.3);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Header */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo svg {
  height: 40px;
  width: 40px;
}

.logo-text {
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

nav .nav-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (min-width: 768px) {
  nav .nav-toggle {
    display: none;
  }
}

nav ul {
  display: none;
  list-style: none;
}

nav ul.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

@media (min-width: 768px) {
  nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  nav ul.active {
    position: static;
    box-shadow: none;
    padding: 0;
  }
}

nav ul li {
  margin: 0.5rem 1rem;
}

nav ul a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  position: relative;
}

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

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

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

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 80% 20%, var(--primary-light) 0%, transparent 25%),
    radial-gradient(circle at 20% 80%, var(--accent-light) 0%, transparent 25%);
  opacity: 0.1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

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

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 191, 166, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 191, 166, 0.6);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

/* Feature Grid Section */
.features {
  padding: 5rem 0;
  background: var(--bg-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent));
  border-image-slice: 1;
}

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

.feature-icon {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 60px;
  height: 60px;
}

.feature-content {
  padding: 0 2rem 2rem;
  text-align: center;
}

.feature-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Gallery Section */
.gallery {
  padding: 5rem 0;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-dark), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img svg {
  width: 80%;
  height: 80%;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-btn {
  background: var(--primary);
  color: var(--text-light);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.gallery-item:hover .gallery-btn {
  transform: translateY(0);
}

.gallery-btn:hover {
  background: var(--primary-light);
}

/* Stats Section */
.stats {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-light);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.stat-item p {
  font-size: 1rem;
  opacity: 0.9;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%2300BFA6' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z'%3E%3C/path%3E%3C/svg%3E");
}

.cta-container {
  background: white;
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

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

.footer-logo svg {
  height: 48px;
  width: 48px;
}

.footer-logo h3 {
  color: var(--text-light);
  margin-bottom: 0;
  font-size: 1.5rem;
}

.footer-text {
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 5px;
}

.copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

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

.fade-up {
  animation: fadeUp 0.6s ease forwards;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero {
    padding: 4rem 0;
    height: auto;
    min-height: 80vh;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .cta-container {
    padding: 2rem 1rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 3.5rem;
  }
}

/* Advanced CSS - Background patterns */
.pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 20px 20px;
  background-image: 
    radial-gradient(circle, var(--primary) 1px, transparent 1px),
    radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-position: 0 0, 10px 10px;
  opacity: 0.05;
  z-index: 0;
}
