 @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

        :root {
            /* Light theme variables */
            --bg-primary: #ffffff;
            --bg-secondary: #f9fafb;
            --bg-tertiary: #f3f4f6;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --text-muted: #6b7280;
            --accent-primary: #dc2626;
            --accent-secondary: #ef4444;
            --navbar-bg: rgba(255, 255, 255, 0.95);
            --navbar-hover: rgba(255, 255, 255, 1);
            --card-bg: rgba(255, 255, 255, 0.9);
            --border-color: rgba(220, 220, 220, 0.3);
            --shadow: rgba(0, 0, 0, 0.08);
            --shadow-hover: rgba(0, 0, 0, 0.15);
        }

        [data-theme="dark"] {
            /* Dark theme variables */
            --bg-primary: #111827;
            --bg-secondary: #1f2937;
            --bg-tertiary: #374151;
            --text-primary: #f9fafb;
            --text-secondary: #e5e7eb;
            --text-muted: #d1d5db;
            --accent-primary: #ef4444;
            --accent-secondary: #f87171;
            --navbar-bg: rgba(31, 41, 55, 0.95);
            --navbar-hover: rgba(31, 41, 55, 1);
            --card-bg: rgba(55, 65, 81, 0.9);
            --border-color: rgba(75, 85, 99, 0.3);
            --shadow: rgba(0, 0, 0, 0.3);
            --shadow-hover: rgba(0, 0, 0, 0.5);
        }

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

        html {
    scroll-behavior: smooth;
}


        body {
            font-family: 'Tajawal', sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            scroll-behavior: smooth;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .navbar {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--navbar-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 25px;
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 100 !important;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px var(--shadow);
            width: 90%;
            max-width: 1000px;
        }

        .navbar:hover {
            background: var(--navbar-hover);
            box-shadow: 0 12px 40px var(--shadow-hover);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .logo-icon {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 18px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .logo-icon:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
        }

        .nav-items {
            display: flex;
            align-items: center;
            gap: 30px;
            flex: 1;
            justify-content: center;
            margin-left: 40px;
        }

        .nav-item {
            position: relative;
            cursor: pointer;
            padding: 10px 0;
            color: var(--text-muted);
            font-weight: 500;
            transition: all 0.3s ease;
            text-decoration: none;
            white-space: nowrap;
        }

        .nav-item:hover {
            color: var(--accent-primary);
            transform: translateY(-2px);
        }

        .nav-item::before {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
            transition: width 0.3s ease;
            border-radius: 2px;
        }

        .nav-item:hover::before {
            width: 100%;
        }

        .nav-item.active {
            color: var(--accent-primary);
        }

        .nav-item.active::before {
            width: 100%;
        }

        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-left: 15px;
            width: 40px;
            height: 40px;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--border-color);
        }

        .theme-toggle:hover {
            transform: scale(1.1);
            background: var(--accent-primary);
            color: white;
        }

        .theme-toggle svg {
            width: 20px;
            height: 20px;
            transition: all 0.3s ease;
            color: currentColor;
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text-primary);
            cursor: pointer;
            padding: 5px;
            flex-shrink: 0;
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            gap: 3px;
        }

        .hamburger span {
            width: 25px;
            height: 2px;
            background: var(--text-primary);
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .menu-toggle.active .hamburger span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
            background: var(--accent-primary);
        }

        .menu-toggle.active .hamburger span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active .hamburger span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
            background: var(--accent-primary);
        }

        .mobile-menu {
            position: fixed;
            top: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--navbar-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            padding: 20px;
            display: none;
            flex-direction: column;
            gap: 15px;
            width: 90%;
            max-width: 300px;
            z-index: 100 !important;
            box-shadow: 0 8px 32px var(--shadow);
        }

        .mobile-menu.active {
            display: flex;
            animation: slideDown 0.3s ease;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* Sections Styles */
        .section {
            min-height: 100vh;
            padding: 120px 20px 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: var(--bg-primary);
            transition: background-color 0.3s ease;
        }

        .section-content {
            max-width: 1200px;
            width: 100%;
            text-align: center;
            z-index: 2;
            position: relative;
        }

        /* Home Section */
        #home {
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
        }



        /* Services Section */
        #services {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
        }

        

        /* Portfolio Section */
        #portfolio {
            background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
        }

        


        /* About Section */
        #about {
            background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
        }

       

        /* Contact Section */
        #contact {
            background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
        }

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

        @media (max-width: 768px) {
            .navbar {
                padding: 12px 20px;
                width: 95%;
            }

            .nav-items {
                display: none;
            }

            .menu-toggle {
                display: block;
            }

            .theme-toggle {
                margin-left: 10px;
                width: 35px;
                height: 35px;
            }

            .theme-toggle svg {
                width: 18px;
                height: 18px;
            }

            #home h1 {
                font-size: 2.5em;
            }

            .section h2 {
                font-size: 2em !important;
            }

            
        }

        .floating-particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: rgba(220, 38, 38, 0.1);
            border-radius: 50%;
            animation: float 6s infinite linear;
        }

        [data-theme="dark"] .particle {
            background: rgba(239, 68, 68, 0.2);
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* home */
        /* Hero Container */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Visual Side */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 500px;
}

.floating-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

[data-theme="dark"] .logo-circle {
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4);
}

.logo-text {
    font-size: 2.5em;
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

[data-theme="dark"] .ring {
    border-color: rgba(239, 68, 68, 0.3);
}

.ring-1 {
    width: 280px;
    height: 280px;
    animation: ringRotate 8s linear infinite;
}

.ring-2 {
    width: 360px;
    height: 360px;
    animation: ringRotate 12s linear infinite reverse;
    border-style: dashed;
}

.ring-3 {
    width: 440px;
    height: 440px;
    animation: ringRotate 16s linear infinite;
    opacity: 0.5;
}

/* Hero Content Side */
.hero-content {
    text-align: right;
    animation: slideInRight 1s ease-out;
}

.hero-title {
    margin-top: 20px;
    margin-bottom: 30px;
}

.title-main {
    display: block;
    font-size: 4em;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    line-height: 1.1;
}

.title-sub {
    display: block;
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.9;
}

.hero-description {
    margin-bottom: 50px;
    max-width: 600px;
}

.desc-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.desc-block:nth-child(2) {
    animation-delay: 0.2s;
}

.desc-block:nth-child(3) {
    animation-delay: 0.4s;
}

.desc-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-hover);
    border-color: var(--accent-primary);
}

.desc-icon {
    font-size: 2em;
    flex-shrink: 0;
    filter: grayscale(0);
    transition: all 0.3s ease;
}

.desc-block:hover .desc-icon {
    transform: scale(1.2);
}

.desc-block p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1em;
    margin: 0;
}