﻿/* ===== SAHEBRAO FOOTER STYLES - ISOLATED ===== */

/* Footer Specific Variables */
:root {
    --footer-primary-green: #1a7a4a;
    --footer-dark-green: #145c38;
    --footer-light-green: #2ecc71;
    --footer-gold: #f1c40f;
    --footer-dark-gold: #d4ac0d;
    --footer-white: #ffffff;
    --footer-light-gray: #f8f9fa;
    --footer-dark-gray: #2c3e50;
    --footer-text-dark: #34495e;
    --footer-bg: #1a252f;
    --footer-text: #bdc3c7;
    --footer-border: #2c3e50;
    --footer-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --footer-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --footer-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sahebrao Footer */
.sahebrao-footer {
    background: linear-gradient(135deg, var(--footer-bg), #2c3e50);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .sahebrao-footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--footer-primary-green), var(--footer-gold), var(--footer-primary-green));
    }

/* Footer Container */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Footer Top */
.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 60px;
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--footer-border);
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-logo-section {
    position: relative;
}

.footer-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    background: var(--footer-white);
    border-radius: 20px;
    padding: 12px;
    box-shadow: var(--footer-shadow-lg);
    border: 3px solid var(--footer-gold);
    transition: var(--footer-transition);
}

    .footer-logo-container:hover {
        transform: scale(1.05) rotate(2deg);
        border-color: var(--footer-light-green);
    }

.footer-company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: var(--footer-transition);
}

.footer-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(26, 122, 74, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: var(--footer-transition);
}

.footer-logo-container:hover .footer-logo-glow {
    opacity: 1;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-company-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--footer-white);
    margin: 0;
    background: linear-gradient(135deg, var(--footer-gold), var(--footer-light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-company-motto {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--footer-gold);
    margin: 0;
    font-style: italic;
}

.footer-company-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--footer-text);
    margin: 0;
    opacity: 0.9;
}

/* Footer Links Section */
.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-links-column h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-white);
    margin-bottom: 25px;
    position: relative;
}

    .footer-links-column h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--footer-gold);
        border-radius: 2px;
    }

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-item {
    margin: 0;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--footer-transition);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

    .footer-link:hover {
        color: var(--footer-gold);
        transform: translateX(5px);
        border-bottom-color: var(--footer-gold);
    }

.footer-link-icon {
    width: 16px;
    text-align: center;
    color: var(--footer-primary-green);
    transition: var(--footer-transition);
}

.footer-link:hover .footer-link-icon {
    color: var(--footer-gold);
    transform: scale(1.2);
}

/* Footer Contact Section */
.footer-contact-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-white);
    margin-bottom: 25px;
    position: relative;
}

    .footer-contact-section h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 3px;
        background: var(--footer-gold);
        border-radius: 2px;
    }

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(26, 122, 74, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--footer-primary-green);
    transition: var(--footer-transition);
}

.footer-contact-item:hover .footer-contact-icon {
    background: var(--footer-primary-green);
    transform: scale(1.1);
}

.footer-contact-icon i {
    color: var(--footer-gold);
    font-size: 1rem;
}

.footer-contact-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--footer-white);
    margin: 0 0 8px 0;
}

.footer-contact-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--footer-text);
    margin: 0;
    opacity: 0.9;
}

/* Footer Middle */
.footer-middle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid var(--footer-border);
}

.footer-newsletter-title,
.footer-social-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--footer-white);
    margin-bottom: 15px;
}

.footer-newsletter-subtitle,
.footer-social-subtitle {
    font-size: 1rem;
    color: var(--footer-text);
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-newsletter-form {
    max-width: 400px;
}

.footer-input-group {
    display: flex;
    gap: 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--footer-shadow);
}

.footer-newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: var(--footer-white);
    font-size: 0.95rem;
    color: var(--footer-text-dark);
    outline: none;
    transition: var(--footer-transition);
}

    .footer-newsletter-input:focus {
        background: #f8f9fa;
    }

    .footer-newsletter-input::placeholder {
        color: #6c757d;
    }

.footer-newsletter-btn {
    background: linear-gradient(135deg, var(--footer-primary-green), var(--footer-dark-green));
    color: var(--footer-white);
    border: none;
    padding: 15px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--footer-transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

    .footer-newsletter-btn:hover {
        background: linear-gradient(135deg, var(--footer-dark-green), var(--footer-primary-green));
        transform: translateX(2px);
    }

.footer-btn-icon {
    font-size: 0.9rem;
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--footer-transition);
    position: relative;
    overflow: hidden;
}

    .footer-social-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: var(--footer-transition);
    }

    .footer-social-link:hover::before {
        left: 100%;
    }

    .footer-social-link i {
        font-size: 1.2rem;
        color: var(--footer-white);
        transition: var(--footer-transition);
        position: relative;
        z-index: 2;
    }

    .footer-social-link:hover {
        transform: translateY(-3px) scale(1.1);
    }

        .footer-social-link:hover i {
            transform: scale(1.2);
        }

