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

body {
    font-family: 'Cairo', sans-serif;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 65, 0.015) 0%, transparent 40%);
    animation: background-pulse 8s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes background-pulse {
    from {
        opacity: 0.2;
        transform: scale(1);
    }
    to {
        opacity: 0.4;
        transform: scale(1.02);
    }
}

/* Navigation Bar */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(0, 255, 65, 0.15);
    color: #00ff41;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 255, 65, 0.4),
        0 0 20px rgba(0, 255, 65, 0.3),
        inset 0 0 15px rgba(0, 255, 65, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.8);
}

.nav-link.active {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #000;
    box-shadow: 
        0 15px 30px rgba(0, 255, 65, 0.6),
        0 0 25px rgba(0, 255, 65, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: nav-active-glow 2s ease-in-out infinite alternate;
}

@keyframes nav-active-glow {
    from {
        box-shadow: 
            0 15px 30px rgba(0, 255, 65, 0.6),
            0 0 25px rgba(0, 255, 65, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    to {
        box-shadow: 
            0 20px 40px rgba(0, 255, 65, 0.8),
            0 0 35px rgba(0, 255, 65, 0.7),
            inset 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

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

.nav-logo-img {
    width: 35px;
    height: 35px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #00ff41;
    box-shadow: 
        0 0 20px rgba(0, 255, 65, 0.6),
        0 0 40px rgba(0, 255, 65, 0.4);
    animation: logo-glow 3s ease-in-out infinite alternate;
}

@keyframes logo-glow {
    from {
        border-color: #00ff41;
        box-shadow: 
            0 0 20px rgba(0, 255, 65, 0.6),
            0 0 40px rgba(0, 255, 65, 0.4);
    }
    to {
        border-color: #00ff41;
        box-shadow: 
            0 0 30px rgba(0, 255, 65, 0.8),
            0 0 60px rgba(0, 255, 65, 0.6);
    }
}

.nav-logo-text {
    color: #00ff41;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 
        0 0 15px rgba(0, 255, 65, 0.8),
        0 0 30px rgba(0, 255, 65, 0.6),
        0 0 45px rgba(0, 255, 65, 0.4);
    animation: logo-text-glow 2.5s ease-in-out infinite alternate;
}

@keyframes logo-text-glow {
    from {
        text-shadow: 
            0 0 15px rgba(0, 255, 65, 0.8),
            0 0 30px rgba(0, 255, 65, 0.6),
            0 0 45px rgba(0, 255, 65, 0.4);
    }
    to {
        text-shadow: 
            0 0 25px rgba(0, 255, 65, 1),
            0 0 50px rgba(0, 255, 65, 0.8),
            0 0 75px rgba(0, 255, 65, 0.6);
    }
}

/* Adjust container padding for fixed navbar */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 60px 0;
    position: relative;
}

.logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.logo {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    z-index: 5;
    box-shadow: 
        0 0 40px rgba(0, 255, 65, 0.8),
        0 0 80px rgba(0, 255, 65, 0.6),
        0 0 120px rgba(0, 255, 65, 0.4),
        0 0 160px rgba(0, 255, 65, 0.2);
    animation: logo-glow-pulse 3s ease-in-out infinite;
}

@keyframes logo-glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(0, 255, 65, 0.8),
            0 0 80px rgba(0, 255, 65, 0.6),
            0 0 120px rgba(0, 255, 65, 0.4),
            0 0 160px rgba(0, 255, 65, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(0, 255, 65, 1),
            0 0 120px rgba(0, 255, 65, 0.8),
            0 0 180px rgba(0, 255, 65, 0.6),
            0 0 240px rgba(0, 255, 65, 0.4);
        transform: scale(1.05);
    }
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.name {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 20px;
    position: relative;
    color: #C0C0C0;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.3);
    filter: contrast(1.2) brightness(1.1);
    font-smooth: always;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


.subtitle {
    display: inline-block;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff41;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Service Cards */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff41, #00cc33);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: #00ff41;
    box-shadow: 
        0 25px 50px rgba(0, 255, 65, 0.4),
        0 0 30px rgba(0, 255, 65, 0.3),
        inset 0 0 20px rgba(0, 255, 65, 0.1);
    background: rgba(0, 255, 65, 0.05);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 
        0 15px 30px rgba(0, 255, 65, 0.4),
        0 0 20px rgba(0, 255, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.card-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.service-card:hover .card-icon::after {
    transform: rotate(45deg) translate(100%, 100%);
}

.service-card:hover .card-icon {
    animation: icon-glow 1s ease-in-out infinite alternate;
}

@keyframes icon-glow {
    from {
        box-shadow: 
            0 15px 30px rgba(0, 255, 65, 0.4),
            0 0 20px rgba(0, 255, 65, 0.3),
            0 0 40px rgba(0, 255, 65, 0.2);
    }
    to {
        box-shadow: 
            0 20px 40px rgba(0, 255, 65, 0.6),
            0 0 30px rgba(0, 255, 65, 0.5),
            0 0 60px rgba(0, 255, 65, 0.3);
    }
}

.card-icon i {
    font-size: 32px;
    color: #000;
}

.card-text h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #00ff41;
}

.card-text p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio-section {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    padding: 40px;
    margin: 60px 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header h2 {
    font-size: 2.5rem;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    margin-bottom: 10px;
}

.portfolio-header p {
    font-size: 1.2rem;
    color: #cccccc;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: #00ff41;
    box-shadow: 
        0 30px 60px rgba(0, 255, 65, 0.5),
        0 0 40px rgba(0, 255, 65, 0.4),
        inset 0 0 30px rgba(0, 255, 65, 0.1);
    background: rgba(0, 255, 65, 0.05);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 20px 20px 0 0;
}

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

.project-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00ff41, #00cc33);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 255, 65, 0.5),
        0 0 30px rgba(0, 255, 65, 0.4);
    position: relative;
    overflow: hidden;
}

.project-image i {
    font-size: 32px;
    color: #000;
}

.project-card:hover .project-image {
    animation: project-image-glow 1.5s ease-in-out infinite alternate;
}

@keyframes project-image-glow {
    from {
        box-shadow: 
            0 20px 40px rgba(0, 255, 65, 0.5),
            0 0 30px rgba(0, 255, 65, 0.4),
            0 0 60px rgba(0, 255, 65, 0.3);
    }
    to {
        box-shadow: 
            0 25px 50px rgba(0, 255, 65, 0.7),
            0 0 40px rgba(0, 255, 65, 0.6),
            0 0 80px rgba(0, 255, 65, 0.4);
    }
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #00ff41;
}

.project-content p {
    font-size: 1rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tech span {
    background: rgba(0, 255, 65, 0.2);
    color: #00ff41;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 255, 65, 0.4);
}

.project-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #cccccc;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-stats i {
    color: #00ff41;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 65, 0.3);
    border-radius: 50px;
    padding: 12px 25px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: #00ff41;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 255, 65, 0.3);
}

.social-link i {
    font-size: 20px;
    color: #00ff41;
}

.social-link span {
    font-weight: 600;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes glow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

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

/* Responsive Design */
/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .nav-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .nav-logo {
        order: -1;
    }
    
    .container {
        padding-top: 140px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .name {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .services {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .live-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 40px 0;
    }
    
    .name {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo i {
        font-size: 32px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-section {
        padding: 25px;
    }
    
    .live-section {
        padding: 25px;
    }
    
    .live-content {
        padding: 25px;
        min-height: 300px;
    }
}
