/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body{
    overflow-x: hidden;
}

:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #1a3563;
    --accent-blue: #64b5f6;
    --dark-blue: #0a1931;
    --light-blue: #e3f2fd;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #343a40;
    --text-dark: #2c3e50;
    --text-light: #666666;
    --gradient-primary: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-accent: linear-gradient(135deg, #2a5298 0%, #64b5f6 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-dark: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    background-color: var(--light-gray);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Styles */
.top-bar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all var(--transition-fast);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar span {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity var(--transition-fast);
}

.top-bar span:hover {
    opacity: 0.9;
}

.top-bar i {
    font-size: 12px;
    color: var(--accent-blue);
}

.login-btn {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(42, 82, 152, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.login-btn:active {
    transform: translateY(0);
}

/* Advanced Login Button Styles */
.login-btn.advanced-login {
    background: linear-gradient(135deg, #2a5298, #1e3c72);
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 6px 20px rgba(42, 82, 152, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.login-btn.advanced-login::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: right 0.6s ease;
}

.login-btn.advanced-login:hover::before {
    right: 100%;
}

.login-btn.advanced-login:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.login-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.login-icon-wrapper i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.login-btn.advanced-login:hover .login-icon-wrapper i:first-child {
    transform: rotate(360deg) scale(1.2);
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.login-btn.advanced-login:hover .login-icon-wrapper i:last-child {
    transform: scale(1.3);
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.login-text {
    font-weight: 600;
    font-size: 11px;
    position: relative;
    z-index: 2;
    transition: all var(--transition-fast);
}

.login-btn.advanced-login:hover .login-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.login-spinner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid var(--white);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-fast);
    animation: spin 1s linear infinite;
    z-index: 3;
}

.login-btn.loading .login-spinner {
    opacity: 1;
}

.login-btn.loading .login-icon-wrapper,
.login-btn.loading .login-text {
    opacity: 0;
}

.login-btn.success {
    background: linear-gradient(135deg, #4caf50, #45a049);
    border-color: #4caf50;
}

.login-btn.error {
    background: linear-gradient(135deg, #f44336, #da190b);
    border-color: #f44336;
    animation: shake 0.5s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Navigation Styles */
.navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    z-index: 9997;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 28px;
    color: var(--primary-blue);
    transition: all var(--transition-fast);
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 28px;
    color: var(--primary-blue);
    transition: all var(--transition-fast);
    font-family: 'Tajawal', sans-serif;
    position: relative;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(30, 60, 114, 0.15);
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(30, 60, 114, 0.2));
}

.logo-text:hover {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(30, 60, 114, 0.3));
    background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text img {
    height: 35px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    transition: all var(--transition-fast);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.15));
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: white;
    padding: 2px;
}

.logo-text:hover img {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.25));
    border-color: rgba(100, 181, 246, 0.6);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    perspective: 1000px;
    overflow: visible;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 8px 16px;
    border-radius: 8px;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
    min-width: fit-content;
    width: auto;
    white-space: nowrap;
    display: inline-block;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Advanced Hover Animation Container */
.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 60, 114, 0.1) 0%, rgba(100, 181, 246, 0.05) 50%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3c72, #2a5298, #64b5f6, transparent);
    background-size: 200% 100%;
    transform: translateX(50%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
}

/* Particle Effects */
.nav-link .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.nav-link .particle:nth-child(1) { top: -10px; right: 20%; animation-delay: 0s; }
.nav-link .particle:nth-child(2) { top: -5px; right: 40%; animation-delay: 0.1s; }
.nav-link .particle:nth-child(3) { top: -8px; right: 60%; animation-delay: 0.2s; }
.nav-link .particle:nth-child(4) { top: -6px; right: 80%; animation-delay: 0.3s; }

/* Glow Effect */
.nav-link .glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 50%;
    filter: blur(8px);
    z-index: -1;
}

/* Text Morphing Effect */
.nav-link .text-wrapper {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.nav-link .text-original {
    display: block;
    transition: all 0.3s ease;
    transform-origin: center;
    white-space: nowrap;
}

.nav-link .text-hover {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #1e3c72, #64b5f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotateX(90deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 700;
    white-space: nowrap;
}

/* Hover State */
.nav-link:hover {
    color: var(--primary-blue);
    transform: translateY(-2px) scale(1.05);
    background: rgba(100, 181, 246, 0.05);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.nav-link:hover::before {
    width: 140px;
    height: 140px;
    transform: translate(-50%, -50%) scale(1);
}

.nav-link:hover::after {
    width: 100%;
    right: 0;
    transform: translateX(0);
    background-position: 100% 0;
    box-shadow: 0 0 15px rgba(30, 60, 114, 0.5);
}

.nav-link:hover .particle {
    opacity: 1;
    animation: particleFloat 1.5s ease-out forwards;
}

.nav-link:hover .glow {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.5);
}

.nav-link:hover .text-original {
    transform: rotateX(-90deg);
    opacity: 0;
}

.nav-link:hover .text-hover {
    transform: rotateX(0deg);
    opacity: 1;
}

/* Active State */
.nav-link.active {
    color: var(--primary-blue);
    font-weight: 600;
    background: rgba(30, 60, 114, 0.08);
    box-shadow: 0 4px 15px rgba(30, 60, 114, 0.1);
}

.nav-link.active::after {
    width: 100%;
    right: 0;
    transform: translateX(0);
    background: linear-gradient(90deg, #1e3c72, #2a5298);
    box-shadow: 0 2px 10px rgba(30, 60, 114, 0.3);
}

.lets-begin-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all var(--transition-fast);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.lets-begin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: right 0.5s ease;
}

.lets-begin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.lets-begin-btn:hover::before {
    right: 100%;
}

/* Advanced Project Button Styles */
.lets-begin-btn.advanced-project-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    perspective: 1000px;
    min-width: 150px;
    text-transform: uppercase;
    letter-spacing: 1px;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
}

/* Blue Border Effect */
.lets-begin-btn.advanced-project-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue), var(--accent-blue), var(--primary-blue));
    background-size: 300% 300%;
    border-radius: 50px;
    z-index: -1;
    animation: blueBorder 3s ease infinite;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
}

