@import url('colors.css');

/* ===== BASE STYLES ===== */
html, body {
  background: transparent !important;
  overflow-x: hidden;
  font-family: 'Gabarito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wp-site-blocks {
  position: relative;
  z-index: 1;
  background: transparent !important;
  padding: 0 !important;
}

header, footer, main, .wp-block-group, .wp-block-cover, .wp-block-template-part {
  background: transparent !important;
}

.entry-content > * { margin-block: 0; }

.container { 
  width: min(1200px, 92vw); 
  margin: 0 auto; 
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  width: 100%;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  height: 100%;
  text-align: center;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 83, 81, 0.2);
  border: 1px solid rgba(18, 144, 142, 0.4);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  width: fit-content;
  backdrop-filter: blur(10px);
}

.badge-icon {
  font-size: 16px;
}

.badge-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--shade-primary-teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  margin: 0 0 16px;
  line-height: 0.9;
}

.title-line {
  display: block;
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--light-teal);
  text-shadow: 0 0 40px rgba(18, 144, 142, 0.4);
}

.hero-subtitle {
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--shade-primary-teal);
  font-weight: 600;
  margin: 0 0 24px;
  opacity: 0.9;
}

.hero-description {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--light-teal);
  opacity: 0.8;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-teal), var(--shade-primary-teal));
  color: var(--light-teal);
  box-shadow: 0 8px 32px rgba(1, 83, 81, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(1, 83, 81, 0.5);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  background: rgba(148, 206, 204, 0.1);
  color: var(--light-teal);
  border: 1px solid rgba(148, 206, 204, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(148, 206, 204, 0.15);
  border-color: rgba(148, 206, 204, 0.4);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 2;
}

@media (max-height: 500px) {
  .scroll-cue {
    display: none;
  }
}

.scroll-line {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(148, 206, 204, 0.6), transparent);
  border-radius: 1px;
}

.scroll-text {
  font-size: 12px;
  color: rgba(148, 206, 204, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Make scroll text more visible on mobile */
@media (max-width: 600px) {
  .scroll-text {
    font-size: 14px;
    color: rgba(148, 206, 204, 0.8);
    font-weight: 600;
  }
}

/* ===== SECTIONS ===== */
.section {
  background: transparent !important;
  color: var(--light-teal);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}

/* Make anchored sections land lower based on viewport height */
:root { --anchor-offset: clamp(50px, 25vh, 500px); }
#about { scroll-margin-top: var(--anchor-offset); }

.section h2 {
  color: var(--light-teal);
  margin: 0 0 16px;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
}

.section h3 {
  color: var(--light-teal);
  font-size: clamp(20px, 2.5vw, 24px);
  margin: 0 0 16px;
  font-weight: 600;
}

.section h4 {
  color: var(--light-teal);
  font-size: clamp(18px, 2.2vw, 20px);
  margin: 0 0 16px;
  font-weight: 600;
}

.section p { 
  margin: 0 0 24px; 
  color: var(--light-teal);
  opacity: .9; 
}

/* ===== ABOUT SECTION ===== */
.about-intro {
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.6;
  margin-bottom: 32px;
}

.about-highlight {
  background: rgba(1, 83, 81, 0.2);
  border: 1px solid rgba(18, 144, 142, 0.4);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
}

.about-highlight h3 {
  color: var(--shade-primary-teal);
  margin-bottom: 16px;
}

.about-highlight p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-teal);
}

/* ===== SHOWCASE SECTION ===== */
.clients-showcase {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.mobile-note {
  display: none;
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(148, 206, 204, 0.9);
  background: rgba(1, 83, 81, 0.18);
  border: 1px solid rgba(18, 144, 142, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}

.client-showcase-card {
  position: relative;
  border: 1px solid rgba(18, 144, 142, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  width: 100%;
  background: transparent;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  outline: none;
}

.client-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 144, 142, 0.4);
  box-shadow: 0 12px 32px rgba(18, 144, 142, 0.15);
}

.client-logo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo.smk {
  background: url('./smk-bg.jpeg') center/cover no-repeat;
}

.client-logo.paevapraad {
  background: url('./paevapraad-bg.png') center/cover no-repeat;
}

.client-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(6, 23, 30, 0.35);
  opacity: 1;
  pointer-events: none;
  transition: opacity .3s ease;
}

.client-placeholder {
  font-size: 48px;
  font-weight: 600;
  color: rgba(148, 206, 204, 0.4);
  text-align: center;
  z-index: 1;
}

