/* General Variables and Resets */
:root {
    --primary-color: #1c1c1c; /* Deep Black */
    --secondary-color: #f0f0f0; /* Soft Light Gray */
    --accent-color: #d35400; /* Warm Orange */
    --hover-glow: #f39c12; /* Bright Glow Effect */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Base Styles */
  body {
    font-family: 'Cinzel Decorative', serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--secondary-color);
    line-height: 1.6;
    text-align: center;
    /* Standard page layout without vertical centering */
  }
  
  /* Header */
  header {
    margin-bottom: 2rem;
    background-color: #1e3a5f; /* Deep blue for header */
    color: #fff;
    padding: 1rem;
  }
  
  header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  header p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    opacity: 0.8;
  }
  
  /* Navigation */
  nav {
    background-color: #2c5d8a;
    padding: 0.5rem;
  }
  
  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
  }
  
  nav li {
    margin: 0 1rem;
  }
  
  nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
  }
  
  /* Main Content */
  main {
    padding: 1rem;
  }
  
  /* Section Headings */
  main h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
  }
  
  /* Transition Gallery Styles */
  .photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .photo-frame {
    position: relative;
    width: 400px;
    height: 300px;
    border: 5px solid var(--accent-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.8s ease-in-out, box-shadow 0.8s ease-in-out;
  }
  
  .photo-frame:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  }
  
  .photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(50%) contrast(80%);
    transition: filter 0.8s ease, transform 0.8s ease;
  }
  
  .photo-frame:hover .photo {
    filter: brightness(120%) contrast(100%);
    transform: scale(1.2);
  }
  
  .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem;
    color: var(--secondary-color);
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease;
  }
  
  .photo-frame:hover .caption {
    opacity: 1;
    transform: translateY(-10px);
  }
  
  .caption h2 {
    font-size: 1.5rem;
    color: var(--hover-glow);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  }
  
  .caption p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--secondary-color);
  }
  
  /* CSS Animation Section */
  #car {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    animation-name: walkingAround;
    animation-duration: 9s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
  }
  
  @keyframes walkingAround {
    0% {
      transform: translateX(0px);
    }
    48% {
      transform: translateX(600px);
    }
    50% {
      transform: rotateY(180deg) translateX(-600px);
    }
    98% {
      transform: translateX(0px) rotateY(180deg);
    }
    100% {
      transform: translateX(0px);
    }
  }
  
  /* Figure (Animation) Styles */
  figure {
    margin: 1rem auto;
    max-width: 100%;
    border: 2px solid #2c5d8a;
    padding: 0.5rem;
    background-color: #f8f9fd;
    text-align: center;
  }
  
  figcaption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #555;
  }
  
  /* Footer */
  footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.8;
    background-color: #1e3a5f;
    padding: 1rem;
  }
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    .photo-frame {
      width: 300px;
      height: 200px;
    }
  
    .caption h2 {
      font-size: 1.2rem;
    }
  
    .caption p {
      font-size: 0.9rem;
    }
  
    header h1 {
      font-size: 2rem;
    }
  
    nav ul {
      flex-direction: column;
      gap: 10px;
    }
  }
  
  @media (min-width: 768px) {
    header h1 {
      font-size: 2.5rem;
    }
    main {
      padding: 2rem;
    }
  }
  