:root {
    --bg-color: #05081A;
    --primary-blue: #0066FF;
    --accent-cyan: #00D4FF;
    --text-white: #FFFFFF;
    --text-gray: #B0B5C1;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-cairo: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-cairo);
    overflow: hidden; /* No scrollbars */
    height: 100vh; /* Full viewport height */
    display: flex;
    flex-direction: column;
    direction: rtl;
    background: radial-gradient(circle at top right, #0a1128 0%, #05081a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Gradients/Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.bg-glow-1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #0026ff 0%, transparent 70%);
}

.bg-glow-2 {
    bottom: 0;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #00d4ff 0%, transparent 70%);
}

/* Navbar */
.navbar {
    padding: 10px 0; /* Reduced padding */
    flex-shrink: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px; /* Slightly smaller logo */
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3)); /* Subtle glow */
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem; /* Slightly larger text */
    color: var(--text-white);
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    flex: 1; /* Take remaining space */
    min-height: 0;
    padding: 0; /* Remove padding */
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem; /* Smaller title */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 60%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: right;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-cairo);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #0066ff 0%, #00d4ff 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Chat Interface Graphic (Right Side) */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1500px; /* 3D Perspective */
}

.chat-interface-card {
    width: 100%;
    max-width: 450px;
    background: rgba(20, 25, 48, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow:
        20px 20px 50px rgba(0, 0, 0, 0.5),
        -1px -1px 0 rgba(255, 255, 255, 0.1) inset;
    position: relative;
    transition: transform 0.5s ease;
}

.chat-interface-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.chat-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem; /* Reduced margin */
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.dots span:nth-child(1) { background-color: #ff5f57; }
.dots span:nth-child(2) { background-color: #febc2e; }
.dots span:nth-child(3) { background-color: #28c840; }

.chat-body {
    margin-bottom: 1.5rem; /* Reduced margin */
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bot-icon {
    background: linear-gradient(135deg, #0066ff, #00d4ff);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 102, 255, 0.3);
}

.message-bubble {
    background: rgba(255, 255, 255, 0.1);
    padding: 14px 18px;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.message-bubble::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: -6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 0 10px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.1);
}

.chat-input-area {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
}

.fake-input {
    height: 2px;
    width: 2px;
    background: white;
    animation: blink 1s infinite;
}

.send-icon {
    margin-right: auto;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        order: 1;
        margin-bottom: 2rem;
    }

    .hero-graphic {
        order: 2;
        width: 100%;
        perspective: none;
    }

    .chat-interface-card {
        transform: none;
    }

    .hero-title {
        text-align: center;
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 2rem auto;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 0; /* Minimal padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 39, 0.8);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: row; /* Horizontal layout */
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.developer-trigger {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 0.9rem;
    font-family: var(--font-cairo);
    margin-top: 5px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.developer-trigger:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.developer-card {
    background: rgba(20, 25, 48, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .developer-card {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--text-white);
}

.dev-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-cyan);
    margin-bottom: 20px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.dev-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-white);
}

.dev-role {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: block;
}

.dev-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

