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

:root {
    --primary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --lighter-blue: #60a5fa;
    --black: #000000;
    --white: #ffffff;
    --gold: #fbbf24;
    --gold-dark: #f59e0b;
    --gray-light: #f8fafc;
    --gray-dark: #1e293b;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Authentication Section Styles */
.auth-section {
    margin-left: 20px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.auth-btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-btn {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: transparent;
}

.login-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 109, 217, 0.3);
}

.signup-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 109, 217, 0.4);
}

.user-menu {
    position: relative;
    display: none;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-name {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 10px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--bg-color);
    color: var(--primary-blue);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(ellipse at center, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Magical Gradient Orbs */
.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--light-blue) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

.orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--lighter-blue) 0%, transparent 70%);
    top: 30%;
    right: 40%;
    animation-delay: 1s;
}

.orb-5 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--gold-dark) 0%, transparent 70%);
    bottom: 50%;
    left: 20%;
    animation-delay: 3s;
}

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

/* Enhanced Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    animation: magicalFloat 12s ease-in-out infinite;
}

.shape-inner {
    width: 100%;
    height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.3), transparent);
    animation: morphShape 8s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 12%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 8%;
    right: 25%;
    animation-delay: 1s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 40%;
    right: 8%;
    animation-delay: 3s;
}

.shape-6 {
    width: 110px;
    height: 110px;
    top: 45%;
    left: 5%;
    animation-delay: 5s;
}
/* Grid Pattern Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Particles Container */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: right;
}

/* Animated Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(90, 87, 3, 0.1);
}



/* Enhanced Description */
.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.8;
}

.highlight-word {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
    animation: highlightPulse 2s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6));
    }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: flex-end;
}

.hero-stats .stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 5px;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Magical Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-magical {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    border: none;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
}

.btn-magical::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.btn-magical:hover::before {
    animation: shimmer 0.6s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

.btn-sparkles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 12px;
    animation: sparkleFloat 2s ease-in-out infinite;
    opacity: 0;
}

/* Enhanced Modern Buttons */
.btn {
    min-width: 120px;
    position: relative;
    cursor: pointer;
    padding: 12px 17px;
    border: 0;
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    background: radial-gradient(
        ellipse at bottom,
        rgba(71, 81, 92, 1) 0%,
        rgba(11, 21, 30, 1) 45%
    );
    color: rgba(255, 255, 255, 0.66);
    transition: all 1s cubic-bezier(0.15, 0.83, 0.66, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Cairo', 'Poppins', sans-serif;
}

.btn::before {
    content: "";
    width: 70%;
    height: 1px;
    position: absolute;
    bottom: 0;
    left: 15%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.2;
    transition: all 1s cubic-bezier(0.15, 0.83, 0.66, 1);
}

.btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1) translateY(-3px);
}

.btn:hover::before {
    opacity: 1;
}

/* Primary Button with Golden Accent */
.btn-primary {
    background: radial-gradient(
        ellipse at bottom,
        rgba(251, 191, 36, 0.8) 0%,
        rgba(245, 158, 11, 1) 45%
    );
    box-shadow: 
        inset 0 0 0 1px rgba(251, 191, 36, 0.3),
        0 10px 30px rgba(251, 191, 36, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
    box-shadow: 
        inset 0 0 0 1px rgba(251, 191, 36, 0.5),
        0 15px 40px rgba(251, 191, 36, 0.4);
    transform: scale(1.1) translateY(-5px);
}

.btn-primary::before {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Secondary Button with Blue Accent */
.btn-secondary {
    background: radial-gradient(
        ellipse at bottom,
        rgba(59, 130, 246, 0.6) 0%,
        rgba(30, 58, 138, 1) 45%
    );
    box-shadow: 
        inset 0 0 0 1px rgba(59, 130, 246, 0.3),
        0 10px 30px rgba(59, 130, 246, 0.2);
}

.btn-secondary:hover {
    box-shadow: 
        inset 0 0 0 1px rgba(59, 130, 246, 0.5),
        0 15px 40px rgba(59, 130, 246, 0.4);
    transform: scale(1.1) translateY(-5px);
}

/* Glass Button Enhancement */
.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
}

/* Button Icons */
.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

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

/* Button Text */
.btn-text {
    position: relative;
    z-index: 2;
}

/* Full Width Button */
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 1.1rem;
}

