/* Texas XGP Styles */
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    background: #101823;
    color: #ffffff;
    position: relative;
}

/* Starry night background - only for intro section */
.starry-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.starry-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Moon positioned at 75% right, 25% top of starry night */
.moon {
    position: absolute;
    left: 75%;
    top: 25%;
    transform: translate(-50%, -50%);
    width: 4.5vw;
    height: 4.5vw;
    z-index: -1;
    pointer-events: none;
}

.moon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 255, 200, 0.6));
}

/* Overlay for smooth transition */
.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, 
                transparent 0%, 
                transparent 60%,
                #101823 100%);
    z-index: -1;
    pointer-events: none;
}

/* Comet animations */
.comet {
    position: absolute;
    width: 3.25vw;
    height: auto;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
}

.comet img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
}

.comet-1 {
    animation: cometDiagonal 5s linear 0s infinite;
}

.comet-2 {
    animation: cometDiagonal 5s linear 0.6s infinite;
}

.comet-3 {
    animation: cometDiagonal 5s linear 10s infinite;
}

/* Diagonal movement from top-left to bottom-right */
@keyframes cometDiagonal {
    0%, 20% {
        left: -200px;
        top: 10%;
        opacity: 0;
        transform: rotate(45deg);
    }
    22% {
        opacity: 1;
    }
    78% {
        opacity: 1;
    }
    80%, 100% {
        left: 110%;
        top: 90%;
        opacity: 0;
        transform: rotate(45deg);
    }
}

/* Pattern explanation:
   0s: Comet 1 starts (first of 2)
   0.6s: Comet 2 starts (second of 2)
   5s: Comet 1 starts again (the single comet)
   10s: Comet 3 starts (first of 3)
   10s: Comet 1 starts again (second of 3)
   10.6s: Comet 2 starts again (third of 3)
   Pattern repeats every 15 seconds
*/

/* Logo - Top Left, Always Visible */
.logo {
    position: fixed;
    top: 1.5rem;
    left: 3rem;
    z-index: 1001;
    width: 144px;
    height: 144px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 20px rgba(102, 126, 234, 0.4));
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 30px rgba(102, 126, 234, 0.6))
            drop-shadow(0 0 40px rgba(118, 75, 162, 0.4));
}

.logo:active {
    transform: scale(1.02);
}

/* Navigation - Centered at Top */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, 
                rgba(16, 24, 35, 0.95) 0%, 
                rgba(16, 24, 35, 0.85) 70%,
                rgba(16, 24, 35, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-btn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.15) 0%, 
                rgba(118, 75, 162, 0.15) 100%);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    color: #ffffff;
    padding: 0.85rem 2rem;
    height: 48px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: none;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glow effect on border */
.nav-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    filter: blur(8px);
}

/* Shine effect */
.nav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
                transparent 0%, 
                rgba(255, 255, 255, 0.2) 50%, 
                transparent 100%);
    transition: left 0.5s ease;
}

.nav-btn:hover {
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.25) 0%, 
                rgba(118, 75, 162, 0.25) 100%);
    border-color: rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3),
                0 4px 15px rgba(118, 75, 162, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-btn:hover::before {
    opacity: 0.6;
}

.nav-btn:hover::after {
    left: 100%;
}

/* Active/Click state */
.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4),
                inset 0 2px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, 
                rgba(102, 126, 234, 0.35) 0%, 
                rgba(118, 75, 162, 0.35) 100%);
}

/* Ripple effect on click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Main container */
.main-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Content sections */
.content-section {
    position: absolute;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
}

.section-1 {
    animation: fadeInOut1 21s ease-in-out 0s infinite;
}

.section-2 {
    animation: fadeInOut2 21s ease-in-out 0s infinite;
}

.section-3 {
    animation: fadeInOut3 21s ease-in-out 0s infinite;
}

