
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css');


*,
*:before,
*:after {
  box-sizing: border-box;
}

/* Root variables (light mode fallback) */
:root {
  --bg: #f7f7f8;
  --text: #222;
  --box-bg: #f5f5f5;
  --shadow: rgba(0, 0, 0, 0.10);
  --border: #000;
  --ribbon-bg: #e63946;   /* red for light mode */
  --page-gap: 1rem;       /* uniform spacing used for margins */
  --frame-radius: 30px;   /* outer frame radius */
  --frame-border: 4px;    /* border thickness */
}

/* Dark mode fallback (older browsers will ignore) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1c1e;
    --text: #f0f0f0;
    --box-bg: #2c2c2e;
    --shadow: rgba(0, 0, 0, 0.6);
    --border: #ccc;
    --ribbon-bg: #0a84ff;  /* blue for dark mode */
  }
}


/* anchors */
a, a:visited, a:hover, a:active {
  color: var(--text);
  text-decoration-color: var(--text);
}



/* page layout : single column */
html, body {
 width: 100%;
 height: 100%;
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 background-color: #f4f4f4;
 line-height: 1.5;
 overflow-x: hidden;
}


body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  padding: 2rem; /* outer page padding fallback */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  padding: 20px 0;
  text-align: center;
  width: 100%;
}

header h1,
header p {
  margin: 0;
}

header p {
  margin-top: 0.5em;
}

section h2 {
  margin-top: 0;
  text-align: center;
}

footer {
  padding: 4em 0;
  text-align: center;
  width: 100%;
}

footer p {
  margin: 0;
}

hr {
  width: 50%;
}



/* ╔════════════════════════════════════════════════════════════════════════╗
   ║                  container stacks features vertically                  ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

 .features {
   display: flex;
   flex-direction: column;
   gap: 1rem;
   align-items: stretch;
   max-width: 100%;
   margin: 0 auto;
 }

 .feature-caption {
   font-weight: 500;
   margin: 2rem 0 1rem;
   text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
   text-transform: uppercase;
 }

 .feature-subtitle {
   font-size: 1.3rem;
   font-weight: 700;
   margin: 0;
   color: #555;
 }

 .feature-text {
   color: #999;
   margin-bottom: 1rem;
   max-width: 300px;
 }

 /* 🔧 This now targets your UL correctly */
 .feature-list {
   list-style: none;
   margin: 0;
   padding: 0;
 }



.standard img {
  max-width: 900px;
  width: 100%;        /* scales down on small screens */
  height: auto;       /* prevents distortion */
  border-radius: 8px;
}

.standard picture {
  display: flex;
  justify-content: center;
}





/* ╔════════════════════════════════════════════════════════════════════════╗
   ║              displays image asset in a box of its own                  ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

/* feature box : full-width with uniform margin */
.feature-box {
  background: var(--box-bg);
  border-radius: 20px;
  box-shadow: 0 4px 12px var(--shadow);
  margin: 0; /* spacing handled by .features gap + page padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 1.5rem 1rem; /* uniform inner padding */
}


/* image wrapper and framed photo */
.image-wrapper {
  display: inline-block;
  position: relative;
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* screenshots : landscape */
.image-wrapper-landscape img {
  max-width: 900px;
  width: 100%;
  height: auto;      /* prevents distortion */
  border-radius: 8px;
}

/* screenshots : portrait */
.image-wrapper-portrait {
  max-width: min(420px, 90vw);
}

/* screenshots : portrait */
.image-wrapper-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* portraits graphics usually fill the space */
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures image fills wrapper neatly */
  border-radius: 8px;
  display: block;
}

.framed-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}

.framed-wrapper.coved {
  border-radius: 9px;
  overflow: hidden;
  width: 100%;
}

/* .framed-wrapper.coved img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 9px;
} */

.framed-wrapper.coved img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ensures entire image is visible */
  display: block;
  border-radius: 9px;
}

.framed-image {
  position: relative;
  display: inline-block;
  width: 100%;
  border: 4px solid var(--border);
  border-radius: 30px; /* fallback for older browsers */
  overflow: hidden;
  background: var(--box-bg);
  z-index: 1;
}

.framed-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px; /* hard-coded radius to fit inside frame */
}

.image-wrapper,
.framed-wrapper {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}




/* ╔════════════════════════════════════════════════════════════════════════╗
   ║              change imagery based on iDevice orientation               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */


