/* Footer Styles */
.footer {
    background: #2980B9;
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.footer-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
}

.footer-brand:hover::before {
    left: 0;
}

.footer-brand:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15);
}

.footer-logo {
    margin-right: 1rem;
}

.footer-logo .logo-img {
    height: 120px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-logo:hover .logo-img {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 8px 16px rgba(255, 215, 0, 0.3)) brightness(1.1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    letter-spacing: 1px;
}

.brand-subtitle {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 400;
}

/* Footer Headings */
.footer-heading {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    color: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    padding: 0.5rem 0 !important;
}

/* Removed animated border-bottom effect from headings */

/* Removed animated border-bottom hover effect from headings */

.footer-heading:hover {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-links button {
    color: white !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    padding: 0.25rem 0 !important;
    display: inline-block !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

/* Removed animated border-bottom effect */

.footer-links a:hover,
.footer-links button:hover {
    color: #FFD700 !important;
    transform: translateX(8px) !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3) !important;
    background: none !important;
    border: none !important;
}

/* Removed animated border-bottom hover effect */

/* Override Bootstrap dropdown-item styles for footer buttons */
.footer-links button.dropdown-item {
    color: white !important;
    background: none !important;
    border: none !important;
    padding: 0.25rem 0 !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
}

.footer-links button.dropdown-item:hover {
    color: #FFD700 !important;
    background: none !important;
    border: none !important;
    transform: translateX(8px) !important;
}

/* Footer Divider */
.footer-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.5) 50%, transparent 100%);
    margin: 2rem 0 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Removed animated border effect from footer divider */

/* Removed animated border hover effect from footer divider */

/* Removed footer divider hover effects */

/* Legal Links */
.legal-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    padding: 0.5rem 1rem !important;
    display: inline-block !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Removed animated background effect from legal links */

