/* ============================================
   GYAN VIDDYUT TECHNOLOGY OF INDIA
   Page-Specific Styles
   ============================================ */

/* ===================
   HOME PAGE - Hero
   =================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  animation: particle-float linear infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-duration: 8s; animation-delay: 0s; --tx: 100px; --ty: -200px; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-duration: 10s; animation-delay: 1s; --tx: -80px; --ty: -150px; background: var(--accent-secondary); }
.particle:nth-child(3) { left: 70%; top: 30%; animation-duration: 7s; animation-delay: 2s; --tx: 60px; --ty: -180px; }
.particle:nth-child(4) { left: 80%; top: 70%; animation-duration: 9s; animation-delay: 0.5s; --tx: -120px; --ty: -100px; background: var(--accent-gold); }
.particle:nth-child(5) { left: 40%; top: 80%; animation-duration: 11s; animation-delay: 3s; --tx: 90px; --ty: -250px; background: var(--accent-secondary); }
.particle:nth-child(6) { left: 60%; top: 10%; animation-duration: 8.5s; animation-delay: 1.5s; --tx: -70px; --ty: 100px; }
.particle:nth-child(7) { left: 90%; top: 50%; animation-duration: 10s; animation-delay: 2.5s; --tx: -150px; --ty: -120px; background: var(--accent-gold); }
.particle:nth-child(8) { left: 30%; top: 40%; animation-duration: 9.5s; animation-delay: 0.8s; --tx: 110px; --ty: -160px; background: var(--accent-secondary); }
.particle:nth-child(9) { left: 50%; top: 90%; animation-duration: 7.5s; animation-delay: 4s; --tx: -60px; --ty: -300px; }
.particle:nth-child(10) { left: 15%; top: 85%; animation-duration: 12s; animation-delay: 2s; --tx: 80px; --ty: -220px; background: var(--accent-gold); width: 4px; height: 4px; }

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
}

.hero-text {
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.5px;
}

.hero-badge i {
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .gold-text {
  background: var(--accent-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-image-wrapper img {
  width: 100%;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  animation: pulse-glow 4s infinite;
}

.hero-float-card {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 4s ease-in-out infinite;
  box-shadow: var(--shadow-md);
}

.hero-float-card.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 15%;
  left: -5%;
  animation-delay: 1s;
}

.hero-float-card .float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-float-card .float-icon.cyan {
  background: rgba(0, 212, 255, 0.15);
  color: var(--accent-primary);
}

.hero-float-card .float-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-secondary);
}

/* ===================
   HOME - Featured Apps
   =================== */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.app-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 212, 255, 0.3);
}

.app-card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

.app-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.app-card:hover .app-card-image img {
  transform: scale(1.05);
}

.app-card-body {
  padding: var(--space-xl);
}

.app-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.app-card-body h3 i {
  font-size: 1rem;
}

.app-card-body .app-desc {
  margin-bottom: var(--space-lg);
}

.app-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.app-feature-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.app-feature-tag.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-secondary);
  border-color: rgba(16, 185, 129, 0.15);
}

.app-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===================
   HOME - Services Overview
   =================== */
.services-preview .grid-4 .glass-card {
  text-align: center;
}

.services-preview .card-icon {
  margin: 0 auto var(--space-lg);
}

/* ===================
   HOME - CTA Section
   =================== */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box h2 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.cta-box p {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.05rem;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
}

/* ===================
   ABOUT PAGE
   =================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}

.about-image-frame img {
  width: 100%;
  display: block;
}

.about-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
  pointer-events: none;
}

.about-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  gap: var(--space-xl);
  box-shadow: var(--shadow-lg);
}

.about-stat {
  text-align: center;
}

.about-stat .number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.4);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: var(--space-xs);
}

.timeline-item h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.timeline-item p {
  font-size: 0.9rem;
}

/* Founder Section */
.founder-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.founder-avatar {
  width: 150px;
  height: 150px;
  border-radius: var(--radius-xl);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--bg-primary);
  font-family: var(--font-heading);
  font-weight: 800;
}

.founder-info h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.founder-info .founder-title {
  color: var(--accent-primary);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

/* ===================
   APPS PAGE
   =================== */
.app-detail {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  border-bottom: 1px solid var(--border-color);
}

.app-detail:nth-child(even) {
  direction: rtl;
}

.app-detail:nth-child(even) > * {
  direction: ltr;
}

.app-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.app-mockup {
  position: relative;
}

.app-mockup img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.app-mockup:hover img {
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) scale(1.02);
}

.app-mockup .mockup-glow {
  position: absolute;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent);
  filter: blur(30px);
  z-index: -1;
}

.app-info h2 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.app-info .app-tagline {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-lg);
}

.app-info .app-description {
  margin-bottom: var(--space-xl);
}

.feature-list {
  margin-bottom: var(--space-xl);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--accent-secondary);
  margin-top: 4px;
  min-width: 16px;
}

/* ===================
   SERVICES PAGE
   =================== */
.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: var(--space-2xl) 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border-color);
  transform: translateY(-50%);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  flex: 1;
}

.process-step-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-primary);
  margin: 0 auto var(--space-md);
  transition: all var(--transition-base);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.process-step:hover .process-step-circle {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: var(--border-glow);
}

.process-step h4 {
  font-size: 0.95rem;
  margin-bottom: var(--space-xs);
}

.process-step p {
  font-size: 0.8rem;
  max-width: 140px;
  margin: 0 auto;
}

/* ===================
   SUPPORT - FAQ
   =================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: border-color var(--transition-base);
}

.faq-item.active {
  border-color: rgba(0, 212, 255, 0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-question i {
  font-size: 0.8rem;
  color: var(--accent-primary);
  transition: transform var(--transition-base);
  min-width: 16px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ===================
   CONTACT PAGE
   =================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateX(5px);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  min-width: 50px;
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

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

.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.contact-form-wrapper h3 {
  margin-bottom: var(--space-xl);
  font-size: 1.3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.form-success.active {
  display: block;
}

.form-success i {
  font-size: 3rem;
  color: var(--accent-secondary);
  margin-bottom: var(--space-md);
}

/* ===================
   DATA DELETION FORM
   =================== */
.deletion-form-wrapper {
  max-width: 600px;
  margin: var(--space-2xl) auto 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.deletion-form-wrapper h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* ===================
   RESPONSIVE OVERRIDES
   =================== */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .hero-image-wrapper {
    max-width: 300px;
  }

  .hero-float-card {
    display: none;
  }

  .app-showcase {
    grid-template-columns: 1fr;
  }

  .app-detail {
    grid-template-columns: 1fr;
  }

  .app-detail:nth-child(even) {
    direction: ltr;
  }

  .app-mockup img {
    max-width: 280px;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-stats {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: var(--space-md);
  }

  .founder-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-avatar {
    margin: 0 auto;
  }

  .process-timeline {
    flex-direction: column;
    gap: var(--space-xl);
    align-items: center;
  }

  .process-timeline::before {
    top: 5%;
    bottom: 5%;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}
