/* Variables */
:root {
    --primary-color: #4e6bff;
    --primary-light: #6a7dff;
    --primary-dark: #3a56e8;
    --secondary-color: #ff6b6b;
    --secondary-light: #ff8a8a;
    --accent-color: #00d9ff;
    --accent-color-2: #9c6eff;
    --accent-color-3: #ff6ed9;
    --dark-bg: #0a0e1a;
    --darker-bg: #060a14;
    --card-bg: #111827;
    --card-bg-hover: #1a2235;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-accent: #e2e8ff;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.4);
    --star-shadow: 0 0 10px rgba(78, 107, 255, 0.8), 0 0 20px rgba(78, 107, 255, 0.5);
    --glow-effect: 0 0 15px rgba(78, 107, 255, 0.5);
    --glow-effect-2: 0 0 15px rgba(156, 110, 255, 0.5);
    --glow-effect-3: 0 0 15px rgba(255, 110, 217, 0.5);
    --gradient-1: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    --gradient-2: linear-gradient(45deg, var(--accent-color-2), var(--primary-color));
    --gradient-3: linear-gradient(45deg, var(--secondary-color), var(--accent-color-3));
}

/* About Section Styles */
.about-box {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(var(--primary-color), 0.1);
    margin: 2rem auto;
    max-width: 1000px;
    transition: var(--transition);
}

.about-box:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.about-text {
    text-align: right;
    line-height: 1.8;
}

.company-name {
    color: var(--primary-color);
    font-size: 1.8em;
    font-weight: 700;
    text-shadow: var(--glow-effect);
}

.main-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

