﻿/* ==========================================================================
   Contact Page Stylesheet — Obsidian / Apple / Vercel Dark + Light Mode
   ========================================================================== */

/* 1. Design Tokens — Dark (default) */
:root {
  --bg-primary:        #09090b;
  --bg-secondary:      #0a0a0c;
  --card-bg:           #121214;
  --card-border:       rgba(255, 255, 255, 0.06);
  --card-hover-border: rgba(255, 255, 255, 0.12);
  --accent-primary:    #ffffff;
  --accent-secondary:  #a1a1aa;
  --accent-muted:      #71717a;
  --accent-platinum:   #e4e4e7;
  --accent-silver:     #f4f4f5;
  --text-primary:      #ffffff;
  --text-secondary:    #a1a1aa;
  --text-muted:        #71717a;
  --font-family: 'Inter', sans-serif;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth:   all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-magnetic: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

/* 2. Light Theme Token Overrides */
[data-theme="light"] {
  --bg-primary:        #fafafa;
  --bg-secondary:      #ffffff;
  --card-bg:           #f4f4f5;
  --card-border:       rgba(0, 0, 0, 0.06);
  --card-hover-border: rgba(0, 0, 0, 0.12);
  --accent-primary:    #09090b;
  --accent-secondary:  #27272a;
  --accent-muted:      #71717a;
  --accent-platinum:   #27272a;
  --accent-silver:     #3f3f46;
  --text-primary:      #09090b;
  --text-secondary:    #27272a;
  --text-muted:        #71717a;
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

/* 3. Global Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }

html { transition: background-color 0.4s ease; }

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #27272a; border-radius: 999px; border: 2px solid var(--bg-secondary); }
::-webkit-scrollbar-thumb:hover { background: #3f3f46; }

/* 4. Grid Overlay */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2; pointer-events: none;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* 5. Navbar */
.navbar-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
[data-theme="light"] .navbar-header {
  background: rgba(250, 250, 250, 0.88);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.navbar-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 1.5rem);
}

.logo { font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; transition: color 0.4s ease; }
.logo-accent { color: var(--accent-primary); font-weight: 800; }

.nav-right-group { display: flex; align-items: center; gap: 0.6rem; }

.back-home-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 500;
  padding: 0.45rem 1rem; border-radius: 9999px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition-magnetic), color 0.4s ease, background-color 0.4s ease;
}
.back-home-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); transform: translateX(-3px); }
[data-theme="light"] .back-home-btn { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .back-home-btn:hover { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.2); }
.back-icon { width: 14px; height: 14px; }

/* Theme Toggle */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  color: var(--text-secondary); cursor: pointer; flex-shrink: 0;
  transition: var(--transition-magnetic), background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
.theme-toggle:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); transform: scale(1.1); }
.theme-toggle svg { pointer-events: none; }
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.04); }
[data-theme="light"] .theme-toggle:hover { border-color: rgba(0,0,0,0.2); background: rgba(0,0,0,0.08); }

/* 6. Page Layout */
.contact-main { position: relative; z-index: 10; }
.contact-section { padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(5rem, 8vw, 8rem); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 1.5rem); }
.text-center { text-align: center; }

/* 7. Section Header */
.contact-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.contact-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}
[data-theme="light"] .contact-title {
  background: linear-gradient(180deg, #09090b 0%, #52525b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.contact-subtitle { font-size: clamp(0.95rem, 1.5vw, 1.06rem); color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.7; transition: color 0.4s ease; }

/* 8. Two-column Grid — STRETCH FIX */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;          /* both columns equal height */
}

/* 9. Left Column — info cards flush with form height */
.contact-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* cards evenly spaced top-to-bottom */
  gap: 0.85rem;
  height: 100%;
}

/* 10. Info Cards */
.info-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(18, 18, 20, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  flex-grow: 1;                   /* each card expands to fill available space */
  transition: var(--transition-magnetic), background-color 0.4s ease, border-color 0.4s ease;
}
[data-theme="light"] .info-card { background: rgba(255,255,255,0.75); }
.info-card:hover { transform: translateX(5px) scale(1.01); border-color: var(--card-hover-border); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
[data-theme="light"] .info-card:hover { background: rgba(255,255,255,0.95); }

.info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent-primary); transition: color 0.4s ease;
}
[data-theme="light"] .info-icon { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); }

/* icon colour variants */
.icon-cyan   { color: var(--accent-secondary); }
.icon-blue   { color: var(--accent-primary); }
.icon-purple { color: var(--accent-muted); }
.icon-white  { color: var(--text-primary); }

.info-details h3 {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 0.2rem; transition: color 0.4s ease;
}
.info-link, .info-text {
  font-size: 0.95rem; color: var(--text-primary);
  text-decoration: none; font-weight: 500; transition: color 0.4s ease;
}
.info-link:hover { text-decoration: underline; }

/* 11. Right Column — Form */
.contact-form-col { display: flex; flex-direction: column; height: 100%; }

.form-container {
  background: rgba(18, 18, 20, 0.55);
  border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; flex-grow: 1;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
[data-theme="light"] .form-container { background: rgba(255,255,255,0.82); }

.form-header { margin-bottom: 1.5rem; }
.form-container h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; transition: color 0.4s ease; }

.premium-form { display: flex; flex-direction: column; gap: 1.1rem; flex-grow: 1; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); transition: color 0.4s ease; }