/* Section 1: 0s to 3s (visible from 0-2.7s) */
@keyframes fadeInOut1 {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    5% {
        opacity: 1;
        transform: translateY(0);
    }
    23% {
        opacity: 1;
        transform: translateY(0);
    }
    28% {
        opacity: 0;
        transform: translateY(-20px);
    }
    28.1%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Section 2: 3.5s to 6.5s (visible from 3.5-6.2s) */
@keyframes fadeInOut2 {
    0%, 33% {
        opacity: 0;
        transform: translateY(20px);
    }
    38% {
        opacity: 1;
        transform: translateY(0);
    }
    57% {
        opacity: 1;
        transform: translateY(0);
    }
    62% {
        opacity: 0;
        transform: translateY(-20px);
    }
    62.1%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Section 3: 7s to 10s (visible from 7-9.7s) */
@keyframes fadeInOut3 {
    0%, 66% {
        opacity: 0;
        transform: translateY(20px);
    }
    71% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    95% {
        opacity: 0;
        transform: translateY(-20px);
    }
    95.1%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes fadeInOutLast {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    15% {
        opacity: 1;
        transform: translateY(0);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Typography - All white text with Alfa Slab One font */
h1 {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    font-size: 8rem;
    font-weight: 400;
    letter-spacing: -3px;
    color: #ffffff;
    margin-bottom: 0;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                 0 0 60px rgba(255, 255, 255, 0.6),
                 0 0 90px rgba(102, 126, 234, 0.5);
}

.section-2 h2 {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2rem;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(102, 126, 234, 0.4);
}

.section-2 p {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: #ffffff;
    max-width: 900px;
    line-height: 1.6;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
                 0 0 30px rgba(255, 255, 255, 0.4);
}

.section-3 h2 {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8),
                 0 0 40px rgba(255, 255, 255, 0.6),
                 0 0 60px rgba(102, 126, 234, 0.4);
}

.section-3 p {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.8;
    max-width: 1000px;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.7),
                 0 0 30px rgba(255, 255, 255, 0.4);
}

.xgp-highlight {
    font-family: 'Alfa Slab One', cursive, sans-serif;
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.9),
                 0 0 50px rgba(102, 126, 234, 0.7),
                 0 0 75px rgba(118, 75, 162, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .section-2 h2 {
        font-size: 2.5rem;
    }

    .section-2 p {
        font-size: 1.5rem;
        padding: 0 2rem;
    }

    .section-3 h2 {
        font-size: 2.25rem;
    }

    .section-3 p {
        font-size: 1.35rem;
        padding: 0 2rem;
    }

    .logo {
        top: 1rem;
        left: 1.5rem;
        width: 100px;
        height: 100px;
    }

    nav {
        padding: 1rem 1.5rem;
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .nav-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        min-width: 90px;
        height: 42px;
    }

    .services-section {
        padding: 3rem 1.5rem;
    }

    .services-heading {
        font-size: 2rem;
    }

    .service-content {
        flex-direction: column !important;
        gap: 2rem;
    }

    .service-text {
        max-width: 100%;
    }

    .service-text p {
        font-size: 1.1rem;
    }

    .image-frame {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 3rem;
    }

    .section-2 h2 {
        font-size: 2rem;
    }

    .section-2 p {
        font-size: 1.25rem;
    }

    .section-3 h2 {
        font-size: 1.75rem;
    }

    .section-3 p {
        font-size: 1.1rem;
    }

    .logo {
        top: 0.75rem;
        left: 1rem;
        width: 70px;
        height: 70px;
    }

    nav {
        padding: 0.75rem 1rem;
        gap: 0.3rem;
    }

    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-width: 75px;
        height: 38px;
    }

    .services-heading {
        font-size: 1.75rem;
    }

    .image-frame {
        width: 240px;
        height: 240px;
    }
}

/* Services Section */
.services-section {
    background: #101823;
    min-height: 100vh;
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
    margin-top: 0;
    overflow: hidden;
}

/* Glowing stars in services section */
.star {
    position: absolute;
    width: 2vw;
    height: 2vw;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.star img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Random glow animations - stars glow at different times */
@keyframes starGlow1 {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes starGlow2 {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.8; }
}

@keyframes starGlow3 {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.6; }
}

@keyframes starGlow4 {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.9; }
}

@keyframes starGlow5 {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.7; }
}

.services-heading {
    font-family: 'Luckiest Guy', cursive;
    font-size: 3.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(102, 126, 234, 0.3);
}

.service-card {
    max-width: 1200px;
    margin: 0 auto 6rem;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.service-left {
    flex-direction: row;
}

.service-right {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    max-width: 500px;
}

.service-text p {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.service-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4),
                0 0 40px rgba(118, 75, 162, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 80px rgba(102, 126, 234, 0.6),
                0 0 60px rgba(118, 75, 162, 0.5),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.tilted-image-right {
    transform: rotate(20deg);
}

.tilted-image-left {
    transform: rotate(-20deg);
}