/* Sprint 12 per-page bundle (see docs/decisions.md for the concatenation order). */

/* ==== foundation.css ==== */
:root {
    --pia-black: #141414;
    --pia-panel: #202020;
    --pia-panel-strong: #292929;
    --pia-line: rgba(255, 255, 255, 0.12);
    --pia-gold: #ffd700;
    --pia-amber: #ffed4a;
    --pia-blue: #2c5aa0;
    --pia-white: #ffffff;
    --pia-muted: rgba(255, 255, 255, 0.76);
    --pia-focus: #ffed4a;
    --pia-radius: 8px;
    --pia-container: 1120px;
    --pia-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --pia-font-display: Georgia, 'Times New Roman', serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--pia-black);
    color: var(--pia-white);
    font-family: var(--pia-font-body);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--pia-focus);
    outline-offset: 3px;
}

::selection {
    background: rgba(255, 215, 0, 0.35);
}

.container {
    width: min(var(--pia-container), calc(100% - 2rem));
    margin-inline: auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 0;
    margin-inline: -0.75rem;
}

.row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    padding-inline: 0.75rem;
}

.align-items-center {
    align-items: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    transform: translateY(-140%);
    border-radius: var(--pia-radius);
    background: var(--pia-gold);
    color: var(--pia-black);
    padding: 0.75rem 1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1100;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 215, 0, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pia-gold), var(--pia-amber));
    color: var(--pia-black);
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-back-to-top svg {
    width: 1.35rem;
    height: 1.35rem;
}

.js [data-aos] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-aos="fade-left"] {
    transform: translateX(18px);
}

.js [data-aos="fade-right"] {
    transform: translateX(-18px);
}

.js [data-aos="zoom-in"] {
    transform: scale(0.96);
}

.js [data-aos].is-visible {
    opacity: 1;
    transform: none;
}

.chevron-down-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.chevron-down-btn {
    display: grid;
    place-items: center;
    margin-top: 1.2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pia-gold);
    cursor: pointer;
    animation: chevronBounce 1.5s infinite;
}

.chevron-down-btn svg {
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.18));
}

@keyframes chevronBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(12px); }
}

@media (min-width: 992px) {
    .row > .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }

    .row > .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row > .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .js [data-aos] {
        opacity: 1;
        transform: none;
    }
}

/* ==== Sprint 12: local SVG icon sprite (replaces Font Awesome) ==== */
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; flex-shrink: 0; }

/* ==== styles.css ==== */
html {
  scroll-behavior: smooth;
}

/* Ensure sufficient color contrast */
body {
    background-color: #f8f9fa;
    color: #212529;
    font-family: Georgia, 'Times New Roman', serif;
    transition: background-color 0.3s, color 0.3s;
    /* Add padding to account for fixed navbar */
    padding-top: 70px; /* Mobile navbar height */
}

/* Responsive navbar padding */
@media (min-width: 768px) {
    body {
        padding-top: 80px; /* Tablet navbar height */
    }
}

@media (min-width: 1024px) {
    body {
        padding-top: 90px; /* Desktop navbar height */
    }
}

/* Special handling for index page with full viewport hero */
body.index-page {
    padding-top: 0;
}

/* Special handling for about-me page with full viewport hero */
body.about-me-page {
    padding-top: 0;
}

.pi-body a:hover,
.pi-body button:hover {
  transition: 0.3s;
}

.pi-body a:focus,
.pi-body button:focus,
.pi-body input:focus,
.pi-body textarea:focus {
    outline: 2px solid #dd3649;
    outline-offset: 2px;
}

/* Add comments for section headings */
.header {
    text-align: center;
    padding: 20px;
}

.header-img {
    width: 100%; /* Full width */
    margin: 0 auto; /* Center the image */
}