.achievements {
    background: linear-gradient(135deg, rgba(78, 107, 255, 0.1) 0%, rgba(0, 217, 255, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.highlight-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

.highlight {
    color: var(--primary-color);
    font-size: 1.6em;
    font-weight: 700;
    text-shadow: var(--glow-effect);
}

.process-text {
    font-size: 1.1rem;
    color: #444;
    margin: 2rem 0;
    padding: 1rem;
    border-right: 4px solid var(--primary-color);
    background: rgba(78, 107, 255, 0.05);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.ceo-signature {
    text-align: left;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(78, 107, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.position {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.ceo-name {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    text-shadow: var(--glow-effect);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #0d1423 0%, #060a14 100%);
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    filter: blur(0.5px);
    animation: twinkle var(--twinkle-duration) infinite ease-in-out;
}

.star.small {
    width: 1px !important;
    height: 1px !important;
    box-shadow: 0 0 3px #4e6bff, 0 0 5px #4e6bff;
}

.star.medium {
    width: 2px !important;
    height: 2px !important;
    box-shadow: 0 0 5px #4e6bff, 0 0 8px #4e6bff;
}

.star.large {
    width: 3px !important;
    height: 3px !important;
    box-shadow: 0 0 8px #4e6bff, 0 0 12px #4e6bff;
}

.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(78, 107, 255, 0) 100%);
    animation: shooting-star var(--shooting-duration) linear infinite;
    opacity: 0;
    transform: rotate(var(--rotation-angle));
}

/* Projects Section Styles */
.projects {
    padding: 60px 15px;
    background-color: var(--dark-bg);
    min-height: 100vh;
}

.projects .section-header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    padding: 0 15px;
}

.projects .header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.skip-section {
    position: relative;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skip-section i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.skip-section:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.skip-section:hover i {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .projects {
        padding: 40px 10px;
    }
    
    .projects .section-header {
        margin-bottom: 25px;
        font-size: 1.8rem;
        flex-direction: column;
        gap: 15px;
    }

    .skip-section {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 0 15px;
    max-width: 100%;
}

.filter-btn {
    position: relative;
    overflow: hidden;
    padding: 8px 16px;
    border: none;
    background: var(--card-bg);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 107, 255, 0.2);
    outline: none;
    white-space: nowrap;
    flex: 0 1 auto;
}

/* إضافة تأثير وهج خلفي للأزرار */
.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: transform 0.4s ease, opacity 0.3s ease;
    border-radius: inherit;
    z-index: -1;
}

.filter-btn:hover::before {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1.2);
}

@media (max-width: 768px) {
    .filter-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }

    /* تنسيق مجموعة الأزرار العلوية */
    .filter-buttons-top {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        margin-bottom: 12px;
    }

    .filter-buttons-top .filter-btn {
        height: 46px;
        font-size: 0.7rem;
        padding: 8px 12px;
        font-weight: 500;
    }

    .filter-buttons-top .filter-btn i {
        font-size: 1.6em;
        margin-left: 6px;
    }

    /* تنسيق مجموعة الأزرار السفلية */
    .filter-buttons-bottom {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 150px));
        gap: 10px;
        justify-content: center;
        margin-top: 5px;
        width: 100%;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.85rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 38px;
        background: var(--card-bg);
        border: 1.5px solid rgba(78, 107, 255, 0.3);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        border-radius: 8px;
        color: var(--text-primary);
        font-weight: 600;
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.2px;
    }

    .filter-btn i {
        font-size: 1.15em;
        color: var(--primary-color);
        transition: all 0.3s ease;
        margin-left: 4px;
        flex-shrink: 0;
        filter: brightness(1.2);
    }

    .filter-buttons-bottom .filter-btn {
        background: var(--card-bg-hover);
        border: 1px solid rgba(78, 107, 255, 0.3);
        box-shadow: 0 2px 10px rgba(78, 107, 255, 0.1);
    }

    @media (max-width: 360px) {
        .filter-btn {
            padding: 4px 8px;
            font-size: 0.65rem;
            height: 34px;
            gap: 4px;
        }

        .filter-btn i {
            font-size: 1.6em;
        }

        .filter-buttons {
            padding: 0 5px;
        }

        .filter-buttons-top,
        .filter-buttons-bottom {
            gap: 6px;
        }
    }

    /* تحسين وضوح الأزرار النشطة */
    .filter-btn.active {
        background: var(--primary-color);
        border-color: var(--primary-light);
        color: white;
        font-weight: 600;
        box-shadow: 0 3px 12px rgba(78, 107, 255, 0.2);
    }

    .filter-btn.active i {
        color: white;
        transform: scale(1.1);
        filter: brightness(1.5);
    }

    /* تحسين تأثيرات التحويم */
    .filter-btn:hover {
        background: var(--card-bg-hover);
        border-color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(78, 107, 255, 0.15);
    }

    .filter-btn:hover i {
        color: var(--primary-light);
        transform: scale(1.05);
    }

    @media (max-width: 380px) {
        .filter-btn {
            font-size: 0.8rem;
            padding: 6px 8px;
            height: 36px;
        }

        .filter-btn i {
            font-size: 1em;
            margin-left: 3px;
        }

        .filter-buttons-bottom .filter-btn {
            max-width: 140px;
        }
    }

    /* تحسينات التفاعل */
    .filter-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(78, 107, 255, 0.25);
        border-color: var(--primary-color);
    }

    .filter-btn:hover i {
        transform: scale(1.1);
        color: var(--primary-light);
    }

    .filter-btn.active {
        background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
        border-color: var(--primary-light);
        color: white;
        box-shadow: 0 6px 25px rgba(78, 107, 255, 0.3);
    }

    .filter-btn.active i {
        color: white;
        transform: scale(1.1);
    }
}

    .filter-btn i {
        font-size: 1.1em;
    }
}

.filter-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.filter-btn:hover i {
    transform: scale(1.2);
}

.filter-btn:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 107, 255, 0.3);
    border-color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(78, 107, 255, 0.4);
    border-color: var(--primary-color);
}

.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(78, 107, 255, 0.3);
}

@media (max-width: 768px) {
    .filter-btn:hover {
        transform: translateY(-1px);
    }

    .filter-btn.active {
        transform: scale(0.98);
        box-shadow: 0 3px 15px rgba(78, 107, 255, 0.3);
    }

    .filter-btn:nth-child(4),
    .filter-btn:nth-child(5) {
        background: var(--card-bg-hover);
        border-width: 2px;
    }

    .filter-btn:nth-child(4).active,
    .filter-btn:nth-child(5).active {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }
}

/* Animation for projects */
.project-card {
    backface-visibility: hidden;
    transition: all 0.4s ease-out;
    will-change: transform, opacity;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(78, 107, 255, 0.1);
}

.project-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card:not(.show) {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .project-card {
        margin-bottom: 15px;
    }

    .project-card:hover {
        transform: translateY(-3px);
    }
}

.project-card .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: transform 0.3s ease;
}

