/* Pages Specific Styles */

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 6px 16px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--border-radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-secondary);
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
  animation: pulse-glow-cyan 2s infinite;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
}

.hero-desc {
  font-size: 1.15rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* Hero Interactive Graphic */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sphere-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
}

.sphere-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, rgba(6, 182, 212, 0.1) 50%, rgba(0, 0, 0, 0) 70%);
  filter: blur(20px);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.sphere-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
}

.sphere-ring-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 380px;
  height: 380px;
  margin-top: -190px;
  margin-left: -190px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: rotateX(70deg) rotateY(20deg);
  animation: spin-slow 20s linear infinite;
}

.sphere-ring-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  margin-top: -150px;
  margin-left: -150px;
  border: 1.5px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  transform: rotateX(60deg) rotateY(-40deg);
  animation: spin-slow 15s linear infinite reverse;
}

/* Features/Services Quick Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-tag {
  color: var(--accent-secondary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
}

.section-header h2 {
  font-size: 2.5rem;
}

.feature-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-sm);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-gradient);
  color: var(--text-primary);
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.feature-card h3 {
  font-size: 1.35rem;
}

.feature-card p {
  font-size: 0.95rem;
}

.readmore-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.readmore-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: var(--transition-fast);
}

.readmore-link:hover svg {
  transform: translateX(4px);
}

/* Portfolio Showcase */
.portfolio-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.portfolio-tab {
  padding: 8px 24px;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  border-radius: var(--border-radius-full);
  font-family: var(--font-heading);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
}

.portfolio-tab:hover, .portfolio-tab.active {
  background: var(--accent-gradient);
  color: var(--text-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  border: 1px solid var(--glass-border);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 11, 22, 0.95) 0%, rgba(10, 11, 22, 0.4) 60%, rgba(10, 11, 22, 0) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition-normal);
  transform: translateY(10px);
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Interactive Mini SEO Checker Form (Call-to-Action) */
.cta-banner {
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.15);
  background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 0% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
              var(--glass-bg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: -1;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-content h2 {
  font-size: 2.5rem;
}

.mini-checker {
  display: flex;
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-full);
  padding: 6px;
  gap: 10px;
}

.mini-checker input {
  flex-grow: 1;
  background: transparent;
  border: none;
  padding: 10px 24px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
}

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

/* ==========================================================================
   ABOUT US
   ========================================================================== */

/* Inner Page Header */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.page-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breadcrumbs span {
  color: var(--text-muted);
}

/* Process Steps (Timeline) */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--glass-border);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-left {
  left: 0;
  text-align: right;
}

.timeline-right {
  left: 50%;
  text-align: left;
}

.timeline-right::after {
  left: -8px;
}

.timeline-content {
  padding: 24px;
  position: relative;
}

.timeline-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.15);
  position: absolute;
  top: 10px;
  right: 20px;
}

.timeline-right .timeline-num {
  left: 20px;
  right: auto;
}

.timeline-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  overflow: hidden;
  text-align: center;
  position: relative;
}

.team-img-wrapper {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.team-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.team-card:hover .team-img-wrapper img {
  transform: scale(1.05);
}

.team-info {
  padding: 20px 15px;
}

.team-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-info p {
  font-size: 0.85rem;
  color: var(--accent-secondary);
  font-weight: 500;
}

/* ==========================================================================
   SERVICES & PRICING
   ========================================================================== */

/* Pricing Tables */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pricing-card.popular {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.pricing-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-gradient);
  color: var(--text-primary);
  padding: 4px 30px;
  font-size: 0.75rem;
  font-weight: 700;
  transform: rotate(45deg);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

.pricing-header {
  margin-bottom: 30px;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.pricing-features li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-secondary);
  flex-shrink: 0;
}

.pricing-card .btn {
  margin-top: auto;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 24px 30px;
  background: transparent;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.faq-icon svg {
  width: 12px;
  height: 12px;
  fill: var(--text-primary);
  transition: var(--transition-normal);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
}

.faq-answer p {
  padding-bottom: 24px;
  font-size: 0.95rem;
}

/* Open Accordion State */
.faq-item.active .faq-icon {
  background: var(--accent-gradient);
}

.faq-item.active .faq-icon svg {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* arbitrary height to slide down */
  padding: 0 30px 24px;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 50px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card-item {
  padding: 30px;
  display: flex;
  gap: 20px;
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-card-details h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-card-details p, .contact-card-details a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-form-wrapper {
  padding: 40px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-normal);
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

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

/* Map Mockup Container */
.map-container {
  height: 350px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-top: 50px;
  position: relative;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

.map-placeholder svg {
  width: 50px;
  height: 50px;
  fill: var(--accent-primary);
  animation: float 4s ease-in-out infinite;
}

/* ==========================================================================
   PAGES MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero-graphic {
    order: -1;
    margin-bottom: 40px;
  }
  .sphere-wrapper {
    width: 280px;
    height: 280px;
  }
  .sphere-core {
    width: 140px;
    height: 140px;
  }
  .sphere-ring-1 {
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
  }
  .sphere-ring-2 {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
  }
  .timeline::after {
    left: 31px;
  }
  .timeline-item {
    width: 100%;
    text-align: left;
    padding-left: 70px;
    padding-right: 0;
  }
  .timeline-left::after, .timeline-right::after {
    left: 22px;
  }
  .timeline-left .timeline-num, .timeline-right .timeline-num {
    left: 20px;
    right: auto;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero-badge {
    font-size: 0.75rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}
