/*
 * Princess Portfolio Website Styles
 *
 * This stylesheet defines the modern, tech‑forward yet feminine aesthetic
 * for Princess Faith Odo’s portfolio. The color palette blends deep
 * neutrals with vibrant gradient accents. Cards, navigation, and
 * typography use glassmorphism and subtle animations to create a
 * sophisticated feel without appearing childish. Global variables make
 * it easy to tweak colours and spacing.
 */

/* Root variables for easy theme adjustments */
:root {
  --ink: #0d0d22;         /* deep ink background */
  --plum: #3d155f;        /* rich plum accent */
  --fuchsia: #7d1e8f;     /* bright fuchsia accent */
  --lavender: #bb8fc7;    /* soft lavender highlight */
  --cyan: #00b9c3;        /* vivid cyan detail */
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.2);
  --transition-speed: 0.4s;
  --font-display: 'Inter', sans-serif;
}

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

html, body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  line-height: 1.6;
}

/* Background gradient overlays */
body::before, body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  /* Animate the gradient backgrounds to create a subtle motion effect.
   * The large background size combined with shifting positions produces
   * constantly moving color clouds that gently drift across the screen. */
  background-size: 400% 400%;
  animation: gradientShift 25s ease infinite;
}

/* radial colour glow */
body::before {
  /* Two radial gradients create drifting colour clouds that gently slide
   * across the page. A lower opacity ensures the moving layers remain
   * subtle and do not overpower the content. */
  background: radial-gradient(circle at 20% 30%, var(--plum), transparent 60%),
              radial-gradient(circle at 80% 70%, var(--fuchsia), transparent 60%);
  opacity: 0.35;
}

/* diagonal gradient overlay */
body::after {
  /* A soft diagonal gradient adds depth without darkening the page too much. */
  background: linear-gradient(135deg, rgba(10,10,35,0.25), rgba(15,15,45,0.7));
}

/* Keyframes for animated backgrounds */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Navigation bar */
nav {
  /* Sticky neon navigation bar. It stays at the top of the page and uses a slightly
   * translucent background with a soft glow. A subtle border and shadow give it
   * a futuristic, neon‑infused look that complements the rest of the theme.
   */
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  padding: 1rem 2rem;
  background: rgba(20, 10, 40, 0.6);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--fuchsia);
  box-shadow: 0 0 12px rgba(125, 30, 143, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lavender);
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color var(--transition-speed);
}

nav ul li a:hover, nav ul li a.active {
  color: var(--cyan);
}

/* Sections */
section {
  /* Reduce side margins so content fills more of the viewport and trim
   * top/bottom padding for a tighter layout. Removing vertical centring
   * allows sections to grow only as tall as their content, eliminating
   * oversized blank space between them. */
  padding: 2.5rem 5vw;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Hero styling */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

/* Make the home page hero fill most of the screen on desktops. This helps the
 * heading and portrait command attention like the inspiration examples. */
.page-home .hero {
  min-height: calc(100vh - 150px);
}

/* Prevent wrapping of hero content on larger screens so the photo and text
 * sit side by side. On smaller screens the default wrapping behaviour
 * remains. */
@media (min-width: 900px) {
  .hero {
    /* Switch to a two‑column grid on wider screens to ensure the photo and
     * text sit side by side without wrapping. The proportions (1fr 0.8fr)
     * allocate more space to the textual content while preserving the
     * portrait’s aspect ratio. */
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    flex-wrap: unset;
  }
}

.hero .text {
  flex: 1 1 50%;
  /* Allow the text to scale with available space; avoid forcing a hard
   * maximum width so that it can sit beside the photo on medium screens. */
  max-width: none;
}

.hero h1 {
  /* Scale the hero heading fluidly with viewport width. The clamp function
   * ensures it never gets too small on mobile or too huge on ultra wide
   * screens. */
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  color: var(--lavender);
  margin-bottom: 1rem;
}

.hero p {
  /* Fluid typography for the hero paragraph. */
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero .cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero .cta a {
  background: linear-gradient(135deg, var(--plum), var(--fuchsia));
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-speed);
}

.hero .cta a:hover {
  background: linear-gradient(135deg, var(--fuchsia), var(--plum));
}

/* Generic CTA buttons used across sections */
.cta a {
  display: inline-block;
  background: linear-gradient(135deg, var(--plum), var(--fuchsia));
  color: var(--white);
  padding: 0.7rem 1.3rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition-speed);
}