.premium-form input,
.premium-form textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  background: rgba(20, 20, 24, 0.9); color: var(--text-primary);
  font-family: var(--font-family); font-size: 0.9rem; outline: none;
  transition: var(--transition-smooth), background-color 0.4s ease, color 0.4s ease;
}
[data-theme="light"] .premium-form input,
[data-theme="light"] .premium-form textarea {
  background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); color: var(--text-primary);
}
.premium-form input::placeholder, .premium-form textarea::placeholder { color: #52525b; }
.premium-form input:focus, .premium-form textarea:focus {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}
[data-theme="light"] .premium-form input:focus,
[data-theme="light"] .premium-form textarea:focus {
  border-color: rgba(0,0,0,0.3);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}
.premium-form input.input-error,
.premium-form textarea.input-error { border-color: rgba(239,68,68,0.5); box-shadow: 0 0 0 3px rgba(239,68,68,0.08); }
.premium-form textarea { resize: vertical; min-height: 130px; }

/* Submit button */
.submit-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  border: 1px solid rgba(255,255,255,0.9);
  background: var(--text-primary); color: var(--bg-primary);
  font-weight: 700; font-size: 0.9rem; font-family: var(--font-family);
  padding: 0.85rem 2rem; border-radius: var(--radius-md);
  cursor: pointer; width: 100%; margin-top: 0.25rem;
  transition: var(--transition-magnetic), background-color 0.4s ease, color 0.4s ease;
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  background: transparent; color: var(--text-primary);
  border-color: rgba(228,228,231,0.4);
  box-shadow: 0 8px 25px rgba(228,228,231,0.12);
}
.submit-btn:disabled { cursor: not-allowed; opacity: 0.65; }
.btn-icon { width: 15px; height: 15px; }

/* Feedback banners */
.form-success {
  display: none; align-items: center; gap: 0.6rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md); padding: 0.8rem 1rem;
  font-size: 0.875rem; font-weight: 500; color: var(--accent-primary);
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form-success.visible { display: flex; }

.form-error {
  display: none; align-items: center; gap: 0.6rem;
  background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius-md); padding: 0.8rem 1rem;
  font-size: 0.875rem; font-weight: 500; color: #ef4444;
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.form-error.visible { display: flex; }

/* 12. Fade-up entrance classes */
.fade-up          { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.fade-up-delay-1  { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both; }
.fade-up-delay-2  { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s both; }
.fade-up-delay-3  { animation: fadeInUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.35s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 13. Footer */
.main-footer {
  border-top: 1px solid rgba(255,255,255,0.06); background: var(--bg-secondary);
  padding: clamp(2rem, 4vw, 3rem) 0;
  transition: background-color 0.4s ease, border-color 0.4s ease;
}
[data-theme="light"] .main-footer { border-top-color: rgba(0,0,0,0.06); }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-left p { font-size: 0.85rem; color: var(--text-muted); transition: color 0.4s ease; }
.footer-right { display: flex; gap: 1.25rem; }
.footer-right a { color: var(--text-muted); transition: var(--transition-smooth); }
.footer-right a:hover { color: var(--text-primary); transform: translateY(-1px); }

/* 14. Responsive */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
  .contact-info-col { height: auto; justify-content: flex-start; display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
}

@media (max-width: 768px) {
  .contact-info-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .navbar-container { padding: 0.85rem 1rem; }
  .back-home-btn span { display: none; }
}

@media (max-width: 480px) {
  .contact-title { font-size: 1.9rem; }
}

@media (min-width: 1400px) { .container { max-width: 1320px; } }

/* ==========================================================================
   LIGHT MODE EXPLICIT OVERRIDES — contact_css.css
   ========================================================================== */

/* 1. Force high-contrast text */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] p,
[data-theme="light"] span,
[data-theme="light"] li,
[data-theme="light"] label,
[data-theme="light"] .info-link,
[data-theme="light"] .info-text,
[data-theme="light"] .contact-subtitle,
[data-theme="light"] .form-container h2 { color: #09090b; }

[data-theme="light"] .info-details h3 { color: #71717a; }

/* 2. Form input fields — white bg, solid visible border, dark text */
[data-theme="light"] .premium-form input,
[data-theme="light"] .premium-form textarea {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  color: #09090b;
}
[data-theme="light"] .premium-form input::placeholder,
[data-theme="light"] .premium-form textarea::placeholder { color: #a1a1aa; }
[data-theme="light"] .premium-form input:focus,
[data-theme="light"] .premium-form textarea:focus {
  border-color: #a1a1aa;
  box-shadow: 0 0 0 3px rgba(9,9,11,0.06);
}

/* 3. Form labels */
[data-theme="light"] .form-group label { color: #52525b; }

/* 4. Submit button — black bg, white text */
[data-theme="light"] .submit-btn {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}
[data-theme="light"] .submit-btn:hover:not(:disabled) {
  background: transparent;
  color: #09090b;
  border-color: #09090b;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* 5. Form container — solid white, visible border */
[data-theme="light"] .form-container {
  background: #ffffff;
  border: 1px solid #e4e4e7;
}

/* 6. Info cards — solid white, visible border */
[data-theme="light"] .info-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
}
[data-theme="light"] .info-card:hover {
  background: #fafafa;
  border-color: #d4d4d8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* 7. Info icon wrappers */
[data-theme="light"] .info-icon {
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: #09090b;
}

/* 8. Success banner light-mode contrast */
[data-theme="light"] .form-success {
  background: rgba(9,9,11,0.04);
  border-color: rgba(9,9,11,0.12);
  color: #09090b;
}

/* 9. Footer & nav */
[data-theme="light"] .footer-left p { color: #71717a; }
[data-theme="light"] .footer-right a { color: #71717a; }
[data-theme="light"] .footer-right a:hover { color: #09090b; }
[data-theme="light"] .logo { color: #09090b; }
[data-theme="light"] .back-home-btn { color: #27272a; }
