/* =====================================================
   TOLA OYELOLA - OPTIMIZED STYLES
   ===================================================== */

/* =====================================================
   FONT DECLARATIONS
   ===================================================== */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-variable-italic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

/* =====================================================
   RESET & BASE STYLES
   ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #000000;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-in-out forwards;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   LAYOUT
   ===================================================== */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
.name {
  font-size: clamp(3.5rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact_name {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.tagline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.tagline-line {
  width: 100%;
  height: 1px;
  background-color: #ffffff;
  opacity: 0.6;
  margin: 0.75rem 0;
}

.tagline {
  font-size: clamp(1rem, 3vw, 1.1rem);
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.01em;
  margin: 0;
  white-space: nowrap;
}

/* =====================================================
   ICON SYSTEM - CONTEXT AWARE
   ===================================================== */
.icon {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--social {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--button {
  width: 1rem;
  height: 1rem;
}

.icon--large {
  width: 2rem;
  height: 2rem;
}

/* Context-specific icon colors */
.social-links .icon {
  stroke: #ffffff;
}

.back-button .icon {
  stroke: #ffffff;
}

.back-button:hover .icon {
  stroke: #000000;
}

.contact-button .icon {
  stroke: #000000;
}

.contact-button:hover .icon {
  stroke: #ffffff;
}

.form-success .icon {
  stroke: #22c55e;
}

.form-error .icon {
  stroke: #ef4444;
}

.submit-button .icon {
  stroke: #000000;
}

/* =====================================================
   NAVIGATION & LINKS
   ===================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

/* =====================================================
   SOCIAL ICONS & LINKS
   ===================================================== */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  color: #ffffff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.social-links a:hover::before {
  border-color: #ffffff;
  opacity: 0.3;
}

.social-links a:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.social-links a:active {
  transform: translateY(0);
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.contact-form {
  max-width: 600px;
  width: 100%;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.required {
  color: rgba(255, 255, 255, 0.7);
}

.submit-button {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.submit-button:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =====================================================
   FORM MESSAGES
   ===================================================== */
.form-success,
.form-error {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.form-success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.form-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  margin-top: auto;
  padding-top: 3rem;
  text-align: center;
}

.copyright {
  font-size: 0.875rem;
  opacity: 0.6;
  font-weight: 400;
}

/* =====================================================
   ERROR PAGES
   ===================================================== */
.error-code {
  font-size: clamp(4rem, 15vw, 8rem);
  font-weight: 700;
  opacity: 0.3;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-message {
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.error-description {
  font-size: 1.1rem;
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.6;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
  margin-right: 1rem;
}

.back-button:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #000000;
  background-color: #ffffff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ffffff;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-button:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  .container {
    margin-bottom: 2rem;
  }

  .name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
  }

  .contact_name {
    font-size: large;
    margin-bottom: 0.5rem;
  }

  .tagline-wrapper {
    margin-bottom: 0.2rem;
  }

  .social-links {
    gap: 1.25rem;
  }

  .contact-form {
    margin: 1rem 0;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  footer {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .social-links {
    gap: 1rem;
  }

  .social-links a {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
  }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-contrast: high) {
  .social-links a {
    border: 1px solid #ffffff;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .social-links a:hover,
  .submit-button:hover,
  .back-link:hover,
  .back-button:hover,
  .contact-button:hover {
    transform: none;
  }
}
