/* ============================================
   index.css — Top Page Styles
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: #111;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(24, 119, 242, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    border-radius: 50%;
    animation: pulseGlow 8s ease-in-out infinite reverse;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.15);
        opacity: 0.7;
    }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(24, 119, 242, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: var(--header-height);
}

.hero__label {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: var(--text-hero);
    font-weight: 900;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero__highlight {
    background: var(--color-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-on-dark-sub);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.hero__scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 2px;
    animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

.sp-only {
    display: none;
}

/* --- Service Overview Grid --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition-delay: var(--delay, 0s);
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__label {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.service-card__link {
    margin-top: auto;
    padding-top: var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--color-secondary);
    transition: color var(--transition-fast);
}

.service-card:hover .service-card__link {
    color: var(--color-accent);
}

/* --- Service Card with Background Image --- */
.service-card--zentori,
.service-card--growith,
.service-card--dev,
.service-card--tournament {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-text-on-dark);
}

.service-card--zentori {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('../images/service-zentori.jpg') center/cover no-repeat !important;
}

.service-card--growith {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)), url('../images/service-growith.jpg') center/cover no-repeat !important;
}

.service-card--dev {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), url('../images/service-dev.jpg') center/cover no-repeat !important;
}

.service-card--tournament {
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)), url('../images/service-tournament.jpg') center/cover no-repeat !important;
}

.service-card--zentori .card__title,
.service-card--zentori .card__text,
.service-card--growith .card__title,
.service-card--growith .card__text,
.service-card--dev .card__title,
.service-card--dev .card__text,
.service-card--tournament .card__title,
.service-card--tournament .card__text {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.service-card--zentori .card__text,
.service-card--growith .card__text,
.service-card--dev .card__text,
.service-card--tournament .card__text {
    color: var(--color-text-on-dark);
}

.service-card--zentori .service-card__label,
.service-card--growith .service-card__label,
.service-card--dev .service-card__label,
.service-card--tournament .service-card__label {
    color: #ffd700;
    /* Brighter gold for better visibility */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    font-weight: 700;
}

.service-card--zentori .service-card__link,
.service-card--growith .service-card__link,
.service-card--dev .service-card__link,
.service-card--tournament .service-card__link {
    color: var(--color-secondary);
}

.service-card--zentori:hover,
.service-card--growith:hover,
.service-card--dev:hover,
.service-card--tournament:hover {
    border-color: var(--color-secondary);
}

/* --- Zentori Highlight --- */
.zentori-merit {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.merit-col {
    background: var(--color-bg-dark-alt);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
}

.merit-col__header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--color-text-on-dark);
}

.merit-col__header svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.merit-col__header h3 {
    font-size: var(--text-h3);
    font-weight: 700;
}

.merit-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.merit-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-text-on-dark-sub);
    line-height: 1.6;
}

.merit-list__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-top: 2px;
}

/* --- Zentori Tournaments --- */
.zentori-tournaments {
    margin-bottom: var(--space-3xl);
}

.tournaments-header {
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-secondary);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
    padding-bottom: var(--space-xs);
}

.tournaments-title {
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--color-text-on-dark);
}

.tournaments-category {
    font-size: var(--text-small);
    color: var(--color-secondary);
    font-weight: 600;
}

.tournament-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    background: var(--color-bg-dark-alt);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--color-border-light);
    scrollbar-width: thin;
    scrollbar-color: var(--color-secondary) transparent;
}

.tournament-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.tournament-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-secondary);
    border-radius: 10px;
}

.tournament-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-small);
}

.tournament-table th {
    position: sticky;
    top: 0;
    background: var(--color-bg-dark-alt);
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-border-light);
    z-index: 1;
}

.tournament-table td {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-on-dark);
    border-bottom: 1px solid var(--color-border-light);
}

.tournament-table tr:last-child td {
    border-bottom: none;
}

.tournament-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Testimonials --- */
.testimonials {
    margin-bottom: var(--space-2xl);
}

.testimonials__heading {
    font-size: var(--text-h3);
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--color-text-on-dark);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.testimonial-card {
    background: var(--color-bg-dark-alt);
    border-radius: var(--border-radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-secondary);
    opacity: 0.3;
    position: absolute;
    top: 8px;
    left: 16px;
    line-height: 1;
}

.testimonial-card__text {
    color: var(--color-text-on-dark-sub);
    font-size: var(--text-small);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-secondary);
}

.zentori-cta {
    text-align: center;
}

/* --- Vision --- */
.vision__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.vision__photo {
    text-align: center;
}

.vision__photo-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    border: 2px dashed var(--color-border);
}

.vision__photo-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    position: relative;
}

.vision__photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vision__photo-placeholder svg {
    color: var(--color-text-secondary);
}

.vision__names p {
    font-size: var(--text-small);
    margin-bottom: var(--space-xs);
    line-height: 1.5;
}

.vision__names strong {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    display: block;
}

.vision__text p {
    margin-bottom: var(--space-lg);
    line-height: 2;
    color: var(--color-text-secondary);
}

.vision__text strong {
    color: var(--color-text-primary);
}

.vision__signature {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-primary) !important;
    margin-top: var(--space-xl);
}



/* --- CTA Section --- */
.cta-section {
    position: relative;
    padding: var(--space-section) 0;
    background: #444444 !important;
    overflow: hidden;
}

.cta-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.cta-section__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta-section__title {
    font-size: var(--text-h1);
    font-weight: 800;
    color: var(--color-text-on-dark);
    margin-bottom: var(--space-md);
}

.cta-section__text {
    font-size: var(--text-body-lg);
    color: var(--color-text-on-dark-sub);
    margin-bottom: var(--space-2xl);
}

.cta-section__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .zentori-merit {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .vision__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .vision__photo {
        max-width: 250px;
        margin: 0 auto;
    }

    .hero__title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }

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