/* ============================================
   GXM - MAIN STYLESHEET
   Modular CSS Architecture
   ============================================ */

/* Base styles, variables, reset */
@import url('base.css');

/* Components */
@import url('components/navbar.css');
@import url('components/hero.css');
@import url('components/sections.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/footer.css');

/* Page-specific styles */
@import url('pages/blog.css');
@import url('pages/services.css');

/* ============================================
   GLOBAL ANIMATIONS
   ============================================ */

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

/* Stat Number Animation */
.stat-number {
    background: var(--gradient-canyon);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Button hover glow */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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: left 0.5s ease;
}

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

/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */

@media (max-width: 968px) {
    .btn-primary, .btn-secondary {
        padding: 20px 24px;
        font-size: 18px;
        min-width: 280px;
        width: 100%;
        margin: 8px 0;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}

/* ============================================
   REPORTS PAGE STYLES
   ============================================ */

.reports-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--off-white) 0%, var(--light-gray) 100%);
    text-align: center;
}

.reports-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.reports-header p {
    font-size: 1.25rem;
    color: var(--text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.reports-grid-section {
    padding: 80px 0;
    background: var(--pure-white);
}

/* ============================================
   TEAM PAGE STYLES
   ============================================ */

.team-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--pure-white);
    text-align: center;
}

.team-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--pure-white);
}

.team-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    color: var(--off-white);
}

.team-members {
    padding: 80px 0;
    background: var(--off-white);
}

.team-member-card {
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 4rem;
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.member-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--off-white) 100%);
    border-bottom: 1px solid var(--light-gray);
}

.member-details h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.member-content {
    padding: 3rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.member-bio h3,
.member-expertise h3,
.member-education h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.member-bio p,
.member-education p {
    color: var(--text-medium);
    line-height: 1.7;
}

.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.expertise-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.team-cta {
    padding: 80px 0;
    background: var(--light-gray);
    text-align: center;
}

.team-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.team-cta p {
    font-size: 1.2rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Team Bio Page */
.team-bio-section {
    padding: 120px 0 80px;
    background: var(--light-gray);
    min-height: 80vh;
}

.team-bio-content {
    max-width: 1000px;
    margin: 0 auto;
}

.team-bio-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.member-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.member-title-large {
    font-size: 1.3rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.member-contact {
    margin-bottom: 2rem;
    color: var(--text-medium);
}

.member-contact a {
    color: var(--primary-green);
    text-decoration: none;
}

.member-contact a:hover {
    text-decoration: underline;
}

.member-bio-content {
    display: grid;
    gap: 3rem;
}

.bio-section, .expertise-section, .education-section {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.bio-section h2, .expertise-section h2, .education-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* Team responsive */
@media (max-width: 480px) {
    .member-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }

    .member-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .team-header h1 {
        font-size: 2.5rem;
    }
}

/* ============================================
   ADDITIONAL VALUE SECTION
   ============================================ */

.additional-value {
    padding: 80px 0;
    background: var(--light-gray);
}

.value-content {
    text-align: center;
}

.value-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-content > p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.value-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.value-stat {
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.next-steps {
    background: var(--pure-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    margin: 0 auto;
}

.next-steps h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.next-steps p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ============================================
   ACTIVITY FEED SECTION
   ============================================ */

.activity-section {
    padding: 80px 0;
}

.activity-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.activity-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.activity-icon .pulse-ring-1 {
    animation: pulse-expand 2s ease-out infinite;
}

.activity-icon .pulse-ring-2 {
    animation: pulse-expand 2s ease-out infinite 0.5s;
}

@keyframes pulse-expand {
    0% {
        transform-origin: center;
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform-origin: center;
        transform: scale(1.5);
        opacity: 0;
    }
}

.activity-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.activity-item {
    background: rgba(26, 13, 13, 0.5);
    border: 1px solid rgba(255, 51, 51, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: rgba(255, 51, 51, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 51, 51, 0.1);
}

.activity-item.featured {
    border-color: rgba(255, 51, 51, 0.4);
    background: linear-gradient(135deg, rgba(26, 13, 13, 0.7) 0%, rgba(40, 20, 20, 0.5) 100%);
}

.activity-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(255, 51, 51, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
}

.activity-content {
    flex: 1;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.activity-project {
    color: var(--accent);
    font-weight: 500;
}

.activity-type {
    background: rgba(255, 51, 51, 0.15);
    color: var(--accent-glow);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-date {
    color: #666;
}

.activity-content h4 {
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.activity-content p {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.activity-link {
    color: var(--accent);
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.activity-link:hover {
    color: var(--accent-glow);
}

.activity-link i {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.activity-link:hover i {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .activity-feed {
        grid-template-columns: 1fr;
    }

    .activity-item {
        padding: 1.25rem;
    }
}

/* ============================================
   EXIT INTENT POPUP
   ============================================ */

.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    background: #111;
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.exit-popup-overlay.active .exit-popup {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.exit-popup-close:hover {
    color: #fff;
}

.exit-popup h3 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.exit-popup p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exit-popup-form input {
    padding: 0.875rem 1rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 0.9rem;
}

.exit-popup-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.exit-popup-form button {
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.exit-popup-form button:hover {
    background: var(--accent-glow);
}

.exit-popup-skip {
    background: none;
    border: none;
    color: #666;
    font-size: 0.8rem;
    margin-top: 1rem;
    cursor: pointer;
}

.exit-popup-skip:hover {
    color: #888;
}

/* ============================================
   PLAYGROUND ABOUT SECTION
   ============================================ */

.playground-about {
    margin-top: 4rem;
    padding: 0 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.playground-line {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 51, 51, 0.3) 20%, 
        rgba(255, 51, 51, 0.5) 50%, 
        rgba(255, 51, 51, 0.3) 80%, 
        transparent 100%
    );
    margin: 2rem 0;
}

.playground-content {
    text-align: center;
}

.playground-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.playground-text.subtle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .playground-about {
        margin-top: 3rem;
        padding: 0 0.5rem;
    }
    
    .playground-text {
        font-size: 0.9rem;
    }
    
    .playground-text.subtle {
        font-size: 0.85rem;
    }
}
