/* ========== CSS VARIABLES & THEME ========== */
:root {
  --bg: #FAFAF7;
  --bg-alt: #F0EDE6;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --accent: #8B6F4E;
  --accent-light: #C4A97D;
  --accent-glow: rgba(139,111,78,0.15);
  --border: rgba(0,0,0,0.08);
  --blob1: rgba(139,111,78,0.07);
  --blob2: rgba(180,155,120,0.06);
  --blob3: rgba(100,80,55,0.05);
  --nav-bg: rgba(250,250,247,0.85);
  --marquee-bg: #1A1A1A;
  --marquee-text: #FAFAF7;
  --shadow: 0 4px 40px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 60px rgba(0,0,0,0.1);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'DM Serif Display', serif;
  --font-body: 'Outfit', sans-serif;
}

[data-theme="dark"] {
  --bg: #0E0E0C;
  --bg-alt: #1A1917;
  --bg-card: #1E1D1B;
  --text: #F0EDE6;
  --text-muted: #9A9590;
  --accent: #C4A97D;
  --accent-light: #D4BC96;
  --accent-glow: rgba(196,169,125,0.15);
  --border: rgba(255,255,255,0.08);
  --blob1: rgba(196,169,125,0.06);
  --blob2: rgba(180,155,120,0.05);
  --blob3: rgba(139,111,78,0.04);
  --nav-bg: rgba(14,14,12,0.85);
  --marquee-bg: #C4A97D;
  --marquee-text: #0E0E0C;
  --shadow: 0 4px 40px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 60px rgba(0,0,0,0.4);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ========== BLOB BACKGROUND ========== */
.blob-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blobFloat 20s ease-in-out infinite;
}
.blob-1 {
  width: 600px; height: 600px;
  background: var(--blob1);
  top: -10%; left: -5%;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: var(--blob2);
  top: 40%; right: -10%;
  animation-delay: -7s;
}
.blob-3 {
  width: 450px; height: 450px;
  background: var(--blob3);
  bottom: -5%; left: 30%;
  animation-delay: -14s;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 50px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.02); }
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img { transition: opacity 0.3s; }
[data-theme="dark"] .nav-logo-dark { display: none !important; }
[data-theme="dark"] .nav-logo-light { display: block !important; }
[data-theme="light"] .nav-logo-dark { display: block !important; }
[data-theme="light"] .nav-logo-light { display: none !important; }
.nav-logo span { color: var(--text); }
[data-theme="dark"] .portfolio-image img {
  filter: brightness(0) invert(1) sepia(1) saturate(3) hue-rotate(5deg) brightness(0.85);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* Theme toggle */
.theme-toggle {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}
.theme-toggle .sun, .theme-toggle .moon {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.theme-toggle .sun { opacity: 1; transform: rotate(0deg) scale(1); }
.theme-toggle .moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* CTA Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-arrow {
  display: inline-flex;
  width: 20px; height: 20px;
  transition: transform 0.3s;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.mobile-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 80px;
  z-index: 1;
  background: url('IlonkaNaPST.jpg') center/cover no-repeat fixed;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250,250,247,0.35) 0%, rgba(250,250,247,0.40) 50%, rgba(250,250,247,0.45) 100%);
  z-index: -1;
}
[data-theme="dark"] .hero::before {
  background: linear-gradient(180deg, rgba(14,14,12,0.35) 0%, rgba(14,14,12,0.40) 50%, rgba(14,14,12,0.45) 100%);
}
.hero-content {
  max-width: 900px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* Float images around hero */
.hero-float {
  position: absolute;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  animation: floatIn 1s forwards;
}
.hero-float img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-float-1 {
  width: 160px; height: 200px;
  top: 18%; left: 5%;
  animation-delay: 0.5s;
  animation-name: floatIn;
}
.hero-float-2 {
  width: 140px; height: 180px;
  top: 25%; right: 5%;
  animation-delay: 0.7s;
}
.hero-float-3 {
  width: 120px; height: 150px;
  bottom: 15%; left: 8%;
  animation-delay: 0.9s;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 0.85; transform: translateY(0) scale(1); }
}
.hero-float { animation-fill-mode: forwards; }
.hero-float-1 { animation: floatIn 1s 0.5s forwards, gentleFloat 8s 1.5s ease-in-out infinite; }
.hero-float-2 { animation: floatIn 1s 0.7s forwards, gentleFloat 7s 1.7s ease-in-out infinite; }
.hero-float-3 { animation: floatIn 1s 0.9s forwards, gentleFloat 9s 1.9s ease-in-out infinite; }
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* ========== MARQUEE ========== */
.marquee-section {
  background: var(--marquee-bg);
  color: var(--marquee-text);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  white-space: nowrap;
}
.marquee-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--marquee-text);
  opacity: 0.4;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SECTION STYLING ========== */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 40px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ========== BENTO GRID — O NAS ========== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.bento-card:hover::before { transform: scaleX(1); }
