﻿/* ===================================================
   Muzakraty - Home Page Styles
   Styles specific to index.html
   =================================================== */

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  width: 100%;
  max-width: 100vw;
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100vw;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

.hero-logo {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  border-radius: 36px;
  animation: logoFloat 4s ease-in-out infinite, logoGlow 3s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 40px var(--glow-blue));
}

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

@keyframes logoGlow {
  0% { filter: drop-shadow(0 0 30px rgba(57, 73, 171, 0.4)); }
  100% { filter: drop-shadow(0 0 60px rgba(57, 73, 171, 0.8)); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 40%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 191, 165, 0.1);
  border: 1px solid rgba(0, 191, 165, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-teal);
  margin-bottom: 24px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 191, 165, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(0, 191, 165, 0); }
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

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

/* ===== FEATURES ===== */
#features {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 191, 165, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 191, 165, 0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--deep-blue), var(--light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: all 0.4s;
}

.feature-card:hover .feature-icon {
  box-shadow: 0 0 30px var(--glow-blue);
  transform: scale(1.1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-teal);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

/* ===== UNIVERSITIES (home page cards) ===== */
#universities {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.universities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.uni-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.uni-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--light-blue));
  opacity: 0;
  transition: opacity 0.4s;
}

.uni-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 165, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.uni-card:hover::after { opacity: 1; }

.uni-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--deep-blue), var(--light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-teal);
  transition: all 0.4s;
}

.uni-card:hover .uni-icon {
  box-shadow: 0 0 25px var(--glow-blue);
  transform: scale(1.1);
}

.uni-icon svg { color: var(--accent-teal); }

.uni-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.uni-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== APP EXPERIENCE ===== */
#app-experience {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.app-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  perspective: 1200px;
  width: 100%;
}

.phone-mockup {
  width: 220px;
  background: linear-gradient(145deg, #13173d, #0d1030);
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(57, 73, 171, 0.15);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.phone-mockup:hover {
  transform: translateY(-12px) rotateY(-3deg);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 191, 165, 0.15);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9/19.5;
  object-fit: cover;
}

.phone-mockup-label {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.phone-mockup.featured {
  width: 250px;
  z-index: 2;
  border-color: rgba(0, 191, 165, 0.2);
}

/* ===== SECURITY ===== */
#security {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.security-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
}

.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 191, 165, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 191, 165, 0.08);
}

.security-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.15), rgba(0, 191, 165, 0.05));
  border: 1px solid rgba(0, 191, 165, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s;
}

.security-card:hover .security-icon {
  box-shadow: 0 0 25px var(--glow-teal);
}

.security-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-teal);
}

.security-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.security-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ===== ABOUT ===== */
#about {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  width: 100%;
}

.about-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 16px;
  text-align: center;
  transition: all 0.4s;
  backdrop-filter: blur(10px);
}

.about-item:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 191, 165, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.about-item .about-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.about-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== CTA ===== */
#cta {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.cta-section {
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(135deg, rgba(26, 35, 126, 0.3), rgba(0, 191, 165, 0.08));
  border: 1px solid rgba(0, 191, 165, 0.15);
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 191, 165, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff, var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ===== HOME RESPONSIVE ===== */

