/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background: #00C58D;
    color: white;
}

.btn-primary:hover {
    background: #00b37d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 197, 141, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #4F008C;
    border: 2px solid #4F008C;
}

.btn-secondary:hover {
    background: #4F008C;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #4F008C;
    border: 2px solid #4F008C;
}

.btn-outline:hover {
    background: #4F008C;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4F008C 0%, #6a1b9a 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}



/* Competition Badge */
.competition-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.competition-badge i {
    color: #FFD700;
    font-size: 1.2rem;
}

.competition-badge span {
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e6f3ff;
}

.prize-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.competition-desc {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #cce7ff;
    line-height: 1.8;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.timer-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 80px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.timer-item span {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 0.25rem;
}

.timer-item label {
    font-size: 0.8rem;
    color: #e6f3ff;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Gift Form Styles */
.gift-form {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border: 3px solid #00C58D;
    border-radius: 25px;
    padding: 2.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(15px);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.gift-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F008C, #00C58D, #FFD700);
}

.form-header {
    margin-bottom: 2rem;
}

.stc-logo-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00C58D, #4F008C);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: fit-content;
    margin: 0 auto 1.5rem;
}

.stc-logo-small i {
    color: white;
    font-size: 1.2rem;
}

.stc-logo-small span {
    color: white;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.gift-form h3 {
    color: #FFD700;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.form-input {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.form-input input {
    padding: 1.25rem 1.5rem;
    border: 2px solid rgba(0, 197, 141, 0.5);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.1rem;
    font-family: 'Cairo', sans-serif;
    min-width: 280px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-weight: 600;
}

.form-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.form-input input:focus {
    outline: none;
    border-color: #00C58D;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(0, 197, 141, 0.3);
    transform: translateY(-2px);
}

.gift-btn {
    background: linear-gradient(135deg, #00C58D, #4F008C);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 25px rgba(0, 197, 141, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gift-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 197, 141, 0.5);
    background: linear-gradient(135deg, #4F008C, #00C58D);
}

.gift-btn i {
    font-size: 1.3rem;
    animation: pulse 2s infinite;
}

.gift-result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 20px;
    font-weight: 700;
    text-align: center;
    animation: slideDown 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid;
}

.gift-result.success {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #00C58D;
    border-color: #00C58D;
}

.gift-result.error {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #ff6b6b;
    border-color: #ff6b6b;
}

/* Animation for form */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gift Box Styles */
.gift-box {
    position: relative;
    width: 300px;
    height: 300px;
    perspective: 1000px;
    animation: giftFloat 3s ease-in-out infinite;
}

@keyframes giftFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.gift-body {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4F008C, #6a1b9a);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-lid {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #6a1b9a, #8e24aa);
    border-radius: 10px 10px 0 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gift-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.ribbon-vertical {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: translateX(-50%);
    border-radius: 10px;
}

.ribbon-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: translateY(-50%);
    border-radius: 10px;
}

.ribbon-bow {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 40px;
}

.bow-left, .bow-right {
    position: absolute;
    width: 25px;
    height: 30px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 50% 50% 0 50%;
    top: 5px;
}

.bow-left {
    left: 0;
    transform: rotate(-45deg);
}

.bow-right {
    right: 0;
    transform: rotate(45deg) scaleX(-1);
}

.bow-center {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #FFA500;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gift-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.gift-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.gift-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.gift-prize {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gift-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-number {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 100px;
    height: 35px;
    object-fit: contain;
}

.footer-logo h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #00C58D;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #00C58D;
}

.contact-info p {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.contact-info i {
    color: #00C58D;
    margin-left: 0.5rem;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #4F008C;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00C58D;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #cccccc;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00C58D;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
    }
    
    .timer-item {
        min-width: 60px;
    }
    

    

    

    
    .gift-box {
        width: 250px;
        height: 250px;
    }
    
    .gift-content {
        padding: 1rem;
        text-align: center;
    }
    
    .gift-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .gift-prize {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .gift-card {
        padding: 0.75rem;
    }
    
    .card-number {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .card-info {
        font-size: 0.7rem;
    }
    
    .gift-form {
        padding: 2rem;
        margin-top: 1.5rem;
    }
    
    .gift-form h3 {
        font-size: 1.5rem;
    }
    
    .form-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-input input {
        min-width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .timer-item {
        padding: 0.5rem;
        min-width: 50px;
    }
    
    .timer-item span {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    
    

    
    .gift-box {
        width: 200px;
        height: 200px;
    }
    
    .gift-content {
        padding: 0.75rem;
    }
    
    .gift-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .gift-prize {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .gift-card {
        padding: 0.5rem;
    }
    
    .card-number {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .card-info {
        font-size: 0.6rem;
    }
    
    .gift-form {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .gift-form h3 {
        font-size: 1.3rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .stc-logo-small {
        padding: 0.5rem 1rem;
    }
    
    .stc-logo-small span {
        font-size: 0.9rem;
    }
    
    .gift-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .gift-result {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .gift-result.success div {
        font-size: 0.9rem;
    }
    
    .gift-result.success div[style*="font-size: 1.8rem"] {
        font-size: 1.4rem !important;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Success Message Styles */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Field Error Styles */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Flash Animation for Live Winners */
@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Live Animations */
@keyframes livePulse {
    0% { transform: scale(1); box-shadow: 0 8px 25px rgba(0, 197, 141, 0.4); }
    50% { transform: scale(1.02); box-shadow: 0 12px 35px rgba(0, 197, 141, 0.6); }
    100% { transform: scale(1); box-shadow: 0 8px 25px rgba(0, 197, 141, 0.4); }
}

@keyframes liveShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes liveBlink {
    0%, 50% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes liveDot {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.2); }
}