.bento-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-full { grid-column: span 3; }
.bento-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.bento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== STATS MARQUEE ========== */
.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========== SERVICES ACCORDION ========== */
.services-list {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.service-item:hover { border-color: var(--accent); }
.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  cursor: pointer;
  gap: 20px;
}
.service-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}
.service-toggle svg { transition: transform 0.3s; }
.service-item.active .service-toggle { background: var(--accent); border-color: var(--accent); }
.service-item.active .service-toggle svg { transform: rotate(45deg); }
.service-item.active .service-toggle svg line { stroke: #fff; }
.service-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.service-body-inner {
  padding: 0 32px 28px 80px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========== PORTFOLIO / SITES ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.portfolio-image {
  height: 200px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  overflow: hidden;
  position: relative;
}
.portfolio-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(139,111,78,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.portfolio-card:hover .portfolio-image::after { opacity: 1; }
.portfolio-info {
  padding: 24px;
}
.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.portfolio-tag {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* ===== Site Cards (5A light / 5B dark) ===== */
.site-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 30px 24px 28px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.site-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.4s;
}
.site-card:hover .site-card-bg { opacity: 1; }
.site-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(139,111,78,0.15);
}
.site-logo {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  transition: all 0.4s;
}
.site-card:hover .site-logo {
  opacity: 0.85;
}
.site-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
}
.site-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  position: relative;
  z-index: 1;
  transition: color 0.4s;
  margin-top: 6px;
}
.site-card:hover h3 { color: #fff; }
.site-card:hover p { color: rgba(255,255,255,0.75); }
/* Dark mode */
[data-theme="dark"] .site-card {
  background: #1a1714;
  border: 1px solid rgba(196,169,125,0.1);
}
[data-theme="dark"] .site-card h3 { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .site-card p { color: rgba(255,255,255,0.4); }
[data-theme="dark"] .site-card:hover h3 { color: #fff; }
[data-theme="dark"] .site-card:hover p { color: rgba(255,255,255,0.75); }

/* ========== CERTYFIKATY ========== */
.cert-section {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: 60px;
}
.cert-icon {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.cert-text h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.cert-text p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========== TESTIMONIALS ========== */
.testimonials-track {
  display: flex;
  gap: 20px;
  margin-top: 60px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 20px;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
  min-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  scroll-snap-align: start;
  transition: all 0.3s;
}
.testimonial-card:hover { border-color: var(--accent); }
.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
}
.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 60px;
}
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}
.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card h4 {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-card p {
  font-weight: 600;
  font-size: 0.95rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group { position: relative; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border 0.3s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ========== FOOTER ========== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 12px;
}
[data-theme="dark"] .footer-logo-dark { display: none !important; }
[data-theme="dark"] .footer-logo-light { display: block !important; }
[data-theme="light"] .footer-logo-dark { display: block !important; }
[data-theme="light"] .footer-logo-light { display: none !important; }
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== TRICOART SLIDER ========== */
.tc-slider {
  position: relative;
  z-index: 1;
  height: 340px;
  overflow: hidden;
  background: #1a1510;
}
.tc-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tc-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.tc-slide-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tc-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 6s ease-out;
}
.tc-slide.active .tc-slide-image img { transform: scale(1.06); }
.tc-slide-overlay {
  display: none;
}
[data-theme="dark"] .tc-slide-overlay {
  display: none;
}
.tc-slide-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 0 40px 0 60px;
  color: #443F3B;
}
.tc-slide-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(196,169,125,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.tc-slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.2;
  margin-bottom: 10px;
  color: #443F3B;
}
.tc-slide-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(68,63,59,0.75);
  margin-bottom: 18px;
  max-width: 450px;
}
.tc-slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
}
.tc-slide-btn:hover { background: var(--accent-light); transform: translateY(-2px); }
.tc-slider-arrows {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.tc-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.tc-arrow:hover { background: var(--accent); border-color: var(--accent); }
.tc-dots {
  position: absolute;
  bottom: 20px;
  left: 60px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.tc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.3s;
}
.tc-dot.active {
  background: var(--accent-light);
  width: 24px;
  border-radius: 4px;
}
@media (max-width: 768px) {
  .tc-slider { height: 280px; }
  .tc-slide-content { padding: 0 16px 0 24px; }
  .tc-slider-arrows { right: 16px; bottom: 16px; }
  .tc-dots { left: 24px; bottom: 16px; }
  .tc-slide-desc { display: none; }
}

/* ========== TRICOART VIDEO SECTION ========== */
.tc-video-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 100px 40px;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.tc-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tc-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tc-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.tc-video-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}
.tc-video-text {
  flex: 1;
  color: #fff;
}
.tc-video-text .tc-vid-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(196,169,125,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}
.tc-video-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 8px;
  color: #fff;
}
.tc-video-text h2 em {
  font-style: italic;
  color: var(--accent-light);
}
.tc-video-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin-bottom: 24px;
}
.tc-video-text .btn { margin-top: 8px; }
.tc-video-embed {
  flex: 1;
  max-width: 520px;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.1);
}
.tc-video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 768px) {
  .tc-video-section { padding: 60px 20px; min-height: auto; }
  .tc-video-inner { flex-direction: column; gap: 30px; }
  .tc-video-embed { max-width: 100%; width: 100%; }
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
  box-shadow: 0 4px 20px rgba(139,111,78,0.3);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139,111,78,0.4);
}
.scroll-top svg { transition: transform 0.3s; }
.scroll-top:hover svg { transform: translateY(-2px); }

