/* Font Declarations */
@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-ExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-SemiLight.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bahij TheSansArabic';
    src: url('./fonts/Bahij_TheSansArabic-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

/* Global Styles */
:root {
    --primary-color: #000C8A;
    --text-color: #ffffff;
    --bg-overlay: rgba(0, 12, 138, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bahij TheSansArabic', Arial, sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    background-color: rgba(0, 12, 138, 0.1);
}

.app-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Background */
.app-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('./images/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.app-container::after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--bg-overlay);
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    cursor: pointer;
}

.globe-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    width: 12rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.language-dropdown.hidden {
    display: none;
}

.language-dropdown button {
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
}

.language-dropdown button:hover {
    background-color: #f3f4f6;
}

.header-title {
    font-size: 1.125rem;
    font-weight: bold;
}

.header-logo {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

/* Main Content */
.main-content {
    padding-top: 5rem;
    padding-bottom: 4rem;
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.watermark {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8rem;
    opacity: 0.3;
    pointer-events: none;
}

.watermark img {
    width: 12rem;
    height: 12rem;
    object-fit: contain;
}

.content-section {
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

.main-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.main-description {
    font-size: 1.125rem;
    font-weight: 300;
}

/* Form */
.pledge-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.input-icon {
    width: 1.25rem;
    height: 1.25rem;
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 20;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    padding-left: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid #94a3b8;
    background-color: rgba(0, 0, 69, 0.5);
    backdrop-filter: blur(4px);
    color: var(--text-color);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-group input:focus {
    outline: none;
    ring: 2px solid var(--primary-color);
}

.submit-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: #000a6e;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.footer-logo {
    width: 4rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-align: center;
    z-index: 100;
}

/* Responsive Design */
@media (max-width: 640px) {
    .header-title {
        font-size: 1rem;
    }

    .header-logo {
        height: 2.5rem;
    }

    .main-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .watermark img {
        width: 8rem;
        height: 8rem;
    }
} 