@media (max-width: 480px) {
    .project-card .project-image {
        height: 160px;
    }
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card .project-content {
    padding: 15px;
}

.project-card .project-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.project-card .project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-card .tech-tag {
    background: rgba(78, 107, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.project-card .tech-tag:hover {
    background: var(--primary-color);
    color: white;
}

.project-card .project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.project-card .project-link {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-card .demo-link {
    background: var(--primary-color);
    color: white;
}

.project-card .source-link {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
}

.project-card .project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 107, 255, 0.2);
}

.project-card .demo-link:hover {
    background: var(--primary-light);
}

.project-card .source-link:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 480px) {
    .project-card .project-content {
        padding: 12px;
    }

    .project-card .project-title {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .project-card .project-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
        -webkit-line-clamp: 2;
    }

    .project-card .project-technologies {
        gap: 6px;
        margin-bottom: 12px;
    }

    .project-card .tech-tag {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .project-card .project-links {
        gap: 8px;
    }

    .project-card .project-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

.filter-btn {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid rgba(78, 107, 255, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(78, 107, 255, 0.4);
    transform: translateY(-2px);
}

.projects .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.projects .underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 15px auto;
    border-radius: 2px;
}

.projects .section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 400px;
}

@media (max-width: 1200px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }
}

@media (max-width: 991px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 15px;
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .projects-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
        padding: 0 10px;
    }

    .project-image {
        height: 140px;
        object-fit: cover;
    }
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .project-tech span {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .small-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

.project-card {
    display: none; /* Hide all cards by default */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    will-change: opacity, transform;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 180px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.8));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-info {
    padding: 20px;
    color: var(--text-primary);
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    background: rgba(78, 107, 255, 0.1);
    color: var(--primary-light);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 10px;
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.small-btn i {
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 10px;
        max-width: 100%;
    }

    .project-image {
        height: 150px;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }

    .project-info p {
        font-size: 0.9rem;
    }

    .featured-project {
        grid-column: 1 / -1;
        margin-bottom: 15px;
    }

    .project-card {
        margin-bottom: 0;
        width: 100%;
    }

    .project-card .project-image {
        height: 130px;
    }

    .project-info {
        padding: 12px;
    }

    .project-info h3 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .project-info p {
        font-size: 0.9rem;
        margin-bottom: 10px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .project-tech {
        gap: 5px;
        margin-bottom: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .project-tech::-webkit-scrollbar {
        display: none;
    }

    .project-tech span {
        font-size: 0.75rem;
        padding: 3px 8px;
        white-space: nowrap;
    }

    .project-links {
        flex-direction: row;
        gap: 8px;
    }

    .small-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .filter-buttons {
        gap: 8px;
        margin-bottom: 25px;
        overflow-x: auto;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-left: 15px;
        padding-right: 15px;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .projects .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .project-links {
        flex-direction: column;
    }

    .project-tech {
        gap: 6px;
    }

    .project-tech span {
        font-size: 0.8rem;
    }
}

/* Project Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.project-modal.show {
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--box-shadow-hover);
}

.project-modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-image {
    width: 100%;
    height: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-tech {
    margin: 20px 0;
}

.modal-tech h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    background: rgba(78, 107, 255, 0.1);
    color: var(--primary-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(78, 107, 255, 0.2);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
    }
    
    .modal-image {
        height: 200px;
    }
}

.star {
    box-shadow: 0 0 10px #4e6bff;
}

@keyframes shooting-star {
    0% {
        transform: translateX(-100px) rotate(var(--rotation-angle));
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateX(calc(100vw + 100px)) rotate(var(--rotation-angle));
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-subtle {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(78, 107, 255, 0.2);
    }
    100% {
        transform: scale(1.05);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15), 0 0 20px rgba(78, 107, 255, 0.3);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 25px rgba(78, 107, 255, 0.3);
    }
    50% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(78, 107, 255, 0.8);
    }
    100% {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 25px rgba(78, 107, 255, 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Logo Styles */
.logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(78,107,255,0.25), 0 2px 8px rgba(0,0,0,0.12);
    border: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    transition: box-shadow 0.3s, border-color 0.3s;
}
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 18px var(--accent-color-2), 0 0 8px var(--accent-color-3);
    filter: brightness(1.08) contrast(1.08);
}

@keyframes logo-spin {
    /* تم تعطيل الدوران */
}

@keyframes border-glow {
    0% {
        border-color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color);
    }
    33% {
        border-color: var(--accent-color);
        box-shadow: 0 0 15px var(--accent-color);
    }
    66% {
        border-color: var(--accent-color-2);
        box-shadow: 0 0 15px var(--accent-color-2);
    }
    100% {
        border-color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate-3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(10deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(0deg);
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 35px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    font-size: 1.05rem;
}

.btn i {
    margin-left: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn:hover i {
    transform: translateX(-5px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn:hover::before {
    width: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::after {
    opacity: 0.5;
    transform: scale(1);
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 10px 25px rgba(78, 107, 255, 0.5), 0 0 15px rgba(78, 107, 255, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.primary-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition-slow);
    z-index: -1;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(78, 107, 255, 0.6);
    background: linear-gradient(45deg, var(--primary-light), var(--primary-color));
}

.primary-btn:hover::after {
    opacity: 0.5;
    transform: scale(1);
}

.secondary-btn {
    background-color: rgba(78, 107, 255, 0.05);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(78, 107, 255, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    transition: var(--transition);
    z-index: -1;
}

.secondary-btn:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(78, 107, 255, 0.4);
    border-color: transparent;
}

.secondary-btn:hover::before {
    width: 100%;
}

.small-btn {
    padding: 12px 25px;
    font-size: 0.95rem;
}

.large-btn {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

.small-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(10, 15, 30, 0.98), rgba(10, 15, 30, 0.9));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4), 0 0 30px rgba(78, 107, 255, 0.15);
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(78, 107, 255, 0.15);
    height: auto;
}

header.sticky {
    padding: 0;
    background: rgba(10, 15, 30, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5), 0 0 35px rgba(78, 107, 255, 0.25);
    border-bottom: 1px solid rgba(78, 107, 255, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.logo a {
    display: block;
    transition: all 0.4s ease;
    position: relative;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
    transition: width 0.4s ease;
    border-radius: 3px;
    opacity: 0;
}

.logo a:hover {
    transform: scale(1.08);
}

.logo a:hover::after {
    width: 70%;
    opacity: 1;
}

.logo-img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(78, 107, 255, 0.4));
    transition: all 0.4s ease;
}

.logo a:hover .logo-img {
    filter: drop-shadow(0 0 20px rgba(78, 107, 255, 0.7));
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
    position: relative;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

nav ul li a {
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
    padding: 8px 5px;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    border-radius: 3px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a:hover::before,
nav ul li a.active::before {
    width: 100%;
    opacity: 1;
}

nav ul li a.active {
    position: relative;
    font-weight: 600;
}

nav ul li a.active::before {
    height: 3px;
    box-shadow: 0 0 10px rgba(78, 107, 255, 0.6);
}

/* Add icons to nav items */
nav ul li a i {
    margin-left: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

nav ul li a:hover i {
    opacity: 1;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--darker-bg);
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.15) 0%, rgba(6, 10, 20, 0) 70%);
    z-index: 0;
    animation: pulse 8s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.08) 0%, rgba(6, 10, 20, 0) 70%);
    z-index: 0;
    animation: pulse 8s infinite alternate-reverse;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    position: relative;
}

.hero-content::before {
    content: 'HSG';
    position: absolute;
    top: -60px;
    right: 0;
    font-family: 'Cairo', sans-serif;
    color: rgba(78, 107, 255, 0.3);
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(78, 107, 255, 0.2);
}

.hero-content::after {
    content: 'تقنية المعلومات';
    position: absolute;
    bottom: -60px;
    right: 0;
    font-family: 'Cairo', sans-serif;
    color: rgba(78, 107, 255, 0.3);
    font-size: 1.8rem;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(78, 107, 255, 0.2);
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 0, 0, 0.2);
    position: relative;
    font-weight: 800;
    color: var(--text-primary);
    margin-top: 20px;
}

.hero-content h1 .highlight {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    text-shadow: none;
    animation: colorShift 8s infinite alternate;
    padding: 0 10px;
}

@keyframes colorShift {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(30deg);
    }
}

.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    opacity: 0.3;
    border-radius: 5px;
    animation: pulse-width 3s infinite alternate;
}

