/* General Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-color: #ecf0f1;
    --dark-color: #222;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--light-color) 0%, #f5f7fa 100%);
    color: var(--text-color);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.loaded .loading {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px 0;
    background: transparent;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(52, 152, 219, 0.05) 0%, rgba(52, 152, 219, 0) 70%),
                radial-gradient(circle at 70% 70%, rgba(231, 76, 60, 0.05) 0%, rgba(231, 76, 60, 0) 70%);
    z-index: -1;
}

/* Profile Image */
.profile-img-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(145deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.2);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.profile-img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.03);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Typography */
.welcome-text {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.name {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.name::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.welcome-text:hover .name::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Typed Text */
.typed-text-container {
    font-size: 1.4rem;
    min-height: 4.2rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.typed-cursor {
    font-size: 1.4rem;
    color: var(--primary-color);
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    50% {
        opacity: 0.0;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
    transform: translateY(1px);
}

.whatsapp-btn i {
    font-size: 1.3rem;
}

/* Footer */
.footer {
    padding: 20px 0;
    background-color: rgba(44, 62, 80, 0.05);
    backdrop-filter: blur(5px);
    color: var(--secondary-color);
    font-weight: 500;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .welcome-text {
        font-size: 2.5rem;
    }
    
    .profile-img {
        width: 220px;
        height: 220px;
    }
    
    .typed-text-container {
        font-size: 1.2rem;
        min-height: 3.6rem;
    }
    
    .typed-cursor {
        font-size: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .welcome-text {
        font-size: 2rem;
    }
    
    .profile-img-wrapper {
        margin-bottom: 2rem;
    }
    
    .profile-img {
        width: 180px;
        height: 180px;
    }
    
    .typed-text-container {
        font-size: 1.1rem;
        min-height: 3.3rem;
    }
    
    .typed-cursor {
        font-size: 1.1rem;
    }
    
    .whatsapp-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 50px;
    }
    
    .welcome-text {
        font-size: 1.8rem;
    }
    
    .typed-text-container {
        font-size: 1rem;
        min-height: 3rem;
    }
    
    .typed-cursor {
        font-size: 1rem;
    }
} 