/* 
 * Main Stylesheet for aiforporn.pw
 * Features mobile-responsive design and modern aesthetics
 */

/* CSS Reset and Base Styles */
:root {
  --primary-color: #6a11cb;
  --secondary-color: #2575fc;
  --accent-color: #ff0066;
  --background-color: #111133;
  --dark-color: #0a0a1e;
  --light-color: #f8f9fa;
  --text-color: #e6e6e6;
  --card-bg: rgba(255, 255, 255, 0.05);
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.8em;
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: 3rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  position: relative;
  display: inline-block;
}

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

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
  list-style: none;
}

/* Header and Navigation */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(10, 10, 30, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

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

.logo-svg {
  width: 100%;
  height: auto;
}

.logo-text {
  fill: white;
  font-size: 20px;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
}

nav ul {
  display: flex;
  align-items: center;
}

nav ul li {
  margin-left: 30px;
}

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

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  color: white;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 10px;
  background: white;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dark-color) 0%, var(--background-color) 100%);
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(106, 17, 203, 0.2), transparent 40%),
              radial-gradient(circle at 70% 30%, rgba(37, 117, 252, 0.2), transparent 40%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  width: 50%;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-visual {
  width: 45%;
}

.ai-illustration {
  width: 100%;
  height: auto;
}

/* SVG Styles */
.circle-outer {
  fill: none;
  stroke: rgba(106, 17, 203, 0.3);
  stroke-width: 2;
}

.circle-middle {
  fill: none;
  stroke: rgba(37, 117, 252, 0.5);
  stroke-width: 2;
}

.circle-inner {
  fill: rgba(255, 0, 102, 0.2);
  stroke: rgba(255, 0, 102, 0.7);
  stroke-width: 2;
}

.neural-line {
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 1;
}

.node {
  fill: rgba(255, 255, 255, 0.7);
}

/* Features Section */
.features {
  padding: 80px 0;
  background-color: var(--dark-color);
  position: relative;
}

.features h2 {
  text-align: center;
  margin-bottom: 60px;
}

.features h2:after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-icon-circle {
  fill: rgba(106, 17, 203, 0.2);
  stroke: var(--primary-color);
  stroke-width: 2;
}

.feature-icon-path {
  stroke: white;
  stroke-width: 2;
}

.feature-icon-rect {
  fill: rgba(37, 117, 252, 0.2);
  stroke: var(--secondary-color);
  stroke-width: 2;
}

.feature-icon-poly {
  fill: rgba(255, 0, 102, 0.2);
  stroke: var(--accent-color);
  stroke-width: 2;
}

.feature-icon-path-complex {
  fill: none;
  stroke: var(--secondary-color);
  stroke-width: 2;
}

.feature-icon-inner {
  fill: rgba(255, 255, 255, 0.3);
}

/* Technology Section */
.technology {
  padding: 80px 0;
  background: linear-gradient(0deg, var(--background-color) 0%, var(--dark-color) 100%);
  position: relative;
}

.tech-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
}

.tech-info {
  width: 48%;
}

.tech-info ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.tech-info ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.tech-info ul li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

.tech-visual {
  width: 45%;
}

.tech-svg {
  width: 100%;
  height: auto;
}

.brain-outline {
  fill: rgba(10, 10, 30, 0.8);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.neural-node {
  fill: rgba(37, 117, 252, 0.3);
  stroke: rgba(37, 117, 252, 0.8);
  stroke-width: 1;
}

.neural-connection {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--background-color);
  text-align: center;
}

.about .container {
  max-width: 800px;
}

.about p {
  margin-bottom: 30px;
}

.cta-container {
  margin-top: 40px;
}

.cta-button.primary {
  padding: 15px 35px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  padding: 60px 0 20px;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  width: 30%;
}

.footer-logo-svg {
  width: 150px;
  margin-bottom: 15px;
}

.footer-logo-text {
  fill: white;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Inter', sans-serif;
}

.footer-links {
  display: flex;
  width: 60%;
  justify-content: space-around;
}

.footer-section h4 {
  margin-bottom: 20px;
  color: var(--light-color);
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-section ul li a:hover {
  color: var(--light-color);
}

.footer-bottom {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

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

.footer-icon img {
  margin-left: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero .container,
  .tech-content {
    flex-direction: column;
  }

  .hero-content,
  .hero-visual,
  .tech-info,
  .tech-visual {
    width: 100%;
  }

  .hero-content {
    margin-bottom: 50px;
  }

  .tech-info {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--dark-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    clip-path: circle(0% at top right);
    transition: clip-path 0.4s ease-in-out;
    z-index: 100;
  }

  nav ul.show {
    clip-path: circle(150% at top right);
  }

  nav ul li {
    margin: 15px 0;
  }

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

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

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

  .footer-content {
    flex-direction: column;
  }

  .footer-logo {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-links {
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .footer-links {
    flex-direction: column;
  }

  .footer-section {
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-icon {
    margin-top: 15px;
    justify-content: center;
  }

  .hero {
    padding: 120px 0 60px;
  }
}