.hero-content h1 .highlight::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(78, 107, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse-opacity 3s infinite alternate;
}

@keyframes pulse-opacity {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    position: relative;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.1) 0%, rgba(6, 10, 20, 0) 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-logo {
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    max-width: 360px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 30px rgba(78, 107, 255, 0.5));
    position: relative;
    z-index: 2;
    animation: pulse-glow 4s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 30px rgba(78, 107, 255, 0.5));
    }
    100% {
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 50px rgba(78, 107, 255, 0.8));
    }
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.15) 0%, rgba(6, 10, 20, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 8s infinite alternate;
}

.hero-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 2px dashed rgba(78, 107, 255, 0.2);
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: rotate 30s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 2px solid rgba(78, 107, 255, 0.2);
    animation: pulse-border 3s infinite;
    z-index: 0;
}

/* Add orbital circles around profile image */
.hero-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    border: 1px dashed rgba(78, 107, 255, 0.2);
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

.orbital-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    z-index: 3;
    animation: rotate-reverse 10s linear infinite;
}

.orbital-dot:nth-child(1) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.orbital-dot:nth-child(2) {
    top: 15%;
    left: 15%;
}

.orbital-dot:nth-child(3) {
    top: 85%;
    left: 15%;
}

@keyframes rotate-reverse {
    0% {
        transform: rotate(0deg) translateX(225px) rotate(0deg);
    }
    100% {
        transform: rotate(-360deg) translateX(225px) rotate(360deg);
    }
}

