@import url('https://fonts.cdnfonts.com/css/technos');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&family=Michroma&family=Oswald:wght@200..700&family=Play:wght@400;700&display=swap');

:root {
    --primary-red: #ff0033;
    --dark-red: #cc0026;
    --black: #0a0a0a;
    --white: #fff;
    --gray: #333;
    --light-gray: #555;
    --very-light-gray: #999;
    --transparent-red: rgba(255, 0, 51, 0.1);
    --primary-font: 'Montserrat', sans-serif;
    --logo-font: 'Technos', sans-serif;
    --transition-speed: 0.3s;
    --glow-effect: 0 0 15px rgba(255, 0, 51, 0.5);
    --text-glow: 0 0 10px rgba(255, 0, 51, 0.3);
    --neon-border: 1px solid rgba(255, 0, 51, 0.3);
    --vh: 1vh;
    /* Modern glass effect variables */
    --glass-bg: rgba(10, 10, 10, 0.85);
    --glass-blur: blur(16px);
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --border-accent: 1px solid rgba(255, 0, 51, 0.2);
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
}

.play-regular {
    font-family: "Play", sans-serif;
    font-weight: 600;
    font-size: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--primary-font);
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    font-size: 16px;
}

/* Prevent zoom on inputs */
input,
select,
textarea,
button {
    font-size: 16px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, rgba(255, 0, 51, 0.05) 1px, transparent 1px) 0 0 / 20px 20px,
        linear-gradient(rgba(255, 0, 51, 0.05) 1px, transparent 1px) 0 0 / 20px 20px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 51, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   MODERN HEADER & NAVIGATION
   ========================================= */

/* Header is now just a transparent positioning wrapper */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 16px 24px;
    pointer-events: none;
    background: transparent;
}

header::before {
    display: none;
}

/* The actual floating pill bar */
.nav-floating-bar {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-accent);
    border-radius: 50px;
    box-shadow: var(--shadow-soft), 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-speed) ease;
}

/* Modern brand styling */
.brand {
    font-family: var(--logo-font);
    font-size: 20px;
    font-weight: bold;
    color: var(--white);
    position: relative;
    z-index: 1001;
    letter-spacing: 2px;
    text-shadow: var(--text-glow);
    padding: 8px 16px;
    background: rgba(255, 0, 51, 0.08);
    border: var(--border-accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

.brand:hover {
    color: var(--white);
    background: rgba(255, 0, 51, 0.15);
    text-shadow: 0 0 15px rgba(255, 0, 51, 0.7);
    border-color: rgba(255, 0, 51, 0.4);
    transform: translateY(-1px);
}

nav {
    position: relative;
}

.nav-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nav-toggle-label {
    display: none;
}

/* Nav links list — no background, just flex row */
nav ul.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 0;
    position: relative;
    z-index: 1000;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
}

nav ul::before {
    display: none;
}

/* Modern nav link styling */
nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    padding: 8px 14px;
    position: relative;
    letter-spacing: 0.3px;
    border-radius: 6px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-red);
    transition: width var(--transition-speed) ease;
    border-radius: 2px;
}

nav a:hover::after,
nav a.active::after {
    width: 60%;
}

nav a:hover,
nav a.active {
    color: var(--primary-red);
    background: rgba(255, 0, 51, 0.08);
}

nav ul li.dropdown {
    position: relative;
}

/* Modern dropdown menu */
.dropdown-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--border-accent);
    border-radius: var(--radius-md);
    white-space: nowrap;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    min-width: 160px;
}

/* Dropdown items */
.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    position: relative;
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border-radius: 6px;
}

/* Remove old underline from dropdown items */
.dropdown-menu li a::after {
    display: none;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 51, 0.1);
    border-radius: 6px;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.dropdown-menu li a:hover::before {
    opacity: 1;
}

.dropdown-menu li a:hover {
    color: var(--primary-red);
    padding-left: 20px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: flex;
}

/* Invisible bridge to prevent losing hover state */
.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    background: transparent;
}

/* Right-aligned dropdown (for Projects button) */
.dropdown-menu--right {
    left: auto;
    right: 0;
    transform: none;
}

/* Projects button — off-white styled */
.nav-projects {
    position: relative;
    flex-shrink: 0;
}

.nav-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: #f0ede8;
    color: #1a1a1a;
    border: none;
    border-radius: 50px;
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    white-space: nowrap;
}

.nav-projects-btn:hover {
    background: #ffffff;
    color: #0a0a0a;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(240, 237, 232, 0.2);
}

.nav-projects:hover .dropdown-menu {
    display: flex;
}


/* Main Content */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    padding-top: 80px;
    /* Header height */
    position: relative;
    z-index: 1;
}

