/* Custom Styles for Webstapero Dev Notes */

/* Color Variables */
:root {
  --primary-pink: #ffb4e6;
  --primary-blue: #0066cc;
  --secondary-blue: #0052a3;
  --accent-yellow: #d4ff00;
  --accent-lime: #b8ff3c;
  --bg-light: #fff5fb;
  --text-dark: #1a1a1a;
  --shadow-color: rgba(0, 102, 204, 0.2);
}

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

body {
  background: linear-gradient(135deg, var(--primary-pink) 0%, #ffd6f0 50%, #fff5fb 100%);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
}

/* Header Styles */
.header-main {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-text {
  letter-spacing: -0.05em;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 102, 204, 0.4);
}

/* Burger Menu */
.burger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger-btn span {
  width: 28px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.burger-btn.active span:nth-child(2) {
  opacity: 0;
}

.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: flex;
}

.mobile-nav-link {
  font-weight: 600;
  color: var(--text-dark);
  padding: 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.mobile-nav-link:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

/* Wave Divider */
.wave-divider {
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 Q150,10 300,50 T600,50 T900,50 T1200,50 L1200,0 L0,0 Z' fill='%230066CC'/%3E%3C/svg%3E");
  background-size: cover;
  margin-top: -1px;
}

.wave-divider-bottom {
  transform: rotate(180deg);
  margin-top: 60px;
}

.wave-inverted {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,50 Q150,90 300,50 T600,50 T900,50 T1200,50 L1200,120 L0,120 Z' fill='%230066CC'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero-section {
  position: relative;
  padding-top: 40px;
}

.zigzag-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3Cpattern id='zigzag' x='0' y='0' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M0,50 L25,30 L50,50 L75,30 L100,50 L100,100 L0,100 Z' fill='%230066CC' /%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23zigzag)' /%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.15;
  z-index: 0;
}

.zigzag-inverted {
  transform: scaleY(-1);
}

.hero-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover .hero-img {
  transform: scale(1.05) rotate(2deg);
}

.floating-element {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.floating-badge {
  position: absolute;
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: bounce 2s ease-in-out infinite;
}

.badge-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}
.badge-2 {
  top: 50%;
  right: -10%;
  animation-delay: 0.5s;
}
.badge-3 {
  bottom: 10%;
  left: 10%;
  animation-delay: 1s;
}

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

.hero-title {
  line-height: 1.1;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-weight: 500;
}

.highlight-text {
  background: var(--accent-yellow);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.feature-item {
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateX(10px);
}

.feature-icon {
  background: var(--primary-blue);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.student-avatars .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -15px;
  transition: transform 0.3s ease;
}

.student-avatars .avatar:first-child {
  margin-left: 0;
}

.student-avatars:hover .avatar {
  transform: scale(1.1);
}

/* Decorative Elements */
.decorative-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent-lime);
  opacity: 0.3;
  z-index: 1;
}

.circle-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  right: 5%;
}

.circle-2 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 10%;
  background: var(--accent-yellow);
}

.decorative-square {
  position: absolute;
  width: 100px;
  height: 100px;
  background: var(--primary-blue);
  opacity: 0.2;
  bottom: 10%;
  right: 15%;
  transform: rotate(45deg);
  z-index: 1;
}

/* About Section */
.about-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
}

.section-title {
  line-height: 1.1;
}

.about-img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.about-img-container {
  position: relative;
}

.about-img-container:hover .about-img {
  transform: scale(1.02);
}

.mystery-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s ease;
}

.mystery-box:hover {
  transform: rotate(10deg) scale(1.05);
}

.mystery-text {
  color: white;
  font-size: 14px;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 600;
}

.mystery-icon {
  color: var(--accent-yellow);
  font-size: 48px;
  font-weight: 900;
}

.stats-grid {
  margin-top: 32px;
}

.stat-card {
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: #666;
  font-weight: 600;
}

.feature-card-3d {
  background: white;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  cursor: pointer;
}

.feature-card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon-large {
  font-size: 64px;
  margin-bottom: 16px;
}

/* Cases Section */
.cases-section {
  background: white;
}

.cases-grid {
  perspective: 1000px;
}

.case-card {
  height: 550px;
  perspective: 1000px;
}

.case-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.case-card:hover .case-card-inner {
  transform: rotateY(180deg);
}

.case-card-front,
.case-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.case-card-front {
  background: white;
}

.case-card-back {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  transform: rotateY(180deg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-image-wrapper {
  height: 300px;
  overflow: hidden;
}

.case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover .case-img {
  transform: scale(1.1);
}

.case-content {
  padding: 24px;
}

.case-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.case-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

/* Category Ribbon */
.category-ribbon {
  overflow: hidden;
  background: var(--primary-blue);
  padding: 16px 0;
  border-radius: 12px;
  position: relative;
}

.category-scroll {
  display: flex;
  gap: 24px;
  animation: scroll 30s linear infinite;
  white-space: nowrap;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.category-item {
  color: white;
  font-weight: 700;
  font-size: 18px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: inline-block;
}

/* Team Section */
.team-section {
  position: relative;
}

.team-grid {
  position: relative;
  z-index: 10;
}

.team-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.team-avatar-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 16px;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--accent-yellow);
  transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
  transform: scale(1.1) rotate(5deg);
}

.team-status {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  background: #00ff00;
  border: 3px solid white;
  border-radius: 50%;
}

.team-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 4px;
}

.team-role {
  color: #666;
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.team-stats-grid {
  margin-top: 48px;
}

.stat-box {
  background: white;
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: scale(1.05);
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 42px;
  font-weight: 900;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 8px;
}

/* Contacts Section */
.contacts-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-input.error {
  border-color: #ff4444;
}

.error-message {
  display: none;
  color: #ff4444;
  font-size: 13px;
  margin-top: 6px;
}

.error-message.active {
  display: block;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

.policy-link {
  color: var(--primary-blue);
  text-decoration: underline;
}

.submit-button {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 102, 204, 0.4);
}

.button-arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.submit-button:hover .button-arrow {
  transform: translateX(5px);
}

.contact-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateX(10px);
}

.contact-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.contact-label {
  font-weight: 700;
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value {
  color: var(--text-dark);
  font-weight: 600;
}

/* Footer */
.footer-main {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: white;
  margin-top: 80px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent-yellow);
}

.footer-link {
  color: #e0e0e0;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-yellow);
  transform: translateX(5px);
}

.footer-contact-link {
  color: #e0e0e0;
  transition: color 0.3s ease;
}

.footer-contact-link:hover {
  color: var(--accent-yellow);
}

.footer-cta-button {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 255, 0, 0.3);
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 255, 0, 0.4);
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background: var(--accent-yellow);
  color: var(--text-dark);
  transform: scale(1.1);
}

/* Cookie Notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  padding: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-notice.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-content a {
  color: var(--accent-yellow);
  text-decoration: underline;
}

.cookie-btn {
  background: var(--accent-yellow);
  color: var(--text-dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cookie-btn:hover {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .mystery-box {
    width: 120px;
    height: 120px;
    bottom: -10px;
    right: -10px;
  }

  .mystery-icon {
    font-size: 32px;
  }

  .case-card {
    height: auto;
  }

  .case-card:hover .case-card-inner {
    transform: none;
  }

  .case-card-back {
    position: relative;
    transform: none;
    margin-top: 16px;
  }

  .contact-form {
    padding: 24px;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