/* Extra large screens */
@media (min-width: 1600px) {
  .hero-content { max-width: 900px; }
  .hero-logo { width: 160px; height: 160px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .feature-card { padding: 44px 36px; }
  .universities-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .uni-card { padding: 40px; }
  .about-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .about-item { padding: 36px 24px; }
  .security-grid { gap: 32px; }
  .security-card { padding: 44px; }
  .cta-box { padding: 100px 60px; }
}

@media (min-width: 1920px) {
  .hero-logo { width: 180px; height: 180px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .feature-card { padding: 52px 44px; }
  .universities-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Large screens and laptops */
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .universities-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .security-grid { gap: 20px; }
  .phone-mockup { width: 200px; }
  .phone-mockup.featured { width: 230px; }
}

/* Tablets landscape */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .universities-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .phone-mockup { width: 180px; }
  .phone-mockup.featured { width: 210px; }
}

/* Tablets portrait and small laptops */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .universities-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr; max-width: 600px; }
  .app-showcase { gap: 16px; }
  .phone-mockup { width: 160px; }
  .phone-mockup.featured { width: 190px; }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
  .hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; width: 100%; max-width: 100vw; overflow: hidden; }
  .hero-content { padding: 0 16px; width: 100%; max-width: 100%; }
  .hero-logo { width: 100px; height: 100px; border-radius: 28px; }
  .hero-title { font-size: 2.2rem; word-wrap: break-word; }
  .hero-subtitle { font-size: 1.1rem; word-wrap: break-word; }
  .hero-desc { font-size: 0.9rem; margin-bottom: 24px; line-height: 1.7; max-width: 100%; word-wrap: break-word; }
  .hero-badge { font-size: 0.8rem; padding: 6px 16px; margin-bottom: 20px; max-width: 100%; word-wrap: break-word; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; width: 100%; padding: 0; }
  .btn-download { width: 100%; max-width: 100%; justify-content: center; box-sizing: border-box; }

  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 28px 24px; }
  .feature-icon { width: 56px; height: 56px; }
  .feature-card h3 { font-size: 1.1rem; }
  .feature-card p { font-size: 0.85rem; }

  .universities-grid { grid-template-columns: 1fr; gap: 16px; }
  .uni-card { padding: 24px; }
  .uni-icon { width: 48px; height: 48px; font-size: 1.2rem; }
  .uni-card h3 { font-size: 1rem; }
  .uni-card p { font-size: 0.8rem; }

  .security-grid { grid-template-columns: 1fr; gap: 16px; max-width: 100%; }
  .security-card { flex-direction: column; text-align: center; align-items: center; padding: 28px; }
  .security-icon { width: 48px; height: 48px; min-width: 48px; }
  .security-icon svg { width: 22px; height: 22px; }
  .security-card h3 { font-size: 1rem; }
  .security-card p { font-size: 0.85rem; }

  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-item { padding: 20px 12px; }
  .about-item .about-icon { font-size: 1.5rem; }
  .about-item h4 { font-size: 0.85rem; }
  .about-item p { font-size: 0.75rem; }

  .phone-mockup { width: 140px; }
  .phone-mockup.featured { width: 160px; }
  .phone-mockup-label { font-size: 0.75rem; }

  .cta-box { padding: 40px 20px; }
  .cta-title { font-size: 1.6rem; }
  .cta-desc { font-size: 1rem; margin-bottom: 30px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }

  .hero-scroll { bottom: 20px; }
  .hero-scroll svg { width: 24px; height: 24px; }
}

/* Mobile portrait */
@media (max-width: 480px) {
  .hero { padding-top: 90px; width: 100%; max-width: 100vw; }
  .hero-logo { width: 80px; height: 80px; border-radius: 22px; }
  .hero-title { font-size: 1.8rem; word-wrap: break-word; }
  .hero-subtitle { font-size: 1rem; word-wrap: break-word; }
  .hero-desc { font-size: 0.85rem; word-wrap: break-word; }
  .hero-content { padding: 0 12px; }

  .features-grid { gap: 12px; }
  .feature-card { padding: 24px 20px; width: 100%; box-sizing: border-box; }
  .feature-icon { width: 52px; height: 52px; margin-bottom: 16px; }
  .feature-icon svg { width: 24px; height: 24px; }
  .feature-card h3 { font-size: 1rem; margin-bottom: 8px; word-wrap: break-word; }
  .feature-card p { word-wrap: break-word; }

  .universities-grid { grid-template-columns: 1fr; gap: 12px; }
  .uni-card { padding: 20px; width: 100%; box-sizing: border-box; }

  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .about-item { padding: 16px 10px; }
  .about-item .about-icon { font-size: 1.3rem; margin-bottom: 8px; }
  .about-item h4 { font-size: 0.8rem; }

  .app-showcase { gap: 12px; width: 100%; }
  .phone-mockup { width: 120px; }
  .phone-mockup.featured { width: 135px; }
  .phone-mockup-label { font-size: 0.7rem; margin-top: 8px; }

  .security-card { padding: 24px 20px; width: 100%; box-sizing: border-box; }
  .security-icon { width: 44px; height: 44px; min-width: 44px; }

  .cta-box { padding: 32px 16px; width: 100%; box-sizing: border-box; }
  .cta-title { font-size: 1.4rem; word-wrap: break-word; }
  .cta-desc { font-size: 0.9rem; word-wrap: break-word; }
  .cta-buttons { width: 100%; padding: 0; }
}

/* Small mobile */
@media (max-width: 360px) {
  .hero-logo { width: 70px; height: 70px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.9rem; }

  .features-grid { gap: 10px; }
  .feature-card { padding: 20px 16px; }
  .feature-icon { width: 48px; height: 48px; }

  .about-grid { grid-template-columns: 1fr; gap: 10px; }
  .about-item { padding: 20px 16px; }

  .phone-mockup { width: 100px; }
  .phone-mockup.featured { width: 115px; }

  .universities-grid { gap: 10px; }
  .uni-card { padding: 18px; }
}

/* Extra small mobile */
@media (max-width: 320px) {
  .hero-title { font-size: 1.4rem; }
  .hero-logo { width: 60px; height: 60px; }

  .phone-mockup { width: 90px; }
  .phone-mockup.featured { width: 100px; }

  .cta-title { font-size: 1.2rem; }
  .feature-card { padding: 18px 14px; }
}

