/* TeamRoom Website - Complete CSS Styles with Image Protection */

/* Font Import */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

/* CSS Variables */
:root {
  --primary-green: #10b981;
  --primary-green-dark: #059669;
  --primary-green-light: #34d399;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fbbf24;
  --bg-dark: #18181b;
  --bg-darker: #09090b;
  --bg-partner: #a5a5a5;
  --bg-card: #27272a;
  --text-primary: #f4f4f5;
  --text-secondary: #d4d4d8;
  --text-muted: #a1a1aa;
  --border-color: #3f3f46;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 35px 60px -12px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* Image Protection Styles */
.protected-image,
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  pointer-events: auto; /* Allow normal interactions like hover */
}

/* Prevent image selection and dragging */
img::selection {
  background: transparent;
}

img::-moz-selection {
  background: transparent;
}

/* Disable context menu specifically for images */
img {
  -webkit-context-menu: none;
  context-menu: none;
}

/* Additional protection for background images */
.hero-bg,
.course-image,
.gallery-image {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

/* Hero Background */
.hero-bg {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%),
    url("/placeholder.svg?height=1080&width=1920") center / cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Particles Animation */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-green);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  top: 40%;
  left: 60%;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  top: 10%;
  left: 90%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Tactical Pattern */
.tactical-pattern {
  background-image: linear-gradient(45deg, transparent 40%, rgba(16, 185, 129, 0.03) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(16, 185, 129, 0.03) 50%, transparent 60%);
  background-size: 20px 20px;
  width: 100%;
  height: 100%;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-button::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.5s;
}

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

.cta-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Course Cards */
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.course-card:hover {
  border-color: var(--primary-green);
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.course-image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image {
  transform: scale(1.1);
}

.course-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.course-card:hover .course-overlay {
  opacity: 1;
}

.course-overlay-content {
  text-align: center;
  color: white;
}

.course-content {
  padding: 1.5rem;
}

.course-button {
  width: 100%;
  background: var(--primary-green);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.course-button:hover {
  background: var(--primary-green-dark);
  transform: translateY(-2px);
}

/* Feature Icons */
.feature-icon-container {
  display: flex;
  justify-content: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.feature-icon::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-icon:hover::before {
  opacity: 1;
}

.feature-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Gallery */
.gallery-swiper {
  padding: 2rem 0;
}

.gallery-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  height: 300px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-image-container:hover .gallery-overlay {
  opacity: 1;
}

.gallery-image-container:hover .gallery-image {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials-swiper {
  padding: 2rem 0;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-green), var(--primary-green-light));
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.author-avatar img {
  border: 2px solid var(--primary-green);
}

/* Forms */
.contact-form {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 1rem 0;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-bottom-color: var(--primary-green);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width 0.3s ease;
}

.form-group.focused .form-line,
.form-input:focus + .form-line {
  width: 100%;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(8px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
}

/* Social Links */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: translateY(-2px);
}

/* Partner Logos Section */
.partner-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg-partner);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  min-height: 120px;
}

.partner-logo-container:hover {
  border-color: var(--primary-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.partner-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.3s ease;
}

.partner-logo-container:hover .partner-logo {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.05);
}

/* Responsive adjustments for partner logos */
@media (max-width: 768px) {
  .partner-logo-container {
    min-height: 100px;
    padding: 0.75rem;
  }

  .partner-logo {
    max-height: 60px;
  }
}

@media (max-width: 480px) {
  .partner-logo-container {
    min-height: 80px;
    padding: 0.5rem;
  }

  .partner-logo {
    max-height: 50px;
  }
}

/* Partners Section Background */
.trusted-by-section {
  background: linear-gradient(135deg, #1f2937 0%, #343131 100%);
  position: relative;
  padding: 5rem 0;
}

.trusted-by-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(16, 185, 129, 0.02) 50%, transparent 60%),
    linear-gradient(-45deg, transparent 40%, rgba(16, 185, 129, 0.02) 50%, transparent 60%);
  background-size: 30px 30px;
  opacity: 0.3;
  pointer-events: none;
}