.home-container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    min-height: calc(100vh - 80px);
    /* Subtract header height */
    margin-top: 0;
    display: flex;
    align-items: center;
}

.logo-section {
    width: 45%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 30px;
    /* Move logo up */
}

.logo-background {
    width: 95%;
    height: 95%;
    max-width: 520px;
    max-height: 520px;
    position: relative;
    background: url('../assets/images/stroke.png') no-repeat center center;
    background-size: contain;
    mix-blend-mode: normal;
    filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.3));
    margin-bottom: 12px;
    /* Space for label below logo */
}

.community-partner-label {
    font-family: var(--primary-font);
    font-size: 18px;
    color: var(--primary-red);
    background: rgba(255, 0, 51, 0.08);
    border: 1px solid rgba(255, 0, 51, 0.2);
    border-radius: 18px;
    padding: 6px 22px;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(255, 0, 51, 0.07);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.content-section {
    width: 45%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(10, 10, 10, 0.8);
    border: var(--neon-border);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    position: relative;
    margin-left: 50px;
    align-self: center;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 51, 0.05), transparent);
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-200%);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

.main-logo {
    font-family: var(--logo-font);
    font-size: 60px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
    text-shadow: var(--text-glow);
    animation: glowPulse 2s infinite alternate;
    text-indent: 0.5em;
}

@keyframes glowPulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 0, 51, 0.3);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
    }
}

.description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--white);
    position: relative;
    text-align: justify;
    padding: 20px 25px 25px;
    /* Increased horizontal and bottom padding */
    background: rgba(20, 20, 20, 0.5);
    border: var(--neon-border);
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    z-index: 1;
    overflow: visible;
    text-indent: 0.5em;
    /* Ensure text isn't cut off */
}

.tagline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #fff;
}

.underline {
    position: relative;
    display: inline-block;
}

.underline svg {
    position: absolute;
    left: 0;
    bottom: -0.1em;
    /* distance below text */
    width: 100%;
    height: 0.6em;
    /* curve height */
}

.underline path {
    stroke: url(#grad);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    /* spacing between images */
    flex-wrap: wrap;
    /* ensures responsiveness */
}

.image-border {
    position: relative;
    z-index: 1001;
    letter-spacing: 1px;
    padding: 0;
    border: 2px solid rgb(255, 0, 51);
    clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
    text-decoration: none;
    display: block;
    width: 400px;
    max-width: 400px;
    height: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    opacity: 0.6;
    transition: all 0.4s ease;
    box-shadow: 0 0 12px rgb(255, 0, 51);
    /* strong red base */
}

.image-border:hover {
    opacity: 1;
    transform: scale(1.05);
    border-color: #ff0033;
    box-shadow:
        0 0 20px rgba(255, 0, 51, 1),
        /* sharp glow */
        0 0 40px rgba(255, 0, 51, 0.9),
        /* medium glow */
        0 0 60px rgba(255, 0, 51, 0.8);
    /* outer aura */
}

/* Gallery grid (already added before) */
.timeline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.timeline-item {
    background: #111;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.timeline-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.timeline-item:hover {
    transform: scale(1.05);
}

.timeline-item p {
    font-size: 14px;
    color: #fff;
}

/* Lightbox */
#lightbox {
    display: none;
    /* hidden by default */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    text-align: center;
    padding-top: 60px;
}

#lightbox img {
    max-width: 80%;
    max-height: 70%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(179, 1, 1, 0.783);
}

#lightbox-caption {
    margin-top: 15px;
    color: #fff;
    font-size: 18px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

#lightbox-close:hover {
    color: var(--primary-red);
}


.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 0;
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-red);
    color: var(--white);
    box-shadow: var(--glow-effect);
    border: var(--neon-border);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: var(--neon-border);
    box-shadow: var(--glow-effect);
}

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.4);
}

.btn-secondary:hover {
    background-color: var(--transparent-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 0, 51, 0.4);
}

/* Page Containers */
.page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 30px 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.page-header h1::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.subtitle {
    font-size: 18px;
    color: var(--very-light-gray);
    font-weight: 300;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Team Page */
.team-status-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    background-color: rgba(20, 20, 20, 0.8);
    padding: 10px 25px;
    border-radius: 50px;
    border: var(--neon-border);
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.team-status-legend .status-dot {
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    border: 2px solid #ffffff;
    font-size: 0;
    color: transparent;
    position: relative;
}

.status-dot.active {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.9);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.status-dot.inactive {
    background-color: #9e9e9e;
    box-shadow: 0 0 10px rgba(158, 158, 158, 0.7);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.status-text {
    font-size: 14px;
    color: var(--white);
    font-weight: 500;
}

.member-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 4px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: rgba(20, 20, 20, 0.8);
    border: var(--neon-border);
    transition: all var(--transition-speed);
    overflow: hidden;
    position: relative;
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 0, 51, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.team-member:hover::before {
    transform: translateX(100%);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 0, 51, 0.2);
}

.member-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(20%);
}