/* ========== COOKIE CONSENT ========== */
.cookie-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.cookie-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  padding: 32px 36px;
  max-width: 520px;
  width: calc(100% - 40px);
  transition: transform 0.6s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
  opacity: 0;
}
.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.cookie-banner h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cookie-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.cookie-banner p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cookie-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}
.cookie-option input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}
.cookie-option input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-option input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.cookie-option input[disabled] { opacity: 0.6; cursor: default; }
.cookie-option label { cursor: pointer; color: var(--text); }
.cookie-option .cookie-required {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 4px;
}
.cookie-buttons {
  display: flex;
  gap: 10px;
}
.cookie-buttons .btn {
  flex: 1;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.85rem;
}
.btn-ghost {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .scroll-top { bottom: 20px; right: 20px; width: 46px; height: 46px; }
  .cookie-banner { padding: 24px 20px; }
  .cookie-buttons { flex-direction: column; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}
body:hover .cursor-glow { opacity: 1; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.span-full { grid-column: span 2; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-float { display: none; }
}
@media (max-width: 768px) {
  .nav { padding: 12px 20px; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .section { padding: 80px 20px; }
  .hero { padding: 120px 20px 60px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.span-2, .bento-card.span-full { grid-column: span 1; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cert-section { flex-direction: column; text-align: center; padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-float { display: none; }
  .service-body-inner { padding-left: 32px; }
}

/* ========== MOBILE NAV PANEL ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