.cta a:hover {
  background: linear-gradient(135deg, var(--fuchsia), var(--plum));
}

.hero .photo {
  flex: 1 1 30%;
  /* Remove the hard max‑width so the photo can adapt on medium screens */
  max-width: none;
  height: 380px;
  border-radius: 1.5rem;
  /* Glassy container for the profile photo on the home page. The actual
   * image is placed as an <img> inside the container, allowing for proper
   * scaling without relying on CSS background images. */
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Allow the photo to occupy a balanced portion of the hero section on
   * wider screens. The 35% basis ensures it sits comfortably beside
   * the text on laptops and desktops. */
  flex: 1 1 35%;
  max-width: 360px;
  min-height: 360px;
}

.hero .photo::before {
  /* Remove placeholder text inside the photo container */
  content: '';
}

/* Ensure portrait images inside the hero photo container scale properly */
.hero .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tagline in hero section */
.hero .tagline {
  display: block;
  /* Fluid tagline sizing for larger screens while keeping it legible on
   * mobile. */
  font-size: clamp(0.8rem, 1.4vw, 1.3rem);
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  animation: glow 2.5s ease-in-out infinite alternate;
}

/* Neon glow animation for tagline */
@keyframes glow {
  from { text-shadow: 0 0 6px var(--cyan); }
  to   { text-shadow: 0 0 16px var(--fuchsia); }
}

/* Fade in and slide up animation used on hero text elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Apply the fade-in animation to hero headings, paragraphs and CTA buttons */
.hero .tagline,
.hero h1,
.hero p,
.hero .cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Increase base paragraph size for better readability on larger screens.
 * This applies to all paragraphs within sections except where overridden.
 */
section p {
  font-size: 1.1rem;
}

/* Slightly larger copy for cards to improve legibility */
.card p {
  font-size: 1.1rem;
}

/* Stagger the appearance of hero elements */
.hero h1 { animation-delay: 0.15s; }
.hero p { animation-delay: 0.3s; }
.hero .cta { animation-delay: 0.45s; }

/* Generic hero image container for project pages */
.hero-img {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 70vh;
  padding: 6rem 10vw;
  /* Use a gradient based on the current page palette instead of external images.
   * This ensures a consistent, vibrant hero section even if image files are missing.
   */
  background: linear-gradient(135deg, var(--plum), var(--fuchsia));
  background-size: cover;
  background-position: center;
  border-radius: 1rem;
  overflow: hidden;
}

.hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 34, 0.4), rgba(13, 13, 34, 0.85));
}

.hero-img > * {
  position: relative;
}

/* ------------------------------------------------------------------
 * Page‑specific colour themes
 * Each page class overrides the default colour variables defined at
 * :root, allowing subtle shifts in tone from one section of the site to
 * another. Feel free to tweak these values to produce more contrast
 * or variety across the portfolio.
 */

/* Home page palette: deep midnight base with vibrant purple and cyan accents. */
.page-home {
  --ink: #05052a;
  --plum: #3f227b;
  --fuchsia: #7e3bc7;
  --lavender: #c6b6e4;
  --cyan: #7cd6e5;
}

/* Work page palette: rich violet hues with lavender highlights. */
.page-work {
  --ink: #1a1040;
  --plum: #50327f;
  --fuchsia: #8864c1;
  --lavender: #d3c7eb;
  --cyan: #64c0da;
}

