* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", serif;
}

body {
    background-color: #0F0E49;
    min-height: 100vh;
    padding: 40px 20px;
    overflow-x: hidden;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

#back-button {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 12px 20px;
    width: fit-content;
    margin-left: 4rem;
    margin-bottom: 2rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#back-button a {
    color: #ffffff;
    text-decoration: none;
}

#back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.title-container {
    display: inline-block;
    background: linear-gradient(135deg, #396128 0%, #578442 100%);
    padding: 30px 60px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
}

.title-container:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-5px);
}

.title-container h1 {
    color: #54b8ee;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;

}

.subtitle {
    color: #b2e4ff;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Projects Grid */
.projects-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: cardSlideIn 0.6s ease-out forwards;
    position: relative;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
    background: linear-gradient(135deg, #95cd7c 0%, #a8db8f 100%);
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #70cdff 0%, #85d7ff 100%);
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
    background: linear-gradient(135deg, #63974d 0%, #75ac5c 100%);
}

.project-card:nth-child(4) {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, #95cd7c 0%, #a8db8f 100%);
}

.project-card:nth-child(5) {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #70cdff 0%, #85d7ff 100%);
}

.project-card:nth-child(6) {
    animation-delay: 0.6s;
    background: linear-gradient(135deg, #d5ffc2 0%, #e0ffd4 100%);
}

.project-card:nth-child(7) {
    animation-delay: 0.7s;
    background: linear-gradient(135deg, #95cd7c 0%, #a8db8f 100%);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

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

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

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

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.project-title a {
    color: #1a1a1a;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.project-title a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #0F0E49;
    transition: width 0.4s ease;
}

.project-title a:hover::after {
    width: 100%;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2a2a2a;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardSlideIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #54b8ee, 0 0 20px #54b8ee, 0 0 30px #54b8ee;
    }

    to {
        text-shadow: 0 0 20px #54b8ee, 0 0 30px #54b8ee, 0 0 40px #54b8ee, 0 0 50px #54b8ee;
    }
}

/* Floating shapes background */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: #95cd7c;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    background: #70cdff;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    background: #d5ffc2;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 70px;
    height: 70px;
    background: #63974d;
    top: 30%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    25% {
        transform: translateY(-30px) translateX(30px) rotate(90deg);
    }

    50% {
        transform: translateY(-60px) translateX(-30px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) translateX(-60px) rotate(270deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title-container h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 180px;
    }
}