@keyframes pulse-border {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Services Section */
.services {
    background: var(--darker-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services .container {
    position: relative;
    z-index: 2;
}

.services .section-header {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

.services .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.services .section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-accent);
    max-width: 800px;
    margin: 0 auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: right;
    box-shadow: var(--box-shadow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-icon {
    background: var(--gradient-1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    color: white;
    font-size: 1.5rem;
}

.service-features {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.service-features h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.service-details {
    list-style: none;
    padding: 0;
}

.service-details li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-details li i {
    color: var(--primary-color);
}

.service-images {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.service-image {
    width: 100%;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.05);
}

.service-portfolio {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-portfolio h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-portfolio ul {
    list-style: none;
    padding: 0;
}

.service-portfolio li {
    margin-bottom: 0.5rem;
    color: var(--text-accent);
}

.service-result,
.service-highlight {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--gradient-1);
    border-radius: var(--border-radius);
    color: white;
}

.service-highlight {
    background: var(--gradient-2);
}

.fancy-service {
    border: none;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.7));
}

.fancy-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.telegram-bg {
    background: linear-gradient(145deg, #0088cc, #0077b5);
}

.ai-bg {
    background: linear-gradient(145deg, var(--accent-color), var(--accent-color-2));
}

.service-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.service-features {
    text-align: right;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-features h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(78, 107, 255, 0.3);
}

.service-portfolio {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-portfolio ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.service-portfolio li {
    background: linear-gradient(145deg, rgba(78, 107, 255, 0.1), rgba(78, 107, 255, 0.05));
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(78, 107, 255, 0.2);
    transition: var(--transition);
}

.service-portfolio li:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(78, 107, 255, 0.15), rgba(78, 107, 255, 0.1));
    border-color: rgba(78, 107, 255, 0.3);
}

.service-images {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.service-image {
    width: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-image:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(78, 107, 255, 0.3);
}

.service-result, .service-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--gradient-1);
    color: white;
    font-weight: 500;
    box-shadow: var(--box-shadow);
}

.service-highlight {
    background: var(--gradient-2);
}

.ai-bg {
    background: var(--gradient-3);
}
}

.service-features {
    text-align: right;
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-features h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(78, 107, 255, 0.3);
}

.service-portfolio {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-portfolio ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.service-portfolio li {
    background: linear-gradient(145deg, rgba(78, 107, 255, 0.1), rgba(78, 107, 255, 0.05));
    padding: 0.7rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    border: 1px solid rgba(78, 107, 255, 0.2);
    transition: var(--transition);
}

.service-portfolio li:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(78, 107, 255, 0.15), rgba(78, 107, 255, 0.1));
    border-color: rgba(78, 107, 255, 0.3);
}

.service-images {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.service-image {
    width: 100%;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-image:hover {
    transform: scale(1.03);
    box-shadow: var(--box-shadow-hover);
    border-color: rgba(78, 107, 255, 0.3);
}

.service-result, .service-highlight {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--gradient-1);
    color: white;
    font-weight: 500;
    box-shadow: var(--box-shadow);
}

.service-highlight {
    background: var(--gradient-2);
}

.ai-bg {
    background: var(--gradient-3);
}
    justify-content: space-between;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(78, 107, 255, 0.3);
    border: 1px solid rgba(78, 107, 255, 0.3);
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.9), rgba(17, 24, 39, 0.7));
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 1;
    transition: height 0.3s ease;
}

