/* ---------------------------------------------------------
   The Taino Resource Group LLC – Dark Premium System
   Full-site styling for index + all components
   DESIGN & DEVELOPMENT: The Taino Resource Group LLC
--------------------------------------------------------- */

/* ==========================================================
   ROOT COLORS
   ========================================================== */

:root {
    --trg-bg-1: #0597b6;
    --trg-bg-2: #111a6d;
    --trg-bg-3: #0b90fd;

    --trg-card: #2898ac;

    --trg-teal: #0597b6;
    --trg-teal-light: #00c8ff;
    --trg-purple: #5b4bff;

    --text-light: #f3f4f6;
    --text-dim: rgba(255, 255, 255, 0.72);

    --section-pad-y: 80px;
    --section-pad-x: 20px;
    --card-pad: 3rem;
    --card-gap: 2rem;
}

/* ==========================================================
   BODY
   ========================================================== */

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--text-light);
    overflow-x: hidden;

    background:
        radial-gradient(900px circle at 20% 0%, rgba(0, 200, 255, 0.14), transparent 60%),
        radial-gradient(1000px circle at 80% 10%, rgba(91, 75, 255, 0.12), transparent 55%),
        linear-gradient(180deg, var(--trg-bg-2) 0%, var(--trg-bg-1) 60%, #050608 100%);

    animation: pageFadeIn 0.8s ease-out forwards;
}

/* ==========================================================
   SECTIONS
   ========================================================== */

section {
    padding: var(--section-pad-y) var(--section-pad-x);
}

/* ==========================================================
   TITLES
   ========================================================== */

.section-title {
    font-family: "Cinzel", serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

/* ==========================================================
   GRID SYSTEM — HARD LOCKED
   ========================================================== */

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 40px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

/* ==========================================================
   CARD — FINAL, LOCKED, NO OVERFLOW
   ========================================================== */

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    /* hard stop: nothing escapes */

    background: linear-gradient(180deg,
            rgba(13, 29, 43, 0.96),
            rgba(8, 18, 28, 0.98));

    padding: var(--card-pad);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);

    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    transition: transform 0.32s ease, box-shadow 0.32s ease;
}

/* Headings normalized */
.card h3 {
    line-height: 1.25;
    min-height: 3.2em;
}

/* Body text normalized */
.card p {
    line-height: 1.6;
    min-height: 4.8em;
}

/* Footer locked to bottom */
.card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Button consistency */
.card-footer .btn-primary {
    min-width: 260px;
    text-align: center;
    white-space: nowrap;
}

/* Hover stays visual only */
.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 0 36px rgba(5, 151, 182, 0.32),
        0 18px 44px rgba(0, 0, 0, 0.55);
}
/* ==========================================================
   HERO — FORCE LIGHTER GLASS (OVERRIDE SAFE)
   ========================================================== */

