:root {
            --primary: #bc2649;
            --primary-light: #d4496b;
            --primary-dark: #8a1c36;
            --secondary: #f0c808;
            --secondary-light: #f4d860;
            --light: #f8f5f6;
            --dark: #1e0a0e;
            --gray: #7a6369;
            --light-gray: #e9e1e3;
            --white: #ffffff;
            --transition: all 0.4s ease;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        section {
            padding: 100px 0;
            position: relative;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 60px;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.8rem;
            color: var(--primary);
            display: inline-block;
            padding-bottom: 15px;
            position: relative;
            font-weight: 700;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--secondary);
            border-radius: 2px;
        }
        
        .btn {
            display: inline-block;
            background: var(--primary);
            color: white;
            padding: 14px 35px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid var(--primary);
            font-size: 1.1rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: var(--white);
            transition: var(--transition);
            z-index: -1;
        }
        
        .btn:hover::before {
            width: 100%;
        }
        
        .btn:hover {
            color: var(--primary);
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(188, 38, 73, 0.2);
        }
        
        .btn-accent {
            background: var(--secondary);
            border-color: var(--secondary);
            color: var(--dark);
        }
        
        .btn-accent:hover {
            color: var(--dark);
        }
        
        /* الشريط العلوي مع تحسينات */
        header {
            background-color: var(--white);
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            transition: var(--transition);
        }
        
        header.scrolled {
            padding: 5px 0;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            transition: var(--transition);
        }
        
        .logo {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
        }
        
        .logo i {
            margin-left: 10px;
            color: var(--secondary);
        }
        
        .nav-links {
            display: flex;
            list-style: none;
        }
        
        .nav-links li {
            margin-left: 30px;
        }
        
        .nav-links a {
            text-decoration: none;
            color: var(--dark);
            font-weight: 600;
            transition: var(--transition);
            position: relative;
            font-size: 1.1rem;
        }
        
        .nav-links a:hover {
            color: var(--primary);
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--primary);
            transition: var(--transition);
            border-radius: 3px;
        }
        
        .nav-links a:hover::after {
            width: 100%;
        }
        
        .hamburger {
            display: none;
            cursor: pointer;
            font-size: 1.5rem;
            color: var(--primary);
        }
        
        /* القسم الرئيسي مع تحسينات */
        .hero {
            padding-top: 180px;
            padding-bottom: 120px;
            background: linear-gradient(135deg, #f8f5f6 0%, #e8e0e2 100%);
            position: relative;
            overflow: hidden;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: -100px;
            right: -100px;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: rgba(188, 38, 73, 0.1);
            z-index: 0;
        }
        
        .hero::after {
            content: '';
            position: absolute;
            bottom: -150px;
            left: -100px;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: rgba(240, 200, 8, 0.1);
            z-index: 0;
        }
        
        .hero-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 1;
        }
        
        .hero-text {
            flex: 1;
            padding-right: 50px;
            animation: fadeInLeft 1s ease;
        }
        
        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .hero-text h1 {
            font-size: 3.8rem;
            margin-bottom: 25px;
            color: var(--dark);
            line-height: 1.2;
        }
        
        .hero-text h1 span {
            color: var(--primary);
            position: relative;
            display: inline-block;
        }
        
        .hero-text h1 span::after {
            content: '';
            position: absolute;
            bottom: 10px;
            left: 0;
            width: 100%;
            height: 15px;
            background: rgba(240, 200, 8, 0.4);
            z-index: -1;
        }
        
        .hero-text p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            color: var(--gray);
            max-width: 600px;
        }
        
        .hero-buttons {
            display: flex;
            gap: 20px;
        }
        
        .hero-image {
            flex: 1;
            text-align: center;
            position: relative;
            animation: fadeInRight 1s ease;
        }
        
        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .hero-image .circle {
            width: 420px;
            height: 420px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            display: inline-block;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(188, 38, 73, 0.3);
            border: 8px solid var(--white);
        }
        
        .hero-image .circle::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 360px;
            height: 380px;
            border-radius: 50%;
           background: url('../assets/imgs/profile.jpg') center/cover no-repeat;
            border: 5px solid var(--white);
        }
        
        /* قسم عني مع تحسينات */
        .about {
            background-color: var(--white);
        }
        
        .about-content {
            display: flex;
            align-items: center;
            gap: 60px;
        }
        
        .about-image {
            flex: 1;
            text-align: center;
            position: relative;
        }
        
        .about-image img {
            max-width: 100%;
            border-radius: 15px;
            box-shadow: 0 15px 40px rgba(188, 38, 73, 0.2);
            border: 8px solid var(--light);
            transition: var(--transition);
        }
        
        .about-image img:hover {
            transform: translateY(-10px);
        }
        
        .about-text {
            flex: 1;
        }
        
        .about-text h3 {
            font-size: 2.2rem;
            margin-bottom: 25px;
            color: var(--primary-dark);
            position: relative;
            display: inline-block;
        }
        
        .about-text h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--secondary);
            border-radius: 2px;
        }
        
        .about-text p {
            margin-bottom: 25px;
            color: var(--gray);
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        .skills {
            margin-top: 40px;
        }
        
        .skill {
            margin-bottom: 25px;
        }
        
        .skill-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            font-weight: 600;
        }
        
        .skill-bar {
            height: 10px;
            background-color: var(--light-gray);
            border-radius: 5px;
            overflow: hidden;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
        }
        
        .skill-progress {
            height: 100%;
            background: linear-gradient(to right, var(--primary), var(--primary-dark));
            border-radius: 5px;
            width: 0;
            transition: width 1.5s ease-in-out;
        }
        
        /* قسم الخدمات مع تحسينات */
        .services {
            background-color: #fdfafa;
            position: relative;
            overflow: hidden;
        }
        
        .services::before {
            content: '';
            position: absolute;
            top: 50px;
            right: -100px;
            width: 250px;
            height: 250px;
            border-radius: 50%;
            background: rgba(188, 38, 73, 0.08);
            z-index: 0;
        }
        
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 35px;
            position: relative;
            z-index: 1;
        }
        
        .service-card {
            background: var(--white);
            border-radius: 15px;
            padding: 40px 30px;
            box-shadow: 0 8px 25px rgba(188, 38, 73, 0.1);
            transition: var(--transition);
            text-align: center;
            border-top: 5px solid var(--primary);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            background: var(--primary);
            transition: var(--transition);
            z-index: -1;
            opacity: 0.1;
        }
        
        .service-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(188, 38, 73, 0.2);
        }
        
        .service-card:hover::before {
            height: 100%;
        }
        
        .service-icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            transition: var(--transition);
        }
        
        .service-card:hover .service-icon {
            transform: scale(1.1) rotate(5deg);
            background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
        }
        
        .service-icon i {
            font-size: 35px;
            color: var(--white);
        }
        
        .service-card h3 {
            font-size: 1.6rem;
            margin-bottom: 20px;
            color: var(--primary-dark);
        }
        
        .service-card p {
            color: var(--gray);
            line-height: 1.7;
        }
        
        /* قسم المشاريع مع تحسينات */
        .portfolio {
            background-color: var(--white);
        }
        
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .portfolio-item {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(188, 38, 73, 0.15);
            position: relative;
            height: 280px;
            border: 1px solid var(--light-gray);
            transition: var(--transition);
        }
        
        .portfolio-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(188, 38, 73, 0.25);
        }
        
        .portfolio-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(188, 38, 73, 0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: var(--transition);
            padding: 20px;
            text-align: center;
        }
        
        .portfolio-item:hover .portfolio-overlay {
            opacity: 1;
        }
        
        .portfolio-item:hover img {
            transform: scale(1.1);
        }
        
        .portfolio-overlay h3 {
            color: var(--white);
            margin-bottom: 15px;
            font-size: 1.6rem;
        }
        
        .portfolio-overlay p {
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 20px;
            font-size: 1.1rem;
        }
        
        .portfolio-category {
            position: absolute;
            top: 20px;
            left: 20px;
            background: var(--secondary);
            color: var(--dark);
            padding: 7px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 3px 10px rgba(0,0,0,0.1);
        }
        
        /* قسم الاتصال مع تحسينات */
        .contact {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: var(--white);
            position: relative;
            overflow: hidden;
        }
        
        .contact::before {
            content: '';
            position: absolute;
            top: -100px;
            left: -100px;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            background: rgba(255,255,255,0.05);
            z-index: 0;
        }
        
        .contact::after {
            content: '';
            position: absolute;
            bottom: -150px;
            right: -100px;
            width: 400px;
            height: 400px;
            border-radius: 50%;
            background: rgba(240, 200, 8, 0.08);
            z-index: 0;
        }
        
        .contact .section-title h2 {
            color: var(--white);
        }
        
        .contact-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 50px;
            position: relative;
            z-index: 1;
        }
        
        .contact-info {
            padding-right: 20px;
        }
        
        .contact-info h3 {
            font-size: 2rem;
            margin-bottom: 25px;
            position: relative;
            display: inline-block;
        }
        
        .contact-info h3::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 80px;
            height: 4px;
            background: var(--secondary);
            border-radius: 2px;
        }
        
        .contact-info p {
            margin-bottom: 35px;
            opacity: 0.9;
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 25px;
        }
        
        .contact-item {
            display: flex;
            align-items: flex-start;
            gap: 20px;
        }
        
        .contact-icon {
            width: 55px;
            height: 55px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            transition: var(--transition);
        }
        
        .contact-item:hover .contact-icon {
            background: var(--secondary);
            transform: scale(1.1);
        }
        
        .contact-item:hover .contact-icon i {
            color: var(--dark);
        }
        
        .contact-icon i {
            font-size: 22px;
            transition: var(--transition);
        }
        
        .contact-text h4 {
            margin-bottom: 8px;
            font-size: 1.2rem;
        }
        
        .contact-text p {
            opacity: 0.9;
            font-size: 1.05rem;
        }
        
        .contact-form {
            background: var(--white);
            padding: 40px 30px;
            border-radius: 15px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }
        
        .contact-form h3 {
            font-size: 1.8rem;
            margin-bottom: 25px;
            color: var(--primary-dark);
            text-align: center;
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: var(--dark);
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px 20px;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            font-size: 1.05rem;
            transition: var(--transition);
            background: var(--light);
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--primary);
            outline: none;
            box-shadow: 0 0 0 3px rgba(188, 38, 73, 0.1);
        }
        
        .form-group textarea {
            resize: vertical;
            min-height: 160px;
        }
        
        /* التذييل مع تحسينات */
        footer {
            background: var(--dark);
            color: var(--white);
            padding: 60px 0 20px;
            position: relative;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 50px;
        }
        
        .footer-logo {
            font-size: 2rem;
            font-weight: 800;
            color: var(--white);
            margin-bottom: 20px;
            display: inline-block;
        }
        
        .footer-about p {
            opacity: 0.8;
            margin-bottom: 25px;
            line-height: 1.8;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
        }
        
        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: var(--white);
            transition: var(--transition);
            font-size: 1.2rem;
        }
        
        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-5px);
        }
        
        .footer-links h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 12px;
        }
        
        .footer-links h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--accent);
        }
        
        .footer-links ul {
            list-style: none;
        }
        
        .footer-links ul li {
            margin-bottom: 12px;
        }
        
        .footer-links ul li a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            transition: var(--transition);
            font-size: 1.05rem;
            display: inline-block;
            padding: 5px 0;
        }
        
        .footer-links ul li a:hover {
            color: var(--secondary);
            transform: translateX(5px);
        }
        
        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
            font-size: 1.05rem;
        }
        
        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background: var(--primary);
            color: var(--white);
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            z-index: 999;
            font-size: 1.2rem;
            box-shadow: 0 5px 15px rgba(188, 38, 73, 0.3);
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            background: var(--primary-dark);
            transform: translateY(-5px);
        }
        
        /* التصميم المتجاوب */
        @media (max-width: 1100px) {
            .hero-image .circle {
                width: 350px;
                height: 350px;
            }
            
            .hero-image .circle::before {
                width: 310px;
                height: 310px;
            }
        }
        
        @media (max-width: 992px) {
            .hero-content {
                flex-direction: column;
                text-align: center;
            }
            
            .hero-text {
                padding-right: 0;
                margin-bottom: 60px;
            }
            
            .hero-buttons {
                justify-content: center;
            }
            
            .about-content {
                flex-direction: column;
            }
            
            .hero-text h1 {
                font-size: 3.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                top: 80px;
                right: -100%;
                background: var(--white);
                width: 80%;
                height: calc(100vh - 80px);
                flex-direction: column;
                align-items: center;
                padding-top: 60px;
                transition: var(--transition);
                box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
            }
            
            .nav-links.active {
                right: 0;
            }
            
            .nav-links li {
                margin: 20px 0;
            }
            
            .hamburger {
                display: block;
            }
            
            .section-title h2 {
                font-size: 2.3rem;
            }
            
            .hero-text h1 {
                font-size: 2.8rem;
            }
            
            .portfolio-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            
            .hero {
                padding-top: 150px;
            }
            
            section {
                padding: 80px 0;
            }
        }
        
        @media (max-width: 576px) {
            .hero-image .circle {
                width: 280px;
                height: 280px;
            }
            
            .hero-image .circle::before {
                width: 250px;
                height: 250px;
            }
            
            .hero-buttons {
                flex-direction: column;
                align-items: center;
                gap: 15px;
            }
            
            .btn {
                width: 100%;
                max-width: 300px;
                text-align: center;
            }
            
            .hero-text h1 {
                font-size: 2.3rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
        }