/* public/styles/main.css */
/* Custom styles for SevenTechSync website */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --secondary: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --dark: #1e293b;
  --dark-navy: #0f172a;
  --dark-alt: #334155;
  --light: #ffffff;
  --cream: #f8f7f4;
  --text: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --bg-light: #f8f7f4;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Smooth animations */
* {
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--dark-navy);
  backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: none;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
}

.navbar-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.navbar-nav a:hover {
  color: var(--primary);
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 3rem 2rem 4rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.65) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--cream);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 11;
}

/* Floating Gradient Shapes */
.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  opacity: 0.6;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  width: 280px;
  height: 200px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  transform: rotate(-15deg);
}

.shape-2 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  top: 15%;
  right: 8%;
  animation-delay: 2s;
  border-radius: 50%;
}

.shape-3 {
  width: 200px;
  height: 140px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  bottom: 20%;
  left: 15%;
  animation-delay: 4s;
  transform: rotate(25deg);
}

.shape-4 {
  width: 240px;
  height: 180px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: 15%;
  right: 10%;
  animation-delay: 1s;
  transform: rotate(-20deg);
}

.shape-5 {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  top: 50%;
  right: 20%;
  animation-delay: 3s;
  border-radius: 50%;
}

.shape-6 {
  width: 160px;
  height: 120px;
  background: linear-gradient(135deg, #ff6a88 0%, #ff99ac 100%);
  top: 60%;
  left: 8%;
  animation-delay: 5s;
  border-radius: 20px;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(5deg);
  }
  50% {
    transform: translateY(-15px) translateX(-15px) rotate(-5deg);
  }
  75% {
    transform: translateY(-40px) translateX(15px) rotate(3deg);
  }
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--light);
  line-height: 1.1;
  font-family: 'Georgia', serif;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Hero Image Effects */
.hero-image {
  position: relative;
  animation: heroImageFloat 6s ease-in-out infinite;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(246, 147, 251, 0.6));
  border-radius: 28px;
  z-index: -1;
  filter: blur(25px);
  opacity: 0.8;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

.hero-image img {
  position: relative;
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}

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

@keyframes glowPulse {
  0% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--light);
  box-shadow: none;
  font-weight: 500;
}

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

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--dark-alt);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--dark-alt);
  border-color: var(--dark-alt);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-submit-contact {
  background: var(--light) !important;
  color: var(--dark) !important;
  border: 2px solid var(--dark) !important;
}

.btn-submit-contact:hover {
  background: var(--dark) !important;
  color: var(--light) !important;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section.light-bg {
  background: var(--cream);
  max-width: 100%;
}

.section.light-bg > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section.light-bg .about-content {
  max-width: 800px;
}

.section.light-bg .section-title {
  color: var(--text-dark);
}

#about {
  background: var(--cream);
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title span {
  color: var(--text-dark);
}

#contact .section-title span {
  color: var(--text-dark);
}

/* About Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--light);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Animated Service Cards */
.animated-service-card {
  color: white;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  animation: fadeInScale 0.7s ease-out forwards, floatCard 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform, box-shadow;
}

.animated-service-card:nth-child(1) { animation: fadeInScale 0.7s 0.1s ease-out forwards, floatCard 3s ease-in-out infinite; }
.animated-service-card:nth-child(2) { animation: fadeInScale 0.7s 0.2s ease-out forwards, floatCard 3s 0.4s ease-in-out infinite; }
.animated-service-card:nth-child(3) { animation: fadeInScale 0.7s 0.3s ease-out forwards, floatCard 3s 0.8s ease-in-out infinite; }
.animated-service-card:nth-child(4) { animation: fadeInScale 0.7s 0.4s ease-out forwards, floatCard 3s 1.2s ease-in-out infinite; }
.animated-service-card:nth-child(5) { animation: fadeInScale 0.7s 0.5s ease-out forwards, floatCard 3s 1.6s ease-in-out infinite; }
.animated-service-card:nth-child(6) { animation: fadeInScale 0.7s 0.6s ease-out forwards, floatCard 3s 2s ease-in-out infinite; }
.animated-service-card:nth-child(7) { animation: fadeInScale 0.7s 0.7s ease-out forwards, floatCard 3s 2.4s ease-in-out infinite; }
.animated-service-card:nth-child(8) { animation: fadeInScale 0.7s 0.8s ease-out forwards, floatCard 3s 2.8s ease-in-out infinite; }
.animated-service-card:nth-child(9) { animation: fadeInScale 0.7s 0.9s ease-out forwards, floatCard 3s ease-in-out infinite; }

.animated-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.animated-service-card:hover::before {
  opacity: 1;
}

.animated-service-card:hover {
  animation-play-state: paused;
  transform: translateY(-15px) scale(1.03) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card h3 {
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.animated-service-card h3 {
  color: white;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  color: #666;
  line-height: 1.7;
  font-size: 0.98rem;
}

.animated-service-card p {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.7;
  font-size: 0.98rem;
}

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

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

@keyframes floatCardHover {
  0%, 100% {
    transform: translateY(-12px) scale(1.02);
  }
  50% {
    transform: translateY(-20px) scale(1.03);
  }
}

/* Contact Form */
.contact-section {
  background: var(--light);
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: transparent;
  border: none;
  padding: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input-underline,
.form-textarea-underline,
.form-select-underline {
  width: 100%;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input-underline:focus,
.form-textarea-underline:focus,
.form-select-underline:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.form-input-underline.invalid,
.form-textarea-underline.invalid {
  border-bottom-color: var(--error);
}

.form-textarea-underline {
  resize: vertical;
  min-height: 100px;
}

.form-select-underline {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 1.5rem;
}

/* Status Messages */
.status-message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-weight: 500;
  display: none;
}

.status-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.status-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

.status-message.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.status-message.info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--secondary);
  color: var(--secondary);
}

/* Footer */
.footer {
  background: var(--dark-navy);
  border-top: none;
  padding: 2rem 1.5rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

/* FAQ Styles */
.faq-question h3 {
  flex: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding-right: 1rem;
}

.faq-question {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-container {
    padding: 1rem 1.5rem;
  }

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

  .navbar-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--dark-navy);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  }

  .navbar-nav.active {
    right: 0;
  }

  .navbar-nav li {
    list-style: none;
  }

  .navbar-nav a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem 0;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 2rem 1rem 3rem;
  }

  /* Hide floating shapes on mobile for performance */
  .hero-shapes {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }

  .hero h1 {
    font-size: 2rem !important;
    text-align: center;
  }

  .hero p {
    text-align: center;
    font-size: 1rem !important;
  }

  .hero-image {
    order: -1;
    max-width: 100%;
    animation: none; /* Disable float animation on mobile */
  }

  .hero-image::before {
    display: none; /* Disable glow effect on mobile for performance */
  }

  /* Hero Buttons */
  .hero div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: stretch;
  }

  .hero .btn {
    width: 100%;
    text-align: center;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  /* Section Padding */
  .section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  /* About Content */
  .about-content {
    padding: 0 0.5rem;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 0;
  }

  /* FAQ Items */
  .faq-item {
    padding: 1rem !important;
  }

  .faq-item h3 {
    font-size: 0.95rem !important;
    line-height: 1.4;
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-right: 1rem;
  }

  .faq-question {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .faq-icon {
    font-size: 1.25rem !important;
    min-width: 25px !important;
    flex-shrink: 0;
  }

  .faq-answer p {
    font-size: 0.9rem !important;
    line-height: 1.6;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Mobile Small Screens */
@media (max-width: 480px) {
  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-logo {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 1.75rem !important;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Loading animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