.team-member:hover .member-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.member-info {
    padding: 25px;
    position: relative;
    background: rgba(10, 10, 10, 0.8);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-title {
    color: var(--primary-red);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 16px;
    text-shadow: var(--text-glow);
}

.member-bio {
    color: var(--very-light-gray);
    font-weight: 300;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
}

.social-links-home {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-icon-home,
.social-icon-footer {
    color: var(--white);
    text-decoration: none;
    font-size: 20px;
    transition: all var(--transition-speed);
    margin: 0 15px 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-home:hover,
.social-icon-footer:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
    text-shadow: var(--text-glow);
}

.ctftime-logo {
    height: 20px;
    width: auto;
    transition: all var(--transition-speed);
}

.social-icon-home:hover .ctftime-logo,
.social-icon-footer:hover .ctftime-logo {
    transform: scale(1.1);
}

.portfolio-icon {
    color: var(--white);
    transition: all var(--transition-speed);
}

.portfolio-icon:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
    text-shadow: var(--text-glow);
}


/* Blogs Page - Clean Web3 Inspired Design */
.blogs-container {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
}

/* Hero Section */
.blogs-hero {
    padding: 40px 20px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.05) 0%, transparent 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 51, 0.1);
    border: 1px solid rgba(255, 0, 51, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-red);
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--primary-font);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-weight: 300;
}

/* Main Content */
.blogs-main {
    padding: 20px 20px 40px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Status Card */
.status-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.status-card:hover {
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 10px 20px rgba(255, 0, 51, 0.1);
}

.status-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.status-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(255, 0, 51, 0.8) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.status-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.status-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Preview Section */
.preview-section {
    text-align: center;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red) 0%, rgba(255, 0, 51, 0.5) 100%);
    border-radius: 2px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 51, 0.3);
    box-shadow: 0 10px 20px rgba(255, 0, 51, 0.1);
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.2) 0%, rgba(255, 0, 51, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 18px;
    color: var(--primary-red);
}

.preview-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.preview-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* Notification Section */
.notification-section {
    display: flex;
    justify-content: center;
}

.notification-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    backdrop-filter: blur(20px);
}

.notification-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.notification-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: rgba(255, 0, 51, 0.3);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* =========================================
   PROFESSIONAL FOOTER
   ========================================= */
footer {
    background: linear-gradient(180deg, rgba(8, 8, 12, 0.95) 0%, rgba(5, 5, 8, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 60px 0 40px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Subtle gradient line at top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 0, 51, 0.4) 30%,
            rgba(255, 0, 51, 0.6) 50%,
            rgba(255, 0, 51, 0.4) 70%,
            transparent 100%);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Brand logo - clean, minimal */
.footer-logo {
    font-family: var(--logo-font);
    font-size: 22px;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
    padding: 0;
    background: none;
    border: none;
    transition: all var(--transition-speed) ease;
}

.footer-logo:hover {
    text-shadow: 0 0 30px rgba(255, 0, 51, 0.5);
}

/* Navigation links - sleek horizontal row */
.footer-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

/* Social icons - circular, minimal */
.social-links-footer {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 0;
}

.social-icon-footer {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    font-size: 17px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-footer:hover {
    background: rgba(255, 0, 51, 0.15);
    border-color: rgba(255, 0, 51, 0.4);
    color: var(--primary-red);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 0, 51, 0.2);
}

.social-icon-footer .ctftime-logo {
    width: 20px;
    height: 20px;
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}

.social-icon-footer:hover .ctftime-logo {
    filter: brightness(1.1);
}

/* Remove background and make SVG take all space for CTFTime */
a.social-icon-footer[aria-label="CTFtime"] {
    background: transparent;
    border: none;
    width: auto;
    height: auto;
}

a.social-icon-footer[aria-label="CTFtime"]:hover {
    background: transparent;
    box-shadow: none;
}

a.social-icon-footer[aria-label="CTFtime"] .ctftime-logo {
    width: 44px;
    /* Matches the outer dimension of the other icons */
    height: 44px;
    filter: none;
    /* remove dimness, use original svg colors */
}

a.social-icon-footer[aria-label="CTFtime"]:hover .ctftime-logo {
    filter: brightness(1.2);
    /* optional: brighten the svg on hover */
}

/* =========================================
   ENHANCED FOOTER STRUCTURE
   ========================================= */

/* Brand section with logo */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 0, 51, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-brand:hover .footer-brand-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px rgba(255, 0, 51, 0.5));
}

