/*
Theme Name: AMB CODE
Theme URI: https://ambcode.pl
Author: AMB CODE
Author URI: https://ambcode.pl
Description: Nowoczesny motyw WordPress dla agencji kreatywnej AMB CODE. Projektowanie stron WWW, branding, UX/UI Design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ambcode
Tags: creative, agency, portfolio, business
*/

:root {
  --primary: #4f7cff;
  --primary-dark: #3a5fd9;
  --primary-light: #6b92ff;
  --accent: #ff6b6b;
  --dark: #1a1d29;
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --border: #e2e8f0;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #4f7cff 0%, #6b92ff 100%);
  --shadow-sm: 0 2px 8px rgba(79, 124, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(79, 124, 255, 0.12);
  --shadow-lg: 0 16px 48px rgba(79, 124, 255, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --footer-bg: #1a1d29;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #f1f5f9;
  --text-light: #94a3b8;
  --border: #334155;
  --dark: #f8fafc;
  --nav-bg: rgba(15, 23, 42, 0.9);
  --card-bg: #1e293b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --footer-bg: #020617;
}

/* Dark mode text colors - explicit overrides */
[data-theme="dark"] body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}

[data-theme="dark"] .nav-link {
  color: var(--text) !important;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--text) !important;
}

[data-theme="dark"] p,
[data-theme="dark"] .section-description,
[data-theme="dark"] .hero-subtitle {
  color: var(--text-light) !important;
}

[data-theme="dark"] .card {
  background: var(--card-bg) !important;
  border-color: var(--border) !important;
}

[data-theme="dark"] .card h3,
[data-theme="dark"] .brief-card-title,
[data-theme="dark"] .brief-title,
[data-theme="dark"] .section-title {
  color: var(--text) !important;
}

[data-theme="dark"] .card p,
[data-theme="dark"] .brief-description {
  color: var(--text-light) !important;
}

[data-theme="dark"] .navbar {
  background: var(--nav-bg) !important;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

/* Grain overlay for texture */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' /%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 15px 40px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-img,
.logo img,
.custom-logo {
  height: 110px !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img,
.logo:hover img,
.logo:hover .custom-logo {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 45px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  position: relative;
  transition: all 0.3s ease;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 50%, var(--bg) 100%);
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #4f7cff, #6b92ff);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #a8c0ff, #3f2b96);
  bottom: -50px;
  right: -50px;
  animation-delay: -7s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

.reveal-text {
  display: inline-block;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.gradient-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Poppins', sans-serif;
}

.btn-primary {
  background: var(--gradient-2);
  color: white;
  box-shadow: 0 8px 24px rgba(79, 124, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79, 124, 255, 0.4);
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: fadeInUp 1s ease 1.2s both;
}

.scroll-indicator span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid var(--primary);
  border-radius: 15px;
  margin: 0 auto;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0%, 100% {
    top: 8px;
    opacity: 1;
  }
  50% {
    top: 16px;
    opacity: 0.5;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: var(--dark);
}

.section-description {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services {
  padding: 100px 0;
  background: var(--bg);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card {
  flex: 1 1 320px;
  max-width: 353px;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.card-icon {
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
  color: var(--primary);
}

.card:hover .card-icon {
  transform: scale(1.2) rotate(5deg);
}

.card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--dark);
  line-height: 1.3;
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-footer {
  margin-top: auto;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

.card:hover .card-link {
  transform: translateX(5px);
}

/* Process Section */
.process {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 60px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
}

.process-step {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
}

.step-number {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--primary);
  min-width: 120px;
  text-align: center;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.step-content:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.step-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
}

.step-content p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
  background: var(--bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 400px;
  background-color: var(--bg-alt);
}

.portfolio-item.large {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .portfolio-item.large {
    grid-column: span 1;
  }
}

.portfolio-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.5s ease;
  overflow: hidden;
  z-index: 1;
}

.portfolio-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

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

.portfolio-overlay h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.portfolio-overlay p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 15px;
}

.portfolio-link {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-link {
  transform: translateX(5px);
}

/* Team Section */
.team {
  padding: 100px 0;
  background: var(--bg-alt);
}

.team-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 40px;
}

.team-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.team-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.team-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
}

.value-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.value-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: var(--bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-alt);
  padding: 60px;
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .contact-wrapper {
  background: var(--bg-alt);
}

.contact-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--dark);
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-detail {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 32px;
  background: var(--card-bg);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
}

.contact-detail strong {
  display: block;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-detail p {
  color: var(--text-light);
  margin: 0;
}

.contact-form {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--bg);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
}

.form-group select {
  color: var(--text-light);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 45px;
}

[data-theme="dark"] .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn-primary {
  width: 100%;
  margin-top: 10px;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  line-height: 1.7;
}