/* Alternative background options - uncomment the one you want to use */

/* Option 1: Darker background */
/*
.trusted-by-section {
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  position: relative;
  padding: 5rem 0;
}
*/

/* Option 2: Solid dark background */
/*
.trusted-by-section {
  background: #0f0f0f;
  position: relative;
  padding: 5rem 0;
}
*/

/* Option 3: Green tinted background */
/*
.trusted-by-section {
  background: linear-gradient(135deg, #0a0f0a 0%, #1a1f1a 100%);
  position: relative;
  padding: 5rem 0;
}
*/

/* Option 4: Blue-gray background */
/*
.trusted-by-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  position: relative;
  padding: 5rem 0;
}
*/

/* Modals - FIXED SIZING AND RESPONSIVE */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  max-width: 64rem; /* Increased from 4xl to allow more content */
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-content {
  padding: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg-darker);
  color: var(--text-primary);
}

/* Course Modal Specific Styles */
.course-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.course-info-card {
  background: var(--bg-darker);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.course-info-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.course-info-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-info-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.course-section {
  margin-bottom: 2rem;
}

.course-section-title {
  font-size: 1.125rem;
  font-weight: 900;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.course-list-icon {
  width: 12px;
  height: 12px;
  color: var(--primary-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Newsletter Modal */
.newsletter-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .newsletter-container {
  transform: scale(1);
}

.newsletter-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.newsletter-button {
  flex: 1;
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.newsletter-button-primary {
  background: var(--primary-green);
  color: white;
}

.newsletter-button-primary:hover {
  background: var(--primary-green-dark);
  transform: translateY(-1px);
}

.newsletter-button-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.newsletter-button-secondary:hover {
  background: var(--bg-darker);
  color: var(--text-primary);
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 2px solid var(--primary-green);
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

/* Tactical Arrow */
.tactical-arrow {
  position: relative;
  width: 24px;
  height: 24px;
}

.arrow-head {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid var(--primary-green);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: border-bottom-color 0.3s ease;
}

.arrow-body {
  width: 4px;
  height: 12px;
  background: var(--primary-green);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: background-color 0.3s ease;
}

.scroll-to-top:hover .arrow-head {
  border-bottom-color: white;
}

.scroll-to-top:hover .arrow-body {
  background: white;
}

.corner-accent {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--primary-green);
  transition: border-color 0.3s ease;
}

.corner-tl {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.scroll-to-top:hover .corner-accent {
  border-color: white;
}

/* Swiper Customization */
.swiper-pagination-bullet {
  background: var(--primary-green);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-green);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: var(--primary-green-light);
}

/* Animations */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-bg {
    background-attachment: scroll;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .course-card {
    margin-bottom: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .modal-content {
    padding: 1rem;
  }

  .newsletter-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }

  /* Modal responsive adjustments */
  .course-modal-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .course-info-card {
    padding: 0.75rem;
  }

  .course-section-title {
    font-size: 1rem;
  }

  .course-list-item {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .particles-container {
    display: none;
  }

  .tactical-pattern {
    opacity: 0.5;
  }

  .course-image-container {
    height: 180px;
  }

  .gallery-image-container {
    height: 250px;
  }

  .modal-container {
    margin: 0.5rem;
    max-height: 95vh;
  }

  .modal-content {
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .scroll-to-top,
  .modal-overlay,
  .particles-container {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  /* Hide images in print to prevent saving */
  img {
    display: none !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-green: #00ff00;
    --bg-dark: #000000;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --border-color: #ffffff;
  }
}

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

  .particles-container {
    display: none;
  }
}

/* Custom scrollbar for modal */
.modal-container::-webkit-scrollbar {
  width: 8px;
}

.modal-container::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

.modal-container::-webkit-scrollbar-thumb {
  background: var(--primary-green);
  border-radius: 4px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green-dark);
}

/* Additional Image Protection */
img[src] {
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Prevent image highlighting */
img:focus {
  outline: none;
}

/* Disable image context menu on mobile */
@media (max-width: 768px) {
  img {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}
