/* CSS Custom Properties */
:root {
  --bg: #0b0b0b;
  --muted: #8e8e8e;
  --accent: #ff6b2b;
  --glass: rgba(255, 255, 255, 0.04);
  --max-width: 1100px;
  --transition-smooth: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(1200px 400px at 10% 10%, rgba(255, 100, 40, 0.03), transparent), var(--bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* Font Preloader */
.font-preload {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

/* Main Content Container */
.main-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.main-content.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Layout Wrapper */
.wrap {
  max-width: var(--max-width);
  margin: 20px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Header Styles */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo .mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #ff9b63);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a1a1a;
  flex-shrink: 0;
  font-size: 18px;
}

.logo .text {
  font-weight: 600;
  font-size: 18px;
}

.badge {
  display: inline-block;
  background: var(--glass);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition-smooth);
}

.badge:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

.name-wrap {
  margin: 20px 0;
}

.name {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 900;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -1px;
  color: #fff;
  margin: 0;
}

/* Portrait Image */
.portrait {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition-smooth);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(0.9) saturate(0.85);
  transition: transform 0.3s ease;
}

.portrait:hover img {
  transform: scale(1.05);
}

/* CTA Button */
.cta {
  background: linear-gradient(90deg, var(--accent), #ff8a54);
  color: #111;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 0 20px rgba(255, 107, 43, 0.25);
  margin-top: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 16px;
  text-decoration: none;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,43,0.25);
}

/* Social Links Grid */
.links {
  width: 100%;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.link-card {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
}

.link-card .ico {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.link-card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.link-card p {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 13px;
}

.link-card .arrow {
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium), 0 4px 12px rgba(255, 107, 43, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.link-card:hover .arrow {
  transform: translateX(2px);
}

/* Footer */
footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wrap {
    padding: 16px;
    margin: 16px auto;
  }

  .hero {
    gap: 24px;
  }

  .links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: clamp(36px, 10vw, 48px);
  }

  .cta {
    padding: 12px 24px;
    font-size: 14px;
  }

  .link-card {
    padding: 16px;
  }
}