.footer-brand-name {
    font-family: var(--logo-font);
    font-size: 20px;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Link groups grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 20px 0;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 0, 51, 0.8);
    margin: 0 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    transition: all 0.25s ease;
}

.footer-link-group a:hover {
    color: var(--white);
    padding-left: 8px;
}

/* Social section */
.footer-social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.footer-social-section .footer-link-title {
    border-bottom: none;
    padding-bottom: 0;
    text-align: center;
}

/* Footer bottom / copyright */
.footer-bottom {
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    text-align: center;
    letter-spacing: 0.3px;
    padding: 0;
    border: none;
    max-width: none;
    width: auto;
}

@media screen and (max-width:1760px) {
    .main-logo {
        font-family: var(--logo-font);
        font-size: 38px;
        margin-bottom: 30px;
        position: relative;
        display: inline-block;
        letter-spacing: 2px;
        text-shadow: var(--text-glow);
        animation: glowPulse 2s infinite alternate;
        text-indent: 0.5em;
    }
}

/* Blogs Page Responsive Design */
@media screen and (max-width: 900px) {
    .blogs-hero {
        padding: 30px 20px 20px;
    }

    .hero-title {
        font-size: 32px;
        font-weight: 700;
        letter-spacing: 0.8px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .content-wrapper {
        gap: 24px;
    }

    .status-card {
        padding: 20px;
    }

    .status-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .status-icon {
        margin: 0 auto;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .notification-card {
        padding: 20px;
    }
}

@media screen and (max-width: 600px) {
    .blogs-hero {
        padding: 25px 16px 20px;
    }

    .hero-title {
        font-size: 28px;
        font-weight: 700;
        letter-spacing: 0.6px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-badge {
        padding: 5px 14px;
        font-size: 11px;
    }

    .blogs-main {
        padding: 20px 16px 30px;
    }

    .content-wrapper {
        gap: 20px;
    }

    .status-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .status-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
    }

    .status-text h3 {
        font-size: 16px;
    }

    .status-text p {
        font-size: 13px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .preview-card {
        padding: 16px 14px;
        border-radius: 12px;
    }

    .card-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .preview-card h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .preview-card p {
        font-size: 12px;
    }

    .notification-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .notification-card h3 {
        font-size: 16px;
    }

    .notification-card p {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }

    .logo-section {
        min-height: 120px;
        height: 160px;
        padding-top: 30px;
    }

    .logo-background {
        width: 100%;
        height: 180px;
        min-height: 120px;
        max-width: 100vw;
        max-height: 220px;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        display: block;
    }
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 1024px) {
    .home-container {
        flex-direction: column;
        padding: 20px;
        height: auto;
        justify-content: flex-start;
    }

    .logo-section {
        width: 100%;
        height: 400px;
        margin-bottom: 30px;
        align-self: center;
    }

    .content-section {
        width: 100%;
        margin-left: 0;
        margin-bottom: 30px;
        align-self: center;
    }

    .main-logo {
        font-size: 48px;
    }

    .description {
        font-size: 16px;
    }
}

@media screen and (max-width: 900px) {
    .achievements-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 30px;
        gap: 25px;
    }

    .achievement-card {
        padding: 25px;
    }
}

@media screen and (max-width: 927px) {
    .container {
        padding-top: 80px;
    }

    .image-row {
        flex-direction: column;
        align-items: center;
    }

    /* Mobile: revert to old full-width sticky header */
    header {
        padding: 0;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-bottom: var(--border-accent);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
        justify-content: space-between;
        align-items: center;
        pointer-events: all;
    }

    /* Flatten the floating bar — behaves like normal flex row */
    .nav-floating-bar {
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 10px 16px;
    }

    .brand {
        font-size: 14px;
        padding: 6px 12px;
        background: rgba(255, 0, 51, 0.1);
        border: var(--border-accent);
        border-radius: 6px;
    }

    /* Compact slide-in mobile menu */
    nav ul.nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        flex-direction: column;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, rgba(10, 10, 15, 0.98) 0%, rgba(5, 5, 8, 0.99) 100%);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        z-index: 1001;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 80px 0 20px;
        transform: translateX(100%);
        opacity: 1;
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0;
        border-left: 1px solid rgba(255, 0, 51, 0.15);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    }

    nav ul.nav-links li {
        margin: 0 !important;
        padding: 0 !important;
        display: block;
    }

    /* Mobile nav links */
    nav a {
        font-size: 14px;
        font-weight: 500;
        padding: 12px 24px;
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 0;
        margin: 0;
        color: rgba(255, 255, 255, 0.85);
        letter-spacing: 0.3px;
        transition: all 0.25s ease;
        display: block;
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav a::after {
        display: none;
    }

    nav a:hover {
        color: var(--white);
        background: rgba(255, 255, 255, 0.04);
    }

    nav a.active {
        color: var(--white);
        background: linear-gradient(90deg, rgba(255, 0, 51, 0.15) 0%, transparent 100%);
        border-bottom-color: var(--primary-red);
        border-left: 2px solid var(--primary-red);
        padding-left: 22px;
        text-shadow: 0 0 10px rgba(255, 0, 51, 0.5);
    }

    /* Mobile dropdown */
    nav ul.nav-links .dropdown-menu {
        position: static;
        display: none;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: auto !important;
        min-height: 0 !important;
        padding: 0;
        margin: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        transform: none;
        box-shadow: none;
        gap: 0;
    }

    nav ul.nav-links .dropdown-menu li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .dropdown.mobile-active .dropdown-menu {
        display: flex;
    }

    /* Sleek dropdown parent link */
    nav ul.nav-links .dropdown>a {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        padding: 12px 24px;
        cursor: pointer;
        text-align: left;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        gap: 8px;
    }

    /* Dropdown menu items */
    nav ul.nav-links .dropdown-menu li a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 24px 10px 40px;
        font-size: 13px;
        border-radius: 0;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    }

    nav ul.nav-links .dropdown-menu li a:last-child {
        border-bottom: none;
    }

    nav ul.nav-links .dropdown-menu li a:hover {
        background: rgba(255, 255, 255, 0.03);
        padding-left: 40px;
    }

    /* Hamburger container */
    .nav-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        z-index: 1002;
        width: 44px;
        height: 44px;
        background: rgba(255, 0, 51, 0.08);
        border-radius: var(--radius-sm);
        border: var(--border-accent);
        transition: all 0.3s ease;
    }

    .nav-toggle-label:hover {
        background: rgba(255, 0, 51, 0.15);
    }

    /* Hamburger lines */
    .nav-toggle-label span,
    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        display: block;
        position: absolute;
        height: 2px;
        width: 20px;
        background-color: var(--primary-red);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .nav-toggle-label span {
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-toggle-label span::before,
    .nav-toggle-label span::after {
        content: '';
        left: 0;
    }

    .nav-toggle-label span::before {
        top: -6px;
    }

    .nav-toggle-label span::after {
        top: 6px;
    }

    /* Menu open state */
    .nav-toggle:checked~.nav-toggle-label {
        background: rgba(255, 0, 51, 0.2);
    }

    .nav-toggle:checked~.nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked~.nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
        background-color: var(--white);
    }

    .nav-toggle:checked~.nav-toggle-label span::after {
        transform: rotate(-45deg);
        top: 0;
        background-color: var(--white);
    }

    .nav-toggle:checked~ul.nav-links {
        transform: translateX(0);
    }

    /* Additional 927px mobile styles */
    .home-container {
        padding: 15px;
        gap: 20px;
        margin-top: 0;
    }

    .logo-section {
        height: 320px;
        /* Increased from 200px for better tablet visibility */
        margin: 0;
        margin-top: 40px;
        align-self: center;
    }

    .logo-background {
        width: 100%;
        height: 100%;
        background-size: contain;
        background-position: center;
    }

    .content-section {
        width: 100%;
        margin: 0;
        padding: 20px;
        clip-path: none;
        align-self: center;
        border: none;
        background-color: transparent;
    }

    .description {
        font-size: 16px;
        line-height: 1.6;
        padding: 15px 20px;
        background-color: rgba(20, 20, 20, 0.7);
        border: var(--neon-border);
        border-radius: var(--radius-sm);
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .social-links-home {
        justify-content: center;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .social-icon-home {
        margin: 0 12px;
        font-size: 22px;
    }

    .btn {
        width: calc(50% - 5px);
        text-align: center;
        clip-path: none;
        padding: 12px;
        border-radius: var(--radius-sm);
    }

    .main-logo {
        font-size: 42px;
        text-align: center;
        width: 100%;
        margin-bottom: 20px;
    }

    /* =========================================
       PREMIUM "RED GLOW" MOBILE FOOTER
       ========================================= */
    footer {
        padding: 60px 24px 40px;
        width: 100%;
        background: radial-gradient(circle at 50% 120%, rgba(255, 0, 51, 0.12) 0%, rgba(5, 5, 8, 1) 60%, rgba(0, 0, 0, 1) 100%);
        position: relative;
        overflow: hidden;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 25%;
        width: 50%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 0, 51, 0.5), transparent);
        box-shadow: 0 0 15px rgba(255, 0, 51, 0.8);
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        gap: 35px;
        padding: 0;
    }

    /* Mobile footer brand */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    .footer-brand-logo {
        width: 42px;
        height: 42px;
        object-fit: contain;
        filter: drop-shadow(0 0 10px rgba(255, 0, 51, 0.15));
        margin-bottom: 5px;
    }

    .footer-brand-name {
        font-family: 'Montserrat', sans-serif;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 2px;
        color: #fff;
        text-transform: uppercase;
        text-align: center;
    }

    .footer-tagline {
        font-size: 10px;
        color: #666;
        letter-spacing: 0.5px;
        text-align: center;
        margin-top: -6px;
    }

    /* Mobile footer links grid */
    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 40px;
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .footer-link-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-link-title {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #888;
        margin-bottom: 4px;
        font-weight: 600;
        display: block;
    }

    .footer-link-group a {
        font-size: 13px;
        color: #ccc;
        text-decoration: none;
        transition: all 0.2s ease;
        padding: 4px 0;
        display: block;
    }

    .footer-link-group a:hover {
        color: var(--primary-red);
        transform: translateX(3px);
        padding-left: 0;
    }

    /* Mobile footer social */
    .footer-social-section {
        display: flex;
        gap: 15px;
        margin: 10px 0 20px;
        justify-content: center;
    }

    .social-icon-footer {
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 15px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-icon-footer:hover {
        background: var(--primary-red);
        border-color: var(--primary-red);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(255, 0, 51, 0.3);
        color: #fff;
    }

    .ctftime-logo {
        width: 16px;
        height: 16px;
        filter: brightness(0) invert(1);
        display: block;
    }

    /* Mobile footer bottom */
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 25px;
        text-align: center;
        width: 100%;
        margin-top: 10px;
    }

    .footer-copyright {
        font-size: 11px;
        color: #555;
        line-height: 1.6;
        padding: 0 10px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 25px;
    }

    .team-status-legend {
        margin-bottom: 30px;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding-top: 80px;
    }

    .home-container {
        padding: 15px;
    }

    .logo-section {
        height: 160px;
        margin-top: 60px;
    }

    .main-logo {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .description {
        font-size: 16px;
        padding: 18px;
        border-radius: 4px;
        overflow: visible;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    nav ul.nav-links {
        gap: 15px;
        padding: 80px 20px 20px;
    }

    nav a {
        font-size: 20px;
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a::after {
        width: 0 !important;
        height: 0;
    }

    nav a.active {
        color: var(--primary-red);
        border-bottom: 2px solid var(--primary-red);
        text-shadow: var(--text-glow);
    }

    nav li {
        width: 100%;
    }

    .btn {
        font-size: 16px;
        padding: 14px;
        width: 100%;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

    .social-icon-home {
        margin: 0 12px;
        font-size: 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }

    .footer-links a {
        padding: 10px;
        font-size: 16px;
    }

    .footer-logo {
        font-size: 26px;
        margin-bottom: 10px;
    }

    .footer-copyright {
        font-size: 14px;
        margin-top: 15px;
    }

    .social-links-footer {
        margin: 15px 0;
    }

    .social-icon-footer {
        font-size: 22px;
        margin: 0 10px;
    }

    .achievement-card h3 {
        font-size: 12px;
    }

    .achievement-card.visible {
        transform: translateY(0);
    }

    .achievement-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .achievement-card p {
        text-align: center;
        font-size: 9px;
        line-height: 1.7;
    }

    .filler {
        font-size: 12px;
        text-align: center;
    }

    .page-header {
        margin-bottom: 40px;
        padding: 0 15px;
        text-align: center;
    }

    .page-header h1 {
        font-size: 28px;
        margin-bottom: 15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .subtitle {
        font-size: 18px;
        line-height: 1.5;
    }

    .page-container {
        padding: 100px 15px 40px;
    }

    .team-member {
        margin: 0 0 20px 0;
        clip-path: none;
        border-radius: 8px;
        overflow: hidden;
    }

    .member-image {
        height: 250px;
    }

    .member-info {
        padding: 20px;
    }

    .member-info h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .member-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .member-bio {
        font-size: 15px;
        line-height: 1.6;
    }

    .member-social {
        margin-top: 15px;
    }

    .social-icon {
        font-size: 20px;
        margin-right: 18px;
    }


}

/* Landscape mode optimization */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .container {
        padding-top: 70px;
    }

    .home-container {
        flex-direction: row;
        align-items: center;
        padding: 15px;
        min-height: auto;
        gap: 15px;
    }

    .logo-section {
        width: 35%;
        height: 150px;
        margin: 0;
        margin-top: 0;
    }

    .content-section {
        width: 60%;
        padding: 15px;
        border: none;
        background-color: transparent;
    }

    .main-logo {
        font-size: 28px;
        margin-bottom: 10px;
        text-align: left;
    }

    .description {
        font-size: 14px;
        margin-bottom: 15px;
        padding: 12px;
    }

    .social-links-home {
        margin-bottom: 15px;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 14px;
        width: auto;
    }
}

.join-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.join-hero {
    position: relative;
    margin-bottom: 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 0, 51, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
    overflow: hidden;
    width: 100%;
}

.join-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/stroke.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    z-index: -1;
}

.join-hero h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
    font-weight: 600;
}

.join-hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--white);
    line-height: 1.7;
}

