/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(15, 15, 15, 0.9) 50%, rgba(10, 10, 10, 0.9) 100%), url('images/journey so far bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 0, 105, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: -7s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0.3;
    }
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 40px 20px;
        gap: 40px;
    }
}

/* Profile section */
.profile-section {
    text-align: center;
    margin-bottom: 20px;
}

.profile-image {
    margin-bottom: 24px;
}

.profile-logo {
    width: 100px;
    height: 100px;
    border-radius: 16px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 32px rgba(255, 0, 105, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
    .profile-logo {
        width: 120px;
        height: 120px;
        border-radius: 20px;
    }
}

.profile-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 0, 105, 0.4);
    border-color: rgba(255, 0, 105, 0.3);
}

.profile-bio {
    font-size: 1rem;
    color: #a0a0a0;
    font-weight: 400;
    line-height: 1.5;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .profile-bio {
        font-size: 1.1rem;
        margin-top: 20px;
    }
}

/* Welcome section */
.welcome-section {
    text-align: left;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.welcome-text {
    font-size: 0.95rem;
    color: #b0b0b0;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: justify;
}

.welcome-text:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .welcome-section {
        padding: 32px;
        margin-bottom: 40px;
    }
    
    .welcome-text {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* Links section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 72px;
}

@media (min-width: 768px) {
    .link-card {
        padding: 20px 24px;
        min-height: auto;
    }
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 105, 0.1), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 0, 105, 0.3);
    box-shadow: 0 8px 32px rgba(255, 0, 105, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    background: linear-gradient(135deg, #FF0069, #ff4d94);
    box-shadow: 0 4px 16px rgba(255, 0, 105, 0.3);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .link-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-right: 16px;
    }
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.link-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: white;
    line-height: 1.3;
}

.link-subtitle {
    font-size: 0.85rem;
    color: #a0a0a0;
    font-weight: 400;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .link-title {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .link-subtitle {
        font-size: 0.9rem;
    }
}

.link-arrow {
    color: #FF0069;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.link-card:hover .link-arrow {
    transform: translateX(4px);
}

/* All icons use consistent neon pink branding */
.youtube-link .link-icon,
.instagram-link .link-icon,
.video-link .link-icon,
.featured-video .link-icon,
.discord-link .link-icon {
    background: linear-gradient(135deg, #FF0069, #ff4d94);
    box-shadow: 0 4px 16px rgba(255, 0, 105, 0.3);
}

/* Videos section */
.videos-section {
    margin-top: 40px;
    text-align: center;
}

.videos-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
    text-align: center;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
}

.video-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 105, 0.3);
    box-shadow: 0 12px 40px rgba(255, 0, 105, 0.2);
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border: none;
    display: block;
}

.video-caption {
    padding: 16px;
    font-size: 0.9rem;
    color: #a0a0a0;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.featured-video-item {
    border-color: rgba(255, 0, 105, 0.2);
    box-shadow: 0 8px 32px rgba(255, 0, 105, 0.1);
}

.featured-video-item .video-caption {
    color: #FF0069;
    font-weight: 600;
}

@media (min-width: 768px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .video-item iframe {
        height: 220px;
    }
    
    .videos-title {
        font-size: 1.8rem;
        margin-bottom: 32px;
    }
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

@media (min-width: 768px) {
    .social-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

.social-icon:hover {
    background: rgba(255, 0, 105, 0.1);
    border-color: rgba(255, 0, 105, 0.3);
    color: #FF0069;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 105, 0.2);
}

.footer-text {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
    .container {
        padding: 12px 12px;
        gap: 20px;
    }
    
    .profile-section {
        margin-bottom: 16px;
    }
    
    .profile-image {
        margin-bottom: 20px;
    }
    
    .profile-bio {
        font-size: 0.95rem;
        margin-top: 12px;
    }
    
    .welcome-section {
        padding: 20px;
        margin-bottom: 24px;
    }
    
    .welcome-text {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: left;
    }
    
    .profile-logo {
        width: 120px;
        height: 120px;
        border-radius: 16px;
    }
    
    .link-card {
        padding: 14px 16px;
        min-height: 64px;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 10px;
    }
    
    .link-title {
        font-size: 0.95rem;
    }
    
    .link-subtitle {
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 14px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    .videos-section {
        margin-top: 32px;
    }
    
    .videos-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .videos-grid {
        gap: 20px;
    }
    
    .video-item iframe {
        height: 180px;
    }
    
    .video-caption {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .link-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .link-card:active {
        transform: scale(0.98);
    }
    
    .social-icon {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .social-icon:active {
        transform: scale(0.95);
    }
    
    /* Optimize for mobile performance */
    .floating-element {
        display: none;
    }
    
    /* Reduce animation complexity on mobile */
    .link-card::before {
        display: none;
    }
    
    /* Optimize background for mobile */
    body {
        background-attachment: scroll;
        background-size: cover;
    }
}

/* Mobile-first optimizations */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent horizontal scroll on mobile */
body {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

/* Optimize touch targets */
@media (max-width: 768px) {
    .link-card {
        min-height: 44px; /* Minimum touch target size */
    }
    
    .social-icon {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Improve mobile performance */
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #FF0069;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4d94;
}
