@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#home img,
#home h1,
#home p,
.card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0; 
}

#home img { animation-delay: 0.2s; }
#home h1 { animation-delay: 0.3s; }
#home p { animation-delay: 0.4s; }
.card { animation-delay: 0.5s; }

/* Base Styles */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: rgba(0, 0, 0, 0.9);
}

/* Dynamic Grid Background */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    transform-origin: top;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Logo Styles */
.logo-wrapper {
    position: relative;
    margin-bottom: 3rem;
}

.logo-image {
    max-height: 1000px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(14, 212, 199, 0.6));
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.logo-image:hover {
    filter: drop-shadow(0 0 30px rgba(14, 212, 199, 0.8));
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-item:hover .stat-number,
.stat-item:hover .stat-label,
.stat-item:hover .stat-detail {
    color: #09bfb5;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.95);
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

.stat-detail {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto 0;
    padding: 0 2rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
}

.social-item:hover {
    transform: translateX(10px);
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    color: #09bfb5;
}

.social-item:hover .social-name,
.social-item:hover .social-handle {
    color: #09bfb5;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-info {
    text-align: left;
}

.social-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.95);
}

.social-handle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-image {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        max-width: 1400px;
    }
    
    .logo-image {
        max-height: 300px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .logo-image {
        max-height: 250px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .social-item {
        padding: 0.75rem;
    }
}

/* Base styles for all screens */
#home .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#home img[alt="G-RBLX Logo"] {
    height: 400px;
    margin: 0 auto;
}

#home .row {
    width: 100%;
    justify-content: center;
}

#home .card {
    margin-bottom: 20px;
    width: 100%;
    max-width: 350px;
    transition: transform 0.3s ease;
    height: 100%;
    min-height: 180px;
}

#home .card:hover {
    transform: translateY(-10px);
}

.transition-all {
    transition: all 0.3s ease;
}

.card-body {
    height: 100%;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #home img[alt="G-RBLX Logo"] {
        height: 350px;
    }
    
    #home .card {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    #home img[alt="G-RBLX Logo"] {
        height: 300px;
    }
    
    #home .card {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    #home img[alt="G-RBLX Logo"] {
        height: 250px;
    }
    
    #home .card {
        max-width: 280px;
        margin-bottom: 15px;
        min-height: 160px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    #home .row {
        max-width: 300px;
        margin: 0 auto;
    }

    #home {
        padding: 40px 0;
        min-height: auto;
        height: auto;
    }
    
    #home img {
        max-height: 200px;
    }

    .container {
        padding: 0 15px;
    }

    .row {
        margin: 0;
    }

    .col-12, .col-6 {
        padding: 0 10px;
    }

    .card-body {
        padding: 20px !important;
    }

    .display-6 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    #home img[alt="G-RBLX Logo"] {
        height: 200px;
    }
    
    #home .card {
        max-width: 260px;
        margin-bottom: 12px;
    }
    
    #home .row {
        max-width: 280px;
    }
    
    #home .card-body {
        padding: 15px;
    }
    
    #home .card h3 {
        font-size: 1.2rem;
    }
    
    #home .card .display-6 {
        font-size: 1.8rem;
    }
    
    #home .card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    #home img[alt="G-RBLX Logo"] {
        height: 180px;
    }
    
    #home .card {
        max-width: 240px;
        margin-bottom: 10px;
    }
    
    #home .row {
        max-width: 260px;
    }
    
    #home .card-body {
        padding: 12px;
    }
    
    #home .card h3 {
        font-size: 1.1rem;
    }
    
    #home .card .display-6 {
        font-size: 1.6rem;
    }
    
    #home .card p {
        font-size: 0.8rem;
    }
}

/* Social Media Cards */
.social-media-cards .twitter-card {
    background-color: #1a8acf;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-media-cards .youtube-card {
    background-color: #6b0000;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-media-cards .discord-card {
    background-color: #3943b1;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.social-media-cards .roblox-card {
    background-color: #bbbbbb;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Hover effects */
.social-media-cards .twitter-card:hover {
    background-color: #1b7bb3;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(26, 138, 207, 0.6);
}

.social-media-cards .youtube-card:hover {
    background-color: #8b0000;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(107, 0, 0, 0.6);
}

.social-media-cards .discord-card:hover {
    background-color: #4b59d9;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

.social-media-cards .roblox-card:hover {
    background-color: #a5a5a5;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(187, 187, 187, 0.6);
}

.card p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.stats-card {
    background: linear-gradient(135deg, 
        rgba(33, 67, 91, 0.85), 
        rgba(5, 72, 131, 0.85), 
        rgba(6, 97, 162, 0.85), 
        rgba(18, 133, 140, 0.85), 
        rgba(8, 138, 195, 0.85), 
        rgba(26, 178, 176, 0.85)
    ) !important;
    color: white !important;
    border: none;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.stats-card .card-title,
.social-media-cards .card-title {
    font-size: 2rem !important; 
    font-weight: bold !important;
}

.stats-card .card-text,
.social-media-cards .card-text {
    font-size: 1.5rem !important; 
}

/* Fullscreen GIF Section */
/* .fullscreen-gif {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    background-color: transparent;
    margin-top: -80px; 
    padding-top: 80px; 
} */


/* .fullscreen-gif-image {
    width: 100%;
    height: auto;
    display: block;
} */