.join-cta {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 0, 51, 0.3);
}

.join-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 51, 0.4);
}

.join-cta .material-icons {
    margin-left: 8px;
}

.section {
    margin-bottom: 0;
    padding: 80px 5%;
    width: 100%;
}

.section:nth-child(odd) {
    background-color: rgba(20, 20, 20, 0.3);
}

.story-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    /* responsive fallback */
}

.story-text {
    flex: 1;
    min-width: 280px;
}


/* Default image */
/* Default image (desktop) */
.story-image img {
    margin-top: 100px;
    position: relative;
    z-index: 1001;
    border: 4px solid rgba(255, 0, 51, 0.85);
    clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
    display: block;
    width: 500px;
    max-width: 400px;
    height: 460px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* At 859px and below → landscape + centered */
@media (max-width: 859px) {
    .story-content p {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .story-image {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: -90px;
        /* spacing from text */
    }

    .story-image img {
        width: 90%;
        /* make it responsive */
        max-width: 600px;
        /* prevent being too large */
        max-height: 300px;
        /* maintain aspect ratio */
        border-radius: 10px;
        /* optional: softer look */
    }

    .story-text {
        width: 90%;
    }
}

.section-title {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--primary-red);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
    width: 100%;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    color: var(--primary-red);
    font-size: 24px;
    margin-right: 15px;
    margin-top: 3px;
}

.benefit-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--white);
}

