/* ====================================
   aifense.eu - Clean Minimal Design
   ==================================== */

:root {
  /* Colors */
  --green: #2D5A4A;
  --green-light: #3D7A64;
  --orange: #E07B3C;
  
  --black: #111111;
  --gray-600: #555555;
  --gray-400: #888888;
  --gray-200: #E5E5E5;
  --cream: #F7F5F2;
  --white: #FFFFFF;
  
  /* Typography */
  --font-main: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.6;
  color: var(--black);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

/* ====================================
   Navigation
   ==================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-menu a {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--black);
}

.lang-toggle {
  display: flex;
  gap: 4px;
}

.lang-btn {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.nav-cta {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--green-light);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  border-top: 1px solid var(--gray-200);
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-menu a {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: 8px 0;
  display: block;
  transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
  color: var(--black);
}

.mobile-nav-cta {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease;
}

.mobile-nav-cta:hover {
  background: var(--green-light);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
  min-height: 100vh;
  padding: 140px var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--black);
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-family: var(--font-main);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: var(--space-md);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-cta {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--black);
  transition: all 0.2s ease;
}

.hero-cta:hover {
  color: var(--green);
  border-color: var(--green);
}

/* Hero Photo */
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo .photo-placeholder {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  background: var(--green);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(45, 90, 74, 0.3);
}

.hero-photo .photo-label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.hero-profile-img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(45, 90, 74, 0.3);
}

@keyframes morphBlob {
  0%, 100% { border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%; }
  25% { border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%; }
  50% { border-radius: 40% 50% 60% 50% / 50% 60% 40% 60%; }
  75% { border-radius: 50% 40% 50% 60% / 40% 50% 60% 50%; }
}

/* ====================================
   Services Section
   ==================================== */
.services {
  background: var(--white);
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.services-blob {
  position: absolute;
  border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%;
  animation: morphBlob 20s ease-in-out infinite;
  pointer-events: none;
}

.services-blob-1 {
  width: 400px;
  height: 400px;
  background: var(--green);
  opacity: 0.08;
  top: -150px;
  left: -150px;
}

.services-blob-2 {
  width: 250px;
  height: 250px;
  background: var(--orange);
  opacity: 0.12;
  bottom: -80px;
  right: -80px;
  animation-delay: -10s;
  animation-direction: reverse;
}

.services-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.services-header {
  margin-bottom: var(--space-xl);
}

.services-label {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.services-header h2 {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--black);
  position: relative;
  padding-bottom: 16px;
}

.services-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--green);
}

.service-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--gray-200);
}

.service-item:last-child {
  border-bottom: none;
}

.service-num {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.service-text h3 {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.service-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ====================================
   Statement Section
   ==================================== */
.statement {
  background: var(--green);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
}

.statement-content {
  max-width: 700px;
  margin: 0 auto;
}

.statement h2 {
  font-family: var(--font-main);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-md);
}

.statement p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.statement h3 {
  font-family: var(--font-main);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: #FFFFFF !important;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 16px;
}

.statement h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--white);
}

/* ====================================
   About Section
   ==================================== */
.about {
  background: var(--cream);
  padding: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.about-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--green);
  opacity: 0.06;
  border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%;
  right: -200px;
  top: 50%;
  transform: translateY(-50%);
  animation: morphBlob 25s ease-in-out infinite;
  pointer-events: none;
}

.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 800px;
  margin-bottom: var(--space-lg);
}

/* Credentials Grid */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.credential-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: var(--space-md);
  transition: all 0.2s ease;
}

.credential-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(45, 90, 74, 0.1);
}

.credential-card h4 {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.credential-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--gray-600);
}

/* Bug Bounty */
.bug-bounty {
  margin-top: var(--space-xl);
  text-align: center;
}

.bug-bounty-label {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.bug-bounty-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
}

.bug-bounty-logo {
  height: 50px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.bug-bounty-logo:hover {
  opacity: 1;
}

.bug-bounty-disclaimer {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: var(--space-sm);
}

.about-label {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.about-content h2 {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 16px;
}

.about-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--green);
}

.about-text {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ====================================
   Case Studies Section
   ==================================== */
.cases {
  background: var(--white);
  padding: var(--space-2xl) var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.cases-header {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
}

.cases-label {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.cases-header h2 {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--black);
  position: relative;
  padding-bottom: 16px;
}

.cases-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--green);
}

.cases-list {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.case-item {
  border: 1px solid var(--gray-200);
  margin-bottom: -1px;
}

.case-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  text-align: left;
}

.case-header:hover {
  background: var(--cream);
}

.case-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.case-num {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.case-title h3 {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.case-tag {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--gray-400);
  min-width: 140px;
  text-align: right;
}

.case-icon {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.case-item.open .case-icon {
  transform: rotate(45deg);
}

.case-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.case-item.open .case-body {
  max-height: 800px;
}

@media (max-width: 900px) {
  .case-item.open .case-body {
    max-height: 1200px;
  }
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--cream);
  border-top: 1px solid var(--gray-200);
}

.case-col h4 {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: var(--space-sm);
}

.case-col p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ====================================
   Contact Section
   ==================================== */
.contact {
  background: var(--green);
  padding: var(--space-2xl) var(--space-lg);
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.contact-label {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-sm);
}

.contact-info h2 {
  font-family: var(--font-main);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: 16px;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--white);
}

.contact-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.contact-details p {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-btn {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  padding: 20px 48px;
  background: var(--white);
  color: var(--green);
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-btn:hover {
  background: var(--cream);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: var(--cream);
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  background: var(--green);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background: var(--green-light);
}

.form-message {
  margin-top: var(--space-sm);
  font-size: 14px;
  text-align: center;
}

.form-message.success { color: var(--green); }
.form-message.error { color: #C53030; }

/* ====================================
   Footer
   ==================================== */
.footer {
  background: var(--green);
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-copy {
  font-family: var(--font-main);
  font-size: 12px;
  color: var(--gray-400);
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero-photo {
    order: -1;
    justify-content: center;
  }
  
  .hero-photo .photo-placeholder {
    max-width: 280px;
    aspect-ratio: 1/1;
    border-radius: 50%;
  }
  
  .hero-profile-img {
    max-width: 280px;
    aspect-ratio: 1/1;
    border-radius: 50%;
  }
  
  .hero-content {
    text-align: center;
    max-width: 100%;
  }
  
  .hero-sub {
    max-width: 100%;
  }
  
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-inner {
    grid-template-columns: 1fr;
  }
  
  .case-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .case-tag {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .nav-cta {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  :root {
    --space-lg: 32px;
    --space-xl: 56px;
    --space-2xl: 80px;
  }
  
  .nav {
    padding: var(--space-sm);
  }
  
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  
  .hero-photo .photo-placeholder {
    max-width: 200px;
    box-shadow: 0 10px 40px rgba(45, 90, 74, 0.25);
  }
  
  .hero-profile-img {
    max-width: 200px;
    box-shadow: 0 10px 40px rgba(45, 90, 74, 0.25);
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .service-item {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }
  
  .services-blob-1,
  .services-blob-2 {
    opacity: 0.05;
  }
  
  .credentials-grid {
    grid-template-columns: 1fr;
  }
  
  .credential-card {
    padding: var(--space-sm);
  }
  
  .case-header {
    padding: var(--space-md);
  }
  
  .case-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