/* Pitch Ready project palette: cool blue and purple gradients. */
.page-pitchready {
  --ink: #171c47;
  --plum: #3b2f91;
  --fuchsia: #6653d0;
  --lavender: #b9b0ea;
  --cyan: #5caed8;
}

/* Acepharm Storybook palette: teal and green tones for a fresh feel. */
.page-acepharm {
  --ink: #0d2f27;
  --plum: #1a644e;
  --fuchsia: #2e9a7c;
  --lavender: #a0d2c7;
  --cyan: #5fd8c6;
}

/* Property Pulse palette: moody twilight with warm highlights. */
.page-propertypulse {
  --ink: #1a2635;
  --plum: #4c3660;
  --fuchsia: #8d5c96;
  --lavender: #d2bfd6;
  --cyan: #dca75c;
}
.page-about {
  --plum: #203854;
  --fuchsia: #365f7a;
  --lavender: #9dcbe8;
  --cyan: #3faee8;
}

.page-values {
  --plum: #14382e;
  --fuchsia: #1e5f53;
  --lavender: #82c7b9;
  --cyan: #2bd8b4;
}

.page-blog {
  --plum: #352e5f;
  --fuchsia: #695f9e;
  --lavender: #b2a2d3;
  --cyan: #5ba8c7;
}

.page-contact {
  --plum: #2c3e50;
  --fuchsia: #537895;
  --lavender: #8faecc;
  --cyan: #4ab0bf;
}

/* The project pages reuse the default palette, but you could
 * uncomment and customise these overrides to differentiate them too.
 * For now they inherit the root variables. */
/*
.page-pitchready {
  --plum: #402f5f;
  --fuchsia: #7d1e8f;
  --lavender: #bb8fc7;
  --cyan: #00b9c3;
}
.page-acepharm {
  ...
}
.page-propertypulse {
  ...
}
*/

/* Card Grid for work/projects */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform var(--transition-speed), background var(--transition-speed);
  backdrop-filter: blur(10px);
  position: relative;
}

/* Animated overlay for cards. Subtle, shifting gradients move across
 * each card to create a dynamic feel without obstructing the content. The
 * opacity is kept low to ensure text remains legible. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--fuchsia), transparent 70%),
              radial-gradient(circle at 70% 70%, var(--plum), transparent 70%);
  opacity: 0.1;
  pointer-events: none;
  animation: gradientShift 30s linear infinite;
  border-radius: inherit;
}

.card:hover::before {
  opacity: 0.18;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--lavender);
}

.card p {
  font-size: 1rem;
}

/* Links inside cards appear as subtle calls to action */
.card a {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--transition-speed);
}

.card a:hover {
  color: var(--fuchsia);
}

/* Global link styling to avoid default red/purple visited colours */
/* Links inside content sections avoid default red/purple visited styles. Nav links are styled separately */
section a {
  color: var(--cyan);
  text-decoration: underline;
  transition: color var(--transition-speed);
}

section a:hover {
  color: var(--fuchsia);
}

section a:visited {
  color: var(--cyan);
}

/* Values icons row */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.value-item {
  flex: 1 1 30%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-speed);
}

.value-item:hover {
  transform: translateY(-4px);
}

.value-item .icon {
  font-size: 2.5rem;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.value-item h4 {
  color: var(--lavender);
  margin-bottom: 0.5rem;
}

/* Blog list */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: background var(--transition-speed);
}

.blog-post:hover {
  background: rgba(255, 255, 255, 0.1);
}

.blog-post h3 {
  color: var(--lavender);
  margin-bottom: 0.5rem;
}

.blog-post p {
  font-size: 1rem;
}

/* Contact form */
.contact-form {
  max-width: 500px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  resize: vertical;
}

.contact-form button {
  background: linear-gradient(135deg, var(--plum), var(--fuchsia));
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  cursor: pointer;
  transition: background var(--transition-speed);
}

.contact-form button:hover {
  background: linear-gradient(135deg, var(--fuchsia), var(--plum));
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--lavender);
}