/* ==========================================
   CONTACT PAGE - BRUTALIST REDESIGN
   ========================================== */

:root {
  /* Colors (from landing page) */
  --color-bg: #0a0e14 !important;
  --color-bg-light: #171b21;
  --color-fg: #fafafa;
  --color-primary: #00d1b2;
  --color-primary-dark: #00a896;
  --color-accent: #c77dff;
  --color-muted: #7d8590;
  --color-border: rgba(255, 255, 255, 0.1);
  
  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;
  
  /* Spacing */
  --container-max: 1200px;
  --section-padding: 8rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.contact-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  margin-top: 4.5rem;
  overflow: hidden;
  background: var(--color-bg);
}

.contact-hero-bg-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  pointer-events: none;
  overflow: hidden;
}

.contact-hero-bg-text-inner {
  font-size: 18vw;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

/* Geometric elements */
.contact-hero-geo {
  position: absolute;
  display: none;
}

.contact-hero-geo-1 {
  top: 6rem;
  right: 4rem;
  width: 10rem;
  height: 10rem;
  border: 1px solid rgba(0, 209, 178, 0.2);
  transform: rotate(45deg);
}

.contact-hero-geo-2 {
  bottom: 6rem;
  left: 4rem;
  width: 5rem;
  height: 5rem;
  background: rgba(0, 209, 178, 0.1);
}

@media (min-width: 1024px) {
  .contact-hero-geo {
    display: block;
  }
}

.contact-hero-container {
  position: relative;
  z-index: 10;
}

.contact-hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.contact-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  animation: fade-in 0.6s ease-out;
}

.contact-hero-tag-line {
  width: 3rem;
  height: 1px;
  background: var(--color-primary);
}

.contact-hero-tag-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.contact-hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.contact-hero-title-line {
  display: block;
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.contact-hero-title-line:nth-child(1) {
  animation-delay: 0s;
}

.contact-hero-title-line:nth-child(2) {
  animation-delay: 0.1s;
}

.contact-hero-title-stroke {
  -webkit-text-stroke: 1px var(--color-primary);
  color: transparent;
}

.contact-hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-muted);
  max-width: 32rem;
  margin-top: 0 !important;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
  opacity: 0;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
  position: relative;
  padding: var(--section-padding) 0;
  background: #0d1117;
  overflow: hidden;
}

.contact-section .container {
  position: relative;
  z-index: 2;
}

/* ==========================================
   CONTACT GRID
   ========================================== */

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   CONTACT CARD
   ========================================== */

.contact-card {
  position: relative;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.3s ease;
}

.contact-card:nth-child(1) { animation-delay: 0.05s; }
.contact-card:nth-child(2) { animation-delay: 0.1s; }
.contact-card:nth-child(3) { animation-delay: 0.15s; }

.contact-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Card Header */
.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
  background: var(--color-primary);
  color: var(--color-bg);
}

.contact-card-title {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-fg);
}

/* Card Content */
.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

/* Contact Item */
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-item-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-fg);
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

.contact-item-value:hover {
  color: var(--color-primary);
}

.contact-item-external {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item-external i {
  font-size: 0.875rem;
  opacity: 0.6;
}

.contact-item-static {
  color: var(--color-muted);
  cursor: default;
}

.contact-item-static:hover {
  color: var(--color-muted);
}

/* ==========================================
   INFO BAR
   ========================================== */

.contact-info-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  opacity: 0;
  transform: translateY(30px);
  animation: slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@media (min-width: 768px) {
  .contact-info-bar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

.contact-info-bar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.contact-info-bar-item i {
  color: var(--color-primary);
  font-size: 1rem;
}

.contact-info-bar-divider {
  display: none;
}

@media (min-width: 768px) {
  .contact-info-bar-divider {
    display: block;
    width: 1px;
    height: 2rem;
    background: var(--color-border);
    margin: 0 1rem;
  }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 767px) {
  :root {
    --section-padding: 4rem;
  }
  
  .contact-hero {
    padding: 6rem 0 3rem;
    min-height: 50vh;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  .contact-info-bar {
    padding: 1.5rem;
  }
}