/*
Theme Name: TheAbhiDesigns
Theme URI: https://theabhidesigns.com
Author: Abhi
Author URI: https://theabhidesigns.com
Description: A custom portfolio theme for TheAbhiDesigns featuring immersive shader animations.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tad-starter
*/

/* ========================================
   CSS Reset & Base
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Compensate for WP Admin Bar to guarantee zero scrollbars when logged in */
.admin-bar html,
.admin-bar body {
  height: calc(100vh - 32px) !important;
}

@media screen and (max-width: 782px) {
  .admin-bar html,
  .admin-bar body {
    height: calc(100vh - 46px) !important;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ========================================
   Hero / Landing Section
   ======================================== */

.tad-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Shader canvas container */
.tad-hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Shader fades in behind the curtain */
  opacity: 0;
  animation: tad-shader-in 2.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.tad-hero__shader canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Black intro curtain – covers everything, then fades away */
.tad-intro-curtain {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #000;
  pointer-events: none;
  animation: tad-curtain-out 1.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

/* Subtle vignette overlay for depth */
.tad-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  opacity: 0;
  animation: tad-fade-in 2s ease 1.2s forwards;
}

/* Center text overlay */
.tad-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  pointer-events: none;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0 1.5rem;
}

/* Accent lines that expand from center */
.tad-hero__line {
  width: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25) 30%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.25) 70%,
    transparent
  );
  animation: tad-line-expand 2.4s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}

.tad-hero__line--bottom {
  animation-delay: 1.6s;
}

/* Clip-reveal wrapper for the title */
.tad-hero__reveal {
  overflow: hidden;
  padding: 0.15em 0 0.5em;
  max-width: 100%;
}

.tad-hero__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 7.5vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: #ffffff;
  text-transform: lowercase;
  white-space: nowrap;
  /* Glass-like text glow — fades in with the text */
  text-shadow:
    0 0 40px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(255, 255, 255, 0.05);
  /* Initial state: below, blurred, invisible */
  opacity: 0;
  transform: translateY(100%) scale(1.05);
  filter: blur(12px);
  /* Cinematic reveal */
  animation: tad-title-reveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
}

/* Optional subtitle / tagline */
.tad-hero__tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(0.85rem, 1.8vw, 1.25rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  filter: blur(6px);
  animation: tad-subtitle-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

/* ========================================
   Gradient Buttons
   ======================================== */

.tad-hero__buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  pointer-events: auto;
  /* Staggered entrance */
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  animation: tad-buttons-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.4s forwards;
}

/* Individual button */
.tad-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  background:
    linear-gradient(
      135deg,
      rgba(55, 48, 163, 0.25) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0.6) 100%
    );
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease,
    border-color 0.4s ease;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.3),
    0 0 0 0 rgba(99, 102, 241, 0);
}

