/* ========================================
   CSS Variables - Theme Colors
   ======================================== */
:root {
  --primary: #ffffff;
  --secondary: #0b0b0b;
  --tertiary: #D4A537;
  --text-muted: #666666;
  --text-light: #999999;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --overlay-bg: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
  --primary: #0b0b0b;
  --secondary: #ffffff;
  --tertiary: #D4A537;
  --text-muted: #aaaaaa;
  --text-light: #888888;
  --border-color: #333333;
  --card-bg: #1a1a1a;
  --overlay-bg: rgba(0, 0, 0, 0.5);
}

/* ========================================
   Base Styles / Reset
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Comfortaa", cursive;
  background-color: var(--primary);
  color: var(--secondary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--secondary);
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

/* ========================================
   Layout - Container
   ======================================== */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========================================
   Sidebar (Hidden on mobile by default)
   ======================================== */
.sidebar {
  display: none;
}

.logo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.4;
  text-shadow: 0.3px 0 currentColor, -0.3px 0 currentColor;
}

/* ========================================
   Navigation Menu
   ======================================== */
.nav-menu a {
  position: relative;
  display: block;
  padding: 12px 16px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s, transform 0.2s ease;
  text-align: center;
}

.nav-menu a:hover {
  color: var(--secondary);
  transform: translateX(4px);
  opacity: 1;
}

.nav-menu a.active {
  color: var(--secondary);
}

.nav-menu a span {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.nav-menu a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-menu a:hover span::after,
.nav-menu a.active span::after {
  width: 100%;
}

/* ========================================
   Sidebar Footer
   ======================================== */
.sidebar-footer {
  margin-top: auto;
  padding-bottom: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ========================================
   Social Icons
   ======================================== */
.social-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.social-icons a {
  width: 19px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s, transform 0.2s ease;
}

.social-icons a:hover {
  color: var(--secondary);
  transform: scale(1.15);
  opacity: 1;
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Mode Toggle Text
   ======================================== */
.mode-toggle {
  color: var(--text-light);
  font-size: 13px;
  transition: color 0.3s;
}

/* ========================================
   Dark Mode Toggle Button
   ======================================== */
.dark-mode-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: "Comfortaa", cursive;
  font-size: 12px;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.dark-mode-toggle:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.dark-mode-toggle svg {
  width: 16px;
  height: 16px;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

/* ========================================
   Mobile Logo
   ======================================== */
.mobile-logo {
  position: fixed;
  top: 16px;
  left: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  z-index: 100;
  display: block;
  text-align: center;
  width: 48px;
  background: var(--primary);
  padding: 4px;
  transition: background-color 0.3s ease;
}

/* ========================================
   Hamburger Menu Button
   ======================================== */
.hamburger {
  display: flex;
  position: fixed;
  top: 24px;
  right: 16px;
  width: 18px;
  height: 16px;
  background: none;
  border: none;
  z-index: 2003;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  width: 65%;
  align-self: flex-end;
}

.hamburger span:nth-child(2) {
  width: 100%;
}

.hamburger span:nth-child(3) {
  width: 65%;
  align-self: flex-start;
}

.hamburger:hover span {
  width: 100%;
}

body.menu-open .hamburger {
  display: none;
}

/* ========================================
   Mobile Overlay
   ======================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  background: var(--overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}

body.menu-open .mobile-overlay {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 75%;
  max-width: 260px;
  height: 100vh;
  height: 100dvh;
  background: var(--primary);
  padding: 70px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.35s ease, background-color 0.3s ease;
  z-index: 2002;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow-y: auto;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
}

.close-menu {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--secondary);
  transition: transform 0.2s ease;
}

.close-menu:hover {
  transform: rotate(90deg);
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: color 0.3s, transform 0.2s ease;
  text-align: center;
}

.mobile-menu > a:hover {
  color: var(--secondary);
  transform: translateX(4px);
  opacity: 1;
}

.mobile-menu .sidebar-footer {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 32px;
}

.mobile-menu .social-icons {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
  justify-content: center;
}

.mobile-menu a span {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.mobile-menu a span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.mobile-menu a:hover span::after,
.mobile-menu a:active span::after,
.mobile-menu a.active span::after {
  width: 100%;
}

/* ========================================
   Main Content (Shared base styles)
   ======================================== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 70px 12px 24px;
  overflow-x: hidden;
}

.content-wrapper {
  max-width: 1400px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ========================================
   Footer Note
   ======================================== */
.footer-note {
  text-align: center;
  color: var(--text-light);
  font-size: 9px;
  line-height: 1.6;
  margin-top: auto;
  padding-top: 40px;
  opacity: 0;
  animation: fadeIn 0.3s ease-out 0.25s forwards;
}

/* ========================================
   Page Titles (h1)
   ======================================== */
h1 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--secondary);
  font-family: "Comfortaa", cursive;
  text-align: center;
  opacity: 0;
  animation: fadeUp 0.3s ease-out 0.05s forwards;
}

/* ========================================
   Description paragraphs
   ======================================== */
.description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 400;
  font-family: "Comfortaa", cursive;
  text-align: center;
  max-width: 1130px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeIn 0.3s ease-out 0.1s forwards;
  padding: 0 10px;
}

.description a {
  color: var(--tertiary);
  text-decoration: underline;
  transition: opacity 0.3s;
}

.description a:hover {
  opacity: 0.7;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

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

@keyframes textFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(15px);
  }
}

