/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* RTL Support & Custom Fonts */
@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/iransans/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/iransans/IRANSansWeb_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/iransans/IRANSansWeb_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/iransans/IRANSansWeb_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../fonts/iransans/IRANSansWeb_Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Saira';
    src: url('../fonts/saira/Saira-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Saira';
    src: url('../fonts/saira/Saira-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
}

html {
    direction: rtl;
    font-family: 'IRANSans', 'Saira', 'Tahoma', 'Arial', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: #000;
}

/* Video Background Styles */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Profile Image Styles */
.profile-section {
    margin-bottom: 25px;
    animation: fadeInDown 1s ease-out;
    position: relative;
    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 8px 25px rgba(240, 148, 51, 0.4),
                0 4px 15px rgba(220, 39, 67, 0.3),
                0 0 30px rgba(188, 24, 136, 0.2);
    transition: box-shadow 0.3s ease;
}

.profile-section img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 6px solid #000;
    transition: transform 0.3s ease;
}

.profile-section:hover {
    box-shadow: 0 12px 35px rgba(240, 148, 51, 0.6),
                0 6px 20px rgba(220, 39, 67, 0.5),
                0 0 40px rgba(188, 24, 136, 0.4);
}

.profile-section:hover img {
    transform: scale(1.05);
}

/* Title Section Styles */
.title-section {
    text-align: center;
    margin-bottom: 0;
    color: #fff;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-section h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
    font-weight: 900;
    font-family: 'Saira', sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    background: linear-gradient(135deg, #FFE66D 0%, #00F260 50%, #00B4DB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.title-section p {
    font-size: 1.15rem;
    opacity: 0.95;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 10px;
}

.title-section .subtitle {
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 300;
}

/* Buttons Section Styles */
.buttons-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 500px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 35px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Button Specific Colors - Modern 2024 Gradients */
.btn-game {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-game:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.btn-telegram {
    background: linear-gradient(135deg, #00B4DB 0%, #0083B0 50%, #0575E6 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.4);
}

.btn-telegram:hover {
    box-shadow: 0 10px 30px rgba(0, 180, 219, 0.6);
}

.btn-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 20%, #dc2743 40%, #cc2366 60%, #bc1888 80%, #8a3ab9 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(240, 148, 51, 0.4);
}

.btn-instagram:hover {
    box-shadow: 0 10px 30px rgba(240, 148, 51, 0.6);
}

/* Footer */
.footer {
    margin-top: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 0.6s both;
    font-family: 'Saira', 'Arial', sans-serif;
}

/* 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;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        padding: 6px;
    }
    
    .profile-section img {
        width: 140px;
        height: 140px;
        border-width: 6px;
    }

    .title-section h1 {
        font-size: 1.4rem;
        line-height: 1.1;
    }

    .title-section p {
        font-size: 1.1rem;
    }

    .title-section .subtitle {
        font-size: 1rem;
    }

    .buttons-section {
        max-width: 400px;
        gap: 15px;
    }

    .btn {
        padding: 15px 28px;
        font-size: 1.05rem;
        gap: 12px;
    }

    .btn i {
        font-size: 1.3rem;
    }

    .content-wrapper {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .profile-section {
        padding: 6px;
        margin-bottom: 20px;
    }
    
    .profile-section img {
        width: 120px;
        height: 120px;
        border-width: 6px;
    }

    .title-section {
        margin-bottom: 0;
    }

    .title-section h1 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .title-section p {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .title-section .subtitle {
        font-size: 0.9rem;
    }

    .buttons-section {
        max-width: 320px;
        gap: 14px;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.95rem;
        gap: 10px;
        border-radius: 40px;
    }

    .btn i {
        font-size: 1.2rem;
    }

    .content-wrapper {
        padding: 25px 15px;
    }

    .footer {
        margin-top: 30px;
        font-size: 0.85rem;
    }
}

/* Mobile Video Optimization */
@media (max-width: 768px) {
    .video-background video {
        object-fit: cover;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .content-wrapper {
        padding: 15px 10px;
    }

    .profile-section {
        margin-bottom: 15px;
        padding: 6px;
    }

    .profile-section img {
        width: 80px;
        height: 80px;
        border-width: 6px;
    }

    .title-section {
        margin-bottom: 20px;
    }

    .title-section h1 {
        font-size: 1rem;
        margin-bottom: 8px;
        line-height: 1.1;
    }

    .title-section p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .buttons-section {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .footer {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}