.tad-btn:hover {
  transform: scale(1.04) translateY(-3px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow:
    0 8px 40px rgba(99, 102, 241, 0.2),
    0 0 60px rgba(99, 102, 241, 0.08);
}

.tad-btn:active {
  transform: scale(0.97);
}

/* Moving gradient shine layer */
.tad-btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(165, 180, 252, 0.3) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.tad-btn:hover .tad-btn__shine {
  transform: translateX(100%);
}

/* Hover glow overlay */
.tad-btn__glow {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(
    90deg,
    rgba(129, 140, 248, 0.15),
    rgba(165, 180, 252, 0.08),
    rgba(129, 140, 248, 0.15)
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.tad-btn:hover .tad-btn__glow {
  opacity: 1;
}

/* Button text */
.tad-btn__text {
  position: relative;
  z-index: 2;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease;
}

.tad-btn:hover .tad-btn__text {
  color: #fff;
}

/* Arrow icon */
.tad-btn__arrow {
  position: relative;
  z-index: 2;
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(255, 255, 255, 0.35);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    color 0.3s ease;
}

.tad-btn:hover .tad-btn__arrow {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(3px);
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .tad-hero__buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .tad-btn {
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }
}

/* ========================================
   Shiny Text Badge (Magic UI Style)
   ======================================== */

.tad-badge {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  background: rgba(10, 10, 12, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto;
  transition:
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  /* Staggered entrance after buttons */
  opacity: 0;
  transform: translateY(15px);
  filter: blur(4px);
  animation: tad-buttons-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.6s forwards;
}

.tad-badge:hover {
  background: rgba(10, 10, 12, 0.85);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.tad-badge:active {
  transform: scale(0.98);
}

/* Shiny gradient text */
.tad-badge__text {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.35) 30%,
    rgba(255, 255, 255, 1) 48%,
    rgba(255, 255, 255, 1) 52%,
    rgba(255, 255, 255, 0.35) 70%
  );
  background-size: 200% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tad-shimmer 4.5s infinite linear;
  user-select: none;
}

/* Arrow styling */
.tad-badge__arrow {
  width: 0.85rem;
  height: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s ease;
}

.tad-badge:hover .tad-badge__arrow {
  color: rgba(255, 255, 255, 0.8);
  transform: translateX(2px);
}

/* Shimmer animation keyframes */
@keyframes tad-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}


/* ========================================
   Intro Animation Keyframes
   ======================================== */

/* Shader background fades in */
@keyframes tad-shader-in {
  to {
    opacity: 1;
  }
}

/* Black curtain dissolves */
@keyframes tad-curtain-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Generic fade in */
@keyframes tad-fade-in {
  to {
    opacity: 1;
  }
}

/* Accent lines expand then fade out */
@keyframes tad-line-expand {
  0% {
    width: 0;
    opacity: 1;
  }
  50% {
    width: min(60vw, 500px);
    opacity: 1;
  }
  100% {
    width: min(60vw, 500px);
    opacity: 0;
  }
}

/* Title: slides up from below clip, un-blurs, scales to 1 */
@keyframes tad-title-reveal {
  0% {
    opacity: 0;
    transform: translateY(100%) scale(1.05);
    filter: blur(12px);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* Subtitle fade + slide + unblur */
@keyframes tad-subtitle-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* Buttons fade + slide + unblur */
@keyframes tad-buttons-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }
}

/* Header / Footer fade animations (kept for later use) */
@keyframes tad-fade-down {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tad-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   Contact Page Styles
   ======================================== */

.tad-back-btn {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: lowercase;
  pointer-events: auto;
  transition: color 0.3s ease, transform 0.3s ease;
  opacity: 0;
  animation: tad-fade-in 1.2s ease 1.8s forwards;
}

.tad-back-btn:hover {
  color: #fff;
  transform: translateX(-4px);
}

.tad-back-btn__icon {
  width: 1.15rem;
  height: 1.15rem;
}

/* Contact card layout */
.tad-contact-container {
  max-width: 540px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  animation: tad-buttons-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
  pointer-events: auto !important;
}

.tad-contact-card {
  width: 100%;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tad-contact__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 2rem;
  text-transform: lowercase;
}

.tad-contact__section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.tad-contact__section:last-child {
  margin-bottom: 0;
}

.tad-contact__label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* Email link styling */
.tad-contact__email {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1.25rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  word-break: break-all;
  display: inline-block;
}

.tad-contact__email:hover {
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.35);
}

/* Social links container */
.tad-contact__socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tad-contact__social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: lowercase;
  transition:
    background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tad-contact__social-link:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  color: #fff;
  padding-left: 1.5rem;
}

.tad-contact__arrow {
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, color 0.3s ease;
}

.tad-contact__social-link:hover .tad-contact__arrow {
  color: #fff;
  transform: translate(3px, -3px);
}

/* Mobile specific contact styles */
@media (max-width: 640px) {
  .tad-contact-card {
    padding: 1.75rem;
  }
}

/* ========================================
   Openings Page Styles
   ======================================== */

.tad-openings-container {
  max-width: 700px;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(6px);
  animation: tad-buttons-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
  pointer-events: auto !important;
}

.tad-openings-card {
  width: 100%;
  padding: 3rem;
  border-radius: 1.5rem;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(45px);
  -webkit-backdrop-filter: blur(45px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.tad-openings__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 0.35rem;
  text-transform: lowercase;
}

.tad-openings__subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2.5rem;
}

.tad-jobs-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.tad-job-item {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tad-job-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.tad-job-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.tad-job-item__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.tad-job-item__tags {
  display: flex;
  gap: 0.5rem;
}

.tad-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
}

.tad-job-item__desc {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.15rem;
}

.tad-job-item__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(129, 140, 248, 0.85);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
  text-transform: lowercase;
}

.tad-job-item__link:hover {
  color: #fff;
}

.tad-job-item__arrow {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tad-job-item__link:hover .tad-job-item__arrow {
  transform: translateX(3px);
}

.tad-openings__empty {
  padding: 1.5rem 0;
  text-align: left;
}

.tad-openings__empty-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.tad-openings__empty-link {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(255, 255, 255, 0.4);
  transition:
    border-color 0.3s ease,
    text-shadow 0.3s ease;
}

.tad-openings__empty-link:hover {
  border-bottom-style: solid;
  border-bottom-color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Mobile specific openings styles */
@media (max-width: 640px) {
  .tad-openings-card {
    padding: 1.75rem;
  }
}

/* ========================================
   Utility
   ======================================== */

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
