/* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-color: #2c5f8b; --secondary-color: #4a8bc1; --accent-color: #f7b731; --light-color: #f5f7fa; --dark-color: #1e272e; --success-color: #28a745; --error-color: #dc3545; --text-color: #333; --text-light: #666; --border-radius: 8px; --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); --transition: all 0.3s ease; } body { font-family: 'Tajawal', 'Arial', sans-serif; line-height: 1.6; color: var(--text-color); background-color: #fff; direction: rtl; } h1, h2, h3, h4 { margin-bottom: 1rem; font-weight: 700; color: var(--primary-color); } p { margin-bottom: 1rem; } a { text-decoration: none; color: var(--primary-color); transition: var(--transition); } a:hover { color: var(--secondary-color); } img { max-width: 100%; height: auto; } .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; } .btn { display: inline-block; padding: 0.8rem 1.5rem; background-color: var(--primary-color); color: white; border: none; border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); font-weight: 500; text-align: center; } .btn:hover { background-color: var(--secondary-color); transform: translateY(-3px); box-shadow: var(--box-shadow); } .btn-accent { background-color: var(--accent-color); color: var(--dark-color); } .btn-accent:hover { background-color: #f5cd6d; } .section { padding: 4rem 0; } .section-title { text-align: center; margin-bottom: 3rem; position: relative; font-size: 2rem; } .section-title::after { content: ''; display: block; width: 80px; height: 4px; background-color: var(--accent-color); margin: 1rem auto 0; } /* Header Styles */ header { background-color: white; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); position: fixed; width: 100%; top: 0; z-index: 1000; } .header-container { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; } .logo { font-size: 1.5rem; font-weight: 700; color: var(--primary-color); } .logo span { color: var(--accent-color); } .nav-links { display: flex; list-style: none; } .nav-links li { margin-right: 1.5rem; } .nav-links a { font-weight: 500; } .mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-color); } /* Hero Section */ .hero { background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; padding: 8rem 0 5rem; text-align: center; margin-top: 70px; /* Offset for fixed header */ } .hero h1 { font-size: 2.5rem; margin-bottom: 1.5rem; color: white; } .hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.9); } /* About Section */ .about { background-color: var(--light-color); } .about-content { max-width: 800px; margin: 0 auto; text-align: right; } .about-content ul { margin-right: 2rem; margin-bottom: 1.5rem; } /* Skills Section */ .skills-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 2rem; } .service-card { background-color: white; border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--box-shadow); transition: var(--transition); text-align: center; border: 1px solid #eee; } .service-card:hover { transform: translateY(-10px); } .service-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; } /* Projects Section */ .projects { background-color: var(--light-color); } .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; } .project-card { background-color: white; border-radius: var(--border-radius); padding: 1.5rem; box-shadow: var(--box-shadow); transition: var(--transition); display: flex; flex-direction: column; } .project-card:hover { transform: translateY(-5px); } .project-card h3 { color: var(--secondary-color); margin-bottom: 0.5rem; } .project-card .tech { font-size: 0.9rem; color: var(--text-light); margin-top: auto; /* Pushes tech to bottom */ padding-top: 1rem; } /* Contact Section */ .contact { background-color: white; } .form-container { max-width: 700px; margin: 0 auto; background-color: white; padding: 2rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; } .form-control { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: var(--border-radius); font-family: inherit; transition: var(--transition); } .form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(44, 95, 139, 0.2); } textarea.form-control { min-height: 120px; resize: vertical; } /* Form Validation & Status Styles */ .error-message { color: var(--error-color); font-size: 0.875rem; margin-top: 0.25rem; display: none; } .error-input { border-color: var(--error-color) !important; box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important; } .status-message { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); padding: 15px 25px; border-radius: var(--border-radius); box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 10001; display: flex; align-items: center; gap: 15px; color: white; animation: fadeInDown 0.5s ease-out; } .status-message.success { background-color: var(--success-color); } .status-message.error { background-color: var(--error-color); } .status-message i { font-size: 24px; } .status-message.fade-out { animation: fadeOutUp 0.5s ease-in forwards; } @keyframes fadeInDown { from { opacity: 0; transform: translate(-50%, -20px); } to { opacity: 1; transform: translate(-50%, 0); } } @keyframes fadeOutUp { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, -20px); } } /* Footer */ footer { background-color: var(--dark-color); color: white; padding: 3rem 0 1rem; } .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; } .footer-column h3 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; } .footer-links { list-style: none; } .footer-links li { margin-bottom: 0.8rem; } .footer-links a { color: rgba(255, 255, 255, 0.7); } .footer-links a:hover { color: white; } .contact-info p { margin-bottom: 1rem; color: rgba(255, 255, 255, 0.7); display: flex; align-items: center; gap: 10px; } .contact-info a { color: rgba(255, 255, 255, 0.7); } .contact-info a:hover { color: white; } .social-links { display: flex; gap: 1rem; margin-top: 1rem; } .social-links a { color: white; font-size: 1.5rem; } .social-links a:hover { color: var(--accent-color); } .copyright { text-align: center; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; } /* Responsive Styles */ @media (max-width: 992px) { .hero { margin-top: 0; } } @media (max-width: 768px) { body { line-height: 1.5; } .header-container { padding: 1rem; } .hero { padding: 6rem 0 4rem; } .nav-links { display: none; position: absolute; top: 100%; /* Position below header */ right: 0; background-color: white; width: 100%; flex-direction: column; align-items: center; padding: 1rem 0; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); } .nav-links.active { display: flex; } .nav-links li { margin: 0.75rem 0; margin-right: 0; } .mobile-menu-btn { display: block; } .section { padding: 3rem 0; } .section-title { font-size: 1.8rem; } .about-content, .container { padding: 0 1.5rem; } } @media (max-width: 576px) { .hero h1 { font-size: 1.8rem; } .hero p { font-size: 1rem; } .btn { padding: 0.7rem 1.2rem; font-size: 0.9rem; } .skills-services-grid, .projects-grid, .footer-content { grid-template-columns: 1fr; } .social-links { justify-content: center; } .footer-content { text-align: center; } .contact-info p { justify-content: center; } .g-recaptcha { justify-content: center;} }