@keyframes blueBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Shimmer Effect */
.lets-begin-btn.advanced-project-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
}

/* Button Content Wrapper */
.btn-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Icon Container */
.btn-icon-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Main Icon */
.btn-icon-main {
font-size: 12px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
z-index: 2;
color: var(--white);
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Sparkle Icon */
.btn-icon-sparkle {
font-size: 8px;
position: absolute;
top: -2px;
right: -2px;
opacity: 0;
transform: scale(0) rotate(0deg);
transition: all 0.3s ease;
color: var(--accent-blue);
z-index: 3;
filter: drop-shadow(0 0 6px rgba(100, 181, 246, 0.8));
}

/* Arrow Icon */
.btn-icon-arrow {
font-size: 12px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) translateX(-15px);
opacity: 0;
transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
z-index: 1;
color: var(--white);
filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Button Text */
.btn-text {
font-weight: 700;
font-size: 13px;
letter-spacing: 1px;
transition: all 0.3s ease;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
text-transform: uppercase;
position: relative;
z-index: 10;
color: #ffffff;
}

/* Particle Effects */
.btn-particles {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}

.btn-particles .particle {
position: absolute;
width: 3px;
height: 3px;
background: linear-gradient(45deg, var(--accent-blue), var(--secondary-blue));
border-radius: 50%;
opacity: 0;
pointer-events: none;
}

.btn-particles .particle:nth-child(1) { top: 10%; right: 20%; animation-delay: 0s; }
.btn-particles .particle:nth-child(2) { top: 20%; right: 80%; animation-delay: 0.1s; }
.btn-particles .particle:nth-child(3) { top: 70%; right: 15%; animation-delay: 0.2s; }

/* Glow Effect */
.btn-glow {
position: absolute;
top: 50%;
left: 50%;
width: 120%;
height: 120%;
background: radial-gradient(circle, rgba(100, 181, 246, 0.4) 0%, rgba(30, 60, 114, 0.2) 40%, transparent 70%);
transform: translate(-50%, -50%) scale(0);
opacity: 0;
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
border-radius: 50%;
filter: blur(15px);
z-index: 0;
}

/* Ripple Effect */
.btn-ripple {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
border: 2px solid rgba(255, 255, 255, 0.5);
border-radius: 50px;
transform: translate(-50%, -50%) scale(0);
opacity: 0;
transition: all 0.6s ease;
z-index: 0;
}

/* Loading Spinner */
.btn-loading-spinner {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
z-index: 15;
}

.btn-loading-spinner i {
font-size: 16px;
animation: spin 1s linear infinite;
}

/* Success Icon */
.btn-success-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0);
opacity: 0;
visibility: hidden;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
z-index: 15;
}

