* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, html {
    height: 100%;
    font-family: 'Playfair Display', sans-serif;
  }
  
  .full-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 50vh);
    height: 100vh;
    width: 100vw;
  }
  
  .tile {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  
  .tile:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
  }
  
  .tile span {
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  }

/* Container for the landing layout */
.landing-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    text-align: center;
    background-color: white; /* optional */
  }
  
  /* Logo styling */
  .landing-logo {
    width: 90vmin;
    animation: spin 10s linear infinite;
    cursor: pointer;
  }
  
  /* Click to enter text */
  .enter-text {
    position: absolute;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #f82081;
    animation: flicker 1.8s infinite alternate;
  }
  
  .enter-top-left {
    top: 8%;
    left: 5%;
  }
  
  .enter-bottom-right {
    bottom: 8%;
    right: 5%;
  }
  
  /* Logo spinning */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  /* Flicker animation */
  @keyframes flicker {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
  }
  

  /* Header styling */
.blog-header {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    color: rgb(255, 255, 255);
  }
  
  /* Rolling logo animation */
  .rolling-logo {
    position: absolute; /* Needed for accurate positioning */
    top: 0;
    left: 0;
    width: 120px;
    height: auto;
    animation: rollSpinBounce 8s linear infinite alternate;
    margin-bottom: 1rem;
  }
  
  
  
  /* Blog title + subtitle */
  .blog-title {
    font-size: 2.5rem;
    margin: 0.2em 0;
    color:rgb(0, 0, 0)
  }
  
  .blog-subtitle {
    font-size: 1.3rem;
    color: #24b2f9;
    margin-top: 0;
  }
  
  /* Rolling + spinning animation */
  @keyframes rollSpin {
    0% {
      transform: translateX(-120%) rotate(0deg); /* Starts off-screen to the left */
    }
    100% {
      transform: translateX(100vw) rotate(360deg); /* Rolls fully across screen */
    }
  }
  
  @keyframes rollSpinBounce {
    0% {
      transform: translateX(0) rotate(0deg);
    }
    100% {
      transform: translateX(calc(100vw - 80px)) rotate(360deg);
    }
  }

/* Navigation under rolling logo */
.page-nav {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
   
  }
  
  .page-nav a {
    text-decoration: none;
    font-size: 2.5rem;
    color: rgb(0, 0, 0);
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
  }
  
  .page-nav a:hover,
  .page-nav a.active {
    border-bottom: 2px solid #24b2f9;
  }
  
/* About Me Section Layout */
.about-me-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 4rem 2rem;
  }
  
  /* Left: Image */
  .about-left img {
    width: 450px;
    max-width: 90vw;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* Right: "Hey!" + Paragraph */
  .about-right {
    max-width: 500px;
    text-align: left;
  }
  
  .about-right h1 {
    font-size: 10rem;
    margin-bottom: 1rem;
    color: #f189d4;
    font-family: 'Playfair Display', serif;
  }
  
  .about-right p {
    font-size: 1.2rem;
    color: #000000;
    line-height: 1.6;
    font-family: 'Playfair Display', serif;
  }
  
/* 🎉 Fun Fact Generator Section */
.fun-fact-section {
    text-align: center;
    margin: 4rem auto;
    padding: 2rem;
    max-width: 600px;
    background: #ffffff;
    border-radius: 17px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  }
  
  .fun-fact-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  
  #fact-button {
    background-color: #f7f30b;
    color: rgb(94, 3, 163);
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  #fact-button:hover {
    background-color: #1a98da;
  }
  
  #fun-fact-display {
    margin-top: 1.5rem;
    font-size: 2rem;
    color: #333;
    min-height: 2rem;
    font-family: 'Playfair Display', serif;
  }
  
/* construction */
.under-construction {
    text-align: center;
    padding-top: 10vh;
    font-family: 'Playfair Display', serif;
    color: #e96805;
  }
  
/* engineer portfolio page */
.projects-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #222;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .project-feature {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
  }
  
  .project-feature-img {
    height: 160px;
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    object-fit: cover;
  }
  
  .project-feature-text {
    flex: 1 1 300px;
    font-family: 'Playfair Display', sans-serif;
  }
  
  .project-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #111;
    margin-bottom: 0.5rem;
  }

  .section-subtitle {
    text-align: center;
    font-family: 'Playfair Display', sans-serif;
    font-size: 1.3rem;
    color: #f189d4;
    max-width: 900px;
    margin: 0.2rem auto 1rem;
    line-height: 1.6;
  }
  
  
  .project-desc {
    font-size: 0.97rem;
    font-family: 'Playfair Display', serif;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1rem;
  }
  
  .project-link {
    font-size: 0.9rem;
    color: #24b2f9;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .project-link:hover {
    color: #1a89ce;
  }
  
  

