/* portfolio.css – Final Boss Edition */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f172a;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* ===== BACKGROUND ===== */
.background-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #1e293b, #0f172a 90%);
  animation: bgPulse 10s ease-in-out infinite;
  z-index: -1;
}

@keyframes bgPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

/* ===== HEADER ===== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem 2rem;
  text-align: center;
  position: relative;
}

.logo {
  width: clamp(80px, 16vw, 100px);
  height: clamp(80px, 16vw, 100px);
  border-radius: 16px;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
  transition: transform 0.5s ease;
}

.logo:hover {
  transform: rotate(2deg) scale(1.06);
}

.title {
  font-size: clamp(2.5rem, 5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin-top: 1.2rem;
  letter-spacing: 1px;
}

.subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: #cbd5e1;
  margin-top: 0.4rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

/* ===== CARD ===== */
.founder-card {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  max-width: 720px;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: fadeSlideUp 1.2s ease-in-out forwards;
  transform: translateY(40px);
  opacity: 0;
  text-align: center;
  animation: fadeSlideUp 1.2s ease-in-out forwards, floatCard 8s ease-in-out infinite;
}

@keyframes fadeSlideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.founder-card h2,
.founder-card h3 {
  font-size: clamp(1.8rem, 4vw, 2rem);
  margin-bottom: 1rem;
  color: #ffffff;
}

.founder-card p {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
}

/* ===== VENTURE BUTTONS ===== */
.ventures {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #38bdf8, #3b82f6);
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 1;
}

.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary:hover {
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.7);
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.95rem;
  color: #94a3b8;
  background: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* ===== GOD-TIER ENHANCEMENTS ===== */

/* Switch to site-wide consistent font */
body {
  font-family: 'Poppins', sans-serif;
}

/* Soft background watermark */
body::after {
  content: 'Portfolio';
  position: fixed;
  bottom: 10%;
  right: 3%;
  font-size: 8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  z-index: -2;
  font-family: 'Playfair Display', serif;
  pointer-events: none;
  transform: rotate(-15deg);
  letter-spacing: 4px;
}

/* Text glow entrance for h2 and h3 */
.founder-card h2,
.founder-card h3 {
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.founder-card h2::after,
.founder-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, transparent);
  animation: lineReveal 2s ease-out forwards;
}

@keyframes lineReveal {
  to { left: 100%; }
}


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

/* Sparkle effect on buttons */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 200%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  z-index: 2;
  transition: left 0.6s ease-in-out;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Subtle pulsation on hover */
.btn-primary:hover {
  animation: pulseBtn 0.4s ease-in-out;
}

@keyframes pulseBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.pulse-glow-once {
  animation: glowOnce 1.2s ease-in-out forwards;
}
@keyframes glowOnce {
  0% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
  100% { box-shadow: 0 0 0 rgba(255, 255, 255, 0); }
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
  }

  .founder-card {
    padding: 2rem 1.25rem;
  }

  .ventures {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .footer {
    font-size: 0.85rem;
    padding: 2rem 1rem;
  }
}
