/* ==================== */
/* CSS RESET & VARIABLES */
/* ==================== */

:root {
  /* Colors - Dark oceanic theme inspired by favicon */
  --color-bg: #041e2a;
  --color-bg-secondary: #104043;
  --color-text-primary: #eeece7;
  --color-text-secondary: #bab29d;
  --color-accent-1: #009587;
  --color-accent-2: #175d58;
  --color-accent-3: #31c1cc;
  --color-accent-gradient: linear-gradient(
    135deg,
    #08b3a1 0%,
    #259485 50%,
    #2cb8c2 100%
  );
  --color-success: #26ffe9;
  --color-border: rgba(168, 159, 132, 0.2);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);

  /* Sizes */
  --max-width: 1200px;
  --border-radius: 1rem;
  --border-radius-sm: 0.5rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(4, 30, 42, 0.3);
  --shadow-md: 0 4px 16px rgba(4, 30, 42, 0.5);
  --shadow-lg: 0 8px 32px rgba(4, 30, 42, 0.7);
  --shadow-glow: 0 0 40px rgba(0, 149, 135, 0.4);
}

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

/* Prevent horizontal scroll on all elements */
*,
*::before,
*::after {
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  animation: fadeIn 0.6s ease-out forwards;
}

body.loading {
  opacity: 0;
  animation: none;
}

/* ==================== */
/* BACKGROUND & EFFECTS */
/* ==================== */

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--color-accent-1);
  top: -250px;
  right: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-2);
  bottom: -200px;
  left: -200px;
  animation-delay: 5s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: var(--color-accent-3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(-30px, 30px) scale(0.9);
  }
  75% {
    transform: translate(30px, 50px) scale(1.05);
  }
}

/* ==================== */
/* LAYOUT */
/* ==================== */

.container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ==================== */
/* HEADER */
/* ==================== */

.header {
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  animation: slideDown 0.8s ease-out;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* ==================== */
/* HERO SECTION */
/* ==================== */

.hero {
  text-align: center;
  margin-bottom: 0;
  animation: fadeInUp 1s ease-out;
  justify-content: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--spacing-lg);
  position: relative;
}

.hero-content {
  max-width: 800px;
  width: 100%;
  padding: 0 var(--spacing-sm);
}

.greeting {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.greeting-icon {
  width: 2rem;
  height: 2rem;
  display: inline-block;
  animation: sparkle 2s ease-in-out 1 forwards;
}

@keyframes sparkle {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
    filter: brightness(1);
  }
  25% {
    transform: rotate(180deg) scale(1.15);
    filter: brightness(1.3);
  }
  50% {
    transform: rotate(360deg) scale(1);
    filter: brightness(1);
  }
  75% {
    transform: rotate(540deg) scale(1.15);
    filter: brightness(1.3);
  }
}

.greeting-text {
  font-size: 1.25rem;
  color: var(--color-text-primary);
  font-weight: 400;
}

.name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.name-line {
  display: inline-block;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.name-line::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: expandWidth 1s ease-out 1s forwards;
}

@keyframes expandWidth {
  to {
    transform: scaleX(1);
  }
}

.title-container {
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.6s forwards;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.title-static {
  color: var(--color-text-primary);
}

.title-dynamic {
  position: relative;
  display: inline-block;
  width: auto;
  min-width: 100%;
  max-width: 100%;
  height: 1.5em;
  overflow: visible;
  text-align: center;
}

.title-word {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  opacity: 0;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wordRotate 15s ease-in-out infinite;
  display: block;
  text-align: center;
}

.title-word:first-child {
  animation-delay: 0s;
}
.title-word:nth-child(2) {
  animation-delay: 3s;
}
.title-word:nth-child(3) {
  animation-delay: 6s;
}
.title-word:nth-child(4) {
  animation-delay: 9s;
}
.title-word:nth-child(5) {
  animation-delay: 12s;
}

@keyframes wordRotate {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  8% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  20% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  26% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

.description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.8s forwards;
}

.highlight {
  color: var(--color-text-primary);
  font-weight: 600;
  position: relative;
  padding: 0 var(--spacing-xs);
  background: linear-gradient(
    135deg,
    var(--color-accent-1),
    var(--color-accent-2)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight::before {
  display: none; /* Removed - using gradient text instead */
}

/* ==================== */
/* SCROLL INDICATOR */
/* ==================== */

.scroll-indicator {
  margin-top: var(--spacing-3xl);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.5s forwards,
    bounce 2s ease-in-out 2s infinite;
  transition: all var(--transition-base);
  padding: var(--spacing-sm);
}

.scroll-indicator:hover {
  color: var(--color-accent-1);
  transform: translateY(5px);
}

.scroll-text {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
}

.scroll-indicator:hover .scroll-icon {
  transform: translateY(3px);
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ==================== */
/* ABOUT SECTION */
/* ==================== */

.about-section {
  max-width: 900px;
  width: 100%;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.9s forwards;
  scroll-margin-top: var(--spacing-lg);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.about-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.about-text strong {
  color: var(--color-text-primary);
  font-weight: 600;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text em {
  color: var(--color-accent-3);
  font-style: italic;
}

.about-text .inline-link {
  position: relative;
  color: var(--color-accent-3);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
  background: linear-gradient(
    135deg,
    var(--color-accent-1),
    var(--color-accent-3)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 0 2px;
}

.about-text .inline-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.about-text .inline-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about-text .inline-link:hover {
  filter: brightness(1.2);
}

.about-text .inline-link em {
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.highlight-card {
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 180px;
}

.card-front,
.card-back {
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.card-front {
  opacity: 1;
  transform: translateY(0);
}

.card-back {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  padding: var(--spacing-sm);
  width: 90%;
}

.highlight-card:hover .card-front,
.highlight-card:focus-within .card-front {
  opacity: 0;
  transform: translateY(-20px);
}

.highlight-card:hover .card-back,
.highlight-card:focus-within .card-back {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 149, 135, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.highlight-card:hover::before {
  left: 100%;
}

.highlight-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent-1);
  background: rgba(0, 149, 135, 0.08);
  box-shadow: 0 8px 24px rgba(0, 149, 135, 0.2);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: inline-block;
  transition: transform var(--transition-base);
}

.highlight-card:hover .highlight-icon {
  transform: scale(1.1) rotate(5deg);
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.highlight-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.highlight-desc-full {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  text-align: left;
}

.highlight-desc-full strong {
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ==================== */
/* CV DOWNLOAD SECTION */
/* ==================== */

.cv-section {
  max-width: 900px;
  width: 100%;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(
    135deg,
    rgba(0, 149, 135, 0.05),
    rgba(49, 193, 204, 0.05)
  );
  border: 1px solid var(--color-accent-1);
  border-radius: var(--border-radius);
  backdrop-filter: blur(20px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.1s forwards;
  position: relative;
  overflow: hidden;
}

.cv-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 149, 135, 0.1),
    transparent
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.cv-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cv-text {
  flex: 1;
  min-width: 200px;
}

.cv-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xs);
}

.cv-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-accent-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 149, 135, 0.6);
}

.cv-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
}

.btn-cv:hover .cv-icon {
  transform: translateY(3px);
}

/* ==================== */
/* BUTTONS */
/* ==================== */

.cta-section {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.2s forwards;
  width: 100%;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--color-accent-gradient);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 149, 135, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-primary);
  border: 2px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--color-accent-1);
  background: rgba(0, 149, 135, 0.15);
}

.btn-icon {
  font-size: 1.25rem;
  transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* ==================== */
/* SOCIAL LINKS */
/* ==================== */

.social-section {
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.4s forwards;
  width: 100%;
  max-width: 100%;
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-base);
  backdrop-filter: blur(10px);
  width: 120px;
  height: 100px;
}

.social-link svg {
  width: 28px;
  height: 28px;
  transition: all var(--transition-base);
}

.social-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent-1);
  color: var(--color-text-primary);
  transform: translateY(-5px);
}

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

