/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-text-light: #666666;
  --color-border: #e5e5e5;
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-2xl: 8rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.4;
  font-weight: 400;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  width: auto;
  transition: var(--transition);
  cursor: pointer;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* Smooth rolling animation in a square path */
@keyframes rollBounce {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(80px, 0) rotate(360deg);
  }
  50% {
    transform: translate(80px, 60px) rotate(720deg);
  }
  75% {
    transform: translate(0, 60px) rotate(1080deg);
  }
  100% {
    transform: translate(0, 0) rotate(1440deg);
  }
}

.logo-img.bounce-roll {
  animation: rollBounce 2s ease-in-out;
}

.nav-menu {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-link {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--color-text-light);
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Hero Section ===== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 60px;
  padding-bottom: var(--spacing-lg);
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.fun-button {
  background: transparent;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
}

.fun-button:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* ===== Section Styles ===== */
section {
  padding: var(--spacing-lg) 0;
}

/* ===== Work Section ===== */
.work {
  background-color: var(--color-bg);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.work-grid {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: var(--spacing-sm) 0;
  cursor: default;
  user-select: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  will-change: scroll-position;
}

.work-grid:active {
  cursor: default;
}

.work-grid::-webkit-scrollbar {
  display: none;
}


.work-item {
  background-color: transparent;
  transition: var(--transition);
  flex: 0 0 auto;
  width: 600px;
  max-width: 90vw;
}

.work-video {
  width: 100%;
  height: auto;
  min-height: 300px;
  max-height: 450px;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--spacing-sm);
  background-color: #000;
  display: block;
}

.work-video video {
  width: 100%;
  height: 100%;
  max-height: 450px;
  object-fit: cover;
  background-color: #000;
  display: block;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background-color: #ffffff;
  padding: 2rem;
  transition: var(--transition);
}

.work-item:hover .work-image img {
  transform: none;
}

.work-overlay {
  display: none;
}

.work-item:hover .work-content {
  opacity: 1;
}

.work-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-play-btn {
  width: 50px;
  height: 50px;
  background-color: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}

.work-play-btn:hover {
  transform: scale(1.1);
}

.work-case-study {
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.work-content {
  padding: 0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  position: relative;
  left: 0;
  margin-top: var(--spacing-sm);
  transition: var(--transition);
}

.work-content h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 0.25rem 0;
  padding: 0;
  letter-spacing: 0.5px;
  text-align: left;
  position: relative;
  left: 0;
}

.work-content p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 300;
  margin: 0;
  padding: 0;
  letter-spacing: 0.5px;
  text-align: left;
  position: relative;
  left: 0;
}

