/* ---------------------------------------------------------------------------
   Basic reset and typography
   ------------------------------------------------------------------------ */

*, *::before, *::after {
	box-sizing: border-box;
}

html,
body {
	height: 100%;
	margin: 0;
	/* Prefer Aileron (local files), fall back to Open Sans then system sans */
	font-family: "Aileron", "Open Sans", Arial, sans-serif;
  /* surface color (light by default). Toggled by [data-theme="dark"] */
  color: var(--surface-foreground, #272623);
}

body {
  background: var(--surface);
}

/* Theme variables */
:root {
  --surface: #f4f1eb; /* default light surface */
  --surface-foreground: #272623; /* text on surface in light theme */
  /* accents */
  --accent-warm: #fd5a47; /* primary warm */
  --accent-blue: #048cd6; /* brand blue */
  --accent-coral: #F88363; /* coral */
  --accent-peach: #ffc769; /* peach */
  --accent-green: #009a5e; /* green */
}

/* Dark theme — switch surface to dark and invert foreground */
[data-theme="dark"] {
  --surface: #272623;
  --surface-foreground: #f4f1eb;
  /* darker accents for dark theme */
  --accent-warm: #ca4839;
  --accent-blue: #0470ab;
  --accent-coral: #c76950;
  --accent-peach: #cc9f54;
  --accent-green: #007b4b;
}


/* ---------------------------------------------------------------------------
   Local fonts
   ------------------------------------------------------------------------ */

/* Aileron (local) */
@font-face {
	font-family: 'Aileron';
	src: url('aileron/Aileron-Regular.otf') format('opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Aileron';
	src: url('aileron/Aileron-Bold.otf') format('opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* Open Sans (local variants) */
@font-face {
	font-family: 'Open Sans';
	src: url('open-sans/OpenSans-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('open-sans/OpenSans-Italic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('open-sans/OpenSans-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('open-sans/OpenSans-Light.ttf') format('truetype');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Open Sans';
	src: url('open-sans/OpenSans-Semibold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}


/* ---------------------------------------------------------------------------
   Header layout (20% / 60% / 20%)
   - .header-left  -> 20% (align left)
   - .header-nav   -> 60% (centered)
   - .header-right -> 20% (align right)
   ------------------------------------------------------------------------ */

header {
	padding: 12px 0;
    min-height: 5vh;
	display: flex;
	align-items: center;
    position: sticky;
    top: 0;
  background-color: var(--surface);
  border-bottom: var(--accent-blue) solid 0.5rem;
    z-index: 1002;
}

.header-inner {
	display: flex;
	align-items: center;
	max-width: 1300px;
    min-width: 1300px;
	margin: auto;
	padding: 0 12px;
}

.header-left {
	flex: 0 0 20%;
	display: flex;
	justify-content: flex-start;
  color: var(--accent-blue);
}

.header-nav {
	flex: 0 0 60%;
	display: flex;
	justify-content: center;
}

.header-right {
	flex: 0 0 20%;
	display: flex;
	justify-content: flex-end;
  color: var(--accent-blue);
}

.header-left .left,
.header-right .right {
	margin: 0;
	font-weight: 600;
	font-size: clamp(18px, 1.6vw + 2rem, 30px);
	white-space: nowrap;
}

.header-nav ul {
	display: flex;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.header-nav a {
	text-decoration: none;
	padding: 6px 8px;
	font-size: 1.5rem;
	font-weight: bolder;
  color: var(--accent-blue);
}

.btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 40px;
	text-decoration: none;
	font-weight: 700;
    background: transparent;
  border: 2px solid var(--accent-warm);
  color: var(--accent-warm);
}


.btn:hover {
  background: var(--accent-warm);
  color: var(--surface);
    transition: background-color 0.3s, color 0.3s;
}

.btn-white {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 40px;
	text-decoration: none;
	font-weight: 700;
  border: 2px solid var(--surface);
  color: var(--surface);
}


.btn-white:hover {
  background: var(--surface);
  color: #ffc769;
  transition: background-color 0.3s, color 0.3s;
}

.btn-blue {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 40px;
	text-decoration: none;
	font-weight: bolder;
    font-size: 1rem;
	border: 2px solid var(--surface);
	color: var(--surface);
    background-color: #048cd6;
    margin-top: 1rem;
}


.btn-blue:hover {
  background: var(--surface);
  color: #048cd6;
  transition: background-color 0.3s, color 0.3s;
  border: 2px solid #048cd6;
  cursor: pointer;
}

.linkedin {
    font-size: 3rem;
    color: #048cd6;
    text-decoration: none;
}

.linkedin-white {
  font-size: 3rem;
  color: var(--surface);
  text-decoration: none;
}

.linkedin-red {
  font-size: 3rem;
  color: #fd5a47;
  text-decoration: none;
}


.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: .4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}

.sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

.moon svg {
  fill: #73C0FC;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
}

/* .switch:hover */.sun svg {
  animation: rotate 15s linear infinite;
}

@keyframes rotate {
 
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* .switch:hover */.moon svg {
  animation: tilt 5s linear infinite;
}

@keyframes tilt {
 
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

.input:checked + .slider {
  background-color: #183153;
}

.input:focus + .slider {
  box-shadow: 0 0 1px #183153;
}

.input:checked + .slider:before {
  transform: translateX(30px);
}

/* ---------------------------------------------------------------------------
   Layout helper for fixed hero: push page content below and make sections
   overlay the fixed hero when scrolling.
   The hero is fixed to the viewport; the first scrollable section must
   start after the hero's viewport height. We also give sections a higher
   stacking context (z-index) and ensure they have an opaque background
   so they visually sit above the hero. */

/* Ensure the document flow begins after the fixed hero (100vh) */
main, .presentation, .skills, .skills_audio, .contact, section {
  position: relative;
  z-index: 3; /* above hero (z-index:0) and header (header z-index:1000 remains above) */
  background: var(--surface);
}

/* Push the first section visually below the fixed hero. Using padding-top
   on the container ensures the top edge aligns under the hero area. */
.presentation {
  margin-top: 0; /* follows main__action */
}

.main__action {
  margin-top: 80vh; /* sit just under the fixed hero */
  z-index: 3;
  background: var(--surface);
}

/* If other sections appear before presentation, ensure body has top padding
   equal to hero height as a fallback */


