body {
    font-family: 'Chakra Petch', sans-serif;
    overflow-x: hidden;
    background-color: black;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.menu-overlay.active {
    clip-path: circle(150% at 50% 50%);
    pointer-events: all;
}

.menu-link {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.menu-link:nth-child(1) { transition-delay: 0.2s; }
.menu-link:nth-child(2) { transition-delay: 0.4s; }
.menu-link:nth-child(3) { transition-delay: 0.6s; }

.project-card {
    transform: translateY(50px);
    opacity: 0;
    position: relative;
    border: 1px solid transparent;
    transition: transform 0.3s ease, opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) var(--animate-delay);
}

.project-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.content-section {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: black;
    position: relative;
    z-index: 5;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    position: relative;
    overflow: hidden;
    background-color: black;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hero-title span {
    display: inline-block;
    transform: translateY(80px);
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

.hero-title.visible span {
    transform: translateY(0);
    opacity: 1;
}

.hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.8s;
}

.hero.visible .hero-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* BUTONUL REVIZUIT - SOLUȚIA FUNCTIONALA */
.hero-button-wrapper {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 1.2s;
    display: inline-block;
}

.hero.visible .hero-button-wrapper {
    opacity: 1;
    transform: translateY(0);
}

.glow-button {
    position: relative;
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: white;
    color: black;
    font-size: 0.875rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.glow-button .btn-content {
    position: relative;
    z-index: 10;
}

.glow-button .btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0.8) 100%);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.3s;
}

.glow-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(255,255,255,0.4);
}

.glow-button:hover .btn-glow {
    opacity: 1;
}

@keyframes wave {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(5px) translateY(-5px); }
    50% { transform: translateX(0) translateY(-10px); }
    75% { transform: translateX(-5px) translateY(-5px); }
}

.floating {
    animation: wave 3s ease-in-out infinite;
}

.project-image-container {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-link-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    z-index: 2;
}

.project-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-card:hover .project-link-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-filter {
    font-weight: 300;
    transition: all 0.2s ease;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    outline: inherit;
}

.category-filter:hover, .category-filter.active {
    font-weight: 700;
    color: white;
}

.category-filter.active {
    font-weight: 700;
    color: white;
    pointer-events: none;
}

.category-filter + span {
    color: rgba(255, 255, 255, 0.3);
    user-select: none;
}

@media (max-width: 768px) {
    .category-filter + span {
        display: inline !important;
        margin: 0 0.25rem;
    }
    
    .category-filter {
        font-size: 0.9rem;
    }
    
    .flex-wrap.justify-center {
        gap: 0.25rem !important;
    }
}

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    transform: scale(1.05);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: translateY(-5px);
}

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 1rem;
    }
}

.contact-info-group {
    transition: all 0.3s ease;
}

.contact-info-group:hover {
    transform: translateX(5px);
}

.contact-icon {
    transition: color 0.3s ease;
}

.contact-info-group:hover .contact-icon {
    color: white;
}

.contact-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.submit-btn {
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white !important;
}




/* Animații pentru mesaje */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out forwards;
}

.animate-fade-out {
    animation: fade-out 0.3s ease-out forwards;
}

/* Stiluri pentru butonul de trimitere */
button[type="submit"] .fa-spinner {
    animation: spin 1s linear infinite;
}

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

.skill-icon {
    width: 1.8rem;  /* Iconiță mai mică */
    height: 1.8rem; /* Iconiță mai mică */
    margin: 0 auto 0.5rem auto /* Centrare */;
    filter: brightness(0) invert(1) /* Sigur alb */;
    transition: all 0.3s ease;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Projects Toggle Buttons - Compact */
.projects-toggle-btn {
    margin: 0 0.4rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
    font-size: 0.8rem;
}

.projects-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 6px rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.2) !important;
}

@media (max-width: 768px) {
    .projects-toggle-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.75rem;
        min-width: 90px;
    }
}

