/********** Template CSS **********/
:root {
    /* Modern Light Color Palette */
    --background: #fafafa;
    --surface: #ffffff;
    --surface-hover: #f5f5f5;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --stroke: rgba(0, 0, 0, 0.1);
    --accent: #f59e0b;
    --danger: #ef4444;
}

/* Modern Base Styles */
body {
    background: var(--background);
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    font-weight: 900;
    letter-spacing: 2px;
}

h2 {
    font-weight: 800;
    letter-spacing: 1.5px;
}

/* Modern Card Styles */
.card, .fact-item, .service-item, .team-item, .project-item {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover, .fact-item:hover, .service-item:hover, .team-item:hover, .project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card::after, .fact-item::after, .service-item::after, .team-item::after, .project-item::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: inherit;
    opacity: 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover::after, .fact-item:hover::after, .service-item:hover::after, .team-item:hover::after, .project-item:hover::after {
    opacity: 1;
}

/* Card Content Animations */
.card *, .fact-item *, .service-item *, .team-item *, .project-item * {
    transition: all 0.3s ease;
}

.card:hover i, .fact-item:hover i, .service-item:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary);
}

.card:hover h4, .fact-item:hover h5, .service-item:hover h5, .team-item:hover h5, .project-item:hover h5 {
    color: var(--primary);
    transform: translateY(-2px);
}

.card:hover p, .fact-item:hover p, .service-item:hover p, .team-item:hover p, .project-item:hover p {
    transform: translateY(-2px);
}

/* Modern Button Styles */
.btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white !important;
    transform: none;
}

.btn-light {
    background: var(--surface);
    border: 1px solid var(--stroke);
    color: var(--text-primary);
}

.btn-light:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

/* Modern Input Styles */
.form-control {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: var(--surface);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Modern Section Styles */
.section-title {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

/* About Section Title */
#about .section-title {
    background: linear-gradient(45deg, #f43f5e, #ec4899);
    color: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.2);
    transform: rotate(-2deg);
}

/* Services Section Title */
#services .section-title {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0 50%);
}

/* Projects Section Title */
#projects .section-title {
    background: linear-gradient(120deg, var(--primary), #8b5cf6);
    color: white;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 15% 100%, 0 70%);
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

/* Team Section Title */
#team .section-title {
    background: none;
    border: 2px dashed var(--primary);
    color: var(--primary);
    border-radius: 30px;
    animation: border-dance 8s linear infinite;
}

@keyframes border-dance {
    0% {
        border-style: dashed;
    }
    25% {
        border-style: solid;
    }
    50% {
        border-style: dotted;
    }
    75% {
        border-style: double;
    }
    100% {
        border-style: dashed;
    }
}

/* Features Section Title */
#features .section-title {
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    color: white;
    border-radius: 4px;
    transform: skew(-15deg);
}

/* Facts Section Title */
#facts .section-title {
    background: none;
    color: var(--primary);
    border: none;
    text-shadow: 2px 2px 0 rgba(var(--primary-rgb), 0.2);
    position: relative;
}

#facts .section-title::before,
#facts .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

#facts .section-title::before {
    left: -40px;
    transform: translateY(-50%) rotate(45deg);
}

#facts .section-title::after {
    right: -40px;
    transform: translateY(-50%) rotate(-45deg);
}

/* Contact Section Title */
#contact .section-title {
    background: none;
    color: var(--primary);
    border: none;
    position: relative;
    overflow: hidden;
}

#contact .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary) 50%,
        transparent 100%
    );
    animation: line-dance 2s linear infinite;
}

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

/* Modern Service Item */
.service-item {
    text-align: left;
    padding: 2rem;
}

.service-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.service-item:hover i {
    transform: none;
}

/* Modern Team Item */
.team-item {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    isolation: isolate;
}

.team-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.team-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-color: transparent;
}

.team-item:hover::before {
    opacity: 0.1;
}

.team-img {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.team-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--surface) 100%);
    opacity: 0.9;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.team-item:hover .team-img::after {
    opacity: 0.6;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.team-item:hover .team-img img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.team-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 100px;
    overflow: hidden;
    z-index: 10;
    background: linear-gradient(to top, var(--surface) 0%, transparent 100%);
}

.team-item:hover .team-content {
    max-height: 400px;
    background: var(--surface);
    padding-top: 1.5rem;
    background: linear-gradient(to top, var(--surface) 90%, transparent 100%);
}