.btn-success-icon i {
font-size: 18px;
color: #4caf50;
}

/* Hover Effects */
.lets-begin-btn.advanced-project-btn:hover {
transform: translateY(-3px) scale(1.05);
box-shadow: 0 15px 40px rgba(30, 60, 114, 0.4), 0 0 30px rgba(100, 181, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
background: linear-gradient(135deg, var(--secondary-blue), var(--accent-blue));
animation: shimmerEffect 0.6s ease;
}

@keyframes shimmerEffect {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}

.lets-begin-btn.advanced-project-btn:hover::after {
transform: translateX(100%);
}

.lets-begin-btn.advanced-project-btn:hover .btn-icon-main {
transform: translate(-50%, -50%) translateX(2px) rotate(180deg);
color: var(--accent-blue);
filter: drop-shadow(0 0 12px rgba(100, 181, 246, 0.8));
}

.lets-begin-btn.advanced-project-btn:hover .btn-icon-sparkle {
opacity: 1;
transform: scale(1.3) rotate(360deg);
animation: sparklePulse 1s ease-in-out infinite;
filter: drop-shadow(0 0 15px rgba(100, 181, 246, 1));
}

@keyframes sparklePulse {
0%, 100% { transform: scale(1.3) rotate(360deg); opacity: 1; }
50% { transform: scale(1.5) rotate(180deg); opacity: 0.7; }
}

.lets-begin-btn.advanced-project-btn:hover .btn-icon-arrow {
opacity: 1;
transform: translate(-50%, -50%) translateX(-6px);
filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.lets-begin-btn.advanced-project-btn:hover .btn-text {
transform: translateX(2px);
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
letter-spacing: 1.2px;
color: var(--white);
}

.lets-begin-btn.advanced-project-btn:hover .btn-particles .particle {
opacity: 1;
animation: particleExplode 1.5s ease-out forwards;
}

.lets-begin-btn.advanced-project-btn:hover .btn-glow {
opacity: 0.7;
transform: translate(-50%, -50%) scale(1.2);
}

.lets-begin-btn.advanced-project-btn:hover .btn-ripple {
opacity: 0.6;
transform: translate(-50%, -50%) scale(1.1);
}

/* Active State */
.lets-begin-btn.advanced-project-btn:active {
transform: translateY(-1px) scale(1.02);
box-shadow: 0 8px 25px rgba(30, 60, 114, 0.2);
transition: all 0.1s ease;
}

.lets-begin-btn.advanced-project-btn:active .btn-icon-main {
transform: translate(-50%, -50%) translateX(1px) rotate(-5deg);
}

/* Loading State */
.lets-begin-btn.advanced-project-btn.loading {
    pointer-events: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lets-begin-btn.advanced-project-btn.loading .btn-content-wrapper {
    opacity: 0;
    transform: scale(0.8);
}

.lets-begin-btn.advanced-project-btn.loading .btn-loading-spinner {
    opacity: 1;
    visibility: visible;
}

.lets-begin-btn.advanced-project-btn.loading .btn-glow {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.3);
    background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, transparent 70%);
}

/* Success State */
.lets-begin-btn.advanced-project-btn.success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    pointer-events: none;
}

.lets-begin-btn.advanced-project-btn.success .btn-content-wrapper {
    opacity: 0;
    transform: scale(0.8);
}

.lets-begin-btn.advanced-project-btn.success .btn-success-icon {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.lets-begin-btn.advanced-project-btn.success .btn-glow {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.3);
    background: radial-gradient(circle, rgba(76, 175, 80, 0.6) 0%, transparent 70%);
}

/* Error State */
.lets-begin-btn.advanced-project-btn.error {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    animation: shake 0.5s;
}

.lets-begin-btn.advanced-project-btn.error .btn-icon-main {
    color: #ff6b6b;
    animation: shake 0.5s;
}

