@import "tailwindcss";

@theme {
  --color-darkgreen: #005C2E;
  --color-green: #028342;
  --color-lightgreen: #2AAD6F;
  --color-peach: #F19986;
  --color-violet: #9B51E0;
  --color-black: #19191A;
  --color-greygreen: #B7C0BD;
  --color-white: #FFFFFF;
  --color-cream: #F7F6F3;
  --color-20-light-green: rgba(42, 173, 111, 0.2);
  --color-40-dark-green: rgba(14, 46, 17, 0.4);
  --color-section-background: #1C1C1C;
  --color-5-light-green: rgba(42, 173, 111, 0.05);
  --color-20-dark-green: rgba(67, 115, 88, 0.2);
  --color-section-stroke: rgba(255, 255, 255, 0.50);
  --font-archivo: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-inter: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* Enable smooth scrolling globally */
html {
  scroll-behavior: smooth;
}

/* Ensure smooth scrolling works on all browsers */
* {
  scroll-behavior: smooth;
  font-family: var(--font-archivo);
}

body {
  background-color: var(--color-black);
}

/* Logo scroll animation */
@keyframes scroll-right-to-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-scroll {
  animation: scroll-right-to-left 30s linear infinite;
}

/* Common styles */

/* Green Button */
.custom-button-green {
  display: flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--color-green);
  color: var(--color-white);
  font-family: var(--font-inter);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(2, 131, 66, 0.3);
}

.custom-button-green::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.custom-button-green:hover {
  background: var(--color-lightgreen);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(42, 173, 111, 0.4),
    0 0 0 3px rgba(42, 173, 111, 0.1);
}

.custom-button-green:hover::before {
  left: 100%;
}

.custom-button-green:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(42, 173, 111, 0.3);
}

.custom-button-green .arrow {
  transition: transform 0.3s ease;
}

.custom-button-green:hover .arrow {
  transform: translateX(3px);
}

/* Transparent Button */
.custom-button-transparent {
  display: flex;
  padding: 12px 24px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--color-lightgreen);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-inter);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 0 rgba(42, 173, 111, 0);
}

.custom-button-transparent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, var(--color-lightgreen), var(--color-green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.custom-button-transparent::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(42, 173, 111, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  border-radius: 50%;
}

.custom-button-transparent:hover {
  border-color: var(--color-green);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(42, 173, 111, 0.2),
    0 0 0 2px rgba(42, 173, 111, 0.1);
}

.custom-button-transparent:hover::before {
  transform: scaleX(1);
}

.custom-button-transparent:hover::after {
  width: 300px;
  height: 300px;
}

.custom-button-transparent:active {
  transform: translateY(0);
}

.custom-button-transparent .text {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.custom-button-transparent:hover .text {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Custom Card Border */
.custom-card-border {
  position: relative;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.4), 0 4px 8px 0 rgba(0, 0, 0, 0.1);
  
}

.custom-card-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgba(255, 255, 255, 0.00) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* Form Styles */
.form-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-lightgreen);
  color: white;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  border-bottom-color: #2AAD6F;
}

.form-input::placeholder {
  color: rgba(183, 192, 189, 0.7);
}

.form-label {
  color: rgba(183, 192, 189, 0.9);
  font-size: 14px;
  margin-bottom: 8px;
}

.form-textarea {
  background: transparent;
  border-radius: 8px;
  color: white;
  padding: 12px;
  outline: none;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease;
}

.form-textarea:focus {
  border-color: #2AAD6F;
}

.form-textarea::placeholder {
  color: rgba(183, 192, 189, 0.7);
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent !important;
  border: 1px solid var(--color-greygreen) !important;
  border-radius: 4px !important;
  width: 16px;
  height: 16px;
  position: relative;
  cursor: pointer;
}

input[type="checkbox"]:checked {
  background: var(--color-lightgreen) !important;
  border-color: var(--color-lightgreen) !important;
}

input[type="checkbox"]:checked::before {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}