.header-text {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    margin-top: -50px;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional styles for improved accessibility and performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.container {
    padding: 15px;
}

.btn {
    transition: background-color 0.3s, color 0.3s;
    font-family: Georgia, 'Times New Roman', serif;
}

.btn:hover {
    background-color: #c12e42;
    color: #ffffff;
}

.pi-btn-custom {
    background: linear-gradient(45deg, #2196f3, #1e88e5);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    margin: 5px;
    transition: transform 0.3s, background 0.3s;
    font-family: Georgia, 'Times New Roman', serif;
}

.pi-btn-custom:hover {
    background: linear-gradient(45deg, #1e88e5, #2196f3);
    transform: translateY(-2px);
}

/* Set header text to the display serif stack */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
}

/* Set body text to Lato only */
body {
    font-family: 'Lucida Sans', sans-serif;
}

/* Ensure text changes color in dark theme */
.night-theme .header-text,
.night-theme .nav-link,
.night-theme .card,
.night-theme .card-body,
.night-theme .card-title,
.night-theme .card-text {
    color: #ffffff;
}

.night-theme .card {
    background-color: #343a40;
}

.night-theme .header-text {
    background: rgba(0, 0, 0, 0.8);
}

/* Theme-specific styles */

/* Global theme variables */
:root {
    --primary-color: #dd3649;
    --primary-color-hover: #c12e42;
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --card-text: #333333;
    --navbar-bg-color: #f8f9fa;
    --navbar-text-color: #333333;
    --footer-bg-color: #ffffff;
    --footer-text-color: #333333;
    --border-color: #dee2e6;
    --button-bg: #dd3649;
    --button-text: #ffffff;
    --filter-button-bg: #343a40;
    --filter-button-text: #ffffff;

    /* Day theme colors */
    --day-bg-color: #ffffff;
    --day-text-color: #333333;
    --day-card-bg: #f8f9fa;
    --day-card-text: #333333;
    --day-navbar-bg: #f8f9fa;
    --day-navbar-text: #333333;
    --day-footer-bg: #ffffff;
    --day-footer-text: #333333;
    --day-border-color: #dee2e6;

    /* Night theme colors */
    --night-bg-color: #121212;
    --night-text-color: #f8f9fa;
    --night-card-bg: #2c2f33;
    --night-card-text: #f8f9fa;
    --night-navbar-bg: #1e2124;
    --night-navbar-text: #f8f9fa;
    --night-footer-bg: #000000;
    --night-footer-text: #f8f9fa;
    --night-border-color: #495057;
}

/* Basic theme styles */
.day-theme {
    background-color: var(--day-bg-color);
    color: var(--day-text-color);
}

.night-theme {
    background-color: var(--night-bg-color);
    color: var(--night-text-color);
}

/* Theme transitions for smooth switching */
body, .navbar, .card, .footer, .nav-link, .btn, .header, section, .description {
    transition: background-color 0.3s, color 0.3s;
}

/* Day-Night theme-specific styles for navbar */
.day-theme .navbar {
    background-color: var(--day-navbar-bg) !important;
}

.night-theme .navbar {
    background-color: var(--night-navbar-bg) !important;
}

.day-theme .navbar .nav-link {
    color: var(--day-navbar-text) !important;
}

.night-theme .navbar .nav-link {
    color: var(--night-navbar-text) !important;
}

/* General card styling for themes */
.day-theme .card {
    background-color: var(--day-card-bg);
    color: var(--day-card-text);
    border-color: var(--day-border-color);
}

.night-theme .card {
    background-color: var(--night-card-bg);
    color: var(--night-card-text);
    border-color: var(--night-border-color);
}

/* Description sections */
.day-theme .description {
    background-color: #343a40 !important;
    color: white !important;
}

.night-theme .description {
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

/* Header styles */
.day-theme .header {
    background-color: var(--day-bg-color);
}

.night-theme .header {
    background-color: var(--night-bg-color);
}

.day-theme .header .title,
.day-theme .header .subtitle {
    color: var(--day-text-color);
}

.night-theme .header .title,
.night-theme .header .subtitle {
    color: var(--night-text-color);
}

.night-theme .card-body {
    background-color: var(--night-card-bg);
    color: var(--night-card-text);
}

.night-theme .card-footer {
    background-color: #212529 !important;
    color: var(--night-card-text);
}

/* Text colors for night theme */
.night-theme h1,
.night-theme h2,
.night-theme h3,
.night-theme h4,
.night-theme h5,
.night-theme h6,
.night-theme p,
.night-theme .text-dark {
    color: var(--night-text-color) !important;
}

/* Text muted color for night theme */
.night-theme .text-muted {
    color: #adb5bd !important;
}

.night-theme .card-subtitle {
    color: #adb5bd !important;
}

/* Remove redundant jump to top button styles */
/* Jump to top button styles are now in the component CSS file */

/* Remove red hover from brand-toggle */
#brand-toggle:hover {
    color: inherit;
}

/* Ensure all card footers have appropriate theme colors */
.night-theme .card-footer {
    background-color: #212529 !important;
}

.day-theme .card-footer {
    background-color: #f8f9fa !important;
}

/* Theme-specific styles */

/* Global theme variables */
:root {
    --primary-color: #dd3649;
    --primary-color-hover: #c12e42;
}

/* Day theme colors */
.day-theme {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --card-text: #333333;
    --navbar-bg-color: #f8f9fa;
    --navbar-text-color: #333333;
    --footer-bg-color: #ffffff;
    --footer-text-color: #333333;
    --border-color: #dee2e6;
    --button-bg: #dd3649;
    --button-text: #ffffff;
    --filter-button-bg: #343a40;
    --filter-button-text: #ffffff;
}

/* Night theme colors */
.night-theme {
    --bg-color: #121212;
    --text-color: #f8f9fa;
    --card-bg: #2c2f33;
    --card-text: #f8f9fa;
    --navbar-bg-color: #1e2124;
    --navbar-text-color: #f8f9fa;
    --footer-bg-color: #000000;
    --footer-text-color: #f8f9fa;
    --border-color: #495057;
    --button-bg: #dd3649;
    --button-text: #ffffff;
    --filter-button-bg: #212529;
    --filter-button-text: #ffffff;
}

/* Apply theme colors to elements */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.night-theme .navbar {
    background-color: var(--navbar-bg-color) !important;
}

.night-theme .navbar .nav-link {
    color: var(--navbar-text-color) !important;
}

.night-theme .card-body {
    background-color: var(--card-bg);
    color: var (--card-text);
}

.night-theme .card-footer {
    background-color: rgba(44, 47, 51, 0.8);
    color: var(--card-text);
}

.night-theme .card-subtitle {
    color: #adb5bd !important;
}

/* Theme transition effects */
.navbar, .card, .btn, .footer, body {
    transition: background-color 0.3s, color 0.3s;
}

/* Ensure text colors change appropriately with theme */
.night-theme h1,
.night-theme h2,
.night-theme h3,
.night-theme h4,
.night-theme h5,
.night-theme h6,
.night-theme p,
.night-theme .text-dark {
    color: var(--text-color) !important;
}

/* Text muted color for night theme */
.night-theme .text-muted {
    color: #adb5bd !important;
}

.header-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 3rem;
    letter-spacing: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    position: relative;
    padding-bottom: 0.5rem;
    color: white; /* Ensure hero title is always white */
}

.header-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 0.8rem;
    letter-spacing: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: white; /* Ensure hero subtitle is always white */
}