.benefit-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--very-light-gray);
}

.apply-section {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.419), rgba(13, 13, 13, 0.4));
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), transparent);
}

.apply-section2 {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.419), rgba(13, 13, 13, 0.4));
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 55%;
    margin: 0 auto;
    /* ✅ centers the block horizontally */
    border-radius: 10px;
    /* optional for a softer look */
}

.apply-section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-red), transparent);
}

.apply-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    /* space between images */
    margin-bottom: 20px;
    flex-wrap: wrap;
    /* ensures they stack on small screens */

}

.apply-images img {
    height: 300px;
    cursor: pointer;
    width: 35%;
    /* two per row */
    border-radius: 10px;
    object-fit: cover;
    clip-path: polygon(10% 0, 100% 0, 91% 100%, 0 100%);
    border: 4px solid rgba(255, 0, 51, 0.85);
    transition: .3s;
    opacity: 0.4;
}

.apply-images img:hover {
    transform: scale(1.03);
    opacity: 1;
}

.apply-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--white);
}

.apply-section p {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--very-light-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.contact-info a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
}

.contact-info a:hover {
    color: var(--primary-red);
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-info .material-icons {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 20px;
}

.requirements-list {
    list-style-type: none;
    padding: 0;
    margin: 30px 0;
}

.requirements-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
}

