import React from "react";
import Link from "next/link";

const Footer = () => {

    return (
        <div className="py-10 transition-theme" style={{backgroundColor: "var(--footer-bg)"}}>
            <div className="w-[90%] mx-auto px-4 sm:px-6 lg:px-8">
                <div className="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-8">
                    {/* Logo and description */}
                    <div>
                        {/* Logo */}
                        <h1 className="text-xl md:text-2xl font-bold transition-theme"
                            data-aos="fade-up"
                            style={{color: "var(--primary-text)"}}
                        >
                            <span className="text-3xl md:text-4xl text-pink-700">R</span>hein Software
                        </h1>
                    </div>
                    {/* Our information links */}
                    <div>
                        <h3 className="text-lg font-semibold transition-theme"
                            data-aos="fade-up"
                            style={{color: "var(--primary-text)"}}
                        >
                            Informationen
                        </h3>
                        <ul className="mt-4 space-y-4 text-sm font-semibold transition-theme"
                            data-aos="fade-up"
                            data-aos-delay="200"
                            style={{color: "var(--secondary-text)"}}>
                            <li>
                                <Link href="/contact" key="imprint">
                                    <p className={`nav_link transition-all duration-300 ease-in-out`}>Kontakt</p>
                                </Link>
                            </li>
                            <li>
                                <Link href="/contact" key="imprint">
                                    <p className={`nav_link transition-all duration-300 ease-in-out`}>Zahlung und
                                        Versand</p>
                                </Link>
                            </li>
                        </ul>
                    </div>
                    {/* About us links */}
                    <div>
                        <h3 className="text-lg font-semibold transition-theme"
                            data-aos="fade-up"
                            style={{color: "var(--primary-text)"}}
                        >
                            Rechtliches
                        </h3>
                        <ul className="mt-4 space-y-4 text-sm font-semibold transition-theme"
                            data-aos="fade-up"
                            data-aos-delay="300"
                            style={{color: "var(--secondary-text)"}}
                        >
                            <li>
                                <Link href="/legal/terms-of-use" key="imprint">
                                    <p className={`nav_link transition-all duration-300 ease-in-out`}>AGB</p>
                                </Link>
                            </li>
                            <li>
                                <Link href="/legal/revocation" key="imprint">
                                    <p className={`nav_link transition-all duration-300 ease-in-out`}>Widerruf</p>
                                </Link>
                            </li>
                            <li>
                                <Link href="/legal/privacy" key="imprint">
                                    <p className={`nav_link transition-all duration-300 ease-in-out`}>Datenschutz</p>
                                </Link>
                            </li>
                            <li>
                                <Link href="/legal/imprint" key="imprint">
                                    <p className={`nav_link transition-all duration-300 ease-in-out`}>Impressum</p>
                                </Link>
                            </li>
                        </ul>
                    </div>
                </div>
                {/* Bottom Section */}
                <div
                    className="mt-8 border-t pt-8 flex flex-col md:flex-row justify-between items-center text-sm transition-theme"
                    data-aos="fade-up"
                    style={{color: "var(--secondary-text)", borderColor: "var(--primary-text)"}}
                >
                    <p className="text-center md:text-left">
                        Copyright © 2025 Rhein Software Development. All rights reserved
                    </p>
                </div>
            </div>
        </div>
    );
};

export default Footer;