/* Style the premium experience section */
.premium-experience {
    background: linear-gradient(135deg, #004d7a 0%, #002d47 100%); /* Gradient background */
    color: #ffffff; /* White text */
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* Subtle shadow */
    border-radius: 15px; /* Rounded corners */
    margin-bottom: 2rem; /* Add some space below */
}

.premium-experience h2,
.premium-experience p {
    color: #ffffff; /* Ensure text is white */
}

.premium-metrics {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.premium-metrics .metric {
    text-align: center;
    margin-bottom: 1rem;
}

.premium-metrics .metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f8d948; /* Accent color */
    margin-bottom: 0.5rem;
}

.premium-metrics .metric-label {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.8;
}

/* Normalized Hero Card Styling for all pages */
.page-header {
    position: relative;
    padding: 4.5rem 0;
    margin-bottom: 0;
    width: 100%;
    overflow: visible;
    color: white;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.header-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 3rem;
    letter-spacing: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    position: relative;
    padding-bottom: 0.5rem;
    color: white !important;
}

.title-decorator {
    width: 80px;
    height: 4px;
    background-color: #dd3649;
    margin: 0.5rem auto 1.5rem;
    border-radius: 2px;
}

.header-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    margin-bottom: 0.8rem;
    letter-spacing: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    color: white !important;
}

/* Media queries to ensure responsive behavior */
@media (max-width: 1200px) {
    .header-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .header-title {
        font-size: 2.5rem;
    }
    .header-subtitle {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 3.5rem 0;
    }
    .header-title {
        font-size: 2.2rem;
    }
    .header-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 3rem 0;
    }
    .header-title {
        font-size: 1.8rem;
    }
    .title-decorator {
        width: 60px;
        height: 3px;
    }
}

/* Enhanced Hero Card Styling */
.page-header {
    position: relative;
    padding: 0;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden;  /* This is critical - keep overflow hidden */
    color: white;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

/* New wrapper to contain the background image overflow */
.header-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.header-bg {
    position: absolute;
    width: 100%;
    height: 100%; /* Dynamic height will be set by JS */
    object-fit: cover;
    z-index: 0;
    transform-origin: center center;
    transition: transform 0.05s ease-out; /* Smoother transitions */
}

/* Fixed parallax effect for header backgrounds */
.parallax-bg {
    will-change: transform;
    object-position: center center; /* Ensure image is centered */
    transform: translateY(0);
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 1200px;
    display: flex;          /* Add flexbox */
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Center vertically */
    align-items: center;    /* Center horizontally */
    text-align: center;     /* Center text content */
    width: 100%;            /* Ensure full width */
    height: 100%;           /* Take full height of parent */
    margin: 0 auto;         /* Ensure it's centered in the container */
}

.header-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0;
    position: relative;
    padding-bottom: 0.5rem;
    color: white !important;
    opacity: 0;
    transform: translateY(20px);
}

