/* 
 * الصفحة التعريفية - تصميم مودرن واحترافي
 * ====================================
 */

/* إعدادات عامة */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #536dfe;
    --accent-color: #4d3fff;
    --dark-color: #2a2a2a;
    --light-color: #f8f9fa;
    --text-color: #4a4a4a;
    --white: #ffffff;
    --gray: #6c757d;
    --success: #28a745;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --cursor-size: 20px;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    opacity: 1;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: var(--cursor-size);
    height: var(--cursor-size);
    border: 2px solid rgba(108, 99, 255, 0.5);
    transition: all 0.15s ease-out;
}

/* Cursor hover effects */
a:hover ~ .cursor-dot,
button:hover ~ .cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: var(--accent-color);
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: rgba(108, 99, 255, 0.2);
}

/* Page smooth scroll */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

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

/* Page Transition Effects */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9998;
    transform: scaleX(0);
    transform-origin: right;
}

.page-transition.is-active {
    transform: scaleX(1);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.is-active-out {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Smooth Hover Effects */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* Enhanced Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section-header:hover h2::after {
    width: 100px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: none; /* Use custom cursor */
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: left 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Advanced Button Effect */
.btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn.ripple::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(20);
        opacity: 0;
    }
}

/* القائمة الرئيسية */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    background-color: var(--white);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* قسم الترحيب */
.hero {
    background: linear-gradient(135deg, rgba(40, 40, 100, 0.9), rgba(20, 20, 50, 0.95)), url('https://placehold.co/1920x1080') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.text-zone h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hi-text {
    color: var(--primary-color);
}

.name-text {
    display: inline-block;
    position: relative;
    color: var(--primary-color);
}

.name-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.text-zone h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
}

.text-zone p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-down i {
    margin-top: 10px;
    font-size: 1.2rem;
}

.hero-shapes .shape {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

/* قسم من نحن */
.about {
    background-color: var(--white);
}

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

.image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}

.experience-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.experience-box .number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-box .text {
    font-size: 0.9rem;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.personal-info {
    margin: 30px 0;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.info-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.info-title {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 120px;
}

.info-value {
    color: var(--text-color);
}

/* قسم الخدمات */
.services {
    background-color: var(--light-color);
}

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

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* قسم المشاريع */
.portfolio {
    background-color: var(--white);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 25px;
    background-color: var(--light-color);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    background-color: var(--white);
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item-inner {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.portfolio-overlay .btn {
    margin-top: 10px;
}

/* قسم الإحصائيات */
.counter {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://placehold.co/1920x1080') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.counter-item i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.count {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.counter-item h3 {
    font-size: 1.2rem;
}

/* قسم آراء العملاء */
.testimonials {
    background-color: var(--light-color);
}

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

.testimonial-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary-color);
    position: absolute;
}

.testimonial-content p::before {
    top: -10px;
    right: 0;
}

.testimonial-content p::after {
    bottom: -20px;
    left: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 15px;
}

.author-info h4 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: #666;
}

/* قسم الاتصال */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 15px;
    width: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* الذيل */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.footer-links h3,
.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--white);
    position: relative;
}

.footer-links h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.footer-newsletter p {
    margin-bottom: 15px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    width: 70%;
    font-family: 'Tajawal', sans-serif;
}

.footer-newsletter .btn {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    background-color: var(--primary-color);
    padding: 0 15px;
}

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