/* ========================================
   DESKTOP SCREENS (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .container {
    flex-direction: row;
  }

  .sidebar {
    width: 243px;
    min-width: 243px;
    background-color: var(--primary);
    border-right: 1px solid var(--border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: background-color 0.3s ease, border-color 0.3s ease;
  }

  .sidebar .logo {
    font-size: 24px;
    margin-bottom: 280px;
    margin-top: 20px;
  }

  .nav-menu {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .mobile-logo {
    display: none;
  }

  .hamburger {
    display: none;
  }

  .main-content {
    padding: 64px 30px;
  }

  h1 {
    font-size: 38px;
    margin-bottom: 28px;
  }

  .description {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .footer-note {
    font-size: 13px;
    padding-top: 64px;
  }
}

/* ========================================
   MEDIUM SCREENS / TABLETS (768px - 1023px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1023px) {
  .main-content {
    padding: 32px 16px;
  }

  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .description {
    font-size: 12px;
    margin-bottom: 24px;
    line-height: 1.7;
  }

  .footer-note {
    font-size: 11px;
    padding-top: 40px;
  }
}

/* ========================================
   SMALL TABLETS / LARGE PHONES (640px - 767px)
   ======================================== */
@media (min-width: 640px) and (max-width: 767px) {
  .main-content {
    padding: 80px 16px 32px;
  }

  h1 {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  .description {
    font-size: 13px;
    margin-bottom: 28px;
    padding: 0 5px;
  }

  .footer-note {
    font-size: 10px;
    padding-top: 40px;
    padding-bottom: 20px;
    line-height: 1.7;
  }
}

/* ========================================
   EXTRA SMALL PHONES (375px and below)
   ======================================== */
@media (max-width: 375px) {
  .mobile-logo {
    font-size: 11px;
  }

  .main-content {
    padding: 65px 10px 20px;
  }

  h1 {
    font-size: 18px;
  }

  .description {
    font-size: 12px;
  }

  .mobile-menu {
    width: 80%;
  }

  .footer-note {
    font-size: 9px;
  }
}

/* ========================================
   FIX FOR VERY TALL PHONES
   ======================================== */
@media (max-height: 600px) and (max-width: 640px) {
  .main-content {
    padding-top: 60px;
  }

  h1 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .description {
    margin-bottom: 20px;
  }
}

/* ========================================
   LANDSCAPE MODE ON MOBILE
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
  .main-content {
    padding: 20px 30px;
  }

  .mobile-logo {
    position: absolute;
  }

  h1 {
    font-size: 20px;
  }

  .mobile-menu {
    width: 50%;
    max-width: 280px;
  }
}

/* ========================================
   PAGE-SPECIFIC: Self-Hosted Hub (index.html)
   ======================================== */

/* Hero Image */
.hero-image {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 20px;
  display: block;
  opacity: 0;
  transform: scale(0.9);
  filter: blur(10px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image:hover img {
  transform: scale(1.02);
}

/* Software Grid */
.software-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1133px;
  margin: 0 auto;
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.35s ease-out 0.15s forwards;
}

.software-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

/* Software Card */
.software-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 58px;
  background-color: var(--card-bg);
  transition: all 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  height: 48px;
  flex-shrink: 0;
  text-decoration: none;
  width: 100%;
  max-width: 260px;
  justify-content: flex-start;
}

.software-card.clickable {
  cursor: pointer;
}

.software-card.clickable:hover {
  border-color: 1px solid var(--tertiary)
}

/* Software Logo */
.software-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.software-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.software-card:hover .software-logo img {
  transform: rotate(-5deg) scale(1.05);
}

.erugo-logo {
  width: 45px;
  height: 30px;
}

/* Software Name */
.software-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
  font-family: "Comfortaa", cursive;
  white-space: nowrap;
  flex-shrink: 0;
  flex: 1;
}