.animate-title {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.title-decorator {
    width: 80px;
    height: 4px;
    background-color: #dd3649;
    margin: 0.5rem auto 1.5rem; /* Default center alignment */
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scaleX(0.3);
    animation: expandWidth 1.2s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.text-left .header-content {
    align-items: flex-start;
    text-align: left;
}

.text-right .header-content {
    align-items: flex-end;
    text-align: right;
}

.text-left .title-decorator {
    margin-left: 0;
    margin-right: auto;
}

.text-right .title-decorator {
    margin-right: 0;
    margin-left: auto;
}

.title-decorator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s 1.5s infinite;
}

.header-subtitle {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0;
    color: white !important;
    opacity: 0;
    transform: translateY(20px);
}

.animate-subtitle {
    animation: fadeInUp 1s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-button {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Hero animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        opacity: 0;
        transform: scaleX(0.3);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes shimmer {
    from {
        left: -100%;
    }
    to {
        left: 100%;
    }
}

/* Media queries to ensure responsive behavior */
@media (max-width: 1200px) {
    .header-title {
        font-size: 3rem;
    }

    .header-subtitle {
        font-size: 1.6rem;
    }

    .page-header {
        min-height: 60vh;
    }
}

@media (max-width: 992px) {
    .header-title {
        font-size: 2.5rem;
    }

    .header-subtitle {
        font-size: 1.4rem;
    }

    .page-header {
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 40vh;
    }

    .header-content {
        padding: 1.5rem;    /* Reduce padding on smaller screens */
    }

    /* Ensure text remains centered on mobile regardless of alignment setting */
    .text-left .header-content,
    .text-right .header-content {
        align-items: center;
        text-align: center;
    }

    .text-left .title-decorator,
    .text-right .title-decorator {
        margin-left: auto;
        margin-right: auto;
    }

    .header-title {
        font-size: 2.2rem;
    }

    .header-subtitle {
        font-size: 1.2rem;
    }

    .title-decorator {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 30vh;
    }

    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 1rem;
    }

    .title-decorator {
        width: 50px;
        height: 3px;
    }
}

/* ==== navbar-chess.css ==== */
/* ============================================================================
   PAWN ISLAND ACADEMY - CHESS THEMED NAVBAR WITH GLASSMORPHISM 2025
   Dark Chess Theme with Advanced Animations & Cutting-Edge UX
   ============================================================================ */

/* CSS Custom Properties - Dark Chess Theme */
:root {
    /* Dark Chess Color Palette */
    --chess-black: #1a1a1a;
    --chess-dark-gray: #2d2d2d;
    --chess-medium-gray: #404040;

    --chess-gold: #ffd700;
    --chess-amber: #ffed4a;
    --chess-blue: #2c5aa0;
    --chess-white: #ffffff;
    --chess-shadow: rgba(0, 0, 0, 0.8);

    /* Glassmorphism Variables */
    --glass-bg: rgba(26, 26, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Typography System */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-brand: Georgia, 'Times New Roman', serif;

    /* Animation System */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --duration-fast: 200ms;
    --duration-medium: 400ms;
    --duration-slow: 600ms;

    /* Navbar Dimensions */
    --navbar-height-mobile: 70px;
    --navbar-height-tablet: 80px;
    --navbar-height-desktop: 90px;
}

/* ============================================================================
   MAIN NAVBAR STYLES
   ============================================================================ */

.chess-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height-mobile);
    z-index: 1000;
    font-family: var(--font-primary);
    transition: all var(--duration-medium) var(--ease-smooth);
}

/* Glassmorphism Background */
.navbar-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Animated Chess Pattern */
.navbar-chess-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            var(--chess-medium-gray) 20px,
            var(--chess-medium-gray) 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            var(--chess-medium-gray) 20px,
            var(--chess-medium-gray) 21px
        );
    animation: chessPatternMove 30s linear infinite;
}

@keyframes chessPatternMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

/* Main Container */
.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
}