/* Mouse Follower Effect */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--gold), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    opacity: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(ellipse at top, 
        rgba(59, 130, 246, 0.3) 0%,
        rgba(30, 58, 138, 0.2) 30%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 100%);
    border-radius: 50% 50% 0 0;
    z-index: 1;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateX(-10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--gold);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    border-radius: 20px;
    color: var(--white);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: var(--gold);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--gray-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    color: var(--white);
}

.service-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.service-card:hover .service-description {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
    text-align: right;
}

.service-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-weight: bold;
}

.service-card:hover .service-features li {
    color: rgba(255, 255, 255, 0.9);
}

/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(ellipse at top, 
        rgba(59, 130, 246, 0.3) 0%,
        rgba(30, 58, 138, 0.2) 30%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 100%);
    border-radius: 50% 50% 0 0;
    z-index: 1;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}

/* Project Categories */
.project-category {
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.project-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.category-title::before,
.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    max-width: 200px;
}

.category-title i {
    font-size: 1.8rem;
    color: var(--gold);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 58, 138, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 1;
}

.project-card:hover::before {
    transform: scale(1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

.project-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Medical Category Icons */
.project-icon.medical {
    background: linear-gradient(45deg, #dc2626, #ef4444);
}

.project-card:hover .project-icon.medical {
    background: linear-gradient(45deg, #b91c1c, #dc2626);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

/* Smart Systems Category Icons */
.project-icon.smart {
    background: linear-gradient(45deg, #059669, #10b981);
}

.project-card:hover .project-icon.smart {
    background: linear-gradient(45deg, #047857, #059669);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

/* Management Systems Category Icons */
.project-icon.management {
    background: linear-gradient(45deg, #7c3aed, #8b5cf6);
}

.project-card:hover .project-icon.management {
    background: linear-gradient(45deg, #6d28d9, #7c3aed);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

/* Default project icon (fallback) */
.project-icon:not(.medical):not(.smart):not(.management) {
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
}

.project-card:hover .project-icon:not(.medical):not(.smart):not(.management) {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
    position: relative;
    z-index: 2;
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Vision Section */
.vision {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
}

.vision-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 3rem;
    color: var(--gold);
}

.vision-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.vision-text {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-hover);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--gray-light);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Magical Loading Screen */
.magical-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-content {
    text-align: center;
    color: var(--white);
}

.loading-logo {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    animation: logoGlow 2s ease-in-out infinite;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.loading-orb {
    width: 15px;
    height: 15px;
    background: var(--gold);
    border-radius: 50%;
    animation: orbBounce 1.4s ease-in-out infinite both;
}

.loading-orb:nth-child(1) { animation-delay: -0.32s; }
.loading-orb:nth-child(2) { animation-delay: -0.16s; }

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
        transform: scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(251, 191, 36, 0.8));
        transform: scale(1.05);
    }
}

@keyframes orbBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-text {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced Responsive Design for Hero */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .tech-animation {
        width: 350px;
        height: 350px;
    }
    
    .diamond-container {
        width: 300px;
        height: 300px;
    }

    .diamond-shape {
        width: 220px;
        height: 220px;
    }
}

/* Diamond Tech Animation */
.tech-animation {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.diamond-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond-shape {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.2));
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    transform: rotate(45deg);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 0 50px rgba(251, 191, 36, 0.3),
        inset 0 0 50px rgba(251, 191, 36, 0.1);
    animation: diamondFloat 6s ease-in-out infinite;
}


.diamond-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.dot-inner {
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    animation: dotPulse 2s ease-in-out infinite;
}

.dot-pulse {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(251, 191, 36, 0.6);
    border-radius: 50%;
    animation: pulsExpand 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(251, 191, 36, 1);
    }
}

@keyframes pulsExpand {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    100% { 
        transform: scale(3);
        opacity: 0;
    }
}

/* Dot Positions (transformed back due to parent rotation) */
.dot-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-delay: 0s;
}

.dot-top {
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-delay: 0.4s;
}

.dot-right {
    top: 50%;
    right: 0%;
    transform: translate(50%, -50%) rotate(-45deg);
    animation-delay: 0.8s;
}

.dot-bottom {
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
    animation-delay: 1.2s;
}

.dot-left {
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) rotate(-45deg);
    animation-delay: 1.6s;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    animation: lineGlow 3s ease-in-out infinite;
}

.line-vertical {
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 2px;
    transform: translateX(-50%) rotate(-45deg);
    animation-delay: 0s;
}

.line-horizontal {
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    transform: translateY(-50%) rotate(-45deg);
    animation-delay: 0.5s;
}

.line-diagonal-1 {
    top: 20%;
    bottom: 20%;
    left: 20%;
    right: 20%;
    width: 2px;
    transform: rotate(0deg);
    animation-delay: 1s;
}

.line-diagonal-2 {
    top: 20%;
    bottom: 20%;
    left: 20%;
    right: 20%;
    width: 2px;
    transform: rotate(90deg);
    animation-delay: 1.5s;
}

@keyframes lineGlow {
    0%, 100% { 
        opacity: 0.3;
        background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
    }
    50% { 
        opacity: 1;
        background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8), transparent);
    }
}

/* Rotating Ring */
.diamond-ring {
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

.ring-segment {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
}

.segment-1 {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    animation: segmentPulse 2s ease-in-out infinite;
}

.segment-2 {
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    animation: segmentPulse 2s ease-in-out infinite 0.5s;
}

.segment-3 {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    animation: segmentPulse 2s ease-in-out infinite 1s;
}

.segment-4 {
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    animation: segmentPulse 2s ease-in-out infinite 1.5s;
}

@keyframes ringRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes segmentPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateX(-50%) scale(1.3);
        opacity: 1;
    }
}

/* Segment position adjustments */
.segment-2 {
    animation: segmentPulse2 2s ease-in-out infinite 0.5s;
}

.segment-4 {
    animation: segmentPulse2 2s ease-in-out infinite 1.5s;
}

@keyframes segmentPulse2 {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-50%) scale(1.3);
        opacity: 1;
    }
}

