/* Project Icons Styles */
/* Project cards styling */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.featured-card {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-icon {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--gradient-primary);
    color: var(--light-color);
    font-size: 4rem;
    transition: all 0.3s ease;
}

.featured-card:hover .project-icon i {
    animation: pulse 1.5s infinite;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status.active {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
}

.project-status.archived {
    background-color: rgba(192, 57, 43, 0.2);
    color: #c0392b;
}

.card-description {
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--gradient-primary);
    color: var(--light-color);
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

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

/* Dark mode adjustments */
.dark-mode .featured-card {
    background-color: var(--gray-color);
}

.dark-mode .card-link:hover {
    color: var(--primary-color);
}

/* Hero section layout */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.5s ease;
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    border: 5px solid var(--light-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blob {
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--gradient-primary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blobAnimation 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes blobAnimation {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* Smoother animations */
.fade-in, 
.scale-in, 
.slide-in-left, 
.slide-in-right {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Button styles for links page */
.link-button {
    display: inline-block;
    width: 120px; /* Fixed width for consistency */
    padding: 0.8rem 0;
    background: var(--gradient-primary);
    color: var(--light-color);
    border-radius: 5rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.4);
    color: var(--light-color);
}

.link-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.link-button:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.dark-mode .link-button {
    background: var(--gradient-primary);
    color: var(--light-color);
}

/* Search animations */
.link-card {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.filter-tag {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.filter-tag:hover:before {
    animation: shine 1.5s;
}

@keyframes shine {
    100% {
        transform: translateX(100%);
    }
}

/* Fix footer text in dark mode */
.dark-mode .footer-bottom p,
.dark-mode .footer-logo .logo-text,
.dark-mode .footer-description,
.dark-mode .footer h4,
.dark-mode .footer-links a {
    color: var(--light-color) !important;
}

/* Optimize cursor performance */
.cursor, 
.cursor-follower {
    pointer-events: none;
    will-change: transform;
    position: fixed;
    z-index: 9999;
    transition: transform 0.1s ease-out;
    mix-blend-mode: exclusion;
}

.cursor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out, width 0.2s ease-out, height 0.2s ease-out;
}

/* Improved scroll animations */
[data-scroll] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-scroll="in"] {
    opacity: 1;
    transform: translateY(0) !important;
}

[data-scroll="out"] {
    opacity: 0;
}

[data-scroll="up"] {
    transform: translateY(100px);
}

[data-scroll="down"] {
    transform: translateY(-100px);
}

[data-scroll="left"] {
    transform: translateX(100px);
}

[data-scroll="right"] {
    transform: translateX(-100px);
}

/* Prevent white flash */
html.transition,
html.transition *,
html.transition *:before,
html.transition *:after {
    transition: all 0s !important;
    -webkit-transition: all 0s !important;
    -moz-transition: all 0s !important;
    -ms-transition: all 0s !important;
    -o-transition: all 0s !important;
}