/* ==================== */
/* FOOTER */
/* ==================== */

.footer {
  margin-top: auto;
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  width: 100%;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1.6s forwards;
}

.footer-text {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-separator {
  opacity: 0.3;
}

/* ==================== */
/* ANIMATIONS */
/* ==================== */

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

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

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

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 1024px) {
  .hero {
    min-height: 100vh;
    padding: var(--spacing-xl) var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }

  .container {
    padding: var(--spacing-md);
    width: 100%;
    max-width: 100vw;
    justify-content: flex-start;
    padding-top: var(--spacing-lg);
  }

  .header {
    top: var(--spacing-md);
    left: var(--spacing-md);
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .greeting-text {
    font-size: 1rem;
  }

  .title {
    flex-direction: column;
    gap: var(--spacing-xs);
    width: 100%;
  }

  .title-dynamic {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }

  .title-word {
    font-size: 0.9em;
    text-align: center;
  }

  .cta-section {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin-bottom: var(--spacing-md);
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .social-section {
    margin-bottom: var(--spacing-md);
  }

  .social-links {
    gap: var(--spacing-sm);
  }

  .footer {
    padding-top: var(--spacing-md);
  }

  .social-link {
    width: 100px;
    height: 90px;
    padding: var(--spacing-sm);
  }

  .social-link svg {
    width: 24px;
    height: 24px;
  }

  .footer-text {
    font-size: 0.75rem;
    gap: var(--spacing-xs);
  }

  .about-section {
    padding: var(--spacing-lg) var(--spacing-md);
    margin: var(--spacing-lg) 0;
  }

  .about-text {
    font-size: 1rem;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .highlight-card {
    padding: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-sm);
    justify-content: flex-start;
    padding-top: var(--spacing-md);
  }

  .hero-content {
    padding: 0;
  }

  .title-dynamic {
    width: 100%;
    max-width: 100%;
    min-width: auto;
  }

  .cta-section {
    margin-bottom: var(--spacing-sm);
  }

  .social-section {
    margin-bottom: var(--spacing-sm);
  }

  .footer {
    padding-top: var(--spacing-sm);
  }

  .social-link {
    width: 85px;
    height: 80px;
    padding: var(--spacing-xs);
  }

  .social-label {
    font-size: 0.75rem;
  }

  .scroll-indicator {
    bottom: var(--spacing-md);
  }

  .scroll-text {
    font-size: 0.75rem;
  }

  .hero {
    min-height: 100vh;
    padding: var(--spacing-md);
  }

  .about-section {
    padding: var(--spacing-md);
  }

  .about-highlights {
    gap: var(--spacing-xs);
  }

  .highlight-icon {
    font-size: 2rem;
  }

  .cv-section {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .cv-content {
    flex-direction: column;
    text-align: center;
  }

  .cv-title {
    font-size: 1.25rem;
  }

  .btn-cv {
    width: 100%;
    justify-content: center;
  }

  .scroll-indicator {
    bottom: var(--spacing-lg);
  }

  .hero {
    min-height: 100vh;
    padding: var(--spacing-lg) var(--spacing-md);
  }
}

/* Mobile touch support for cards */
@media (hover: none) and (pointer: coarse) {
  .highlight-card.active .card-front {
    opacity: 0;
    transform: translateY(-20px);
  }

  .highlight-card.active .card-back {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
  }
}

/* ==================== */
/* ACCESSIBILITY */
/* ==================== */

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

/* ==================== */
/* LOADING STATE */
/* ==================== */

body.loading * {
  animation-play-state: paused !important;
}
