:root {
    --primary: #011029;
    --accent: #c9a73c;
    --text: #ffffff;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #021a42 0%, #011029 100%);
    z-index: -1;
}

.glass-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 10%;
    background: rgba(1, 16, 41, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 600;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent);
}

main {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(to left, var(--accent), #f3e5ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.6;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.upload-container {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 2rem;
    text-align: right;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.input-group input {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.1);
}

.drop-zones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.drop-zone {
    border: 2px dashed var(--glass-border);
    border-radius: 1.5rem;
    padding: 3rem 1rem;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.drop-zone:hover {
    border-color: var(--accent);
    background: rgba(201, 167, 60, 0.05);
}

.drop-zone input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.drop-zone .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.drop-zone .label {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.drop-zone .file-name {
    font-size: 0.9rem;
    opacity: 0.5;
}

button {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(45deg, var(--accent), #f3e5ab);
    border: none;
    border-radius: 1rem;
    color: var(--primary);
    font-weight: 900;
    font-size: 1.3rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(201, 167, 60, 0.3);
}

button:active {
    transform: translateY(0);
}

.hidden {
    display: none;
}

#result-area {
    margin-top: 3rem;
    animation: slideUp 0.5s ease-out;
}

.success-card {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.check {
    width: 60px;
    height: 60px;
    background: #22c55e;
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.btn-secondary {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* Projects Library */
.projects-library {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
    font-weight: 900;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: right;
    transition: 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(201, 167, 60, 0.1);
}

.project-card h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.project-card .date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.project-card .open-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(201, 167, 60, 0.2);
    color: var(--accent);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    transition: 0.3s;
}

.project-card:hover .open-btn {
    background: var(--accent);
    color: var(--primary);
}

footer {
    padding: 4rem 0;
    opacity: 0.4;
    font-size: 0.9rem;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loader */
.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(1, 16, 41, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading .loader {
    display: block;
}

.loading .btn-text {
    display: none;
}

