* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0c0f;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #e3e6ea;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ===== LAYOUT ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
  width: 260px;
  background: #0d1117;
  border-right: 1px solid #1e262f;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.sidebar.collapsed {
  width: 72px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  gap: 0.5rem;
}

.sidebar.collapsed .sidebar-header {
  padding: 1.5rem 0 1rem;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar-brand i {
  color: #ff6b35;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.sidebar.collapsed .sidebar-brand .brand-text {
  opacity: 0;
  width: 0;
  pointer-events: none;
}

.brand-text {
  transition: opacity 0.2s ease;
}

.collapse-btn {
  background: #161d26;
  border: 1px solid #2d3742;
  color: #b6c0cc;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, transform 0.3s ease;
}

.collapse-btn:hover {
  background: #1e262f;
  color: #ff6b35;
}

.sidebar.collapsed .collapse-btn {
  transform: rotate(180deg);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar.collapsed .sidebar-nav {
  padding: 1rem 0.5rem;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6675;
  padding: 0 0.75rem;
  margin-bottom: 0.4rem;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: #b6c0cc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
  position: relative;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.65rem 0;
  gap: 0;
}

.nav-link i {
  width: 1.1rem;
  text-align: center;
  color: #5a6675;
  transition: color 0.15s;
  flex-shrink: 0;
  font-size: 1rem;
}

.nav-link:hover {
  background: #161d26;
  color: #ffffff;
}

.nav-link:hover i {
  color: #ff6b35;
}

.nav-link.active {
  background: rgba(255, 107, 53, 0.1);
  color: #ffffff;
}

.nav-link.active i {
  color: #ff6b35;
}

.link-text {
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.sidebar.collapsed .link-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.copy-icon {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}

.sidebar.collapsed .copy-icon {
  display: none;
}

.copy-email:hover .copy-icon {
  opacity: 1;
  color: #ff6b35;
}

.copy-email.copied .copy-icon {
  color: #4ade80;
  opacity: 1;
}

.sidebar-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #1e262f;
  font-size: 0.8rem;
  color: #5a6675;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.sidebar.collapsed .sidebar-footer {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.sidebar.collapsed .nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e262f;
  color: #ffffff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  border: 1px solid #2d3742;
  z-index: 100;
}

.sidebar.collapsed .nav-link:hover::after {
  opacity: 1;
}

/* ===== CONTENT WRAPPER ===== */
.content {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content.collapsed {
  margin-left: 72px;
}

/* ===== TOPBAR ===== */
.topbar {
  border-bottom: 1px solid #1e262f;
  padding: 1rem 2rem;
  background: #0a0c0f;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-logo {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
}

.topbar-logo i {
  color: #ff6b35;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #9aa4b2;
  margin-left: auto;
}

.topbar-contact i {
  color: #ff6b35;
}

.topbar-contact a {
  color: #cfd8e2;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-contact a:hover {
  color: #ff6b35;
}

.topbar-contact .divider {
  color: #2d3742;
  margin: 0 0.25rem;
}

/* ===== COPY EMAIL BUTTONS ===== */
.copy-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #232a33;
  color: #cfd8e2;
  padding: 0.35rem 0.75rem;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.copy-email:hover {
  background: rgba(255, 107, 53, 0.08);
  border-color: rgba(255, 107, 53, 0.3);
  color: #ffffff;
}

.copy-email.copied {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

.copy-email i:first-child {
  color: #ff6b35;
  flex-shrink: 0;
}

.copy-email.copied i:first-child {
  color: #4ade80;
}

.copy-email.inline-copy {
  display: inline-flex;
  background: transparent;
  border: none;
  padding: 0;
  color: #ff6b35;
  border-radius: 0;
  font-size: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  gap: 0.3rem;
}

.copy-email.inline-copy:hover {
  color: #ff9f6b;
  background: transparent;
  border-color: transparent;
}

.copy-email.inline-copy.copied {
  color: #4ade80;
  background: transparent;
  border-color: transparent;
}

.nav-link.copy-email {
  border-radius: 10px;
  border: none;
  background: none;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
}

.nav-link.copy-email:hover {
  background: #161d26;
  border: none;
}

/* ===== MAIN ===== */
.main {
  flex: 1;
  padding: 0 2rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* ===== HERO ===== */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero .highlight {
  background: linear-gradient(135deg, #ff6b35, #ff9f6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: #9aa4b2;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b6c0cc;
  transition: all 0.2s;
}

.badge i {
  color: #ff6b35;
  margin-right: 0.3rem;
}

#easterEggBadge {
  cursor: pointer;
  user-select: none;
}

#easterEggBadge:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: rgba(255, 107, 53, 0.3);
}

#easterEggBadge.triggered {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.4);
  color: #4ade80;
}

#easterEggBadge.triggered i {
  color: #4ade80;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: #ff6b35;
  font-size: 1.6rem;
}

/* ===== PROJECTS ===== */
.projects-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: #12161c;
  border: 1px solid #232a33;
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s, background 0.2s;
}

.project-card:hover {
  border-color: #ff6b3540;
  background: #141a22;
  transform: translateY(-4px);
}

.project-card i {
  font-size: 2.2rem;
  color: #ff6b35;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.project-card p {
  color: #9aa4b2;
  font-size: 0.95rem;
  margin-bottom: 1.4rem;
}

.coming-soon-card {
  border-color: rgba(255, 107, 53, 0.2);
}

.coming-soon {
  display: inline-block;
  background: rgba(255, 107, 53, 0.12);
  color: #ff8a5c;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 40px;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.coming-soon i {
  font-size: 0.7rem;
  margin-right: 0.25rem;
  color: inherit;
  margin-bottom: 0;
}

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.info-card {
  background: #12161c;
  border: 1px solid #232a33;
  border-radius: 24px;
  padding: 2rem;
}

.info-card .section-title {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  background: #1e262f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ff6b35;
  border: 1px solid #2d3742;
  flex-shrink: 0;
}

.team-info h4 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.team-info a {
  color: #b6c0cc;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.team-info a:hover {
  color: #ff6b35;
}

.team-info a i {
  font-size: 0.8rem;
}

.info-card hr {
  border: none;
  border-top: 1px solid #232a33;
  margin: 1.5rem 0 1rem;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.link-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.link-list i {
  color: #ff6b35;
  width: 1.2rem;
}

.link-list a {
  color: #cfd8e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.link-list a:hover {
  color: #ff6b35;
}

.soon-tag {
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: #ff8a5c;
  font-size: 0.7rem;
  padding: 0.1rem 0.6rem;
  border-radius: 40px;
  margin-left: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  padding: 3.5rem 0;
  max-width: 800px;
}

.page-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.page-meta {
  color: #5a6675;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #1e262f;
}

.page-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: #ffffff;
}

.page-content p {
  color: #b6c0cc;
  margin-bottom: 1rem;
}

.page-content ul {
  color: #b6c0cc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content ul li {
  margin-bottom: 0.4rem;
}

.coming-soon-hero {
  background: #12161c;
  border: 1px solid #232a33;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.coming-soon-hero i {
  font-size: 2.5rem;
  color: #ff6b35;
  margin-bottom: 1rem;
}

.coming-soon-hero h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.coming-soon-hero p {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== ERROR PAGE ===== */
.error-page {
  padding: 5rem 0;
  text-align: center;
}

.error-code {
  font-size: 7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-code .four {
  color: #2d3742;
}

.error-code .zero {
  color: #ff6b35;
  text-shadow: 0 0 40px rgba(255, 107, 53, 0.3);
}

.error-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.error-page p {
  color: #9aa4b2;
  max-width: 450px;
  margin: 0 auto 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary {
  background: #ff6b35;
  color: #0a0c0f;
}

.btn-primary:hover {
  background: #ff8355;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #161d26;
  color: #e3e6ea;
  border: 1px solid #2d3742;
}

.btn-secondary:hover {
  background: #1e262f;
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  padding: 2rem 2rem;
  font-size: 0.85rem;
  color: #7b8794;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-top: 1px solid #1e262f;
}

.footer-copy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-copy i {
  color: #ff6b35;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-contact i {
  color: #ff6b35;
}

.footer-contact a {
  color: #cfd8e2;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: #ff6b35;
}

.footer-contact .dot {
  color: #2d3742;
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #161d26;
  border: 1px solid #2d3742;
  color: #e3e6ea;
  font-size: 1.2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: #1e262f;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 40;
  backdrop-filter: blur(2px);
}

.overlay.active {
  display: block;
}

/* ===== UTILITIES ===== */
.muted {
  color: #9aa4b2;
}

.small {
  font-size: 0.9rem;
}

.mt-1 {
  margin-top: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px !important;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    width: 260px !important;
  }

  .sidebar.collapsed .brand-text,
  .sidebar.collapsed .link-text,
  .sidebar.collapsed .nav-label,
  .sidebar.collapsed .footer-text,
  .sidebar.collapsed .copy-icon {
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: inline !important;
  }

  .sidebar.collapsed .nav-link {
    justify-content: flex-start !important;
    padding: 0.55rem 0.75rem !important;
    gap: 0.75rem !important;
  }

  .sidebar.collapsed .sidebar-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    padding: 1.5rem 1.5rem 1rem !important;
  }

  .sidebar.collapsed .sidebar-nav {
    padding: 1rem 0.75rem !important;
  }

  .sidebar.collapsed .sidebar-footer {
    opacity: 1 !important;
    height: auto !important;
    padding: 1.25rem 1.5rem !important;
    overflow: visible !important;
  }

  .sidebar.collapsed .nav-link::after {
    display: none;
  }

  .collapse-btn {
    display: none;
  }

  .content {
    margin-left: 0 !important;
  }

  .menu-toggle {
    display: flex;
  }

  .topbar-logo {
    display: flex;
  }

  .topbar-contact {
    font-size: 0.8rem;
  }

  .main {
    padding: 0 1.25rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .error-code {
    font-size: 5rem;
  }

  .page-content h1 {
    font-size: 2rem;
  }

  .footer {
    padding: 1.5rem 1.25rem;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .topbar-contact .divider,
  .topbar-contact a:last-child {
    display: none;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .info-card {
    padding: 1.5rem;
  }
}