/* set constraints for default orientation to portrait) */
.orientation-wrapper {
  max-width: min(420px, 90vw);
  width: 100%;
  padding-left: .5rem;
  padding-right: .5rem;
}

/* listen out for landscape orientation and apply wider constraints : .image-wrapper-landscape */
@media (orientation: landscape) {
  .orientation-wrapper {
    max-width: 900px;
  }
}

/* hide landscape images by default (displaying when portable iDevice rotated) */
.orientation-wrapper .framed-wrapper .orientation-image .img-portrait  { display: block; }
.orientation-wrapper .framed-wrapper .orientation-image .img-landscape { display: none;  }

/* display landscape imagery on horizontal orientation */
@media (orientation: landscape) {
  .orientation-wrapper .framed-wrapper .orientation-image .img-portrait  { display: none;  }
  .orientation-wrapper .framed-wrapper .orientation-image .img-landscape { display: block; }
}

/* display portrait imagery on portrait orientation */
@media (orientation: portrait) {
  .orientation-wrapper .framed-wrapper .orientation-image .img-portrait  { display: block; }
  .orientation-wrapper .framed-wrapper .orientation-image .img-landscape { display: none;  }
}


/* workaround : force portrait image on larger screens */
@media (min-width: 800px) {
  /* .orientation-wrapper .framed-wrapper .orientation-image .img-portrait  { display: block;  } */
  /* .orientation-wrapper .framed-wrapper .orientation-image .img-landscape { display: none; } */

  /* maintain portrait aspect ratio */
  /* .orientation-wrapper {
    max-width: min(420px, 90vw);
  } */
}




/* ╔════════════════════════════════════════════════════════════════════════╗
   ║            corner ribbon : safe angle for older browsers               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.framed-image.ribbon::before {
  content: var(--ribbon-text);
  position: absolute;
  top: 18px;
  right: -40px; /* fixed offset for older browsers */
  transform: rotate(45deg);
  background: var(--ribbon-bg); /* dynamic color via variable */
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.25em 3.8em;
  pointer-events: none;
  z-index: 4;
  border-top: 2px solid rgba(255,255,255,0.25);
  border-bottom: 2px solid rgba(0,0,0,0.18);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transform-origin: center;
}



/* easter egg : red for light mode */
:root {
  --ribbon-bg: #e63946;
}

/* easter egg : blue for dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ribbon-bg: #0a84ff;
  }
}

/* responsive tweaks */
@media (max-width: 768px) {
  .feature-item {
    flex-direction: column;
  }

  .feature-item img {
    margin: 0 0 1em 0;
  }
}




/* ╔════════════════════════════════════════════════════════════════════════╗
   ║                  badges (App Store, GitHub...)                         ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

/* resize logo */
.apple-app-store-img {
  transform: scale(1.2);
  display: inline-block;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.skills-img {
  align-self: flex-start;
  height: auto;
  width: 30%;
}





/* ╔════════════════════════════════════════════════════════════════════════╗
   ║                          image reveal FX                               ║
   ╚════════════════════════════════════════════════════════════════════════╝ */

.image-fade {
  position: relative;
  border-radius: 9px;
  overflow: hidden;
}

.image-fade.border {
  border: 4px solid var(--border);
}

.image-fade img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}

.image-fade .clear {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.image-fade:hover .clear {
  opacity: 1;
}

.image-fade:hover .switch {
  opacity: 0;
}






/* ╔════════════════════════════════════════════════════════════════════════╗
   ║      QRcode SVG colour control (light / dark)                          ║
   ║      h/t : https://www.qrcode-monkey.com/#email                        ║
   ║      nb. this hack requires significant changes inside the svg         ║
   ╚════════════════════════════════════════════════════════════════════════╝ */


 /* light mode */
 .svg-asset {
   --color1: #111;
   --color2: #FFF;
 }

 /* dark mode (invert colours)) */
 @media (prefers-color-scheme: dark) {
   .svg-asset {
     --color1: #FFF;
     --color2: #111;
   }
 }



 /* workaround : fuml mode specific links */
 .dark-link { display: none; }

 @media (prefers-color-scheme: dark) {
   .light-link { display: none; }
   .dark-link { display: block; }
 }






 /* narrow screen tweaks */
 @media (max-width: 420px) {
   body { padding: 1.5rem; }
   .feature-box { padding-left: 0.75rem; padding-right: 0.75rem; }

   .github-logo {
     padding: 2em;
     width: 80%;
   }
 }