.service-card:hover::before {
    height: 7px;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(78, 107, 255, 0.15) 0%, rgba(17, 24, 39, 0) 70%);
    z-index: -1;
    opacity: 0.5;
    transition: var(--transition);
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Add a glowing dot in the corner */
.service-card .glow-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    opacity: 0.7;
    transition: var(--transition);
}

.service-card:hover .glow-dot {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(78, 107, 255, 0.3);
    transition: all 0.5s ease;
    width: 100px;
    height: 100px;
    background: rgba(78, 107, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border: 1px solid rgba(78, 107, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(78, 107, 255, 0.2);
    transform: rotate(0deg);
    animation: pulse-subtle 3s infinite alternate;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.2) 0%, rgba(78, 107, 255, 0) 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-light);
    text-shadow: 0 0 30px rgba(78, 107, 255, 0.8);
    background: rgba(78, 107, 255, 0.25);
    border-radius: 30%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(78, 107, 255, 0.6);
    animation: pulse-glow 1.5s infinite alternate;
    border: 2px solid rgba(78, 107, 255, 0.4);
}

.service-card:hover .service-icon::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    gap: 8px;
    position: relative;
    padding-bottom: 5px;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: var(--primary-light);
}

.service-link:hover::after {
    width: 100%;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(-5px);
}

/* About Section */
.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
}

.about-content h3 .highlight {
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.about-image-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(78, 107, 255, 0.3);
    border-radius: 20px;
    z-index: 1;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.4));
    padding: 20px 15px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.6), rgba(17, 24, 39, 0.4));
    border: 1px solid rgba(78, 107, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.values-container {
    margin-top: 50px;
}

.values-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
}

.values-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.4));
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.value-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.6), rgba(17, 24, 39, 0.4));
    border: 1px solid rgba(78, 107, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(78, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.value-card:hover .value-icon {
    background: rgba(78, 107, 255, 0.15);
    color: var(--primary-light);
    transform: scale(1.1);
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.section-header h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-description {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.underline {
    height: 4px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
    position: relative;
    border-radius: 2px;
}

.underline::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background-color: var(--secondary-color);
    right: -50px;
    top: 0;
    border-radius: 2px;
    animation: pulse-width 3s infinite alternate;
}

.underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background-color: var(--secondary-color);
    left: -50px;
    top: 0;
    border-radius: 2px;
    animation: pulse-width 3s infinite alternate-reverse;
}

@keyframes pulse-width {
    0% {
        width: 40px;
    }
    100% {
        width: 50px;
    }
}

/* Skills Section */
.skills {
    background-color: var(--dark-bg);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(78, 107, 255, 0.08) 0%, rgba(10, 14, 26, 0) 70%);
    z-index: 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.skill-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--box-shadow-hover), 0 0 20px rgba(78, 107, 255, 0.2);
    border: 1px solid rgba(78, 107, 255, 0.2);
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.8), rgba(17, 24, 39, 0.6));
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.skill-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(78, 107, 255, 0.1) 0%, rgba(17, 24, 39, 0) 70%);
    z-index: -1;
    opacity: 0.5;
    transition: var(--transition);
}

.skill-card:hover::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Add a glowing dot in the corner */
.skill-card .glow-dot {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    opacity: 0.7;
    transition: var(--transition);
}

.skill-card:hover .glow-dot {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(78, 107, 255, 0.5);
    transition: all 0.5s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
    color: #ffffff;
}

.skill-progress {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 20px 0 8px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), #8a7aff);
    border-radius: 20px;
    transition: width 1.8s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.percentage {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 5px;
}

/* Projects Section */
.projects {
    background-color: var(--darker-bg);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 107, 107, 0.08) 0%, rgba(6, 10, 20, 0) 70%);
    z-index: 0;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.project-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-20px) scale(1.05) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(78, 107, 255, 0.3);
    border: 1px solid rgba(78, 107, 255, 0.4);
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.95), rgba(17, 24, 39, 0.8));
    animation: border-glow 4s infinite;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.15) 0%, rgba(17, 24, 39, 0) 70%);
    transition: var(--transition-slow);
    z-index: -1;
    opacity: 0;
}

.project-card:hover::before {
    opacity: 1;
    transform: translate(30%, 30%);
}

.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    z-index: 1;
}

.project-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    height: 7px;
}