.client-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 32px;
  color: var(--light-teal);
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease .06s, background .32s ease .06s, padding .25s ease .06s, visibility 0s linear .28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: inherit;
  max-height: 100%;
  will-change: opacity, background;
}

.client-overlay h4 {
  color: var(--shade-primary-teal);
  margin: 0;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 600;
}

.client-description {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 0;
  color: var(--light-teal);
  opacity: 0.95;
}

.client-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.tech-tag {
  background: rgba(18, 144, 142, 0.1);
  border: 1px solid rgba(18, 144, 142, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--shade-primary-teal);
  font-weight: 500;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.service-card {
  background: rgba(6, 23, 30, 0.8);
  backdrop-filter: saturate(120%) blur(2px);
  border: 1px solid rgba(18, 144, 142, 0.2);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 144, 142, 0.4);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h4 {
  margin-bottom: 16px;
  color: var(--light-teal);
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--light-teal);
  opacity: 0.8;
}

/* ===== CONTACT SECTION ===== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item h3 {
  color: var(--shade-primary-teal);
  margin-bottom: 8px;
}

.contact-item p {
  margin: 0;
  font-size: 16px;
  color: var(--light-teal);
}

.contact-form { max-width: 640px; width: 100%; }
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: rgba(6, 23, 30, 0.8);
  border: 1px solid rgba(18, 144, 142, 0.2);
  border-radius: 8px;
  color: var(--light-teal);
  font-size: 16px;
  backdrop-filter: saturate(120%) blur(2px);
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-group input:not(:focus):not(.is-error),
.form-group textarea:not(:focus):not(.is-error) {
  background: rgba(6, 23, 30, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 206, 204, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--shade-primary-teal);
  box-shadow: 0 0 0 2px rgba(18, 144, 142, 0.3);
}

.form-status {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(6, 23, 30, 0.6);
  border: 1px solid rgba(18, 144, 142, 0.25);
  color: var(--light-teal);
}
.form-status.success {
  border-color: rgba(46, 204, 113, 0.45);
  color: #a9f3c4;
}
.form-status.error {
  border-color: rgba(231, 76, 60, 0.5);
  color: #ffb3aa;
}
.form-group .is-error {
  border-color: rgba(231, 76, 60, 0.75);
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(6, 23, 30, 0.9);
  backdrop-filter: saturate(120%) blur(4px);
  border-top: 1px solid rgba(18, 144, 142, 0.2);
  padding: 64px 0 32px;
  color: var(--light-teal);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-section h3 {
  color: var(--light-teal);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 16px;
}

.footer-section h4 {
  color: var(--shade-primary-teal);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-section p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--light-teal);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light-teal);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--shade-primary-teal);
}

.footer-icon {
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(18, 144, 142, 0.2);
}

.footer-bottom p {
  margin: 0;
  font-size: 14px;
  color: var(--light-teal);
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-link {
  color: var(--light-teal);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--shade-primary-teal);
}

.footer-separator {
  color: rgba(148, 206, 204, 0.3);
  font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) {
  .client-showcase-card:hover .client-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: linear-gradient(180deg,
    rgba(6, 23, 30, 0) 0%,
    rgba(6, 23, 30, 0.88) 48%,
    rgba(6, 23, 30, 0.95) 100%
    );
  }
  .mobile-note { display: none !important; }
}

@media (hover: none), (pointer: coarse), (max-width: 767px) {
  .client-overlay { display: none !important; }
  .mobile-note { display: block !important; }
}

/* Tablet devices */
@media (max-width: 900px) and (min-width: 600px) {
  .hero-cta { flex-direction: column; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* Large foldable devices */
@media (min-width: 800px) and (max-width: 900px) and (min-height: 1200px) {
  .contact-content { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 2fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; text-align: left; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Phone devices */
@media (max-width: 600px) {
  .hero { height: 100svh; min-height: 400px; padding: 20px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .services-grid { grid-template-columns: 1fr; }
  
  /* Force contact form and footer to stack on phones */
  .contact-content { grid-template-columns: 1fr !important; }
  .footer-content { grid-template-columns: 1fr !important; gap: 32px; }
  .footer-bottom { flex-direction: column !important; gap: 16px; text-align: center; }

  .client-showcase-card {
    aspect-ratio: 16 / 9;
    min-height: 0;
    background-color: #06171E;
  }
  .client-logo { inset: -1px; backface-visibility: hidden; transform: translateZ(0); }
  
  /* Mobile optimizations */
  .container { width: 95vw; }
  .contact-form { max-width: 100%; }
  
  /* Prevent iOS zoom on form inputs */
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    padding: 14px 16px;
  }
}
