/* =========================
   1. Reset
   ========================= */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* =========================
     2. Full-Page Background Video
     ========================= */
  #bg-video {
    position: fixed;  /* So it stays in the background at all times */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -1;       /* Behind all content */
  }
  
  /* =========================
     3. Top Bar (Header)
     ========================= */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0) 100%
    );
    box-shadow: none;
  }
  
  .header-left,
  .header-center,
  .header-right {
    display: flex;
    align-items: center;
  }
  
  .header-left {
    flex: 1;
  }
  
  .header-center {
    flex: 1;
    justify-content: center;
  }
  
  .header-right {
    flex: 1;
    justify-content: flex-end;
    gap: 30px;
  }
  
  /* HOME button */
  .subscribe-button {
    display: inline-block;
    background: #ff0;
    color: #000;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s;
  }
  
  .subscribe-button:hover {
    background: #ffd800;
  }
  
  /* Site name */
  .site-name {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
    text-align: center;
    font-weight: bold;
  }
  
  /* Right-side links */
  .header-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-style: italic;
    border-bottom: 2px solid transparent;
    transition: border 0.3s, color 0.3s;
  }
  
  .header-link:hover {
    color: #eee;
    border-bottom: 2px solid #fff;
  }
  
  /* =========================
     4. Hero Section
     ========================= */
  #hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for the hero */
    overflow: hidden;
  }
  
  /* Perspective container for 3D effects */
  .perspective-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
    position: relative;
  }
  
  /* Hero text containers */
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    transform-origin: center center;
    text-align: center;
    z-index: 999; /* Above stickers */
  }
  
  .hero-subcontent {
    position: absolute;
    top: 65%; /* Adjusted to be below the main title */
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    transform-origin: center center;
    text-align: center;
    z-index: 998;
  }
  
  /* Hero title and subtitle styles */
  .hero-title {
    font-size: 10vw;
    color: #ff0;
    margin-bottom: 0.5rem;
    font-weight: 900;
  }
  
  .hero-subtitle {
    font-size: 3vw;
    color: #ff0;
    margin-bottom: 0;
  }
  
  /* =========================
     5. Stickers
     ========================= */
  .sticker-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; 
    z-index: 0; /* Below hero text but above background */
  }
  
  .sticker {
    position: absolute;
    width: 200px; /* Default sticker size (can be overridden inline or with extra classes) */
    height: auto;
    transition: transform 0.05s linear;
  }
  
  /* =========================
     6. Main Content
     ========================= */
  main {
    padding: 40px 20px;
  }
  
  /* Basic spacing for sections */
  section {
    margin-bottom: 40px;
  }
  
  /* Headings within sections */
  section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  
  /* Global paragraphs */
  section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
  }
  
  /* =========================
     7. Footer
     ========================= */
  footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  /* =========================
     8. About Panel (Matte Glass Effect)
     ========================= */
  .about-panel {
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 40px;
    margin: 40px auto;
    width: 80%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: #222;
    overflow: visible;
    line-height: 1.8;
  }
  
  .about-panel p {
    color: #222 !important;
  }
  
  /* Glare effect behind text */
  .about-panel::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
      circle at var(--glare-x, 50%) var(--glare-y, 50%),
      rgba(255,255,255,0.2),
      transparent 60%
    );
    transition: background 0.1s ease;
  }
  
  .about-panel > * {
    position: relative;
    z-index: 2;
  }
  
  /* Corner sticker that extends outside the panel like a badge */
  .corner-sticker {
    position: absolute;
    top: -110px;
    right: -70px;
    width: 200px;
    transform: rotate(-10deg);
    z-index: 3;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
  }
  
  .corner-sticker.flipped {
    transform: rotate(-10deg) rotateY(180deg);
  }
  
  /* =========================
     9. Smooth Scrolling
     ========================= */
  html {
    scroll-behavior: smooth;
  }
  
  /* =========================
     10. Projects Carousel
     ========================= */
  .project-carousel {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    padding: 20px 40px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .project-carousel::-webkit-scrollbar {
    display: none;
  }
  
  /* Responsive project cards: using clamp to scale appropriately */
  .project-card {
    flex: 0 0 clamp(300px, 60%, 600px);  /* Minimum 300px, ideal 60% of container, maximum 600px */
    height: clamp(300px, 70vh, 700px);       /* Minimum 300px, ideal 70% of viewport height, maximum 700px */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    padding: 20px;
    color: #fff;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
  }
  
  /* Active (centered) card */
  .project-card.active {
    transform: scale(1.05);
    opacity: 1;
  }
  
  .project-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
  } 