/* Import Google Fonts - Cairo for Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099ff;
    --dark-bg: #0a0e27;
    --darker-bg: #060915;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --accent-glow: rgba(0, 212, 255, 0.3);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
    opacity: 0.4;
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 7s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Main Content */
.content {
    text-align: center;
    z-index: 1;
    position: relative;
    animation: fadeIn 1.5s ease-out;
}

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

/* Logo Container */
.logo-container {
    margin-bottom: 30px;
    animation: scaleIn 1s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    width: 180px;
    height: 180px;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    animation: pulse 4s infinite ease-in-out;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 40px var(--primary-color));
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 0 30px var(--accent-glow));
    }
    50% {
        filter: drop-shadow(0 0 50px var(--primary-color));
    }
}

.logo-center {
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

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

/* Site Name */
.site-name {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: slideDown 1s ease-out 0.3s backwards;
    text-shadow: 0 0 30px var(--accent-glow);
}

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

/* Description */
.description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-weight: 300;
    animation: slideUp 1s ease-out 0.5s backwards;
    line-height: 1.8;
}

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

/* Footer Info */
.footer-info {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 0.7s backwards;
}

/* Developer Section with Avatar */
.developer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.developer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    filter: drop-shadow(0 0 15px var(--accent-glow));
    animation: avatarRotate 8s linear infinite, avatarPulse 4s ease-in-out infinite;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.developer-avatar:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 25px var(--primary-color));
    animation-play-state: paused;
}

@keyframes avatarRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes avatarPulse {
    0%, 100% {
        filter: drop-shadow(0 0 15px var(--accent-glow));
    }
    50% {
        filter: drop-shadow(0 0 30px var(--primary-color));
    }
}

.developer {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.contact {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.contact a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.contact a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--primary-color);
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.contact a:hover::after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-name {
        font-size: 2.5rem;
    }

    .description {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }

    .logo {
        width: 140px;
        height: 140px;
    }

    .footer-info {
        margin-top: 60px;
    }

    .circle-1, .circle-2, .circle-3 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .site-name {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .logo {
        width: 120px;
        height: 120px;
    }

    .developer, .contact {
        font-size: 0.9rem;
    }
}

/* Additional Visual Effects */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--primary-color);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--darker-bg);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--darker-bg);
}

/* ============================================
   Contact Form Modal Styles
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(6, 9, 21, 0.95) 100%);
    margin: 5% auto;
    padding: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 50px var(--accent-glow);
    animation: slideDown 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-secondary);
    float: left;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--accent-glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-color);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Success Modal */
.success-content {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 60px;
    color: white;
    animation: successPop 0.5s ease-out;
    box-shadow: 0 0 40px var(--primary-color);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message {
    color: var(--text-primary);
    font-size: 2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        margin: 10% auto;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 50px;
    }

    .success-message {
        font-size: 1.5rem;
    }

    .developer-avatar {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 15px;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 12px;
    }

    .developer-avatar {
        width: 35px;
        height: 35px;
    }

    .developer-section {
        gap: 10px;
    }
}