.requirements-list li::before {
    content: "check";
    font-family: "Material Icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-red);
    font-size: 20px;
}

/* Contact form styling */
#contact form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0 auto;
}

#contact input,
#contact textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#contact textarea {
    resize: vertical;
    min-height: 100px;
}

#contact button {
    padding: 10px;
    background-color: #aa0808;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#contact button:hover {
    background-color: #fd7200;
}

#hidden_contact {
    height: 90px;
}

#captcha {
    font-weight: bold;
    font-size: 18px;
    margin-right: 46px;
}

/* Fix missing social icon styles */
.member-social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.member-social-overlay a {
    color: var(--white);
    font-size: 20px;
    transition: all 0.3s ease;
}

.member-social-overlay a:hover {
    color: var(--primary-red);
    transform: scale(1.2);
    text-shadow: var(--text-glow);
}

.member-image:hover .member-social-overlay {
    opacity: 1;
}

/* Fix team member info */
.member-info h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 600;
}

/* Fix social icons */
.social-icon {
    color: var(--white);
    text-decoration: none;
    font-size: 17px;
    transition: all var(--transition-speed);
    margin-right: 15px;
}

.social-icon:hover {
    color: var(--primary-red);
    text-shadow: var(--text-glow);
}

/* Fix social links container */
.social-links-home {
    display: flex;
    margin-bottom: 30px;
}