/* الانيميشن */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* وسائط استجابية */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 80%;
        height: calc(100vh - 70px);
        padding: 30px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-title {
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .counter-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-newsletter form {
        flex-direction: column;
    }
    
    .footer-newsletter input {
        width: 100%;
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .footer-newsletter .btn {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

/* قسم من أنا */
.personal-info {
    margin: 25px 0;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
}

.info-item {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-title {
    font-weight: 700;
    color: var(--dark-color);
    min-width: 150px;
}

.info-value {
    color: var(--text-color);
}

/* قسم المهارات */
.skills {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.skills::before,
.skills::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    opacity: 0.05;
    border-radius: 50%;
    z-index: 0;
}

.skills::before {
    top: -100px;
    right: -100px;
}

.skills::after {
    bottom: -100px;
    left: -100px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.skill-category {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    border-radius: 30px;
    transition: width 1.5s cubic-bezier(0.1, 0.45, 0.1, 1);
    width: 0;
}

/* تحديثات لقسم المشاريع */
.portfolio-overlay a {
    margin-top: 10px;
    display: inline-block;
}

/* تحديثات على الأزرار */
.btn-sm {
    padding: 6px 15px;
    font-size: 0.9rem;
}

/* تحديثات على الخدمات */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* تحديثات وسائط استجابية */
@media (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-title {
        margin-bottom: 5px;
    }
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
    animation: floatAround 15s linear infinite;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, 50px) rotate(90deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Ripple effect on buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    transform: scale(0);
    animation: ripple-effect 0.6s linear;
}

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

/* Enhanced Testimonial Dots */
.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-color);
    cursor: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.testimonial-dots .dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.testimonial-dots .dot:hover {
    transform: scale(1.2);
}

/* Success messages */
.success-message,
.success-text {
    background-color: var(--success);
    color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-message i,
.success-text i {
    margin-right: 10px;
}

/* Form error styles */
input.error,
textarea.error {
    border-color: #dc3545 !important;
    animation: shake 0.5s linear;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Enhanced hover effects */
.service-card:hover .service-icon,
.counter-item:hover i {
    animation: bounce 0.6s ease;
}

.nav-links a:hover,
.portfolio-filters button:hover,
.social-links a:hover {
    animation: pulse 0.5s ease;
}

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

/* Gradient text effect */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Enhanced image hover effects */
.image-container {
    overflow: hidden;
    position: relative;
}

.image-container img {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.image-container:hover img {
    transform: scale(1.1);
}

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover::after {
    opacity: 1;
}

/* Page Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Testimonial Item Animation */
.testimonial-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.testimonials-slider {
    position: relative;
}

/* Extra animations for hero section */
.hero-content .text-zone h1,
.hero-content .text-zone h2,
.hero-content .text-zone p {
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.hero-content .text-zone h2 {
    animation-delay: 0.2s;
}

.hero-content .text-zone p {
    animation-delay: 0.4s;
}

.hero-content .cta-buttons {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

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

/* Scroll indicator animation enhancement */
.scroll-down {
    animation: float 2s ease-in-out infinite;
}

.scroll-down i {
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* Enhanced counter animation */
.counter-item {
    transition: transform 0.3s ease;
}

.counter-item:hover {
    transform: translateY(-10px);
}

.count {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Portfolio overlay enhanced animation */
.portfolio-overlay {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Service card icon animation */
.service-icon {
    position: relative;
    transition: transform 0.3s ease;
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: -1;
    transform: scale(0);
    opacity: 0.1;
    transition: transform 0.3s ease;
}

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

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

:root {
  --primary-color: #6c63ff;
  --secondary-color: #f50057;
  --dark-color: #0a1930;
  --light-color: #f4f7ff;
  --success-color: #0cce6b;
  --text-color: #333;
  --text-light: #767676;
  --border-color: rgba(0, 0, 0, 0.1);
  --border-light: rgba(255, 255, 255, 0.08);
  --card-background: white;
  --body-background: #f9fafb;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* General settings */
/* ... existing code ... */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn i {
  margin-right: 10px;
  font-size: 18px;
}

.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;
}

.btn:hover:before {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
  background: #5a52e0;
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

/* Header */
/* ... existing code ... */

/* Hero section */
.hero {
  position: relative;
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7ff 0%, #e3e7ff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 5;
}

.hero .badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero .badge i {
  margin-right: 8px;
  font-size: 16px;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.hero h1 .hi-text {
  color: var(--primary-color);
}

.hero h1 .name-text {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
}

.hero h1 .name-text:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  height: 8px;
  background-color: rgba(108, 99, 255, 0.3);
  z-index: -1;
}

.hero h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-color);
}

.text-gradient {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-light);
}

.tech-stack {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  font-size: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tech-icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  color: var(--secondary-color);
}

.hero-image {
  position: relative;
  height: 500px;
  width: 100%;
}

.lottie-animation {
  width: 100%;
  height: 100%;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  animation: float 6s infinite ease-in-out;
}

.hero-shapes .shape-1 {
  width: 60px;
  height: 60px;
  background: rgba(255, 82, 82, 0.2);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.hero-shapes .shape-2 {
  width: 80px;
  height: 80px;
  background: rgba(108, 99, 255, 0.2);
  top: 60%;
  left: 15%;
  animation-delay: 1s;
}

.hero-shapes .shape-3 {
  width: 50px;
  height: 50px;
  background: rgba(252, 176, 69, 0.2);
  top: 30%;
  right: 10%;
  animation-delay: 2s;
}

.hero-shapes .shape-4 {
  width: 70px;
  height: 70px;
  background: rgba(80, 227, 194, 0.2);
  bottom: 20%;
  right: 15%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  font-size: 14px;
  animation: fadeInUp 1.5s ease infinite;
}

.scroll-down i {
  margin-top: 8px;
  font-size: 18px;
}

@keyframes fadeInUp {
  0%, 100% {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
  }
  50% {
    opacity: 0.5;
    transform: translateY(10px) translateX(-50%);
  }
}

/* Floating elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  box-shadow: var(--shadow);
  color: var(--primary-color);
  font-size: 26px;
  animation: floatElement 8s infinite ease-in-out;
}

.floating-element:nth-child(2) {
  animation-delay: 1s;
  color: #f7df1e; /* JavaScript color */
}

.floating-element:nth-child(3) {
  animation-delay: 2s;
  color: #3178c6; /* TypeScript color */
}

.floating-element:nth-child(4) {
  animation-delay: 3s;
  color: #61dafb; /* React color */
}

.floating-element:nth-child(5) {
  animation-delay: 4s;
  color: #68a063; /* Node.js color */
}

@keyframes floatElement {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
  z-index: 999;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  transition: all 0.1s ease-out;
}

.cursor-visible .cursor-dot,
.cursor-visible .cursor-outline {
  opacity: 1;
}

.cursor-active .cursor-outline {
  width: 30px;
  height: 30px;
  background-color: rgba(108, 99, 255, 0.1);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
  z-index: 99;
}

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

.back-to-top:hover {
  background: #5a52e0;
  transform: translateY(-5px);
}

.back-to-top i {
  font-size: 24px;
}

/* Particles background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Typing animation */
.typing-text::after {
  content: '|';
  animation: blink 0.8s infinite;
}

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

/* Media Queries */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero h1 {
    font-size: 48px;
  }
  
  .hero h2 {
    font-size: 20px;
  }
  
  .tech-stack,
  .cta-buttons {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 40px;
  }
  
  .floating-element {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-shapes .shape {
    display: none;
  }
} 