.projects-section .project-card {
    background: #fff;
    border-radius: 14px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    min-height: 350px;
    transition: all .3s ease;
    border: 1px solid #eee;
}

.project-icon img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    margin-bottom: 15px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.project-short {
    font-size: 14px;
    color: #555;
    min-height: 55px;
}

.project-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-project {
    background: #d3042c;
    color: #fff;
    padding: 7px 18px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.btn-project-outline {
    border: 1px solid #d3042c;
    padding: 7px 18px;
    font-size: 13px;
    border-radius: 6px;
    color: #d3042c;
    font-weight: 600;
    text-decoration: none;
}

.project-hover-box {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    background: #fff;
    padding: 20px;
    transition: all .4s ease;
    border-top: 1px solid #eee;
}

.project-card:hover .project-hover-box {
    bottom: 0;
}

.project-hover-box h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-hover-box p {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}
/* Project Card Base */
.project-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    transition: all 0.35s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0px 8px 18px rgba(0,0,0,0.06);
    cursor: pointer;
}

/* Lift + Shadow + Light Glow on Hover */
.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0px 15px 30px rgba(0,0,0,0.12);
    background: #f9faff;
    border-color: #dcdfff;
}

/* Icon */
.project-icon img {
    width: 60px;
    height: 60px;
    transition: transform 0.4s ease;
}

/* Slight icon zoom */
.project-card:hover .project-icon img {
    transform: scale(1.12);
}

/* Title */
.project-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-top: 10px;
}

/* Short text */
.project-short {
    font-size: 14px;
    color: #555;
    min-height: 50px;
}

/* Buttons */
.project-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.btn-project {
    background: #d3042c;
    color: #fff !important;
    padding: 7px 18px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background .3s ease, transform .2s ease;
}

.btn-project:hover {
    background: #b70225;
    transform: scale(1.05);
}

.btn-project-outline {
    border: 1px solid #d3042c;
    padding: 7px 18px;
    font-size: 13px;
    border-radius: 6px;
    color: #d3042c !important;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
}

.btn-project-outline:hover {
    background: #d3042c;
    color: #fff !important;
    transform: scale(1.05);
}

/* Hover Details Box Sliding Up */
/* Hover Box - appears on top but BELOW buttons */
.project-hover-box {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    background: #ffffff;
    padding: 20px;
    transition: all .45s ease;
    border-top: 1px solid #efefef;
    z-index: 8;               /* On top */
    pointer-events: auto;     /* Allow text selection, scrolling */
    padding-top: 80px;        /* FIX: Moves hover content below buttons */
}

/* Slide-Up */
.project-card {
    position: relative;
    padding-bottom: 80px; /* space for bottom buttons */
}
/* Buttons remain clickable */
.project-buttons,
.project-card .btn-project,
.project-card .btn-project-outline {
    position: relative;
    z-index: 10;
}



.project-hover-box h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

.project-hover-box p {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}
/* Position buttons at bottom inside card */
.fixed-bottom-buttons {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 20;
}

/* Hover box stays same */
.project-hover-box {
    position: absolute;
    left: 0;
    bottom: -100%;
    width: 100%;
    background: #fff;
    padding: 20px 20px 120px;
    transition: all .45s ease;
    border-top: 1px solid #efefef;
    z-index: 5;
}

/* Slide up */
.project-card:hover .project-hover-box {
    bottom: 0;
}
/* Background Section */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffe5e5, #fffafa);
    border-radius: 12px;
    margin-top: 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Floating Glow Decorations */
.cta-section:before,
.cta-section:after {
    content: "";
    position: absolute;
    background: rgba(255, 0, 0, 0.05);
    filter: blur(80px);
    width: 250px;
    height: 250px;
    z-index: 1;
}

.cta-section:before {
    top: -40px;
    left: -20px;
}

.cta-section:after {
    bottom: -40px;
    right: -20px;
}

/* Title */
.cta-title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

/* Subtitle */
.cta-subtitle {
    font-size: 18px;
    color: #555;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* CTA Button */
.cta-button {
    background: #d3042c;
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0px 8px 18px rgba(211, 4, 44, 0.3);
    transition: all 0.35s ease;
    position: relative;
    z-index: 2;
}

/* Hover effect */
.cta-button:hover {
    background: #b70225;
    transform: translateY(-3px);
    box-shadow: 0px 12px 24px rgba(211, 4, 44, 0.45);
}
