/* home.css - Full-Cycle Software Engineering Studio */
@import url('base.css');

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  display: flex;
  align-items: center;
  position: relative;
  min-height: 70vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-1);
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.hero-title span:first-of-type {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span:last-of-type {
  background: linear-gradient(135deg, #38ef7d, #11998e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

/* Hero Showcase Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-sphere {
  position: absolute;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.2) 0%, rgba(56, 239, 125, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulseSphere 8s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-showcase-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 17, 23, 0.85);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.15);
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-showcase-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 242, 254, 0.25);
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.hero-floating-badge.badge-finance {
  top: 1rem;
  left: 1rem;
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: var(--accent-1);
}

.hero-floating-badge.badge-gaming {
  bottom: 1rem;
  right: 1rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: pulseDot 2s infinite ease-in-out;
}

/* Studio Disciplines Section */
.studio-disciplines-section {
  padding: 4rem 0;
  background: rgba(13, 17, 23, 0.6);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.discipline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.discipline-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: var(--shadow-lg), 0 15px 35px -10px rgba(0, 242, 254, 0.12);
}

.discipline-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.discipline-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.discipline-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.discipline-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
}

.discipline-tag-list span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* Featured Portfolio Showcase Preview */
.featured-portfolio-section {
  padding: 4rem 0;
}

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.25rem;
}

.preview-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-md);
}

.preview-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: var(--shadow-lg), 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.preview-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #000;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.preview-badge-float {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  font-family: var(--font-header);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  backdrop-filter: blur(8px);
}

.preview-badge-float.status-retired {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.35);
  color: #94a3b8;
}

.preview-badge-float.status-retired .status-dot {
  background: #94a3b8;
  animation: none;
}

.preview-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex-grow: 1;
}

.preview-category {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.preview-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 8px;
  font-family: var(--font-header);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-1);
  color: var(--accent-1);
  transform: translateY(-2px);
}

.preview-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.preview-link:hover {
  color: var(--accent-1);
  text-decoration: underline;
}

/* Engineering Foundation Section */
.engineering-foundation {
  padding: 4rem 0;
  background: rgba(13, 17, 23, 0.6);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.foundation-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.foundation-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: var(--shadow-lg), 0 10px 30px -10px rgba(0, 242, 254, 0.1);
}

.foundation-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.foundation-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.foundation-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Animations */
@keyframes pulseSphere {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.1); opacity: 1; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .badge {
    align-self: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

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

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }
}
