/* ==========================================================================
   ZTEX Construction — Sponsorship Portal
   Color System: #c10e20 (ZTEX Red), #ffcd04 (Gold), #2a2a2a (Charcoal)
   ========================================================================== */

/* --- Reset & Foundation --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red: #c10e20;
    --red-light: #e8243a;
    --red-dark: #8f0a18;
    --red-glow: rgba(193, 14, 32, 0.35);
    --gold: #ffcd04;
    --gold-dim: rgba(255, 205, 4, 0.15);
    --charcoal: #1a1a1a;
    --charcoal-light: #2a2a2a;
    --gray-900: #111111;
    --gray-800: #1e1e1e;
    --gray-700: #2d2d2d;
    --gray-600: #3a3a3a;
    --gray-500: #565656;
    --gray-400: #888888;
    --gray-300: #aaaaaa;
    --gray-200: #cccccc;
    --gray-100: #e8e8e8;
    --white: #ffffff;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--gray-900);
    color: var(--gray-200);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Preloader --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner { text-align: center; }
.preloader-star {
    width: 56px;
    height: 56px;
    animation: preloaderPulse 1.2s ease-in-out infinite;
}
.preloader-bar {
    margin-top: 1.5rem;
    width: 180px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 3px;
    overflow: hidden;
}
.preloader-fill {
    height: 100%;
    background: var(--red);
    border-radius: 3px;
    animation: preloaderFill 1.5s var(--ease-out-expo) forwards;
}
@keyframes preloaderPulse {
    0%, 100% { opacity: 0.5; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}
@keyframes preloaderFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* --- Particles --- */
.particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out-quart);
}
.nav.scrolled {
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(193, 14, 32, 0.15);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo-img {
    height: 44px;
    width: auto;
    transition: transform 0.3s var(--ease-out-quart);
    filter: brightness(1.1);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.03); }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-300);
    transition: color 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s var(--ease-out-expo);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(193, 14, 32, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255, 205, 4, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, var(--gray-900) 0%, rgba(17, 17, 17, 0.95) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 1.8s var(--ease-out-expo) forwards;
}
.hero-badge-line {
    width: 40px;
    height: 1px;
    background: var(--red);
}
.hero-badge-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-title-line {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1s 2s var(--ease-out-expo) forwards;
}
.hero-title-accent {
    color: var(--red);
    animation-delay: 2.15s;
}
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 2.4s var(--ease-out-expo) forwards;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--red);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out-quart);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 2.6s var(--ease-out-expo) forwards;
}
.hero-cta:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--red-glow);
}
.hero-cta-arrow {
    transition: transform 0.3s var(--ease-out-quart);
}
.hero-cta:hover .hero-cta-arrow { transform: translateX(4px); }

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.8s 3s var(--ease-out-expo) forwards;
}
.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--red), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
.hero-scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-500);
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* --- Animations --- */
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}
.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.25rem;
    height: 2px;
    background: var(--red);
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.section-title em {
    font-style: italic;
    color: var(--red);
}

/* --- About --- */
.about {
    position: relative;
    z-index: 1;
    padding: 8rem 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-400);
    margin-bottom: 1rem;
}
.about-stats {
    display: grid;
    gap: 1.5rem;
}
.stat-card {
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 8px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.4s var(--ease-out-quart);
}
.stat-card:hover {
    border-color: var(--red);
    transform: translateX(8px);
    box-shadow: -4px 0 20px var(--red-glow);
}
.stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(193, 14, 32, 0.1);
    border-radius: 8px;
    color: var(--red);
}
.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}
.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-left: auto;
}

/* --- Divider --- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.divider-line {
    flex: 1;
    max-width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-600), transparent);
}
.divider-star {
    width: 32px;
    height: 32px;
    opacity: 0.5;
    animation: rotateSlow 20s linear infinite;
}
@keyframes rotateSlow { to { transform: rotate(360deg); } }

/* --- Form Section --- */
.form-section {
    position: relative;
    z-index: 1;
    padding: 8rem 0 6rem;
}
.form-header {
    text-align: center;
    margin-bottom: 4rem;
}
.form-intro {
    font-size: 1rem;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Form Progress --- */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
}
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--gray-600);
    color: var(--gray-500);
    background: var(--gray-800);
    transition: all 0.4s var(--ease-out-expo);
}
.progress-step.active .progress-dot {
    border-color: var(--red);
    color: var(--white);
    background: var(--red);
    box-shadow: 0 0 20px var(--red-glow);
}
.progress-step.completed .progress-dot {
    border-color: var(--red);
    color: var(--white);
    background: var(--red-dark);
}
.progress-label {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gray-500);
    transition: color 0.3s ease;
}
.progress-step.active .progress-label { color: var(--gray-200); }
.progress-connector {
    width: 80px;
    height: 2px;
    background: var(--gray-700);
    margin: 0 0.75rem;
    margin-bottom: 1.5rem;
    transition: background 0.4s ease;
}
.progress-connector.active { background: var(--red); }