/* Mobile Project Button in Hamburger Menu */
.mobile-project-btn {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-action-btn {
    background: linear-gradient(135deg, #2a5298, #64b5f6) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    margin: 5px 0 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.mobile-action-btn:hover {
    background: linear-gradient(135deg, #1e3c72, #2a5298) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(42, 82, 152, 0.3) !important;
}

.mobile-action-btn .text-wrapper {
    position: relative;
    z-index: 2;
}

.mobile-action-btn .text-original,
.mobile-action-btn .text-hover {
    color: white !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.mobile-action-btn .glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-action-btn:hover .glow {
    opacity: 1;
}

/* Responsive adjustments for mobile project button */
@media (max-width: 991px) {
    .mobile-project-btn {
        display: block !important;
    }
    
    .mobile-action-btn {
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
    }
    
    .mobile-action-btn .text-original,
    .mobile-action-btn .text-hover {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 767px) {
    .mobile-project-btn {
        margin-top: 10px;
        padding-top: 10px;
    }
    
    .mobile-action-btn {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 575px) {
    .mobile-action-btn {
        padding: 10px 18px !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 479px) {
    .mobile-action-btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 7px 14px;
    }
    
    .logo-text {
        font-size: 24px;
    }
    
    .nav-logo {
        font-size: 24px;
    }
    
    .logo-text img {
        height: 32px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .top-bar {
        display: none;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        order: 0;
    }
    
    .nav-logo {
        order: 1;
        flex: 1;
        display: flex;
        justify-content: flex-end;
        position: absolute;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--gradient-primary);
        display: flex !important;
        flex-direction: column !important;
        gap: 0;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 998;
        overflow-y: auto;
        list-style: none !important;
        align-items: stretch !important;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Mobile menu overlay */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block !important;
        width: 100%;
        padding: 15px 20px !important;
        color: var(--white) !important;
        font-size: 14px !important;
        text-align: right;
        border-radius: 0 !important;
        transition: all 0.3s ease;
        text-decoration: none !important;
        font-weight: 500 !important;
        position: relative !important;
        transform: none !important;
        overflow: visible !important;
        transform-style: flat !important;
        z-index: auto !important;
    }
    
    .nav-link .text-wrapper {
        position: relative !important;
        z-index: 1 !important;
    }
    
    .nav-link .text-original,
    .nav-link .text-hover {
        color: var(--white) !important;
        font-weight: 500 !important;
    }
    
    .nav-link .glow,
    .nav-link .particle {
        display: none !important;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
    }
    
    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: var(--gradient-primary);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        z-index: 1002;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-light);
        position: relative;
    }
    
    .mobile-menu-toggle:hover {
        transform: scale(1.05);
        box-shadow: var(--shadow-medium);
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--white);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }
    
    .lets-begin-btn.advanced-project-btn {
        display: none;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .nav-logo {
        font-size: 22px;
    }
    
    .logo-text img {
        height: 30px;
    }
    .lets-begin-btn.advanced-project-btn .btn-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .nav-logo {
        font-size: 20px;
    }
    
    .logo-text img {
        height: 28px;
    }
}

/* Animation Keyframes */
@keyframes logoGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes borderGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0.5);
    }
}

@keyframes morphingText {
    0%, 100% {
        transform: rotateX(0deg) scale(1);
    }
    50% {
        transform: rotateX(90deg) scale(0.8);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Dynamic Particle Styles */
.dynamic-particle {
    background: linear-gradient(45deg, #64b5f6, #1e3c72);
    box-shadow: 0 0 6px rgba(100, 181, 246, 0.8);
}

/* Enhanced Navbar Hover Effects */
.nav-link {
    will-change: transform;
}

/* Magnetic Cursor Effect Enhancement */
.nav-link.magnetic-active {
    transition: none !important;
}

/* Focus Enhancement for Accessibility */
.nav-link:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-link::before,
    .nav-link::after,
    .nav-link .particle,
    .nav-link .glow,
    .nav-link .text-original,
    .nav-link .text-hover {
        transition: none !important;
        animation: none !important;
    }
    
    .dynamic-particle {
        display: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid var(--text-dark);
    }
    
    .nav-link:hover {
        background: var(--primary-blue);
        color: var(--white);
    }
}