.software-name.gray {
  color: var(--text-light);
}

.software-name.blue {
  color: var(--tertiary);
  font-weight: 700;
  font-size: large;
}

/* Access Button */
.access-button {
  position: relative;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 400;
  font-family: "Comfortaa", cursive;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  height: 28px;
  flex-shrink: 0;
  margin-left: auto;
}

.access-button:hover {
  background-color: var(--secondary);
}

.access-button svg {
  display: none;
}

/* Status Button */
.status-button {
  background-color: rgba(128, 128, 128, 0.5);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 400;
  font-family: "Comfortaa", cursive;
  cursor: default;
  height: 28px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Text-only Software Card */
.software-card.text-only {
  padding: 8px 12px;
  transition: opacity 0.3s ease;
}

.software-card.text-only .software-name {
  font-weight: 700;
}

.software-card.text-only:hover {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Hub Page Desktop Styles */
@media (min-width: 1024px) {
  .hero-image {
    max-width: 350px;
    margin-bottom: 28px;
  }

  .software-grid {
    gap: 12px;
  }

  .software-row {
    flex-direction: row;
    gap: 12px;
  }

  .software-card {
    width: auto;
    max-width: none;
    height: 58px;
    padding: 12px 16px;
    gap: 12px;
  }

  .software-card.clickable:hover {
    padding-left: calc(16px + 6px);
    padding-right: calc(16px + 6px);
    border-color: var(--tertiary)
  }

  .software-logo {
    width: 34px;
    height: 34px;
  }

  .erugo-logo {
    width: 60px;
    height: 40px;
  }

  .software-name {
    font-size: 16px;
    flex: unset;
  }

  .access-button {
    padding: 8px 10px;
    font-size: 14px;
    height: 34px;
    margin-left: 0;
  }

  .access-button svg {
    display: block;
    position: absolute;
    right: 6px;
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: translateX(-40px) rotate(-100deg);
    transition: all 0.3s ease;
  }

  .software-card.clickable:hover .access-button svg {
    opacity: 1;
    transform: translateX(0) rotate(-50deg);
  }

  .software-card.clickable:hover .access-button {
    padding-right: 26px;
  }

  .status-button {
    font-size: 14px;
    padding: 8px 20px;
    height: 34px;
  }
}

/* Hub Page Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-image {
    max-width: 220px;
  }

  .software-row {
    flex-direction: row;
    gap: 8px;
  }

  .software-card {
    width: auto;
    max-width: none;
    height: 50px;
    padding: 8px 10px;
    gap: 6px;
  }

  .software-logo {
    width: 28px;
    height: 28px;
  }

  .software-name {
    font-size: 13px;
  }

  .access-button,
  .status-button {
    font-size: 11px;
    padding: 5px 10px;
    height: 28px;
  }
}

/* Hub Page Large Phone Styles */
@media (min-width: 640px) and (max-width: 767px) {
  .hero-image {
    max-width: 200px;
    margin-bottom: 24px;
  }

  .software-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .software-card {
    width: auto;
    max-width: none;
    height: 52px;
    padding: 10px 14px;
    gap: 10px;
  }

  .software-logo {
    width: 30px;
    height: 30px;
  }

  .erugo-logo {
    width: 50px;
    height: 34px;
  }

  .software-name {
    font-size: 14px;
  }

  .access-button,
  .status-button {
    font-size: 12px;
    padding: 6px 12px;
    height: 30px;
  }
}

/* Hub Page Extra Small Phone Styles */
@media (max-width: 375px) {
  .hero-image {
    max-width: 160px;
  }

  .software-card {
    max-width: 240px;
    height: 46px;
    padding: 6px 10px;
    gap: 8px;
  }

  .software-logo {
    width: 26px;
    height: 26px;
  }

  .erugo-logo {
    width: 40px;
    height: 28px;
  }

  .software-name {
    font-size: 12px;
  }

  .access-button,
  .status-button {
    font-size: 10px;
    padding: 4px 8px;
    height: 26px;
  }
}

/* Hub Page Tall Phone Fix */
@media (max-height: 600px) and (max-width: 640px) {
  .hero-image {
    max-width: 140px;
    margin-bottom: 16px;
  }
}

/* Hub Page Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-image {
    max-width: 120px;
    margin-bottom: 16px;
  }

  .software-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .software-card {
    width: auto;
    max-width: none;
  }
}

/* ========================================
   PAGE-SPECIFIC: About Me (home.html)
   ======================================== */

/* Image Section */
.image-section {
  flex-shrink: 0;
  opacity: 0;
  animation: imageReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-image {
  width: 280px;
  height: 420px;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
  margin: 0 auto;
}

.image-section:hover .profile-image {
  transform: scale(1.02);
}

/* Text Section */
.text-section {
  flex: 1;
  max-width: 647px;
  margin: 0 auto;
  text-align: center;
}

/* Text Section Description - overrides for home page */
.text-section .description {
  margin-bottom: 20px;
  text-align: center;
}

.text-section .description:nth-of-type(1) { animation-delay: 0.15s; }
.text-section .description:nth-of-type(2) { animation-delay: 0.2s; }
.text-section .description:nth-of-type(3) { animation-delay: 0.25s; }

.text-section .description:last-of-type {
  margin-bottom: 25px;
}

/* Skills List */
.skills-list {
  list-style: none;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 0.35s ease-out 0.3s forwards;
}

.skills-list li {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 400;
  padding-left: 20px;
  transition: color 0.3s, transform 0.2s ease;
}

.skills-list li::before {
  content: "• ";
  margin-right: 4px;
  margin-left: -12px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeIn 0.35s ease-out 0.35s forwards;
}

.mobile-socials {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-socials a {
  padding: 0;
  margin: 0;
  line-height: 1;
}

.contact-info a {
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.contact-info svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.2s ease;
}

.contact-info a:hover svg {
  color: var(--secondary);
  transform: scale(1.15);
}

.contact-info a[href^="mailto"] {
  color: var(--tertiary);
  text-decoration: underline;
}

/* Portfolio Button */
.portfolio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--secondary);
  border-radius: 50px;
  background-color: transparent;
  color: var(--secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 647px;
  height: 38px;
  opacity: 0;
  animation: fadeIn 0.35s ease-out 0.4s forwards;
}

.portfolio-button:hover {
  background-color: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
  opacity: 1;
}

.portfolio-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-button svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

.portfolio-button:hover svg {
  transform: rotate(0deg);
}

/* Home Page Desktop Styles */
@media (min-width: 1024px) {
  /* Override for home page - uses .home-layout class on content-wrapper */
  .content-wrapper.home-layout {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    padding-left: 80px;
  }

  .content-wrapper.home-layout .image-section {
    transform: translateX(10px);
    animation: imageRevealDesktop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  .content-wrapper.home-layout .profile-image {
    width: 458px;
    height: 725px;
  }

  .content-wrapper.home-layout .text-section {
    text-align: left;
    margin: 0;
  }

  .content-wrapper.home-layout .text-section h1 {
    text-align: left;
  }

  .content-wrapper.home-layout .text-section .description {
    text-align: left;
  }

  .content-wrapper.home-layout .skills-list li {
    font-size: 14px;
  }

  .content-wrapper.home-layout .contact-info {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .content-wrapper.home-layout .mobile-socials {
    display: contents;
  }

  .content-wrapper.home-layout .portfolio-button {
    padding: 12px 32px;
    font-size: 14px;
    height: 42px;
  }
}

/* Home Page Large Desktop Styles */
@media (min-width: 1200px) {
  .content-wrapper.home-layout {
    gap: 60px;
    padding: 24px;
    padding-left: 80px;
  }
}

/* Home Page Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .content-wrapper.home-layout {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    padding: 12px;
  }

  .content-wrapper.home-layout .image-section {
    transform: translateY(15px) translateX(7px);
    animation: imageRevealTablet 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes imageRevealTablet {
    from {
      opacity: 0;
      transform: translateY(5px) translateX(7px);
    }
    to {
      opacity: 1;
      transform: translateY(15px) translateX(7px);
    }
  }

  .content-wrapper.home-layout .profile-image {
    width: 320px;
    height: 480px;
  }

  .content-wrapper.home-layout .text-section {
    text-align: left;
  }

  .content-wrapper.home-layout .text-section h1 {
    text-align: left;
  }

  .content-wrapper.home-layout .text-section .description {
    text-align: left;
  }

  .content-wrapper.home-layout .skills-list li {
    font-size: 13px;
  }

  .content-wrapper.home-layout .contact-info {
    flex-direction: row;
    gap: 8px;
  }

  .content-wrapper.home-layout .mobile-socials {
    display: contents;
  }

  .content-wrapper.home-layout .portfolio-button {
    font-size: 13px;
  }
}

/* Home Page Large Phone Styles */
@media (min-width: 640px) and (max-width: 767px) {
  .profile-image {
    width: 300px;
    height: 450px;
  }

  .skills-list li {
    font-size: 13px;
  }
}

/* Home Page Extra Small Phone Styles */
@media (max-width: 375px) {
  .profile-image {
    width: 240px;
    height: 360px;
  }

  .skills-list li {
    font-size: 12px;
  }

  .portfolio-button {
    font-size: 12px;
    padding: 8px 20px;
    height: 36px;
  }
}

/* Home Page Tall Phone Fix */
@media (max-height: 600px) and (max-width: 640px) {
  .profile-image {
    width: 200px;
    height: 300px;
  }
}

/* Home Page Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
  .content-wrapper.home-layout {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: center;
  }

  .content-wrapper.home-layout .profile-image {
    width: 180px;
    height: 270px;
  }

  .content-wrapper.home-layout .text-section {
    text-align: left;
  }

  .content-wrapper.home-layout .text-section h1 {
    text-align: left;
  }

  .content-wrapper.home-layout .contact-info {
    flex-direction: row;
    gap: 8px;
  }

  .content-wrapper.home-layout .mobile-socials {
    display: contents;
  }
}