/* ============================================================================
   BRAND SECTION
   ============================================================================ */

.brand-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--chess-white);
    transition: all var(--duration-medium) var(--ease-smooth);
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
}

.brand-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 237, 74, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity var(--duration-medium) var(--ease-smooth);
}

.brand-link:hover::before,
.brand-link:focus::before {
    opacity: 1;
}

.brand-logo {
    width: 35px;
    height: 35px;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 10px var(--chess-gold));
}

.brand-svg {
    width: 100%;
    height: 100%;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(45deg);
}

/* Spinning Logo Animation */
.spinning-logo {
    animation: spinClockwise 8s linear infinite;
}

@keyframes spinClockwise {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

/* Brand Text Responsive */
.brand-text-full {
    display: none;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text-compact {
    display: flex;
    align-items: center;
}

.brand-line-1,
.brand-line-2 {
    font-family: var(--font-brand);
    font-weight: 600;
    font-size: 0.9rem;
    background: linear-gradient(135deg,
        var(--chess-white) 0%,
        var(--chess-gold) 50%,
        var(--chess-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-compact {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg,
        var(--chess-white) 0%,
        var(--chess-gold) 50%,
        var(--chess-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================================
   NAVIGATION LINKS
   ============================================================================ */

.nav-links {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--chess-white);
    border-radius: 12px;
    transition: all var(--duration-medium) var(--ease-smooth);
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 237, 74, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity var(--duration-medium) var(--ease-smooth);
}

.nav-link:hover::before,
.nav-link:focus::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link:focus {
    transform: translateY(-2px);
    border-color: var(--chess-gold);
    color: var(--chess-gold);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.nav-link.is-current {
    border-color: rgba(255, 215, 0, 0.55);
    color: var(--chess-gold);
    pointer-events: none;
}

.nav-link i {
    font-size: 1rem;
    transition: transform var(--duration-medium) var(--ease-smooth);
}

.nav-link:hover i {
    transform: scale(1.1);
}

/* ============================================================================
   MOBILE MENU
   ============================================================================ */

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    border: 0;
    background: transparent;
    border-radius: 12px;
    transition: all var(--duration-medium) var(--ease-smooth);
    position: relative;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 237, 74, 0.1) 100%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity var(--duration-medium) var(--ease-smooth);
}

.mobile-menu-toggle:hover::before {
    opacity: 1;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 10;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: var(--chess-white);
    border-radius: 2px;
    transition: all var(--duration-medium) var(--ease-smooth);
}

.mobile-menu-toggle:hover .hamburger span {
    background: var(--chess-gold);
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-slow) var(--ease-smooth);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.has-open-menu {
    overflow: hidden;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    animation: slideInFromTop var(--duration-slow) var(--ease-bounce);
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.mobile-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(45deg);
    animation: spinClockwise 8s linear infinite;
}

.mobile-brand-text {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg,
        var(--chess-white) 0%,
        var(--chess-gold) 50%,
        var(--chess-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: var(--chess-white);
    background: rgba(45, 45, 45, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all var(--duration-medium) var(--ease-smooth);
    font-weight: 500;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--chess-gold);
    color: var(--chess-gold);
    transform: translateX(10px);
}

.mobile-nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ============================================================================
   SCROLL BEHAVIOR
   ============================================================================ */

.chess-navbar.scrolled {
    height: calc(var(--navbar-height-mobile) - 10px);
}

.chess-navbar.scrolled .navbar-glass-bg {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (min-width: 768px) {
    .chess-navbar {
        height: var(--navbar-height-tablet);
    }

    .navbar-container {
        padding: 0 2rem;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
        margin-right: 1rem;
    }

    .brand-text-compact {
        display: none;
    }

    .brand-text-full {
        display: flex;
    }

    .brand-line-1,
    .brand-line-2 {
        font-size: 1rem;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .chess-navbar.scrolled {
        height: calc(var(--navbar-height-tablet) - 10px);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .chess-navbar {
        height: var(--navbar-height-desktop);
    }

    .navbar-container {
        padding: 0 3rem;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .brand-line-1,
    .brand-line-2 {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }

    .chess-navbar.scrolled {
        height: calc(var(--navbar-height-desktop) - 15px);
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .navbar-container {
        padding: 0 4rem;
    }

    .nav-links {
        gap: 1.25rem;
    }
}

/* ============================================================================
   ACCESSIBILITY & MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.brand-link:focus,
.nav-link:focus,
.mobile-nav-link:focus {
    outline: 2px solid var(--chess-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .chess-navbar {
        display: none;
    }
}

/* ==== footer.css ==== */
/* ============================================================================
   PAWN ISLAND ACADEMY - CHESS THEMED FOOTER WITH GLASSMORPHISM 2025
   Dark Chess Theme with Advanced Animations & Cutting-Edge UX
   ============================================================================ */

/* Chess Footer Variables */
:root {
    /* Dark Chess Color Palette */
    --chess-black: #1a1a1a;
    --chess-dark-gray: #2d2d2d;
    --chess-medium-gray: #404040;

    --chess-gold: #ffd700;
    --chess-amber: #ffed4a;
    --chess-blue: #2c5aa0;
    --chess-white: #ffffff;
    --chess-shadow: rgba(0, 0, 0, 0.8);

    /* Glassmorphism Variables */
    --glass-bg: rgba(26, 26, 26, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --glass-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-brand: Georgia, 'Times New Roman', serif;

    /* Animation */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-medium: 400ms;
    --duration-slow: 600ms;
}

/* ============================================================================
   MAIN FOOTER STYLES
   ============================================================================ */

.chess-footer {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #404040 100%);
    font-family: var(--font-primary);
    overflow: hidden;
    padding: 3rem 0 2rem;
}

/* Glassmorphism Background */
.footer-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Animated Chess Pattern */
.footer-chess-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.08;
    background:
        radial-gradient(circle at 25% 25%, var(--chess-blue) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--chess-gold) 1px, transparent 1px),
        linear-gradient(45deg, transparent 48%, var(--chess-medium-gray) 49%, var(--chess-medium-gray) 51%, transparent 52%);
    background-size: 60px 60px, 40px 40px, 120px 120px;
    animation: patternShift 120s linear infinite;
}

@keyframes patternShift {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-60px, -60px) rotate(360deg); }
}

/* Floating Chess Pieces */
.footer-chess-pieces {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.chess-piece {
    position: absolute;
    font-size: 2rem;
    color: var(--chess-medium-gray);
    opacity: 0.2;
    animation: float 20s ease-in-out infinite;
}

.chess-piece:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.chess-piece:nth-child(2) { top: 20%; right: 10%; animation-delay: 4s; }
.chess-piece:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 8s; }
.chess-piece:nth-child(4) { bottom: 15%; right: 5%; animation-delay: 12s; }
.chess-piece:nth-child(5) { top: 60%; left: 8%; animation-delay: 16s; }
.chess-piece:nth-child(6) { top: 40%; right: 12%; animation-delay: 20s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-3deg); }
    75% { transform: translateY(-20px) rotate(8deg); }
}

/* Main Container */
.footer-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

/* ============================================================================
   FOOTER BRAND SECTION
   ============================================================================ */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 15px var(--chess-gold));
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(45deg);
}

.footer-logo-img.spinning-logo {
    animation: spinClockwise 12s linear infinite;
}

@keyframes spinClockwise {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

.footer-brand-text {
    text-align: center;
}

.footer-title {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg,
        var(--chess-white) 0%,
        var(--chess-gold) 50%,
        var(--chess-amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.footer-subtitle {
    color: var(--chess-white);
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* ============================================================================
   SOCIAL LINKS SECTION
   ============================================================================ */

.footer-social {
    margin-bottom: 2rem;
}

.social-title {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--chess-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(45, 45, 45, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--chess-white);
    text-decoration: none;
    transition: all var(--duration-medium) var(--ease-smooth);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left var(--duration-slow) var(--ease-smooth);
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-4px) scale(1.1);
    border-color: var(--chess-gold);
    color: var(--chess-gold);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.social-link i {
    font-size: 1.2rem;
    transition: transform var(--duration-medium) var(--ease-smooth);
    z-index: 10;
    position: relative;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* ============================================================================
   FOOTER LINKS SECTION
   ============================================================================ */

.footer-links {
    margin-bottom: 2rem;
}

.links-title {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--chess-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--chess-white);
    background: rgba(45, 45, 45, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--duration-medium) var(--ease-smooth);
    font-weight: 500;
    backdrop-filter: blur(10px);
    width: fit-content;
    position: relative;
    overflow: hidden;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left var(--duration-slow) var(--ease-smooth);
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link:hover,
.footer-link:focus {
    transform: translateX(8px);
    border-color: var(--chess-gold);
    color: var(--chess-gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.footer-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform var(--duration-medium) var(--ease-smooth);
    z-index: 10;
    position: relative;
}

.footer-link:hover i {
    transform: scale(1.1);
}

/* ============================================================================
   COPYRIGHT SECTION
   ============================================================================ */

.footer-copyright {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top: 1rem;
}

.copyright-text {
    color: var(--chess-white);
    font-size: 0.9rem;
    line-height: 1.6;
}

.copyright-text p {
    margin: 0.25rem 0;
}

.copyright-text .subtitle {
    font-weight: 500;
    color: var(--chess-white);
}

.copyright-text .rights {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        text-align: left;
        padding: 0 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        text-align: center;
        margin-bottom: 3rem;
    }

    .footer-logo {
        width: 80px;
        height: 80px;
        margin-right: 2rem;
    }

    .footer-title {
        font-size: 2.2rem;
    }

    .footer-subtitle {
        font-size: 1.1rem;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 1.25rem;
    }

    .footer-nav {
        align-items: flex-start;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
        padding: 0 3rem;
    }

    .footer-brand {
        grid-column: 1;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 0;
    }

    .footer-logo {
        width: 96px;
        height: 96px;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .footer-title {
        font-size: 2.5rem;
    }

    .footer-subtitle {
        font-size: 1.2rem;
    }

    .footer-social {
        margin-bottom: 0;
    }

    .footer-links {
        margin-bottom: 0;
    }

    .social-icons {
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .social-link {
        width: 52px;
        height: 52px;
    }

    .footer-nav {
        gap: 1rem;
    }

    .footer-copyright {
        grid-column: 1 / -1;
        margin-top: 2rem;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .footer-container {
        padding: 0 4rem;
        gap: 5rem;
    }

    .footer-logo {
        width: 112px;
        height: 112px;
    }

    .footer-title {
        font-size: 2.8rem;
    }
}

/* ============================================================================
   ACCESSIBILITY & MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.social-link:focus,
.footer-link:focus {
    outline: 2px solid var(--chess-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .chess-footer {
        background: white !important;
        color: black !important;
    }

    .footer-chess-pattern,
    .footer-chess-pieces,
    .footer-glass-bg {
        display: none;
    }
}

/* ==== home.css ==== */
:root {
    --chess-black: #1a1a1a;
    --chess-dark-gray: #2d2d2d;
    --chess-medium-gray: #404040;
    --chess-gold: #ffd700;
    --chess-amber: #ffed4a;
    --chess-blue: #2c5aa0;
    --chess-white: #ffffff;
}

.index-page {
    background: var(--chess-black);
    color: var(--chess-white);
}

.home-hero {
    min-height: 88vh;
    min-height: 88dvh;
    position: relative;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 5.5rem 1.25rem 2rem;
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.94), rgba(45, 45, 45, 0.86)),
        url("../images/headers-pages/coach-2.webp?v=07d8da1049") center/cover;
}

.home-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.11;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 80px, var(--chess-medium-gray) 80px, var(--chess-medium-gray) 81px),
        repeating-linear-gradient(90deg, transparent, transparent 80px, var(--chess-medium-gray) 80px, var(--chess-medium-gray) 81px);
    animation: chessPatternMove 24s linear infinite;
}

.home-hero__pieces {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
}

.home-hero__pieces span {
    position: absolute;
    color: rgba(255, 215, 0, 0.28);
    font-size: 3.25rem;
    animation: floatPiece 16s ease-in-out infinite;
}

.home-hero__pieces span:nth-child(1) { top: 13%; left: 9%; animation-delay: 0s; }
.home-hero__pieces span:nth-child(2) { top: 22%; right: 13%; animation-delay: 2s; }
.home-hero__pieces span:nth-child(3) { bottom: 22%; left: 18%; animation-delay: 4s; }
.home-hero__pieces span:nth-child(4) { bottom: 16%; right: 12%; animation-delay: 6s; }
.home-hero__pieces span:nth-child(5) { top: 54%; left: 4%; animation-delay: 8s; }
.home-hero__pieces span:nth-child(6) { top: 62%; right: 5%; animation-delay: 10s; }

.home-hero__content {
    position: relative;
    z-index: 2;
    width: min(920px, 100%);
    text-align: center;
}

.home-hero__logo {
    width: 128px;
    height: auto;
    margin-bottom: 1rem;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(45deg) drop-shadow(0 0 10px var(--chess-gold));
    animation: spinClockwise 8s linear infinite;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--chess-gold);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1,
.home-section h2,
.home-cta h2 {
    font-family: Georgia, 'Times New Roman', serif;
}

.home-hero h1 {
    font-size: 4.4rem;
    line-height: 1.05;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, var(--chess-white), var(--chess-gold), var(--chess-amber));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero__lead {
    max-width: 760px;
    margin: 0 auto 1.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.index-page .btn-chess {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    box-sizing: border-box;
    min-height: 3.1rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--chess-gold), var(--chess-amber));
    color: var(--chess-black);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(255, 215, 0, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.index-page .btn-chess:hover,
.index-page .btn-chess:focus {
    color: var(--chess-black);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(255, 215, 0, 0.32);
}

.index-page .btn-chess-secondary {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.55);
    color: var(--chess-white);
}

.index-page .btn-chess-secondary:hover,
.index-page .btn-chess-secondary:focus {
    color: var(--chess-gold);
}

#main-content {
    background:
        radial-gradient(circle at 15% 10%, rgba(44, 90, 160, 0.16), transparent 30rem),
        linear-gradient(180deg, var(--chess-black), #121212);
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: rgba(255, 215, 0, 0.22);
    border-top: 1px solid rgba(255, 215, 0, 0.22);
    border-bottom: 1px solid rgba(255, 215, 0, 0.22);
}

.proof-strip div {
    padding: 1.6rem 1rem;
    text-align: center;
    background: rgba(26, 26, 26, 0.92);
}

.proof-strip strong {
    display: block;
    color: var(--chess-gold);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.75rem;
    line-height: 1;
}

.proof-strip span {
    display: block;
    margin-top: 0.4rem;
    color: rgba(255, 255, 255, 0.84);
}

.home-section {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.section-copy h2,
.section-heading h2,
.home-cta h2 {
    color: var(--chess-white);
    font-size: 3rem;
    line-height: 1.12;
    margin: 0 0 1.1rem;
}

.section-copy p,
.home-cta p,
.program-card p,
.process-list span {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--chess-gold);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: var(--chess-amber);
    text-decoration: none;
}

.testimonial-callout {
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 8px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.88), rgba(26, 26, 26, 0.92));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.testimonial-callout p {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.testimonial-callout span {
    color: var(--chess-gold);
    font-weight: 700;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 2rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.program-card {
    min-height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 8px;
    background: rgba(45, 45, 45, 0.7);
}

.program-card i {
    color: var(--chess-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.program-card h3 {
    color: var(--chess-white);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.program-card a {
    color: var(--chess-gold);
    font-weight: 700;
    text-decoration: none;
}

.program-card a:hover {
    color: var(--chess-amber);
}

.process-section {
    border-top: 1px solid rgba(255, 215, 0, 0.14);
    border-bottom: 1px solid rgba(255, 215, 0, 0.14);
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: process;
}

.process-list li {
    position: relative;
    padding: 4rem 1.35rem 1.35rem;
    border-radius: 8px;
    background: rgba(26, 26, 26, 0.72);
    border: 1px solid rgba(255, 215, 0, 0.2);
    counter-increment: process;
}

.process-list li::before {
    content: counter(process);
    position: absolute;
    top: 1rem;
    left: 1.35rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--chess-gold);
    color: var(--chess-black);
    font-weight: 800;
}

.process-list strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--chess-white);
    font-size: 1.15rem;
}

.home-cta {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto 5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.86), rgba(45, 45, 45, 0.96));
    border: 1px solid rgba(255, 215, 0, 0.25);
}

.home-cta h2 {
    margin-bottom: 0.6rem;
}

.home-cta p {
    margin: 0;
}

@keyframes chessPatternMove {
    from { transform: translate(0, 0); }
    to { transform: translate(80px, 80px); }
}

@keyframes floatPiece {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(8deg); }
}

@keyframes spinClockwise {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

@media (max-width: 900px) {
    .proof-strip,
    .program-grid,
    .process-list,
    .split-section {
        grid-template-columns: 1fr;
    }

    .home-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-hero h1 {
        font-size: 3.25rem;
    }

    .section-copy h2,
    .section-heading h2,
    .home-cta h2 {
        font-size: 2.35rem;
    }
}

@media (max-width: 520px) {
    .home-hero {
        padding-top: 6rem;
    }

    .home-hero__pieces span {
        font-size: 2rem;
    }

    .home-hero h1 {
        font-size: 2.45rem;
    }

    .home-hero__lead {
        font-size: 1.05rem;
    }

    .proof-strip strong {
        font-size: 1.9rem;
    }

    .section-copy h2,
    .section-heading h2,
    .home-cta h2 {
        font-size: 2rem;
    }

    .hero-actions,
    .hero-actions .btn-chess,
    .home-cta .btn-chess {
        width: 100%;
    }

    .proof-strip div {
        padding: 1.2rem 1rem;
    }
}