/* --- Form Steps --- */
.form-step {
    display: none;
    animation: stepIn 0.5s var(--ease-out-expo);
}
.form-step.active { display: block; }
@keyframes stepIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.sponsorship-form {
    max-width: 720px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--gray-300);
    margin-bottom: 0.5rem;
}
.required { color: var(--red); }
.form-hint {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-quart);
    outline: none;
}
.form-input::placeholder { color: var(--gray-500); }
.form-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
.form-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
}
.form-error {
    display: none;
    font-size: 0.75rem;
    color: #ff6666;
    margin-top: 0.35rem;
}
.form-input.error + .form-error { display: block; }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}
.form-select option {
    background: var(--gray-800);
    color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* --- File Upload --- */
.file-upload-zone {
    border: 2px dashed var(--gray-600);
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s var(--ease-out-quart);
    cursor: pointer;
    position: relative;
}
.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--red);
    background: rgba(193, 14, 32, 0.05);
}
.file-upload-zone.dragover {
    transform: scale(1.01);
    box-shadow: 0 0 30px var(--red-glow);
}
.file-upload-icon {
    color: var(--gray-500);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}
.file-upload-zone:hover .file-upload-icon { color: var(--red); transform: translateY(-4px); }
.file-upload-text {
    font-size: 0.95rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}
.file-upload-browse {
    color: var(--red);
    font-weight: 600;
    cursor: pointer;
}
.file-upload-browse:hover { text-decoration: underline; }
.file-upload-formats {
    font-size: 0.75rem;
    color: var(--gray-500);
}
.file-input-hidden {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    animation: slideIn 0.3s var(--ease-out-expo);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.file-icon {
    color: var(--red);
    flex-shrink: 0;
}
.file-name {
    font-size: 0.85rem;
    color: var(--gray-200);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-size {
    font-size: 0.75rem;
    color: var(--gray-500);
    flex-shrink: 0;
}
.file-remove {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.file-remove:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
}

/* --- Form Actions --- */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-quart);
}
.btn-primary {
    background: var(--red);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--red-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--gray-400);
    border: 1px solid var(--gray-600);
}
.btn-ghost:hover {
    color: var(--white);
    border-color: var(--gray-400);
}
.btn-submit .btn-loading { display: none; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-arrow { display: none; }
.btn-submit.loading .btn-loading { display: flex; align-items: center; gap: 0.5rem; }
.btn-submit.loading { pointer-events: none; opacity: 0.8; }
.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Success --- */
.form-success {
    display: none;
    text-align: center;
    padding: 4rem 0;
}
.form-success.active { display: block; }
.success-content {
    animation: successIn 0.6s var(--ease-out-expo);
}
@keyframes successIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.success-icon {
    color: #4caf50;
    margin-bottom: 1.5rem;
}
.success-icon svg {
    animation: successCheck 0.6s 0.3s var(--ease-spring) both;
}
@keyframes successCheck {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
.success-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}
.success-text {
    font-size: 1rem;
    color: var(--gray-400);
    max-width: 460px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-700);
    background: var(--gray-900);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: brightness(1.1);
}
.footer-tagline {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-style: italic;
}
.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 1rem;
}
.footer-contact p {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 0.35rem;
}
.footer-contact a:hover { color: var(--red); }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--red); }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
}
.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}
.footer-eeo {
    font-size: 0.7rem !important;
    color: var(--gray-600) !important;
    line-height: 1.6;
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .form-group.full-width { grid-column: auto; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .nav-links { gap: 1.25rem; }
    .nav-link { font-size: 0.75rem; }
    .progress-connector { width: 40px; }
    .progress-label { font-size: 0.6rem; }
    .stat-card { flex-wrap: wrap; }
    .stat-label { margin-left: 0; flex-basis: 100%; margin-top: 0.25rem; }
    .hero-cta { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .form-progress { gap: 0; }
    .progress-connector { width: 24px; margin: 0 0.35rem; }
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(193, 14, 32, 0.15);
    border: 1px solid rgba(193, 14, 32, 0.4);
    color: #c10e20;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    background: #c10e20;
    border-color: #c10e20;
    color: #fff;
    transform: translateY(-2px);
}