/* Enhanced title section styles */
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
    position: relative;
}

.title-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    border-radius: 10px;
    animation: shimmer 2s linear infinite;
    z-index: -1;
}

.title-sub {
    display: block;
    font-size: 0.6em;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 0.5rem;
    position: relative;
}

.typing-prefix {
    color: #94a3b8;
    margin-left: 0.5rem;
    font-size: 0.9em;
}

.typing-text {
    color: #3b82f6;
    font-weight: 700;
    position: relative;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0.25rem;
}

.typing-cursor {
    color: #fbbf24;
    font-weight: 400;
    animation: blink 1s infinite;
    font-size: 1.2em;
    margin-right: 0.1rem;
}

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 0 20px rgba(251, 191, 36, 0.3),
            0 0 40px rgba(251, 191, 36, 0.2),
            0 0 60px rgba(251, 191, 36, 0.1);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(251, 191, 36, 0.5),
            0 0 60px rgba(251, 191, 36, 0.3),
            0 0 90px rgba(251, 191, 36, 0.2);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .title-sub {
        font-size: 0.7em;
    }
    
    .typing-prefix {
        font-size: 0.9em;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-logo,
    .footer-links,
    .footer-social {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 60px 0;
    }

    .tech-animation {
        width: 300px;
        height: 300px;
    }
    
    .diamond-container {
        width: 250px;
        height: 250px;
    }
    .diamond-shape {
        width: 180px;
        height: 180px;
    }
}

/* Glowing Half Circle Effect for White Background Sections */
.section-with-glow {
    position: relative;
    overflow: hidden;
}

.section-with-glow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 200px;
    background: radial-gradient(ellipse at top, 
        rgba(59, 130, 246, 0.3) 0%,
        rgba(30, 58, 138, 0.2) 30%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 100%);
    border-radius: 50% 50% 0 0;
    z-index: 1;
    pointer-events: none;
   animation: glowPulse 4s ease-in-out infinite; 
}

/* Apply glow effect to specific sections */
.about,
.projects,
.contact,
.services,
.footer {
    position: relative;
    overflow: hidden;
}