/* HIGH SPECIFICITY OVERRIDE */
section .hero-card,
.hero-card {
    background: linear-gradient(145deg,
            rgba(70, 140, 190, 0.82),
            rgba(95, 175, 225, 0.72)) !important;

    backdrop-filter: blur(20px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(125%) !important;

    padding: 60px 40px;
    border-radius: 28px;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

/* HERO TEXT */
.hero-title {
    font-family: "Cinzel", serif;
    font-size: 3.6rem;
    margin-bottom: 20px;
}

.hero-sub {
    max-width: 650px;
    margin: 0 auto 35px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================
   BUTTONS
   ========================================================== */

/* ==========================================================
   BUTTON FIX — CENTER TEXT, NO BLEED
   ========================================================== */

.btn-primary {
    display: flex;
    /* force proper centering */
    align-items: center;
    justify-content: center;

    text-align: center;
    white-space: nowrap;
    /* prevent ugly wraps */
    overflow: hidden;
    /* stop bleed */
    text-overflow: ellipsis;
    /* graceful cutoff if ever needed */

    width: 100%;
    max-width: 280px;

    background: linear-gradient(90deg, #0597b6, #00c8ff);
    color: #ffffff;

    padding: 14px 20px;
    /* tighter horizontal padding */
    border-radius: 10px;
    font-weight: 600;

    box-sizing: border-box;
}

/* Optional: slightly smaller text for long emails only */
.card .btn-primary {
    font-size: 0.95rem;
}
.btn-outline {
    padding: 14px 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-light);
    transition: 0.25s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================
   FADE IN
   ========================================================== */

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================================================
   HERO INTRO ANIMATION
   ========================================================== */

/* ==========================================================
   HERO INTRO ANIMATION (SAFE, NON-HIDING)
   ========================================================== */

/* Hero container – visible by default */
.hero-animate {
    transform: translateY(16px) scale(0.98);
    transition:
        transform 0.9s ease-out;
}

/* When activated */
.hero-animate.is-visible {
    transform: translateY(0) scale(1);
}

/* Hero stagger items – visible by default */
.hero-stagger {
    transform: translateY(12px);
    transition:
        transform 0.7s ease-out;
}

/* Activated stagger */
.hero-stagger.is-visible {
    transform: translateY(0);
}

/* Stagger delays */
.hero-stagger[data-delay="1"] {
    transition-delay: 0.12s;
}

.hero-stagger[data-delay="2"] {
    transition-delay: 0.24s;
}

.hero-stagger[data-delay="3"] {
    transition-delay: 0.36s;
}

.hero-stagger[data-delay="4"] {
    transition-delay: 0.48s;
}

/* ==========================================================
   FAQ ACCORDION
   ========================================================== */

.faq-item {
    cursor: pointer;
}

/* Question row */
.faq-question {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.faq-question h4 {
    font-weight: 600;
}

/* Icon */
.faq-icon {
    font-size: 1.6rem;
    font-weight: 300;
    transition: transform 0.25s ease;
}

/* Answer hidden by default */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    margin-top: 0;
}

/* Open state */
.faq-item.is-open .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}
/* ==========================================================
   FAQ ACCORDION SYSTEM
   ========================================================== */

.faq-question {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.faq-question h4 {
    font-weight: 600;
}

.faq-icon {
    font-size: 1.6rem;
    font-weight: 300;
    transition: transform 0.25s ease;
}

/* Hidden by default */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}

/* Open state */
.faq-item.is-open .faq-answer {
    max-height: 400px;
    opacity: 1;
    margin-top: 1rem;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

/* ==========================================================
   AGENCY-LEVEL ENHANCEMENTS
   Premium animations, glassmorphism, and micro-interactions
   ========================================================== */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    background: rgba(10, 37, 64, 0.85);
    border-color: rgba(0, 200, 255, 0.3);
    box-shadow: 0 12px 48px rgba(0, 200, 255, 0.2);
}

/* Premium Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00c8ff 0%, #5b4bff 50%, #00c8ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

/* Floating Animation */
.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Glow Effects */
.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
    transition: box-shadow 0.3s ease;
}

.glow-cyan:hover {
    box-shadow: 0 0 30px rgba(0, 200, 255, 0.8), 0 0 60px rgba(0, 200, 255, 0.4);
}

.glow-purple {
    box-shadow: 0 0 20px rgba(91, 75, 255, 0.5);
}

.glow-purple:hover {
    box-shadow: 0 0 30px rgba(91, 75, 255, 0.8), 0 0 60px rgba(91, 75, 255, 0.4);
}

/* Smooth Hover Lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Border Gradient Animation */
.border-gradient {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.border-gradient::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00c8ff, #5b4bff, #00c8ff);
    background-size: 300% 300%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradient-rotate 3s ease infinite;
}

.border-gradient:hover::before {
    opacity: 1;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Scale on Hover */
.scale-hover {
    transition: transform 0.3s ease;
}

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

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Premium Button Styles */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #00c8ff, #0597b6);
    border: none;
    color: white;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.3);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.5);
}

/* Service Card Enhanced */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Professional spacing */
.section-spacing {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 80px 0;
    }
}

/* Premium text shadows */
.text-shadow-premium {
    text-shadow: 0 2px 20px rgba(0, 200, 255, 0.5), 0 0 40px rgba(91, 75, 255, 0.3);
}

/* Responsive utilities */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}