/* Custom styles for UlaQ Davetiye */

/* Base Styles */
:root {
  --purple-dark: #4c1d95;
  --purple: #7c3aed;
  --purple-light: #8b5cf6;
  --orange: #ed9b5b;
  --orange-light: #eba062;
  --white: #ffffff;
  --orange-500: #fb923c;
  --orange-600: #ef8935;
  --orange-200: #fed7aa;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(
    135deg,
    var(--purple-500) 0%,
    var(--orange-500) 100%
  );
}

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

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

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

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

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

/* Header & Navigation */
header {
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--purple-500), var(--orange-500));
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-title {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.hero-image {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s ease-in-out infinite;
}

.hero-image:hover {
  transform: scale(1.05) translateY(-10px) rotate(2deg);
}

/* Feature Cards */
.feature-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
}

.feature-icon::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, var(--purple-500), var(--orange-500));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
}

/* Form Elements */
input,
textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
  border-color: var(--purple-500);
  transform: translateY(-2px);
}

button {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, var(--purple-500), var(--orange-500));
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--orange-500), var(--purple-500));
  opacity: 0;
  transition: opacity 0.4s ease;
}

button:hover::before {
  opacity: 1;
}

button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 60%
  );
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

button:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

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

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--purple-500), var(--orange-500));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--purple-600), var(--orange-600));
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--orange-light);
  padding: 2rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.mobile-menu ul li {
  margin-bottom: 1rem;
}

.mobile-menu ul li a {
  color: var(--purple-dark);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--purple);
}

.close-btn {
  background: none;
  border: none;
  color: var(--purple-dark);
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Loading Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    transform: scale(0.9);
  }

  .hero-image:hover {
    transform: scale(0.95) translateY(-5px) rotate(1deg);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none;
  }

  body {
    color: black;
    background: white;
  }

  a {
    text-decoration: none;
    color: black;
  }

  .hero-title {
    -webkit-text-fill-color: black;
  }
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--orange-500);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(237, 155, 91, 0.2);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Error States */
.form-group input.error,
.form-group textarea.error {
  border-color: #ff4444;
  background-color: rgba(255, 68, 68, 0.05);
  animation: shake 0.5s;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Form Button */
.form-group button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-group button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--orange-600), var(--orange-500));
}

/* Responsive Form */
@media (max-width: 768px) {
  .contact-form {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .form-group textarea {
    min-height: 100px;
  }
}

/* Messages Page Styles */
.messages-section {
  padding: 4rem 0;
  min-height: calc(100vh - 200px);
}

.messages-section h1 {
  text-align: center;
  color: var(--orange-500);
  margin-bottom: 2rem;
}

.messages-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  backdrop-filter: blur(10px);
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.search-box input,
.filter-box select {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  width: 100%;
}

.search-box {
  flex: 1;
}

.filter-box select {
  min-width: 150px;
}

.message-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.message-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

.message-card.unread {
  border-left: 4px solid var(--orange-500);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.message-header h3 {
  color: var(--orange-500);
  font-size: 1.2rem;
  margin: 0;
}

.message-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.message-content p {
  margin: 0.5rem 0;
  color: #fff;
}

.message-text {
  white-space: pre-wrap;
}

.unread-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--orange-500);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.no-messages,
.error-message {
  text-align: center;
  padding: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

.error-message {
  color: #ff4444;
}

@media (max-width: 768px) {
  .messages-header {
    flex-direction: column;
  }

  .search-box,
  .filter-box {
    width: 100%;
  }

  .message-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-date {
    margin-top: 0.5rem;
  }

  .messages-container {
    padding: 1rem;
  }
}

/* Global Section Styles */
section {
  scroll-margin-top: 120px;
}

/* How It Works Page Styles */
.how-it-works-hero {
  padding: 160px 0 100px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.how-it-works-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("../assets/pattern.png") center/cover;
  opacity: 0.05;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 30px;
}

.features-grid {
  padding: 100px 0;
  background-color: var(--purple);
}

.features-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
  background: linear-gradient(135deg, var(--purple), var(--orange));
}

.feature-icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature-card h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background-color: var(--orange);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.details-btn:hover {
  background-color: var(--orange-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.5);
}

.details-btn i {
  transition: transform 0.3s ease;
}

.details-btn:hover i {
  transform: translateX(4px);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  margin: 5% auto;
  padding: 30px;
  width: 80%;
  max-width: 800px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFadeIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  transform: rotate(90deg);
  color: var(--orange);
}

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

/* Footer Styles */
footer {
  background-color: var(--orange-light);
  padding: 60px 0 20px;
  margin-top: 100px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.footer-section h4 {
  color: var(--purple-dark);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--purple-dark);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: var(--purple);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--purple-dark);
  font-size: 1.5rem;
  transition: all 0.3s;
}

.social-links a:hover {
  color: var(--purple);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(76, 29, 149, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: var(--purple-dark);
  font-size: 0.9rem;
}

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

  .hero-description {
    font-size: 1.1rem;
  }

  .features-wrapper {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
  }

  footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .footer-logo {
    text-align: center;
  }

  .footer-section {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}
