@import './components/3d/three-styles.css';
@import './components/EnhancedAnimations.css';

/* Custom variables for easy theming */
:root {
  --primary: #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark: #2563eb;
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --secondary-dark: #7c3aed;
  --background: #000000;
  --background-light: #111111;
  --text: #ffffff;
  --text-light: #d1d5db;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

/*------------------------------------*\
* BASE
\*------------------------------------*/

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text);
  height: 100%;
  overflow-x: hidden;
}

/* Enhanced text gradient with animation */
.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s infinite linear;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.headline-1 ,
.headline-2 {
  @apply max-w-max;
  background: -webkit-linear-gradient(0deg,#fafafa,
  #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.headline-1 {
  @apply text-4xl leading-tight font-semibold lg:text-[55px]
  lg:leading-[1.15];
}

.headline-2 {
  @apply text-3xl lg:text-4xl lg:leading-tight font-semibold lg:text-[45px]
  lg:leading-[1.15];
}

.title-1 {
  @apply text-[22px] font-normal;
}

.material-symbols-rounded{
  @apply w-[1em] h-[1em] overflow-hidden;
  font-variation-settings: "FILL" 0,"wght", 400,"GRAD" 0,"opsz" 24;
}

.container {
  @apply px-4 mx-auto lg:px-8 xl:max-w-6xl;
}

.img-box{
  @apply bg-zinc-800 overflow-hidden;
}

.img-cover {
  @apply object-cover w-full h-full;
}

.section {
  @apply pt-[6.5rem] lg:pt-[8.5rem];
} 
/*------------------------------------*\
* COMPONENTS
* Menu btn */

.menu-btn {  
  @apply w-10 h-10 grid place-items-center bg-zinc-50/10  
  rounded-xl ring-inset ring-1 ring-zinc-50/[0.02]  
  backdrop-blur-2xl hover:bg-zinc-50/20 transition-[transform,background-color] 
  active:scale-95;
}

.navbar {
  @apply absolute top-full mt-2 right-0 min-w-40 p-2 bg-zinc-50/10 rounded-2xl ring-1 ring-zinc-50/5 scale-90 isolate blur-sm opacity-0 invisible transition-[transform,opacity,filter] 
  md:static md:flex md:justify-center md:mt-0 md:opacity-100 md:blur-0
  md:visible md:scale-100 md:backdrop-blur-2xl;
}

.navbar.active {
  @apply scale-100 opacity-100 blur-0 visible
}

.nav-link {
  @apply grid items-center h-9 px-4 text-sm font-medium tracking-wider
  text-zinc-50/50 hover:text-zinc-50 transition-colors
}

.nav-link.active {
  @apply text-zinc-500 duration-500
}

.navbar .active-box{
  @apply absolute bg-zinc-50
  rounded-lg -z-10 transition-[top,left] duration-500
}

.btn {
  @apply px-4 py-2 text-sm font-medium tracking-wider text-zinc-50/50
  bg-zinc-50/10 rounded-lg ring-1 ring-zinc-50/5
  hover:bg-zinc-50/20 hover:text-zinc-50
  transition-colors
}

.btn-secondary {
  @apply bg-zinc-50 text-zinc-900 active:bg-zinc-50/80
}

.btn .material-symbols-rounded {
  @apply text-[18px]
}

.btn:has(.material-symbols-rounded) {
  @apply pr-2
}

.btn-primary {
  @apply h-11 bg-sky-500 text-zinc-50 hover:bg-sky-300
  active:bg-sky-700
}

.btn-outline {
  @apply bg-transparent text-zinc-50/50 ring-1 ring-zinc-50/5
  hover:bg-zinc-50/20 hover:text-zinc-50
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
  background: #2b2b2b;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4285F4;
}

/* Background pattern */
.bg-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Text styles */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Custom animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s infinite;
}

/* Glass effect */
.glass {
  background: rgba(20, 20, 20, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Custom shadow for cards */
.card-shadow {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Grid patterns for backgrounds */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(25, 25, 25, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.8) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
}

/* Pill tags */
.pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: rgba(66, 133, 244, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

/* Button styles */
.btn-primary {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s;
}

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

.btn-outline {
  background-color: transparent;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  transition: border-color 0.3s;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* For better line clamping */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* For 3D sections */
.three-section {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.three-section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Add shimmer animation for the contact form button */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.animate-shimmer {
  animation: shimmer 1.5s infinite;
}