.social-links-footer {
    display: flex;
    gap: 15px;
}

/* Fix red overlay that was removed */
.red-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 51, 0.1), rgba(0, 0, 0, 0.1));
    mix-blend-mode: multiply;
    pointer-events: none;
}

/* Fix page container spacing */
.page-container {
    padding-top: 100px;
}

/* Fix image loading optimization */
img {
    max-width: 100%;
    height: auto;
}

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

/* Fix for iOS Safari issues */
@supports (-webkit-touch-callout: none) {

    /* Fix for 100vh issue in iOS Safari */
    .home-container,
    .page-container {
        padding-bottom: 80px;
        min-height: -webkit-fill-available;
    }

    body,
    html {
        height: -webkit-fill-available;
    }

    nav ul.nav-links {
        height: -webkit-fill-available;
        max-height: 100vh;
    }

    /* Fix for input zoom */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* --- Make Triada logo larger --- */
.logo-background {
    width: 95%;
    height: 95%;
    max-width: 520px;
    max-height: 520px;
}

@media screen and (max-width: 600px) {
    .logo-background {
        width: 100%;
        height: 180px;
        min-height: 120px;
        max-width: 100vw;
        max-height: 220px;
    }

    .community-partner-label,
    .logo-section a[href*="c0c0n"] {
        display: none !important;
    }

    .community-partner-mobile {
        display: block !important;
        margin: 24px auto 0 auto;
        text-align: center;
    }

    .community-partner-mobile .community-partner-label,
    .community-partner-mobile a {
        display: block !important;
    }
}

/* Hide mobile community partner by default */
.community-partner-mobile {
    display: none;
}

@media screen and (max-width: 1097px) {
    .brand {
        font-family: var(--logo-font);
        font-size: 20px;
        font-weight: bold;
        color: var(--white);
        position: relative;
        z-index: 1001;
        letter-spacing: 1px;
        text-shadow: var(--text-glow);
        padding: 10px 20px;
        border: var(--neon-border);
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
        text-decoration: none;
        display: block;
        transition: all var(--transition-speed);
    }

    .brand:hover {
        color: var(--white);
        text-shadow: 0 0 15px rgba(255, 0, 51, 0.7);
        border-color: rgba(255, 0, 51, 0.5);
    }

    nav ul.nav-links li {
        position: relative;
        font-size: 14px;
    }

}

@media screen and (max-width: 1030px) {
    .brand {
        font-family: var(--logo-font);
        font-size: 14px;
        font-weight: bold;
        color: var(--white);
        position: relative;
        z-index: 1001;
        letter-spacing: 1px;
        text-shadow: var(--text-glow);
        padding: 10px 20px;
        border: var(--neon-border);
        clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
        text-decoration: none;
        display: block;
        transition: all var(--transition-speed);
    }
}

/* Community Partner Responsive Fix */
@media screen and (max-width: 600px) {

    .logo-section .community-partner-label,
    .logo-section .community-partner-link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        position: static !important;
    }

    .logo-section .community-partner-link {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .logo-section .community-partner-img {
        width: 48vw !important;
        min-width: 100px !important;
        max-width: 250px !important;
        height: auto !important;
        border-radius: 8px !important;
        margin: 0 auto !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        padding: 0 !important;
        background: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .play-regular {
        text-align: center;
        font-size: 30px;
    }
}

@media screen and (max-width: 500px) {
    .logo-section .community-partner-img {
        width: 80vw !important;
        min-width: 80px !important;
        max-width: 95vw !important;
    }
}

/* =========================================
   DESKTOP FOOTER OVERRIDES (Global Sync)
   ========================================= */
@media screen and (min-width: 928px) {
    footer {
        padding: 80px 50px 40px !important;
    }

    .footer-content {
        max-width: 1200px !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start !important;
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-brand {
        align-items: flex-start !important;
        text-align: left;
        max-width: 300px;
    }

    .footer-brand-name {
        text-align: left !important;
    }

    .footer-tagline {
        text-align: left !important;
    }

    .footer-links-grid {
        width: auto !important;
        display: flex !important;
        gap: 60px !important;
        text-align: left !important;
    }

    .footer-link-group {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .footer-social-section {
        width: auto !important;
        margin: 0 !important;
        justify-content: flex-end !important;
    }

    .footer-bottom {
        margin-top: 60px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 20px;
    }
}