/* Social Media Colors */
.footer-facebook {
    background: #3b5998;
}

.footer-twitter {
    background: #1da1f2;
}

.footer-instagram {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.footer-youtube {
    background: #ff0000;
}

.footer-linkedin {
    background: #0077b5;
}

.footer-whatsapp {
    background: #25d366;
}

/* Footer Bottom */
.footer-bottom {
    padding: 30px 0 20px;
    position: relative;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-copyright-text {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin: 0;
}

.footer-motto {
    color: var(--footer-gold);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal-link {
    font-size: 0.9rem;
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--footer-transition);
    position: relative;
}

    .footer-legal-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        background: var(--footer-gold);
        transition: var(--footer-transition);
    }

    .footer-legal-link:hover {
        color: var(--footer-gold);
    }

        .footer-legal-link:hover::after {
            width: 100%;
        }

.footer-badges {
    display: flex;
    gap: 15px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(26, 122, 74, 0.2);
    border-radius: 20px;
    border: 1px solid var(--footer-primary-green);
    transition: var(--footer-transition);
    cursor: pointer;
}

    .footer-badge:hover {
        background: var(--footer-primary-green);
        transform: translateY(-2px);
    }

.footer-badge-icon {
    color: var(--footer-gold);
    font-size: 0.9rem;
}

.footer-badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--footer-white);
}

/* ARBSofTech Credit */
.footer-tech-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid var(--footer-border);
    margin-top: 20px;
}

.tech-credit-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--footer-text);
}

.tech-credit-text {
    opacity: 0.8;
}

.tech-credit-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--footer-gold);
    text-decoration: none;
    font-weight: 600;
    transition: var(--footer-transition);
    padding: 4px 8px;
    border-radius: 4px;
}

    .tech-credit-link:hover {
        color: var(--footer-white);
        background: var(--footer-primary-green);
        transform: translateY(-1px);
    }

.tech-company-name {
    font-weight: 700;
}

.tech-link-icon {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Back to Top Button */
.footer-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--footer-primary-green), var(--footer-dark-green));
    color: var(--footer-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--footer-transition);
    box-shadow: var(--footer-shadow-lg);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

    .footer-back-to-top.footer-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .footer-back-to-top:hover {
        background: linear-gradient(135deg, var(--footer-dark-green), var(--footer-primary-green));
        transform: translateY(-3px) scale(1.1);
    }

    .footer-back-to-top i {
        font-size: 1.2rem;
    }

/* ===== FOOTER ANIMATIONS ===== */
@keyframes footerFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footerPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===== FOOTER RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (max-width: 1400px) {
    .footer-container {
        padding: 0 30px;
    }

    .footer-top {
        gap: 40px;
    }

    .footer-links-section {
        gap: 30px;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-links-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-tech-credit {
        text-align: center;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .footer-container {
        padding: 0 20px;
    }

    .footer-top {
        padding: 60px 0 40px;
        gap: 40px;
    }

    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-middle {
        padding: 40px 0;
        gap: 30px;
    }

    .footer-input-group {
        flex-direction: column;
        border-radius: 15px;
    }

    .footer-newsletter-input,
    .footer-newsletter-btn {
        border-radius: 15px;
        margin: 0;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-contact-icon {
        align-self: center;
    }

    .footer-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .tech-credit-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .footer-container {
        padding: 0 15px;
    }

    .footer-top {
        padding: 40px 0 30px;
        gap: 30px;
    }

    .footer-company-name {
        font-size: 2rem;
    }

    .footer-company-motto {
        font-size: 1.1rem;
    }

    .footer-logo-container {
        width: 100px;
        height: 100px;
    }

    .footer-middle {
        padding: 30px 0;
    }

    .footer-newsletter-title,
    .footer-social-title {
        font-size: 1.2rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 15px;
    }

    .footer-badges {
        flex-direction: column;
        align-items: center;
    }

    .footer-badge {
        width: 100%;
        justify-content: center;
    }

    .footer-tech-credit {
        padding: 10px 0;
    }
}

/* Footer specific utility classes */
.footer-only-element {
    /* This ensures elements are only styled within footer context */
}

.sahebrao-footer * {
    /* Reset any global styles that might affect footer */
    box-sizing: border-box;
}