/* Add corner decoration */
.project-card .corner-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    overflow: hidden;
    z-index: 2;
}

.project-card .corner-decoration::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(78, 107, 255, 0.5);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .corner-decoration::before {
    opacity: 1;
}

.view-more-container {
    text-align: center;
    margin-top: 50px;
}

.view-more-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-more-btn i {
    transition: var(--transition);
}

.view-more-btn:hover i {
    transform: translateX(-5px);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 15px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    background: linear-gradient(45deg, var(--primary-color), #8a7aff);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-category {
    transform: translateY(0);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.15);
}

.project-info {
    padding: 30px 25px;
    position: relative;
}

.project-info h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.project-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.project-card:hover .project-info h3::after {
    width: 100%;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.project-tech span {
    background: rgba(78, 107, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.project-tech span:hover {
    background: rgba(78, 107, 255, 0.2);
    transform: translateY(-3px);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Contact Section */
.contact {
    background-color: var(--dark-bg);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(78, 107, 255, 0.08) 0%, rgba(10, 14, 26, 0) 70%);
    z-index: 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(78, 107, 255, 0.5);
}

.contact-item:hover i {
    transform: scale(1.2);
}

.contact-item h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: #ffffff;
}

.contact-item p {
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), #8a7aff);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-8px) rotate(360deg);
    color: white;
    box-shadow: 0 10px 20px rgba(78, 107, 255, 0.4);
}

.contact-availability {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.7), rgba(17, 24, 39, 0.5));
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-availability:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.contact-map {
    margin-top: 25px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-map:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 107, 255, 0.2);
}

.contact-availability h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #ffffff;
}

.contact-availability h3 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-form {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.6));
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(78, 107, 255, 0.1) 0%, rgba(17, 24, 39, 0) 70%);
    z-index: 0;
}

.contact-form:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(78, 107, 255, 0.1);
    transform: translateY(-5px);
}

.form-title {
    margin-bottom: 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-title i {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    padding-right: 15px;
}

.form-group label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.7;
    transition: var(--transition);
}

.form-group:focus-within label {
    color: var(--primary-light);
    transform: translateX(5px);
}

.form-group:focus-within label::before {
    background-color: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-color);
    opacity: 1;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234e6bff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 20px center;
    padding-left: 45px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(78, 107, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
    transform: translateX(10px);
}

.form-group select option {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* Add focus effect */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: var(--transition);
    transform: translateX(-50%);
    opacity: 0;
}

.form-group:focus-within::after {
    width: 100%;
    opacity: 1;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.contact-form button i {
    transition: all 0.3s ease;
}

.contact-form button:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(78, 107, 255, 0.05) 0%, rgba(6, 10, 20, 0) 70%);
    z-index: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(78, 107, 255, 0.3));
}

.footer-logo p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer-links-column {
    min-width: 160px;
}

.footer-links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-column ul li a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-links-column ul li a i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.newsletter {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.4));
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.newsletter-contact {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.newsletter-contact p {
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.newsletter-contact i {
    color: var(--primary-color);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(78, 107, 255, 0.2);
}

.newsletter-form button {
    padding: 15px 25px;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 107, 255, 0.3);
}

.newsletter-form button:active {
    transform: translateY(0);
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-form input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.newsletter-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
}

.newsletter-success i {
    color: #2ecc71;
    font-size: 1.2rem;
}

.newsletter-success p {
    color: var(--text-primary);
    margin: 0;
}

.newsletter-success.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

.newsletter-message {
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: slideIn 0.5s ease-out;
    transition: all 0.3s ease;
}

.newsletter-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.newsletter-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

.newsletter-message i {
    font-size: 1.2rem;
}

.newsletter-message p {
    color: inherit;
    margin: 0;
    font-weight: 500;
}

.newsletter-message.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-20px);
        opacity: 0;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.scroll-to-top {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(78, 107, 255, 0.4);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: var(--transition);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(78, 107, 255, 0.6);
}

.scroll-to-top:hover::before {
    opacity: 1;
}

.scroll-to-top i {
    transition: var(--transition);
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
}

/* Page Loading Animation */
body {
    opacity: 0;
    animation: fadeInPage 1s forwards;
}

@keyframes fadeInPage {
    to {
        opacity: 1;
    }
}