.footer-brand .logo-img,
.footer-brand .logo img,
.footer-brand .custom-logo {
  height: 60px !important;
  width: auto !important;
  max-width: none !important;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

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

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Language Selector */
.lang-selector {
  position: relative;
  display: inline-block;
}

.current-lang {
  padding: 8px 16px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-lang:hover {
  border-color: var(--primary);
  background: white;
}

.current-lang::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.lang-dropdown.active .current-lang::after {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.lang-option:first-child {
  border-radius: 10px 10px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 10px 10px;
}

.lang-option:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.lang-option.active {
  background: var(--primary);
  color: white;
}

.lang-option.active:hover {
  background: var(--primary-dark);
}

/* Startup Brief Section */
.startup-brief {
  padding: 100px 0;
  background: var(--bg);
  overflow: hidden;
}

.brief-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.brief-content {
  position: relative;
  z-index: 2;
}

.brief-title {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -1px;
  color: var(--dark);
  line-height: 1.2;
}

.brief-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.brief-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brief-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.check-icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.brief-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.brief-card-link {
  text-decoration: none;
  display: block;
  position: relative;
  z-index: 2;
}

.brief-card {
  position: relative;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  z-index: 2;
  transition: all 0.3s ease;
}

.brief-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(79, 124, 255, 0.2);
}

.brief-card-link:hover .brief-form-button {
  background: var(--primary-dark);
  transform: scale(1.02);
}

.brief-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.brief-card-dots {
  display: flex;
  gap: 6px;
}

.brief-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-light);
  opacity: 0.3;
}

.brief-card-dots span:nth-child(1) {
  background: #ff5f57;
  opacity: 1;
}

.brief-card-dots span:nth-child(2) {
  background: #ffbd2e;
  opacity: 1;
}

.brief-card-dots span:nth-child(3) {
  background: #28ca42;
  opacity: 1;
}

.brief-card-title {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.brief-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brief-form-line {
  height: 12px;
  background: var(--bg-alt);
  border-radius: 6px;
  animation: pulse 2s infinite ease-in-out;
}

.brief-form-line.short {
  width: 60%;
}

.brief-form-line.medium {
  width: 80%;
}

.brief-form-button {
  margin-top: 8px;
  padding: 14px 28px;
  background: var(--gradient-2);
  color: white;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(79, 124, 255, 0.25);
  animation: pulse 2s infinite ease-in-out;
  animation-delay: 0.5s;
  transition: all 0.3s ease;
  cursor: pointer;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .brief-card {
  background: var(--card-bg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .brief-card:hover {
  box-shadow: 0 20px 60px rgba(79, 124, 255, 0.3);
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  background: var(--bg);
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  flex: 1 1 320px;
  max-width: 380px;
  background: var(--card-bg);
  padding: 50px 40px;
  border-radius: 24px;
  border: 2px solid var(--border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.pricing-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-15px);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-2);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(79, 124, 255, 0.3);
}

.pricing-header {
  text-align: center;
  margin-bottom: 30px;
}

.pricing-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}

.pricing-header .price {
  font-size: 36px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

[data-theme="dark"] .pricing-card.popular {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(79, 124, 255, 0.05) 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .brief-wrapper {
    gap: 60px;
  }
  .brief-title {
    font-size: 42px;
  }
}

@media (max-width: 768px) {
  .startup-brief {
    padding: 80px 0;
  }
  .brief-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .brief-title {
    font-size: 36px;
  }
  .brief-description {
    font-size: 16px;
  }
  .brief-visual {
    min-height: 400px;
  }
  .brief-card {
    max-width: 100%;
  }
  .pricing-card.popular {
    transform: scale(1);
    margin-top: 20px;
  }
  .pricing-card.popular:hover {
    transform: translateY(-10px);
  }
  .pricing-grid {
    padding: 0 20px;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .portfolio-item.large {
    grid-column: span 1;
    height: 350px;
  }
  .team-content {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.gtranslate_wrapper {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 999999 !important;
}

.gtranslate_wrapper select {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.gtranslate_wrapper select:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .gtranslate_wrapper select {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--border);
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 48px;
  }
  .section-title {
    font-size: 36px;
  }
  .cards {
    flex-direction: column;
  }
  .card {
    max-width: 100%;
  }
  .process-timeline::before {
    left: 30px;
  }
  .step-number {
    min-width: 80px;
    font-size: 32px;
    padding: 15px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .team-stats {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
  margin-left: 20px;
}

.theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle svg {
  transform: rotate(360deg);
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

/* Dark mode specific overrides */
[data-theme="dark"] .hero-bg .blob {
  opacity: 0.15;
}

[data-theme="dark"] .step-number,
[data-theme="dark"] .step-content {
  background: var(--card-bg);
}

[data-theme="dark"] .portfolio {
  background: var(--bg) !important;
}

[data-theme="dark"] .portfolio-image {
  background: var(--bg-alt) !important;
}

[data-theme="dark"] .navbar.scrolled {
  background: var(--nav-bg);
}

/* Language Toggle Button */
.lang-toggle {
  background: none;
  border: 2px solid var(--border);
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
  margin-left: 15px;
  position: relative;
}

.lang-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.lang-toggle svg {
  width: 22px;
  height: 22px;
  transition: all 0.3s ease;
}

.lang-toggle:hover svg {
  transform: scale(1.1);
}

.flag-pl,
.flag-en {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Default: show English flag (to switch TO English when clicked) */
.flag-pl {
  display: none;
}

.flag-en {
  display: block;
}