.team-header {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.team-name {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.team-position {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.team-item:hover .team-position {
    color: var(--primary-hover);
}

.team-details {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
}

.team-item:hover .team-details {
    opacity: 1;
    transform: translateY(0);
}

.team-social {
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 150px; /* Half of the card height */
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to bottom, var(--surface) 0%, transparent 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
}

.team-item:hover .team-social {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.team-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--surface-hover);
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    position: relative;
    z-index: 4;
    transform: translateY(0);
    text-decoration: none;
    border: 1px solid var(--stroke);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 8px 20px -5px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

/* Platform-specific colors */
.team-social a[href*="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 8px 20px -5px rgba(0, 119, 181, 0.3);
}

.team-social a[href*="github"]:hover {
    background: #333;
    border-color: #333;
    box-shadow: 0 8px 20px -5px rgba(51, 51, 51, 0.3);
}

.team-social a[href*="upwork"]:hover {
    background: #14a800;
    border-color: #14a800;
    box-shadow: 0 8px 20px -5px rgba(20, 168, 0, 0.3);
}

/* Custom Upwork SVG icon styling */
.team-social .upwork-icon {
    width: 1.1rem;
    height: 1.1rem;
    transition: all 0.3s ease;
}

.team-social a i,
.team-social a svg {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.team-social a:hover i,
.team-social a:hover svg {
    transform: scale(1.1);
}

.team-specialization {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    order: 1;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.team-item:hover .team-specialization {
    color: var(--text-primary);
}

/* Remove the old overlay */
.team-content::after {
    display: none;
}

/* Modern Project Item */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: 400px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.project-item .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
}

.project-item:hover .project-overlay {
    opacity: 1;
    pointer-events: auto;
}

.project-item .project-content {
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    max-height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    pointer-events: auto;
    padding-right: 8px;
    z-index: 2;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Custom scrollbar styles */
.project-item .project-content::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.project-item .project-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.project-item .project-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-item .project-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar styles */
.project-item .project-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Add a subtle fade at the bottom to indicate more content */
.project-item .project-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

/* Add a scroll indicator */
.project-item .scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
    pointer-events: none;
    z-index: 3;
}

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

.project-item:hover .project-content {
    transform: translateY(0);
    opacity: 1;
}

/* Light text on project card hover */
.project-item:hover .project-content h5,
.project-item:hover .project-content h4,
.project-item:hover .project-content h3,
.project-item:hover .project-content h2,
.project-item:hover .project-content h1 {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.project-item:hover .project-content p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.project-item:hover .project-content span,
.project-item:hover .project-content small {
    color: rgba(255, 255, 255, 0.8) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-item .project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
    max-width: 100%;
    margin-top: 1rem;
    justify-content: flex-start;
}

.project-item .project-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    border-radius: 30px;
    color: #fff !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: rgba(99, 102, 241, 0.8);
    white-space: nowrap;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    z-index: 10;
    position: relative;
    text-decoration: none;
}

.project-item .project-btn:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
    text-decoration: none;
}

/* Ensure Live Demo button is always visible and clickable */
.project-item:hover .project-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.project-item .project-btn i {
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Project Card Grid Layout */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Project Card Tags */
.project-item .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-width: 100%;
    overflow: hidden;
}

.project-item .project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #fff;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

/* Project Card Stats */
.project-item .project-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.project-item .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.project-item .stat-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Project Card Loading Effect */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.6s ease;
}

.project-item:hover::before {
    left: 100%;
}

/* Text Content Overflow Prevention */
.project-item .project-content * {
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.project-item .project-content h1,
.project-item .project-content h2,
.project-item .project-content h3,
.project-item .project-content h4,
.project-item .project-content h5,
.project-item .project-content h6 {
    hyphens: auto;
    line-height: 1.2;
}

.project-item .project-content p {
    hyphens: auto;
    line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .project-item {
        height: 350px;
    }
    
    .project-item .project-description {
        max-height: 3.2rem;
        -webkit-line-clamp: 2;
    }
    
    .project-item .project-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .project-item .project-links {
        gap: 0.5rem;
    }
    
    .project-item .project-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        min-width: auto;
    }
    
    .project-item .project-overlay {
        padding: 1.5rem;
    }
}

/* Modern Testimonial Item */
.testimonial-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.15);
}

.testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-item h5 {
    color: var(--primary);
}

.testimonial-item span {
    color: var(--text-secondary);
}

.testimonial-item p {
    color: var(--text-secondary);
}

