/* Base Styles & Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --bg-color: #FFFFFF;
  --text-primary: #000000;
  --text-secondary: #333333;
  --accent-color: #F8F8F8;
  --border-color: #E0E0E0;
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 1px;
}

a, button, input, textarea {
  cursor: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-primary);
}

ul {
  list-style: none;
}

/* Typography Scales */
h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.text-lead { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--text-primary); }
.tagline { 
  font-family: var(--font-heading); 
  font-size: 0.85rem; 
  letter-spacing: 3px; 
  color: var(--text-secondary);
  display: block; 
  margin-bottom: 20px;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

section {
  padding: 120px 0;
  position: relative;
}

.min-h-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), transparent);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  color: var(--text-secondary);
}

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

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--text-secondary);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.05);
  border-color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--text-primary);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
}

.btn:hover {
  color: var(--text-primary);
}

.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Layout Utilities */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }

/* Cards */
.card {
  border: 1px solid var(--border-color);
  padding: 40px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--text-secondary);
}

.card h3 {
  margin-bottom: 15px;
}

.card-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--border-color);
  position: absolute;
  top: 20px;
  right: 20px;
  line-height: 1;
  transition: var(--transition);
}

.card:hover .card-num {
  color: var(--text-secondary);
}

/* Footer */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-links a:hover {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.sub-footer {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Page Transition */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--text-primary);
  z-index: 99999;
  transform: scaleY(1);
  transform-origin: bottom;
}

/* =============================================
   PREMIUM CONTACT FORM — Formspree Integration
   ============================================= */

/* Contact Page Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}

/* Info Panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.contact-detail-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-detail-value {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Availability indicator */
.contact-available {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #2ecc71;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}

/* Form Wrap */
.contact-form-wrap {
  background-color: var(--accent-color);
  border: 1px solid var(--border-color);
  padding: 50px;
}

/* Form Groups */
.form-group {
  margin-bottom: 40px;
  position: relative;
}

/* Animated underline bar */
.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-primary);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.form-group:focus-within .form-line {
  width: 100%;
}

/* Inputs & Textarea */
.form-input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  caret-color: var(--text-primary);
}

/* Autofill override */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary);
  -webkit-box-shadow: 0 0 0px 1000px var(--accent-color) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* Floating Label */
.form-label {
  position: absolute;
  top: 14px;
  left: 0;
  pointer-events: none;
  transition: top 0.3s ease, font-size 0.3s ease, color 0.3s ease;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-family: var(--font-heading);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-input:valid ~ .form-label {
  top: -14px;
  font-size: 0.65rem;
  color: var(--text-primary);
  letter-spacing: 3px;
}

/* Textarea */
.form-textarea {
  resize: none;
  min-height: 130px;
  line-height: 1.7;
}

/* Submit Button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 30px;
  background-color: var(--text-primary);
  color: var(--bg-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--text-primary);
  transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: -1;
}

.btn-submit:hover {
  color: var(--text-primary);
}

.btn-submit:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Feedback messages */
.form-success,
.form-error {
  display: none;
  margin-top: 20px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 20px;
}

.form-success {
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

.form-error {
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-form-wrap {
    padding: 30px 25px;
  }
}