/* ===== About Section ===== */
.about {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.about-text p {
  font-size: 1rem;
  color: var(--color-text-light);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 1.6;
}

.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.team-member {
  text-align: left;
}

.team-member h3 {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}

.team-member p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ===== Contact Section ===== */
.contact {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.contact-content {
  text-align: center;
}

.contact-info {
  display: flex;
  justify-content: center;
}

.contact-item {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.contact-item:hover {
  color: var(--color-text-light);
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-bg);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer p {
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ===== Neon Wild Mode Effects ===== */
body.wild-mode,
body.wild-mode .hero,
body.wild-mode .work,
body.wild-mode .about,
body.wild-mode .contact,
body.wild-mode .footer,
body.wild-mode .navbar {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 25%, #330066 50%, #6600cc 75%, #9900ff 100%);
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 25%, #330066 50%, #6600cc 75%, #9900ff 100%);
  }
  25% { 
    background: linear-gradient(135deg, #1a0033 0%, #330066 25%, #6600cc 50%, #9900ff 75%, #cc00ff 100%);
  }
  50% { 
    background: linear-gradient(135deg, #330066 0%, #6600cc 25%, #9900ff 50%, #cc00ff 75%, #ff00ff 100%);
  }
  75% { 
    background: linear-gradient(135deg, #6600cc 0%, #9900ff 25%, #cc00ff 50%, #ff00ff 75%, #ff33ff 100%);
  }
}

body.wild-mode * {
  color: #00ffff !important;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

body.wild-mode .nav-logo {
  color: #ff00ff !important;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
}

body.wild-mode .logo-img {
  filter: hue-rotate(120deg) saturate(2) brightness(1.3);
  box-shadow: 0 0 15px #ff00ff, 0 0 25px #ff00ff;
  border-radius: 4px;
}

body.wild-mode .nav-link {
  color: #00ff00 !important;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}

body.wild-mode .hero-title {
  color: #ffff00 !important;
  text-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00, 0 0 45px #ffff00;
  animation: neonGlow 1.5s ease-in-out infinite alternate;
}

@keyframes neonGlow {
  0% { 
    text-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00, 0 0 45px #ffff00;
  }
  100% {
    text-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00, 0 0 60px #ffff00;
  }
}

body.wild-mode .fun-button {
  background: transparent !important;
  border: 2px solid #ff00ff !important;
  color: #ff00ff !important;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
  box-shadow: 0 0 20px #ff00ff, inset 0 0 20px rgba(255, 0, 255, 0.1);
}

body.wild-mode .work-image {
  border: 2px solid #00ff00;
  box-shadow: 0 0 20px #00ff00, inset 0 0 20px rgba(0, 255, 0, 0.1);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0033 25%, #330066 50%, #6600cc 75%, #9900ff 100%);
  animation: neonPulse 2s ease-in-out infinite;
}

body.wild-mode .work-image img {
  filter: hue-rotate(120deg) saturate(2) brightness(1.3);
  background: transparent;
  padding: 0;
}

body.wild-mode .work-overlay {
  background: transparent !important;
  border: none;
  box-shadow: none;
}

body.wild-mode .work-play-btn {
  background: linear-gradient(45deg, #ff00ff, #00ffff) !important;
  color: #000 !important;
  text-shadow: none;
  box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
  animation: neonButton 1s ease-in-out infinite alternate;
}

@keyframes neonButton {
  0% { 
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
  }
  100% {
    box-shadow: 0 0 30px #ff00ff, 0 0 40px #00ffff;
  }
}

body.wild-mode .work-item {
  background: transparent;
  animation: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
}

body.wild-mode .work-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.wild-mode .work-content h3 {
  color: #ffff00 !important;
  text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00;
}

body.wild-mode .work-content p {
  color: #00ff00 !important;
  text-shadow: 0 0 8px #00ff00, 0 0 16px #00ff00;
}

body.wild-mode .about-text p {
  color: #ff00ff !important;
  text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff;
}

body.wild-mode .team-member h3 {
  color: #00ffff !important;
  text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
}

body.wild-mode .team-member p {
  color: #ffff00 !important;
  text-shadow: 0 0 8px #ffff00, 0 0 16px #ffff00;
}

body.wild-mode .contact-item {
  color: #00ff00 !important;
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

body.wild-mode .footer p {
  color: #ff00ff !important;
  text-shadow: 0 0 8px #ff00ff, 0 0 16px #ff00ff;
}


/* Remove white dividers in neon mode */
body.wild-mode .navbar {
  border-bottom: none !important;
  box-shadow: none !important;
}

body.wild-mode .about {
  border-top: none;
}

body.wild-mode .contact {
  border-top: none;
}

body.wild-mode .footer {
  border-top: none !important;
  box-shadow: none !important;
}

/* Remove all other section borders in wild mode */
body.wild-mode section {
  border: none !important;
}

body.wild-mode .work {
  border: none !important;
}

body.wild-mode .about {
  border-top: none !important;
}

body.wild-mode .contact {
  border-top: none !important;
}

body.wild-mode .hero {
  border: none !important;
}

/* Floating HIRE US text */
.floating-hire-text {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.floating-hire-text span {
  position: absolute;
  font-size: 2rem;
  font-weight: 700;
  color: #ffff00;
  text-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00, 0 0 60px #ffff00;
  letter-spacing: 3px;
  font-family: var(--font-primary);
}

@keyframes floatPath1 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(80vw, 10vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatPath2 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(-45vw, 45vh) rotate(-135deg);
    opacity: 0;
  }
}

@keyframes floatPath3 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(75vw, 75vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes floatPath4 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(-60vw, -60vh) rotate(-180deg);
    opacity: 0;
  }
}

@keyframes floatPath5 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(60vw, -30vh) rotate(150deg);
    opacity: 0;
  }
}

@keyframes floatPath6 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(-50vw, 40vh) rotate(-180deg);
    opacity: 0;
  }
}

@keyframes floatPath7 {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate(70vw, 70vh) rotate(270deg);
    opacity: 0;
  }
}

/* Multiple floating text instances with different paths and speeds */
.floating-hire-text span:nth-child(1) {
  top: 15%;
  left: 10%;
  animation: floatPath1 2s linear infinite;
  animation-delay: 0s;
  color: #ffff00;
  text-shadow: 0 0 20px #ffff00, 0 0 40px #ffff00, 0 0 60px #ffff00;
}

.floating-hire-text span:nth-child(2) {
  top: 25%;
  right: 15%;
  animation: floatPath2 2.5s linear infinite;
  animation-delay: 0s;
  font-size: 1.5rem;
  color: #ff00ff;
  text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #ff00ff;
}

.floating-hire-text span:nth-child(3) {
  top: 45%;
  left: 20%;
  animation: floatPath3 2.2s linear infinite;
  animation-delay: 0s;
  font-size: 1.8rem;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff;
}

.floating-hire-text span:nth-child(4) {
  top: 65%;
  right: 25%;
  animation: floatPath4 2.8s linear infinite;
  animation-delay: 0s;
  font-size: 1.2rem;
  color: #00ff00;
  text-shadow: 0 0 20px #00ff00, 0 0 40px #00ff00, 0 0 60px #00ff00;
}

.floating-hire-text span:nth-child(5) {
  top: 35%;
  left: 60%;
  animation: floatPath5 2.1s linear infinite;
  animation-delay: 0s;
  font-size: 1.4rem;
  color: #ff6600;
  text-shadow: 0 0 20px #ff6600, 0 0 40px #ff6600, 0 0 60px #ff6600;
}

.floating-hire-text span:nth-child(6) {
  top: 75%;
  left: 5%;
  animation: floatPath6 2.3s linear infinite;
  animation-delay: 0s;
  font-size: 1.1rem;
  color: #ff00ff;
  text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #ff00ff;
}

.floating-hire-text span:nth-child(7) {
  top: 55%;
  right: 5%;
  animation: floatPath7 2.6s linear infinite;
  animation-delay: 0s;
  font-size: 1.6rem;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff, 0 0 40px #00ffff, 0 0 60px #00ffff;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-menu {
    gap: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .team {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .work-item {
    width: 500px;
  }
  
  .work-image {
    height: 375px;
  }
  
  .work-video {
    height: 375px;
  }
  
  .hero {
    padding: 0 1rem;
  }
  
  section {
    padding: var(--spacing-md) 0;
  }
  
  .work-item {
    width: 350px;
  }
  
  .work-image {
    height: 300px;
  }
  
  .work-video {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-container {
    height: 50px;
  }
  
  .hero {
    min-height: 80vh;
    padding-top: 50px;
  }
  
  .work-image {
    height: 250px;
  }
  
  .work-video {
    height: 250px;
  }
  
  .work-item {
    width: 280px;
  }
  
  .about-content {
    gap: var(--spacing-md);
  }
} 