:root {
  --section-corvid-background-color: #cb0d0d00;
  --accent-color: #ffa500;
  --accent-orange: #ffa500;
  --accent-red: #e74c3c;
  --accent-blue: #3498db;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --bg-light-grey: #f5f5f5;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.16);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-light-grey);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* ============================================
   HEADER - DESKTOP
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-light-grey);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  animation: slideDown 0.6s ease-out;
  flex-shrink: 0;
  height: 70px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.header-name-wrapper {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.header-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-primary);
  margin: 0;
}

.header-role {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.header-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.header-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.header-nav-link:hover {
  color: var(--accent-orange);
  transform: translateY(-2px);
}

.header-nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-divider {
  color: #d0d0d0;
  font-weight: 300;
  user-select: none;
}

/* ============================================
   MAIN CONTENT - DESKTOP
   ============================================ */
.main-content {
  margin-top: 70px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  animation: slideUp 0.8s ease-out;
  overflow: hidden;
  min-height: 0;
  max-height: calc(100vh - 70px - 90px);
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-image-wrapper {
  position: relative;
  animation: fadeInLeft 1s ease-out;
  display: flex;
  justify-content: center;
}

@keyframes fadeInLeft {
  from {
    transform: translateX(-30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.profile-image {
  width: 100%;
  max-width: 80%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-content {
  animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.hero-title-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-primary);
  line-height: 1.1;
  margin: 0;
}

.accent-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-orange);
  flex-shrink: 0;
}

.hero-text {
  margin-bottom: 1.25rem;
}

.hero-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: 0.2px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 0 1rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.btn-download {
  background: var(--accent-orange);
}

.btn-download:hover {
  background: #ff8c00;
}

.btn-github {
  background: var(--accent-red);
}

.btn-github:hover {
  background: #c0392b;
}

.btn-linkedin {
  background: var(--accent-blue);
}

.btn-linkedin:hover {
  background: #2980b9;
}

/* ============================================
   FOOTER - DESKTOP
   ============================================ */
.footer {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem 2rem;
  flex-shrink: 0;
  height: 90px;
  display: flex;
  align-items: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-icon {
  color: var(--text-primary);
  flex-shrink: 0;
}

.footer-label {
  font-weight: 500;
  color: var(--text-primary);
}

.footer-link {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
}

.footer-link:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* ============================================
   MOBILE & TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  html,
  body {
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
  }

  /* Header - 40% reduction */
  .header {
    position: fixed;
    padding: 0.6rem 1.2rem;
    height: auto;
    min-height: 42px;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-circle {
    width: 25px;
    height: 25px;
  }

  .header-name {
    font-size: 1rem;
  }

  .header-role {
    font-size: 0.85rem;
  }

  .header-nav-link {
    padding: 0.3rem;
    min-width: 36px;
    min-height: 36px;
  }

  .header-nav-link svg {
    width: 16px;
    height: 16px;
  }

  .nav-divider {
    font-size: 0.85rem;
  }

  /* Main Content - Reduced padding */
  .main-content {
    margin-top: 50px;
    padding: 1rem 1.5rem;
    padding-bottom: 1rem;
    min-height: auto;
    max-height: none;
    overflow-y: visible;
    align-items: flex-start;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .profile-image-wrapper {
    display: flex;
    justify-content: center;
  }

  .profile-image {
    max-width: 50%;
  }

  .hero-title-wrapper {
    justify-content: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .accent-circle {
    width: 10px;
    height: 10px;
  }

  .hero-text {
    margin-bottom: 1rem;
  }

  .hero-text p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
  }

  .hero-buttons {
    gap: 0.75rem;
    justify-content: center;
  }

  .hero-btn {
    min-width: 90px;
    height: 90px;
    font-size: 0.85rem;
    padding: 0 0.75rem;
  }

  /* Footer - 40% reduction */
  .footer {
    padding: 0.9rem 1.2rem;
    height: auto;
    min-height: 54px;
    margin-top: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    text-align: center;
  }

  .footer-column {
    justify-content: center;
  }

  .footer-item {
    font-size: 0.85rem;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .footer-item span {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .footer-icon {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   SMALL MOBILE (max-width: 600px)
   ============================================ */
@media (max-width: 600px) {
  html,
  body {
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Header - Even more compact */
  .header {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: auto;
  }

  .header-left {
    width: 100%;
    gap: 0.5rem;
  }

  .header-name-wrapper {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }

  .header-name {
    font-size: 0.95rem;
  }

  .header-role {
    font-size: 0.75rem;
  }

  .header-nav {
    width: 100%;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .header-nav-link {
    padding: 0.25rem;
    min-width: 32px;
    min-height: 32px;
  }

  .header-nav-link svg {
    width: 14px;
    height: 14px;
  }

  .nav-divider {
    font-size: 0.75rem;
  }

  /* Main Content - Very compact */
  .main-content {
    margin-top: 80px;
    padding: 1rem;
    padding-bottom: 1rem;
  }

  .hero-section {
    gap: 1.25rem;
  }

  .profile-image {
    max-width: 180px;
  }

  .hero-title-wrapper {
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 0.5px;
  }

  .accent-circle {
    width: 8px;
    height: 8px;
  }

  .hero-text {
    margin-bottom: 0.75rem;
  }

  .hero-text p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.4rem;
  }

  .hero-buttons {
    gap: 0.5rem;
  }

  .hero-btn {
    min-width: 75px;
    height: 75px;
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }

  /* Footer - Very compact */
  .footer {
    padding: 0.6rem 1rem;
    min-height: auto;
  }

  .footer-container {
    gap: 0.6rem;
  }

  .footer-item {
    font-size: 0.8rem;
    flex-direction: column;
    gap: 0.25rem;
  }

  .footer-item span {
    word-break: break-all;
  }

  .footer-icon {
    width: 14px;
    height: 14px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}