.legal-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* Removed animated background hover effect from legal links */

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .brand-name {
        font-size: 2.2rem;
    }
    
    .brand-subtitle {
        font-size: 1.3rem;
    }
    
    .footer-heading {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 1.1rem;
    }
    
    .footer-logo .logo-img {
        height: 140px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399.98px) and (min-width: 1200px) {
    .footer {
        padding: 3.5rem 0 1.8rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-subtitle {
        font-size: 1.2rem;
    }
    
    .footer-heading {
        font-size: 1.2rem;
        margin-bottom: 1.8rem;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 1rem;
    }
    
    .footer-logo .logo-img {
        height: 130px;
    }
}

/* Large Tablets (992px - 1199px) */
@media (max-width: 1199.98px) and (min-width: 992px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .brand-name {
        font-size: 1.8rem;
    }
    
    .brand-subtitle {
        font-size: 1.1rem;
    }
    
    .footer-heading {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 0.95rem;
    }
    
    .footer-logo .logo-img {
        height: 120px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991.98px) and (min-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer-main .row {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 2rem;
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .brand-text {
        align-items: center;
    }
    
    .brand-name {
        font-size: 1.6rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .footer-heading {
        text-align: center;
        margin-top: 1.5rem;
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 0.95rem;
    }
    
    .footer-logo .logo-img {
        height: 100px;
    }
    
    .legal-links {
        flex-direction: row; /* Changed from column to row */
        justify-content: space-around; /* Added for spacing */
        align-items: center;
    }
    
    .legal-links a {
        font-size: 0.9rem;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (max-width: 767.98px) and (min-width: 576px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-main .row {
        text-align: center;
    }
    
    .footer-main .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        justify-content: center;
        margin-bottom: 2rem;
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .brand-text {
        align-items: center;
    }
    
    .brand-name {
        font-size: 1.4rem;
    }
    
    .brand-subtitle {
        font-size: 0.9rem;
    }
    
    .footer-heading {
        text-align: center;
        margin-top: 1rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 0.9rem;
    }
    
    .footer-logo .logo-img {
        height: 80px;
    }
    
    /* Make Fynicom and Solutions links display in a row */
    .footer-main .row .col-md-6:nth-child(2),
    .footer-main .row .col-md-6:nth-child(3) {
        display: inline-block;
        width: 48%;
        vertical-align: top;
        margin-right: 2%;
    }
    
    .footer-main .row .col-md-6:nth-child(3) {
        margin-right: 0;
    }
    
    .legal-links {
        flex-direction: row; /* Changed from column to row */
        justify-content: space-around; /* Added for spacing */
        align-items: center;
    }
    
    .legal-links a {
        font-size: 0.85rem;
    }
    
    .footer-divider {
        margin: 1.5rem 0 1rem;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575.98px) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-main .row {
        text-align: center;
    }
    
    .footer-brand {
        justify-content: center;
        flex-direction: column;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .brand-text {
        align-items: center;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .footer-heading {
        text-align: center;
        margin-top: 1rem;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 0.85rem;
    }
    
    .footer-logo .logo-img {
        height: 60px;
    }
    
    /* Make Fynicom and Solutions links display in a row */
    .footer-main .row .col-md-6:nth-child(2),
    .footer-main .row .col-md-6:nth-child(3) {
        display: inline-block;
        width: 48%;
        vertical-align: top;
        margin-right: 2%;
    }
    
    .footer-main .row .col-md-6:nth-child(3) {
        margin-right: 0;
    }
    
    .legal-links {
        flex-direction: row; /* Changed from column to row */
        justify-content: space-around; /* Added for spacing */
        align-items: center;
    }
    
    .legal-links a {
        font-size: 0.8rem;
    }
    
    .footer-divider {
        margin: 1.5rem 0 1rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .footer {
        padding: 1rem 0 0.8rem;
    }
    
    .footer-main .row > div {
        margin-bottom: 1.5rem;
    }
    
    .footer-brand {
        margin-bottom: 1.5rem;
    }
    
    .brand-name {
        font-size: 1.1rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 0.8rem;
    }
    
    .footer-logo .logo-img {
        height: 50px;
    }
    
    /* Make Fynicom and Solutions links display in a row */
    .footer-main .row .col-md-6:nth-child(2),
    .footer-main .row .col-md-6:nth-child(3) {
        display: inline-block;
        width: 48%;
        vertical-align: top;
        margin-right: 2%;
    }
    
    .footer-main .row .col-md-6:nth-child(3) {
        margin-right: 0;
    }
    
    .legal-links a {
        font-size: 0.75rem;
    }
    
    .footer-divider {
        margin: 1rem 0 0.8rem;
    }
}

/* Ultra Small Mobile (up to 320px) */
@media (max-width: 320px) {
    .footer {
        padding: 0.8rem 0 0.6rem;
    }
    
    .footer-main .row > div {
        margin-bottom: 1.2rem;
    }
    
    .footer-brand {
        margin-bottom: 1.2rem;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .footer-heading {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-links a,
    .footer-links button {
        font-size: 0.75rem;
    }
    
    .footer-logo .logo-img {
        height: 45px;
    }
    
    /* Make Fynicom and Solutions links display in a row */
    .footer-main .row .col-md-6:nth-child(2),
    .footer-main .row .col-md-6:nth-child(3) {
        display: inline-block;
        width: 48%;
        vertical-align: top;
        margin-right: 2%;
    }
    
    .footer-main .row .col-md-6:nth-child(3) {
        margin-right: 0;
    }
    
    .legal-links a {
        font-size: 0.7rem;
    }
    
    .footer-divider {
        margin: 0.8rem 0 0.6rem;
    }
}

/* Container adjustments for very small screens */
@media (max-width: 575.98px) {
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
    .footer {
        padding: 1.5rem 0 1rem;
    }
    
    .footer-main .row > div {
        margin-bottom: 1.5rem;
    }
    
    .footer-brand {
        margin-bottom: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .footer-logo .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid #ccc;
    }
    
    .footer-logo .logo-img {
        filter: none !important;
    }
    
    .footer-links a,
    .footer-links button,
    .legal-links a {
        color: black !important;
    }
} 