/* Pages Styles - Modern Design for Texas XGP */

/* Page Container */
.page-container {
    min-height: 100vh;
    padding: 12rem 3rem 5rem;
    position: relative;
    z-index: 10;
    background: #101823;
}

.page-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Title */
.page-title {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    font-size: 4.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 6rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(102, 126, 234, 0.4);
    letter-spacing: -1px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Card - Cool Animated Boxes */
.content-card {
    display: grid;
    gap: 3rem;
}

.page-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    line-height: 2;
    color: #e8e8e8;
    font-weight: 400;
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.08) 0%, 
                rgba(118, 75, 162, 0.08) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Animated gradient border effect */
.page-text::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Shimmer effect on hover */
.page-text::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.03) 55%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
}

.page-text:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.35),
                0 10px 30px rgba(118, 75, 162, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.15) 0%, 
                rgba(118, 75, 162, 0.15) 100%);
}

.page-text:hover::before {
    opacity: 0.7;
}

.page-text:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Stagger animation for multiple paragraphs */
.page-text:nth-child(1) {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.page-text:nth-child(2) {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.page-text:nth-child(3) {
    animation: slideInLeft 0.8s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.08) 0%, 
                rgba(118, 75, 162, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-item::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.service-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.6s ease;
}

.service-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3),
                0 10px 25px rgba(118, 75, 162, 0.2);
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.15) 0%, 
                rgba(118, 75, 162, 0.15) 100%);
}

.service-item:hover::before {
    opacity: 0.6;
}

.service-item:hover::after {
    left: 100%;
}

.service-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.service-item:hover .service-title {
    color: #667eea;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.service-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #d4d4d4;
    font-weight: 400;
    transition: color 0.3s ease;
}

.service-item:hover .service-description {
    color: #e8e8e8;
}

/* Contact Page Styles */
.contact-intro {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-intro .page-text {
    font-size: 1.35rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.contact-card {
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.08) 0%, 
                rgba(118, 75, 162, 0.08) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4),
                0 12px 30px rgba(118, 75, 162, 0.3);
}

.contact-card:hover::before {
    opacity: 0.7;
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    margin-bottom: 2rem;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.7);
}

.contact-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-title {
    color: #667eea;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
}

.contact-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #b8b8b8;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-description {
    color: #d4d4d4;
}

.contact-email {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #667eea;
    text-decoration: none;
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(102, 126, 234, 0.12);
    border: 1.5px solid rgba(102, 126, 234, 0.35);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-email::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.contact-email:hover {
    background: rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.7);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.contact-email:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 9rem 1.5rem 3rem;
    }

    .page-title {
        font-size: 2.75rem;
        margin-bottom: 4rem;
    }

    .page-text {
        padding: 2rem 2rem;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-item {
        padding: 2rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-description {
        font-size: 1rem;
    }

    .contact-intro .page-text {
        font-size: 1.15rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 2.5rem 2rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
    }

    .contact-icon svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: 8rem 1.25rem 2.5rem;
    }

    .page-title {
        font-size: 2.25rem;
    }

    .page-text {
        padding: 1.75rem 1.5rem;
        font-size: 1rem;
    }

    .service-item {
        padding: 1.75rem;
    }

    .service-title {
        font-size: 1.35rem;
    }

    .service-description {
        font-size: 0.95rem;
    }

    .contact-title {
        font-size: 1.4rem;
    }

    .contact-email {
        font-size: 1rem;
        padding: 0.85rem 1.5rem;
    }
}