/* Animation Classes */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hover Effects */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(78, 107, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .profile-image {
        width: 340px;
        height: 340px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 80px;
    }
    
    .hero-content {
        margin-top: 50px;
    }
    
    .hero-content::before,
    .hero-content::after {
        display: none;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 0;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .menu-toggle {
        display: block;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(78, 107, 255, 0.1);
        border-radius: 8px;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        background: rgba(78, 107, 255, 0.2);
    }
    
    .menu-toggle.active {
        background: var(--primary-color);
        color: white;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(6, 10, 20, 0.95), rgba(17, 24, 39, 0.98));
        backdrop-filter: blur(15px);
        padding-top: 90px;
        transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 80%;
    }
    
    nav ul li a {
        font-size: 1.2rem;
        padding: 12px 20px;
        display: block;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
        background: rgba(78, 107, 255, 0.05);
    }
    
    nav ul li a:hover {
        background: rgba(78, 107, 255, 0.15);
        transform: translateX(5px);
    }
    
    nav ul li a::before,
    nav ul li a::after {
        display: none;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .skill-card {
        padding: 30px 20px;
        margin-bottom: 10px;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Improve mobile scrolling */
    html, body {
        overflow-x: hidden;
        scroll-padding-top: 80px; /* For anchor links */
    }
    
    /* Fix for mobile menu overlay */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile menu backdrop */
    .menu-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(3px);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-backdrop.active {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 20px auto;
        align-items: stretch;
    }
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1.1rem;
        box-shadow: 0 4px 12px rgba(78,107,255,0.12);
    }
    .secondary-btn {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        display: block;
    }
    .hero-logo {
        width: 220px;
        height: 220px;
        margin: 32px auto 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-logo-img {
        max-width: 180px;
        width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 20px;
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 15px;
    }
    
    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .project-card {
        margin-bottom: 25px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-info {
        padding: 20px 15px;
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
    
    .project-tech {
        gap: 6px;
        margin: 12px 0;
    }
    
    .project-tech span {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links a {
        width: 100%;
        text-align: center;
    }
    
    /* About section on mobile */
    .about-container {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .about-stats {
        gap: 15px;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Improve footer on mobile */
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .newsletter-form button {
        padding: 18px 25px;
        font-size: 16px;
    }
    
    /* Fix header on mobile */
    header .container {
        padding: 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Improve contact items on mobile */
    .contact-item {
        padding: 15px;
    }
    
    .contact-item i {
        font-size: 1.5rem;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
    }
    
    .contact-map {
        height: 200px;
    }
    
    /* Add some space between sections on mobile */
    section {
        padding: 60px 0;
    }
    
    .view-more-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Small Mobile Devices */
@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .skill-icon {
        font-size: 3rem;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

/* خدمات فخمة */
.fancy-service {
    background: linear-gradient(135deg, #111827 80%, #4e6bff 20%);
    box-shadow: 0 8px 32px rgba(78,107,255,0.12), 0 2px 8px rgba(0,0,0,0.10);
    border-radius: 18px;
    border: 1px solid #4e6bff33;
    padding: 32px 24px;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}
.fancy-service:hover {
    box-shadow: 0 16px 48px rgba(78,107,255,0.22), 0 4px 16px rgba(0,0,0,0.18);
    transform: translateY(-8px) scale(1.03);
    border-color: #00d9ff;
}
.fancy-service .service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4e6bff 60%, #00d9ff 100%);
    color: #fff;
    box-shadow: 0 2px 12px #4e6bff33;
    transition: background 0.3s, color 0.3s;
}
.fancy-service .service-icon.telegram-bg {
    background: linear-gradient(135deg, #0088cc 60%, #00d9ff 100%);
    color: #fff;
}
.fancy-service h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}
.fancy-service p {
    color: #e2e8ff;
    font-size: 1rem;
    margin-bottom: 18px;
}

.service-details {
    text-align: right;
    margin-bottom: 20px;
    padding-right: 10px;
}

.service-details li {
    color: #e2e8ff;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.fancy-service .service-link {
    display: inline-block;
    background: linear-gradient(45deg, #4e6bff, #00d9ff);
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 2px 8px #4e6bff33;
    transition: background 0.3s, box-shadow 0.3s;
    text-decoration: none;
}
.fancy-service .service-link:hover {
    background: linear-gradient(45deg, #00d9ff, #4e6bff);
    box-shadow: 0 4px 16px #00d9ff33;
}
    
    .contact-item i {
        margin-bottom: 15px;
        margin-top: 0;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links a {
        width: 100%;
    }
}