/* Base styles for aixiporn.pw - Triangular design theme */
:root {
  --primary: #ffc107;
  --primary-dark: #ff9800;
  --accent: #00bcd4;
  --accent-dark: #0097a7;
  --dark: #212121;
  --light: #f5f5f5;
  --gray: #757575;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* Pattern overlay */
.pattern-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(30deg, var(--dark) 12%, transparent 12.5%, transparent 87%, var(--dark) 87.5%, var(--dark)),
    linear-gradient(150deg, var(--dark) 12%, transparent 12.5%, transparent 87%, var(--dark) 87.5%, var(--dark)),
    linear-gradient(30deg, var(--dark) 12%, transparent 12.5%, transparent 87%, var(--dark) 87.5%, var(--dark)),
    linear-gradient(150deg, var(--dark) 12%, transparent 12.5%, transparent 87%, var(--dark) 87.5%, var(--dark)),
    linear-gradient(60deg, var(--dark) 25%, transparent 25.5%, transparent 75%, var(--dark) 75%, var(--dark)),
    linear-gradient(60deg, var(--dark) 25%, transparent 25.5%, transparent 75%, var(--dark) 75%, var(--dark));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  opacity: 0.03;
  z-index: -1;
}

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

h1 {
  font-size: 2.8rem;
}

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

h3 {
  font-size: 1.5rem;
}

.accent {
  color: var(--primary);
}

p {
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 800px;
}

/* Header */
header {
  background-color: var(--dark);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

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

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

.triangle-logo {
  width: 40px;
  height: 35px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.triangle-logo span {
  color: var(--dark);
  font-weight: bold;
  position: absolute;
  font-size: 0.8rem;
}

.triangle-logo span:first-child {
  top: 8px;
  left: 13px;
}

.triangle-logo span:last-child {
  top: 8px;
  right: 13px;
}

.brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
}

.domain {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--white);
  transition: all 0.3s ease;
}

.primary-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.primary-nav a {
  color: var(--white);
  font-weight: 500;
  position: relative;
}

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

.primary-nav a:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--primary);
  color: var(--dark) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.nav-btn:hover {
  background: var(--primary-dark);
}

.nav-btn::after {
  display: none;
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background-color: var(--dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

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

.hero-text {
  flex: 1;
  max-width: 600px;
}

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

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-visual {
  flex: 1;
  position: relative;
  height: 300px;
}

.triangle {
  position: absolute;
  background: var(--primary);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.triangle-1 {
  width: 150px;
  height: 150px;
  top: 20px;
  left: 50px;
  opacity: 0.8;
  animation: float 5s ease-in-out infinite;
  transform: rotate(0deg);
}

.triangle-2 {
  width: 100px;
  height: 100px;
  top: 100px;
  left: 180px;
  background: var(--accent);
  opacity: 0.6;
  animation: float 7s ease-in-out infinite 1s;
  transform: rotate(45deg);
}

.triangle-3 {
  width: 80px;
  height: 80px;
  top: 180px;
  left: 100px;
  background: var(--primary-dark);
  opacity: 0.7;
  animation: float 6s ease-in-out infinite 0.5s;
  transform: rotate(-45deg);
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.ai-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--dark);
  color: var(--white);
  padding: 1rem;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--primary);
  z-index: 2;
}

.ai-badge span:first-child {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

.badge-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button {
  display: inline-block;
  background: var(--primary);
  color: var(--dark);
  padding: 0.8rem 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

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

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.angle-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--light);
  clip-path: polygon(0 80px, 100% 0, 100% 80px);
}

/* About Section */
.about {
  padding: 6rem 0;
  position: relative;
}

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

.card {
  background: var(--white);
  border-radius: 0;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  border-left: 4px solid var(--primary);
}

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

.card-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Experience Section */
.experience {
  padding: 6rem 0;
  background-color: var(--white);
  position: relative;
}

.steps {
  margin-top: 3rem;
}

.step {
  display: flex;
  margin-bottom: 2.5rem;
  position: relative;
}

.step-number {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-right: 2rem;
}

.step-content {
  flex: 1;
}

.triangle-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  overflow: hidden;
}

.triangle-div {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--dark);
  clip-path: polygon(0 80px, 100% 0, 100% 80px);
}

/* Tech Section */
.tech {
  padding: 6rem 0;
  background-color: var(--dark);
  color: var(--white);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  padding: 1.5rem;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

.feature h3 {
  color: var(--primary);
}

.feature p {
  color: rgba(255, 255, 255, 0.8);
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: var(--white);
  text-align: center;
}

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

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

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

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
}

.footer-brand-info h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand-info p {
  color: var(--gray);
  margin-bottom: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.nav-group h4 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.nav-group ul li {
  margin-bottom: 0.8rem;
}

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

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

.footer-notice {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .primary-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    z-index: 100;
  }
  
  .primary-nav.active {
    max-height: 300px;
  }
  
  .primary-nav ul {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-nav {
    grid-template-columns: 1fr;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 1.5rem;
  }
}
