/* Global Styles */
:root {
    --primary-color: #d4af37;
    /* Luxury Gold */
    --secondary-color: #1a1a1a;
    /* deep black */
    --bg-dark: #0f0f0f;
    /* main background */
    --text-light: #f5f5f5;
    /* soft white */
    --card-bg: rgba(255, 255, 255, 0.05);
    /* Glass effect base */
    --glass-border: rgba(212, 175, 55, 0.3);
    /* Subtle gold border */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Soft shadow */
    --transition-speed: 0.4s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Ambient Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 10%, rgba(212, 175, 55, 0.15), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

/* Header & Hero Section */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 100%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;
    z-index: 1;
    position: relative;
}

.logo-side {
    margin-bottom: 10px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    margin: 0;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.3);
    transition: transform var(--transition-speed);
}

.brand-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.text-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-group h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.subtitle {
    font-size: 1rem;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}

.slogan {
    font-size: 1.4rem;
    margin: 10px 0;
    padding: 0 20px;
    color: #fff;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.slogan::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    margin: 10px auto 0;
    opacity: 0.7;
}

.hero-description {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-top: 15px;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Mobile Adjustments for Header Only */
@media (max-width: 480px) {
    .hero {
        padding: 40px 0 30px;
    }

    .brand-logo {
        width: 80px;
        height: 80px;
    }

    .title-group h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-top: 5px;
        letter-spacing: 0.5px;
    }

    .slogan {
        font-size: 1.3rem;
        margin: 15px 0 10px;
    }

    .hero-description {
        font-size: 1.1rem;
        padding: 0 10px;
        line-height: 1.5;
    }
}

/* Content Grid */
.content {
    flex: 1;
    padding: 40px 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

/* Luxury Card Design */
.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

/* Icon Styling */
.icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform var(--transition-speed);
}

.card:hover .icon-box {
    transform: scale(1.1);
    color: #fff;
    text-shadow: 0 0 15px var(--primary-color);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .logo-area h1 {
        font-size: 3rem;
    }

    .slogan {
        font-size: 1.4rem;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .card {
        padding: 15px;
    }
}

.card h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 700;
}

.card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    direction: ltr;
    /* Ensure numbers/usernames display correctly */
}

/* Footer */
.footer {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    /* Changed to fadeInUp for cards for better effect */
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.4s;
}

.delay-4 {
    animation-delay: 0.5s;
}

.delay-5 {
    animation-delay: 0.6s;
}

.delay-6 {
    animation-delay: 0.7s;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-area h1 {
        font-size: 3rem;
    }

    .slogan {
        font-size: 1.4rem;
    }

    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .card {
        padding: 15px;
    }
}

/* Logo Styling */
.brand-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    margin-bottom: 15px;
    transition: transform var(--transition-speed);
}

.brand-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

/* Desktop View */
@media (min-width: 1024px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        padding: 20px;
    }

    .hero {
        padding: 50px 0 30px;
        flex: 0 0 auto;
        /* Allow hero to take natural height */
    }

    .logo-area h1 {
        font-size: 4rem;
        /* Larger for desktop */
    }

    .brand-logo {
        width: 150px;
        height: 150px;
        margin-bottom: 20px;
    }

    .subtitle {
        font-size: 1.3rem;
        /* Increased size as requested */
        margin-top: 8px;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.9);
    }

    .slogan {
        font-size: 1.8rem;
        margin-top: 15px;
    }

    .hero-description {
        font-size: 1.2rem;
        margin-top: 10px;
        max-width: 800px;
    }

    .content {
        flex: 1;
        /* Pushes footer down */
        display: flex;
        align-items: center;
        /* Center cards vertically if needed */
        justify-content: center;
        padding: 40px 0;
    }

    .grid-cards {
        max-width: 1100px;
        gap: 30px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .card {
        padding: 40px 30px;
        width: 320px;
        min-height: 220px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .icon-box {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .card h3 {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .card p {
        font-size: 1.2rem;
    }

    .footer {
        padding: 20px;
        margin-top: auto;
    }
}