/* 
 * NSFWTOOLS.LOVE - Main Stylesheet
 * Dark Blue & Cyan Theme with Hexagonal Elements
 */

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables */
:root {
  /* Primary colors - unique blue/cyan theme */
  --primary-dark: #1e3a8a;
  --primary-main: #0369a1;
  --primary-light: #00bfff;
  --accent: #0ff4c6;
  
  /* Neutral colors */
  --dark: #121826;
  --medium-dark: #1e293b;
  --medium: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  
  /* Gradients */
  --gradient-main: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary-light));
  
  /* Typography */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  color: var(--primary-dark);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60%;
  height: 4px;
  background: var(--gradient-main);
  border-radius: var(--radius-sm);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--medium);
}

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

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

/* Layout and Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.two-column {
  grid-template-columns: 1fr;
}

.three-column {
  grid-template-columns: 1fr;
}

.four-column {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .three-column {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .four-column {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .four-column {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-medium);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: all var(--transition-medium);
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
}

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

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-icon {
  margin-left: var(--space-sm);
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  transition: all var(--transition-medium);
}

.logo-text {
  font-size: 1.5rem;
  transition: all var(--transition-medium);
}

/* Hamburger Menu */
.hamburger {
  display: block;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 2000;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--primary-dark);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 9px;
}

.hamburger span:nth-child(3) {
  top: 18px;
}

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-135deg);
}

/* Navigation Menu */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--medium-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-medium);
  z-index: 1500;
}

.nav.active {
  right: 0;
}

.nav-menu {
  list-style: none;
  text-align: center;
}

.nav-menu li {
  margin-bottom: var(--space-lg);
}

.nav-link {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: all var(--transition-medium);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
  
  .nav {
    position: relative;
    right: 0;
    width: auto;
    height: auto;
    background: transparent;
  }
  
  .nav-menu {
    display: flex;
    gap: var(--space-lg);
  }
  
  .nav-menu li {
    margin-bottom: 0;
  }
  
  .nav-link {
    color: var(--primary-dark);
    font-size: 1rem;
  }
}

/* Hero Section */
.hero {
  padding: calc(var(--space-xl) * 2) 0 var(--space-xl);
  background: var(--white);
  position: relative;
}

.hero-hexagon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Hexagon Background Elements */
.hexagon-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.hex {
  position: absolute;
  width: 100px;
  height: 115px;
  background: var(--primary-light);
  opacity: 0.05;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transform: rotate(30deg);
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: var(--space-md);
}

/* Tools Section */
.tools {
  background-color: var(--white);
  position: relative;
}

.tools-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

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

.tool-card {
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--light);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  transition: all var(--transition-medium);
}

.tool-card::after {
  content: '';
  position: absolute;
  width: 150%;
  height: 150%;
  background: var(--gradient-main);
  top: -125%;
  left: -25%;
  transform: rotate(45deg);
  z-index: -1;
  transition: all var(--transition-slow);
}

.tool-card:hover::after {
  top: -75%;
}

.tool-card:hover {
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tool-card:hover h3,
.tool-card:hover p {
  color: var(--white);
}

.tool-card h3 {
  transition: all var(--transition-medium);
}

.tool-card p {
  transition: all var(--transition-medium);
  margin-top: auto;
}

.tool-number {
  position: absolute;
  right: var(--space-md);
  bottom: var(--space-md);
  font-size: 5rem;
  font-weight: 800;
  color: var(--primary-light);
  opacity: 0.1;
  transition: all var(--transition-medium);
}

.tool-card:hover .tool-number {
  color: var(--white);
  opacity: 0.2;
}

/* Benefits Section */
.benefits {
  background-color: var(--medium-dark);
  color: var(--white);
  position: relative;
}

.benefits .section-title h2 {
  color: var(--white);
}

.benefits-list {
  list-style: none;
  counter-reset: benefits-counter;
}

.benefit-item {
  display: flex;
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: 60px;
}

.benefit-item::before {
  counter-increment: benefits-counter;
  content: counter(benefits-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 45px;
  height: 45px;
  background: var(--gradient-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.benefit-item h3 {
  color: var(--primary-light);
  margin-bottom: var(--space-sm);
}

.benefit-item p {
  color: var(--light);
}

/* CTA Section */
.cta {
  background: var(--gradient-main);
  color: var(--white);
  text-align: center;
  padding: var(--space-xxl) 0;
}

.cta h2 {
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.cta p {
  color: var(--light);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
}

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

.cta .btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

/* FAQ Section */
.faq {
  background: var(--light);
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.faq-question {
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: all var(--transition-fast);
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: all var(--transition-fast);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--primary-main);
  transition: all var(--transition-fast);
}

.faq-icon::before {
  top: 11px;
  left: 0;
  width: 24px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 24px;
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--light);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
}

.footer-logo-icon {
  width: 40px;
  height: 40px;
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-text {
  color: var(--medium);
  margin-bottom: 0;
}

.footer-heading {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-light);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--medium);
  transition: all var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  text-align: center;
  color: var(--medium);
  font-size: 0.9rem;
}

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

/* Animation Classes */
.animate {
  opacity: 0;
  transition: all var(--transition-slow);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

.delay-400 {
  transition-delay: 0.4s;
}

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.hidden {
  display: none;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}