.about::after,
.projects::after,
.contact::after,
.services::after,
.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 400px;
    background: radial-gradient(ellipse at top, 
        rgba(59, 130, 246, 0.99)  0%,
        rgba(30, 58, 138, 0.2) 30%,
        rgba(59, 130, 246, 0.1) 60%,
        transparent 100%);
    border-radius: 50% 50% 0 0;
    z-index: 1;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite; 
}

/* Ensure content in white sections stays above the glow effect */
.about .container,
.projects .container,
.contact .container,
.services .container,
.footer .container {
    position: relative;
    z-index: 2;
}

/* Project Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(30, 58, 138, 0.1);
    border-radius: 25px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    transition: all 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    color: white;
    border-color: var(--light-blue);
}

.filter-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.filter-btn:hover i,
.filter-btn.active i {
    transform: scale(1.1) rotate(5deg);
}

/* Project Card Filter Animation */
.project-card {
    transition: all 0.4s ease;
    transform-origin: center;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    margin: 0;
    height: 0;
    overflow: hidden;
    padding: 0;
}

.project-card.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Enhanced Project Category Animation */
.project-category {
    transition: all 0.4s ease;
    overflow: hidden;
}

.project-category.hidden {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateY(-20px);
    padding: 0;
}

.project-category.visible {
    opacity: 1;
    max-height: none;
    margin-bottom: 80px;
    transform: translateY(0);
    padding: initial;
}

.project-category:last-child.visible {
    margin-bottom: 0;
}

/* Filter Animation Counter */
.projects-count {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    opacity: 0.8;
    transition: all 0.3s ease;
    background: rgba(59, 130, 246, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 0 auto 30px;
    width: auto;
}

.projects-count.show {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Filter Button States */
.filter-btn.active {
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    color: white;
    border-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.filter-btn.active::before {
    left: 0;
}

.filter-btn.active i {
    transform: scale(1.1) rotate(5deg);
}

/* Smooth grid transition */
.projects-grid {
    transition: all 0.3s ease;
}

/* Welcome Dialog Styles */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    /* transition: all 0.3s ease; */
}

.welcome-overlay.show {
    opacity: 1;
    visibility: visible;
}

.welcome-dialog {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(50px);
    /* transition: all 0.3s ease; */
    position: relative;
}

.welcome-overlay.show .welcome-dialog {
    transform: scale(1) translateY(0);
}

.welcome-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-indicator {
    display: flex;
    gap: 8px;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    /* transition: all 0.3s ease; */
    cursor: pointer;
}

.step-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.step-dot.completed {
    background: var(--gold);
}

.close-dialog {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /* transition: all 0.3s ease; */
}

.close-dialog:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.welcome-content {
    padding: 2rem;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.welcome-step {
    text-align: center;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    transform: translateX(50px);
    /* transition: all 0.4s ease; */
}

.welcome-step.active {
    opacity: 1;
    visibility: visible;
    position: static;
    transform: translateX(0);
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
   
}


.welcome-step h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.welcome-step p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: right;
}

.welcome-footer {
    background: var(--gray-light);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.step-counter {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.step-counter #currentStep {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.welcome-buttons {
    display: flex;
    gap: 1rem;
}

.btn-prev, .btn-next, .btn-finish {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cairo', sans-serif;
}

.btn-prev {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-prev:hover {
    background: var(--gray-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-next, .btn-finish {
    background: linear-gradient(45deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-next:hover, .btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-finish {
    background: linear-gradient(45deg, var(--gold), var(--gold-dark));
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-finish:hover {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .welcome-dialog {
        width: 95%;
        margin: 1rem;
    }
    
    .welcome-content {
        padding: 1.5rem;
        min-height: 250px;
    }
    
    .welcome-step {
        left: 1.5rem;
        right: 1.5rem;
        top: 1.5rem;
    }
    
    .welcome-step.active {
        position: static;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .welcome-step h2 {
        font-size: 1.25rem;
    }
    
    .welcome-step p {
        font-size: 0.9rem;
    }
    
    .welcome-footer {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .welcome-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn-prev, .btn-next, .btn-finish {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .welcome-header {
        padding: 1rem;
    }
    
    .welcome-content {
        padding: 1rem;
        min-height: 220px;
    }
    
    .welcome-step {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .welcome-step h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .welcome-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-prev, .btn-next, .btn-finish {
        width: 100%;
        justify-content: center;
    }
}