/* ==========================================================================
   1. FONTS & UNIVERSAL RESETS
   ========================================================================== */
@font-face {
    font-family: 'Serati';
    src: url('../fonts/Serati-Regular.woff2') format('woff2'),
        url('../fonts/Serati-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Serati';
    src: url('../fonts/erati-Italic.woff2') format('woff2'),
        url('../fonts/Serati-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
  font-family: 'CF Asty Std';
  src: url('../fonts/CFAstyStd-ExtraBold.woff2') format('woff2'),
      url('../fonts/CFAstyStd-ExtraBold.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CF Asty Std';
  src: url('../fonts/CFAstyStd-Light.woff2') format('woff2'),
      url('../fonts/CFAstyStd-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CF Asty Std';
  src: url('../fonts/CFAstyStd-Book.woff2') format('woff2'),
      url('../fonts/CFAstyStd-Book.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CF Asty Std';
  src: url('../fonts/CFAstyStd-Bold.woff2') format('woff2'),
      url('../fonts/CFAstyStd-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important; 
}

html, body {
    height: auto;
    background-color: #000; 
    color: #fff;
    font-family: 'CF Asty Std', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


/* ==========================================================================
   PAGE LOADER INTERFACE
   ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    z-index: 9999; /* Higher than header and content maps */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    transition: opacity 0.6s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Minimal Spinner Graphic */
.spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffcd00; /* Match Apple Accent blue color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 3.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255, 255, 255,1);
    font-family: 'Serati';
}

/* Spinner Rotation Keyframe */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.logo {
  display: inline-block;
}

/* ==========================================================================
   2. FIXED CANVAS BACKGROUND & OVERLAY
   ========================================================================== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#video-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; 
}

.dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02); 
    pointer-events: none;
}

/* ==========================================================================
   3. APPLE-STYLE NAVIGATION (FROSTED GLASS)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 33px 20px 13px;
    opacity: 0; 
}

.logo-container {
  margin-bottom: 5px;
  text-align: center;
}

.logo img {
    height: 28px;
    display: block;
    margin-bottom: 22px;
}

.sub-menu {
    display: flex;
    gap: 35px;
}

.sub-menu a {
    background-color: #ffd200;
    color: #000;
    padding: 4px 13px;
    border-radius: 80px;
    font-weight: 900;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-menu a:hover {
    background-color: #fff;
    color: #000;
}

/* ==========================================================================
   4. HERO SPONSOR SECTION
   ========================================================================== */
.hero-section {
    width: 100%;
    min-height: 85vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
}

.hero-content-box {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 0; 
}

.hero-title {
    font-size: 7.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    font-family: 'Serati', sans-serif;
    letter-spacing: -3px;
    color: #fff;
    text-shadow: 5px 7px 0px #000;
}

.sponsor-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 5;
}

.sponsor-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #fff;
    font-weight: 300;
}

.sponsor-logo img {
    width: 120px;
    display: block;
}

/* ==========================================================================
   5. CONTENT LAYOUT & SECTIONS
   ========================================================================== */
.content-wrapper {
    position: relative;
    z-index: 10;
    padding-top: 140px; 
}

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   6. GIANT BLENDED TYPOGRAPHY EFFECT
   ========================================================================== */
.section-title {
    font-size: 6.5rem; 
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    line-height: 0.9;
    font-family: 'Serati', sans-serif;
    letter-spacing: -3px;
    color: #fff;
    text-shadow: 5px 7px 0px #000;
}

.main-footer {
  text-align: center;
  margin: 40px auto;
}

/* ==========================================================================
   7. RESPONSIVE CARDS GRID
   ========================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2; 
}

.post-card {
    display: block;
    text-decoration: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.54);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    background: rgba(0, 0, 0, 0.9);
}

.post-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.post-content {
    padding: 24px;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.post-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

.main-footer {
  text-align: center;
  margin: 40px auto;
}


/* ==========================================================================
   8. MEDIA QUERIES (MOBILE RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 3.1rem;
        letter-spacing: -1px;
        text-shadow: 2px 4px 0px #000;
    }
    .section-title {
        font-size: 2.7rem;
        letter-spacing: -1px;
        text-shadow: 3px 4px 0px #000;
    }
}

@media (max-width: 600px) {
    .sub-menu {
        gap: 20px;
    }
    .content-wrapper {
        padding-top: 120px;
    }
    .content-section {
        padding: 40px 16px;
    }
    .hero-section {
        min-height: 60vh;
    }

    .sub-menu a {
        font-size: 0.80rem;
    }
}