.testimonial-item .testimonial-name {
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-item .testimonial-position {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Testimonial Carousel Styles */
.testimonial-carousel {
    padding-top: 5px;
    padding-bottom: 5px;
}

.testimonial-carousel .owl-item {
    padding: 10px 5px;
}

/* Testimonial Item */
.testimonial-item:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.15);
}

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

.testimonial-item p {
    color: var(--text-secondary);
}

.testimonial-item h5 {
    color: var(--text-primary);
}

.testimonial-item span {
    color: var(--primary);
}

.testimonial-item .testimonial-name {
    color: var(--text-primary);
    font-weight: 600;
}

.testimonial-item .testimonial-position {
    color: var(--text-tertiary);
}

/* Testimonial Carousel Navigation */
.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/* Active Item Styling */
.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary);
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

/* Modern Carousel Navigation */
.owl-nav button {
    width: 46px;
    height: 46px;
    border-radius: 50% !important;
    background: var(--surface) !important;
    border: 1px solid var(--stroke) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.owl-nav button:hover {
    background: var(--primary) !important;
    color: var(--text-primary) !important;
}

/* Modern Animation Classes */
.fadeInUp {
    opacity: 1;
    transform: none;
}

/* Modern Responsive Design */
@media (max-width: 991.98px) {
    .card, .fact-item, .service-item, .team-item, .project-item {
        padding: 1.5rem;
    }

    .section-title {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .navbar-nav {
        background: var(--surface);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 1rem;
    }
}

/* Modern Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

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

@keyframes rotateIn {
    0% { transform: rotate(-180deg) scale(0.3); opacity: 0; }
    100% { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* Modern Team Card */
.team-item {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: none;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.team-item:hover {
    transform: none;
    background: var(--background);
    border-color: rgba(127, 90, 240, 0.2);
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.15);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
    background: var(--background);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
    background: var(--surface);
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
    color: var(--text-primary);
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-position {
    color: var(--text-tertiary);
}

/* Modern Section Titles */
.section-title {
    animation: none;
    color: var(--text-primary);
    font-weight: 700;
}

.section-title::before,
.section-title::after {
    background: var(--primary);
    transition: all 0.3s ease;
}

.section-title span {
    color: var(--primary);
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

/* Modern Navbar */
.navbar {
    background: var(--background) !important;
    border-bottom: 2px solid var(--primary) !important;
    backdrop-filter: blur(10px);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

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

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

.navbar .navbar-brand h1 {
    color: var(--primary);
}

.navbar .navbar-toggler {
    border-color: var(--primary);
}

.navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(99, 102, 241, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Modern Progress Bars */
.progress {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    height: 10px;
}

.progress .progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.progress-title {
    color: var(--text-primary);
    font-weight: 500;
}

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

/* Modern Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--stroke);
    padding-top: 5rem;
}

.footer-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: none;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: none;
}

/* Text Colors */
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Button Styles */
.btn.btn-outline-light {
    border-color: var(--text-tertiary);
    color: var(--text-secondary);
}

.btn.btn-outline-light:hover {
    color: var(--dark);
    background: var(--text-primary);
}

/* Form Elements */
.form-control,
.form-select {
    background: var(--surface);
    border: 1.5px solid #e5e7eb;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    background: var(--surface);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Table Styles */
.table {
    color: var(--text-secondary);
}

.table thead th {
    color: var(--text-primary);
    font-weight: 600;
}

.table-dark {
    background-color: var(--surface);
    color: var(--text-secondary);
}

/* Modal Styles */
.modal-content {
    background-color: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.modal-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
}

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

.modal-body {
    color: var(--text-secondary);
}

/* Card Overlays */
.carousel-caption {
    background: none !important;
}

.page-header {
    background: rgba(22, 22, 26, 0.8) !important;
}

/* Lists and Navigation */
.breadcrumb-item {
    color: var(--text-tertiary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* Stats and Numbers */
.fact-item .fact-number {
    color: var(--text-primary);
    font-weight: 700;
}

.fact-item .fact-text {
    color: var(--text-tertiary);
}

/* Project Items */
.project-title {
    color: var(--text-primary);
    font-weight: 600;
}

.project-category {
    color: var(--text-tertiary);
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.back-to-top:hover {
    background: var(--primary-hover);
    transform: none;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Header ***/
#header-carousel {
    height: 800px; /* Set fixed height for all carousel items */
}

#header-carousel .carousel-item {
    height: 800px; /* Ensure all carousel items have the same height */
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio while filling the container */
    object-position: center; /* Center the image */
}

#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    z-index: 1;
}

/* Text shadows for carousel caption readability */
#header-carousel .carousel-caption h1,
#header-carousel .carousel-caption h2,
#header-carousel .carousel-caption h3,
#header-carousel .carousel-caption h4,
#header-carousel .carousel-caption h5,
#header-carousel .carousel-caption h6 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    color: white;
}

#header-carousel .carousel-caption p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    color: white;
}

#header-carousel .carousel-control-prev,
#header-carousel .carousel-control-next {
    width: 10%;
}

#header-carousel .carousel-control-prev-icon,
#header-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (max-width: 768px) {
    #header-carousel {
        height: 500px; /* Smaller height for mobile devices */
    }
    
    #header-carousel .carousel-item {
        height: 500px; /* Smaller height for mobile devices */
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--secondary);
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 4px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}

.section-title.bg-white {
    background: transparent !important;
}

.section-title.bg-white.text-start {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.section-title.bg-white.text-start h1,
.section-title.bg-white.text-start h2,
.section-title.bg-white.text-start h3,
.section-title.bg-white.text-start h4,
.section-title.bg-white.text-start h5,
.section-title.bg-white.text-start h6 {
    color: var(--text-primary);
    margin: 0;
    padding: 0;
}

.section-title.bg-white.text-start p {
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
}

.section-title.bg-white.text-start span {
    color: var(--primary);
    margin: 0;
    padding: 0;
}

/* Remove the white background pseudo-elements for bg-white variant */
.section-title.bg-white::before,
.section-title.bg-white::after {
    display: none;
}

/* Ensure text-start alignment works properly */
.section-title.text-start {
    text-align: left !important;
    background: transparent !important;
}

/*** Img Border ***/
.img-border {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.img-border::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 3rem;
    bottom: 3rem;
    border: 2px solid var(--primary) !important;
    border-radius: 6px;
}

.img-border img {
    position: absolute;
    top: 3rem;
    left: 3rem;
    width: calc(100% - 3rem);
    height: calc(100% - 3rem);
    object-fit: cover;
    border-radius: 6px;
}

/*** Facts ***/
.fact-item {
    background: var(--dark) !important;
    border: 1px solid rgba(127, 90, 240, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: none;
    background: var(--surface) !important;
    border-color: rgba(127, 90, 240, 0.3);
    box-shadow: 0 8px 24px rgba(127, 90, 240, 0.15);
}

.fact-item i {
    color: var(--primary);
    font-size: 40px;
    transition: all 0.3s ease;
}

.fact-item:hover i {
    transform: none;
}

.fact-item h5 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 15px;
}

.fact-item h1 {
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 0;
}

/* Counter animation */
.fact-item.animated .fact-number {
    animation: none;
}

/*** Project ***/
.project-item a {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: rgba(0, 0, 0, .5);
    border-radius: 6px;
    opacity: 0;
    transition: .5s;
}

.project-item:hover a {
    opacity: 1;
}

.project-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.project-carousel .owl-dot {
    width: 35px;
    height: 35px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DEE2E6;
    border-radius: 35px;
    transition: .5s;
}

.project-carousel .owl-dot:hover,
.project-carousel .owl-dot.active {
    color: #FFFFFF;
    border-color: var(--primary);
    background: var(--primary);
}

/*** Team ***/
.team-item .team-text {
    position: relative;
    height: 65px;
    overflow: hidden;
}

.team-item .team-title {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-item:hover .team-title {
    top: -65px;
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 65px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    transition: .5s;
}

.team-item .team-social .btn {
    margin: 0 3px;
    background: var(--background);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.team-item .team-social .btn:hover {
    background: var(--primary);
    color: var(--light);
}

.team-item:hover .team-social {
    top: 0;
    background: transparent;
}

/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item img {
    width: 60px;
    height: 60px;
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 12px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/*** Footer ***/
.footer {
    padding-top: 3rem;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--secondary);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--secondary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
}

.footer .btn-square {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border: 1px solid rgba(256, 256, 256, .1);
}

.footer .btn-square:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.footer .btn-square:hover i {
    color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.footer .contact-info i {
    width: 25px;
}

.footer .social-links {
    margin-top: 2rem;
}

/* Hide project page links from navigation and footer */
.nav-item.nav-link[href="project.html"],
.btn.btn-link[href="project.html"],
.btn.btn-light[href="project.html"] {
    display: none !important;
}

/* Hide project section on homepage */
#projects {
    display: none !important;
}

@media (max-width: 991.98px) {
    .footer .btn.btn-link {
        margin-bottom: 8px;
    }

    .footer .copyright {
        text-align: center;
}