/* ============================================
   Footer Component - Original Design
   ============================================ */

.footer {
    background: #2D2D2D;
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
    border-radius: 30px 30px 0 0;
    margin-top: -30px;
    overflow: hidden;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Floating Logo Section */
.footer__logo-section {
    margin-bottom: 1rem;
}

.footer__floating-logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    padding: 1rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    animation: footerLogoFloat 6s ease-in-out infinite;
    cursor: pointer;
}

.footer__floating-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 190, 193, 0.1) 0%, rgba(244, 231, 214, 0.1) 100%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.6s ease;
}



.footer__logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(45, 190, 193, 0.3));
    transition: all 0.6s ease;
}



.footer__logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.footer__title {
    font-family: 'Cormorant', serif;
    font-size: 1.8rem;
    font-weight: 300;
    margin: 0;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer__tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #2DBEC1;
    margin-top: 0.2rem;
    transition: all 0.4s ease;
    opacity: 0.8;
}



/* Wave Canvas */
.footer__wave-canvas {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 1;
    pointer-events: none;
}

/* Floating Animation */
@keyframes footerLogoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-8px) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(-0.5deg);
    }
}

.footer__text {
    font-size: 0.875rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.footer__heading {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    font-size: 0.875rem;
    color: white;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__links a:hover {
    opacity: 1;
    color: #2DBEC1;
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.footer__social-link:hover {
    background: #2DBEC1;
    transform: translateY(-2px);
}

/* Developer Credit */
.footer__developer {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.footer__developer .fa-heart {
    color: #e74c3c;
    font-size: 0.8rem;
    margin: 0 0.2rem;
    animation: heartbeat 2s ease-in-out infinite;
}

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

.footer__developer-link {
    color: #2DBEC1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
}

.footer__developer-link:hover {
    color: #F4E7D6;
    text-decoration: underline;
}

/* Developer Credit */
.footer__developer-credit {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.footer__developer-credit a {
    color: #2DBEC1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__developer-credit a:hover {
    color: #F4E7D6;
    text-decoration: underline;
}

/* Certification item within grid column */
.footer__certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.footer__certification-item:hover {
    transform: translateY(-2px);
}

.footer__certification-logo {
    height: 135px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.footer__certification-logo:hover {
    filter: drop-shadow(0 6px 12px rgba(45, 190, 193, 0.3));
}

.footer__certification-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__certification-title {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #F4E7D6;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}

.footer__certification-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2DBEC1;
    opacity: 0.9;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1rem;
}

.footer__developer {
    justify-self: start;
    text-align: left;
}

.footer__copyright {
    justify-self: center;
    text-align: center;
}

.footer__policy {
    justify-self: end;
    text-align: right;
}

.footer__copyright,
.footer__policy,
.footer__developer {
    font-size: 0.75rem;
    opacity: 0.6;
    margin: 0;
}

.footer__developer-link {
    color: #2DBEC1;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer__developer-link:hover {
    opacity: 1;
    color: #F4E7D6;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer__floating-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .footer__logo-text-wrapper {
        align-items: center;
    }
    
    /* Move certification to full width row on tablet */
    .footer__column:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        margin-top: 1rem;
    }
    
    .footer__certification-logo {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 1rem 1.5rem; /* Add horizontal padding */
        margin-top: 0; /* Remove negative margin that might cause layout issues */
        border-radius: 20px 20px 0 0; /* Smaller border radius */
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem; /* Reduce gap between sections */
        padding: 0 0.5rem; /* Add internal padding */
    }
    
    .footer__floating-logo {
        justify-content: center;
        margin: 0 auto 1.5rem; /* Reduce bottom margin */
        max-width: 280px;
        padding: 0.5rem; /* Reduce padding */
    }
    
    .footer__logo-image {
        height: 40px; /* Smaller logo on mobile */
    }
    
    .footer__title {
        font-size: 1.5rem; /* Smaller title */
    }
    
    .footer__tagline {
        font-size: 0.6rem; /* Smaller tagline */
    }
    
    .footer__text {
        font-size: 0.8rem; /* Smaller text */
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .footer__heading {
        font-size: 0.8rem;
        margin-bottom: 1rem; /* Reduce margin */
    }
    
    .footer__links {
        margin-bottom: 1.5rem;
    }
    
    .footer__links li {
        margin-bottom: 0.4rem;
    }
    
    .footer__links a {
        font-size: 0.8rem;
    }
    
    .footer__social {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .footer__social-link {
        width: 36px; /* Smaller social icons */
        height: 36px;
    }
    
    .footer__bottom {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding-top: 1.5rem;
        align-items: center;
    }
    
    .footer__developer {
        justify-self: auto;
        text-align: center;
        order: 2;
        margin-top: 0;
    }
    
    .footer__copyright {
        justify-self: auto;
        text-align: center;
        order: 1;
        font-size: 0.75rem;
    }
    
    .footer__policy {
        justify-self: auto;
        text-align: center;
        order: 3;
        font-size: 0.7rem;
    }
    
    .footer__wave-canvas {
        height: 50px; /* Smaller wave height */
    }
    
    /* Mobile certification styling */
    .footer__certification-logo {
        height: 135px;
    }
    
    .footer__certification-title {
        font-size: 0.9rem;
    }
    
    .footer__certification-subtitle {
        font-size: 0.65rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .footer {
        padding: 2rem 0.5rem 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .footer__grid {
        gap: 1.5rem;
        padding: 0;
    }
    
    .footer__bottom {
        padding-top: 1rem;
        gap: 0.6rem;
    }
    
    .footer__developer {
        font-size: 0.65rem;
    }
    
    .footer__developer .fa-heart {
        font-size: 0.7rem;
        margin: 0 0.15rem;
    }
    
    .footer__copyright {
        font-size: 0.65rem;
        line-height: 1.4;
    }
    
    .footer__title {
        font-size: 1.3rem;
    }
    
    .footer__tagline {
        font-size: 0.55rem;
        margin-top: 0.15rem;
    }
    
    .footer__text {
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
}