:root {
    --cream-bg: #f8f5f0;
    --cream-dark: #e8e2d6;
    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --accent-teal: #38b2ac;
    --accent-teal-light: #4fd1c5;
    --accent-yellow: #ecc94b;
    --accent-yellow-light: #f6e05e;
    --accent-orange: #ed8936;
    --accent-orange-light: #f6ad55;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 15px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.footer {
    background-color: var(--cream-bg);
    color: var(--text-dark);
    padding: 4rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.footer-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal-light), var(--accent-yellow-light));
    opacity: 0.05;
    animation: float 20s infinite linear;
}

.circle-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 15%;
    animation-delay: -10s;
}

.bg-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-orange-light), var(--accent-yellow-light));
    opacity: 0.03;
    animation: float 25s infinite linear reverse;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 5%;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.shape-2 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    right: 20%;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    transform: rotate(45deg);
    animation-delay: -8s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(90deg);
    }
    50% {
        transform: translate(0, 20px) rotate(180deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-left {
    flex: 1;
    min-width: 300px;
}

.footer-right {
    flex: 2;
    min-width: 300px;
}

/* Logo Section */
.logo-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: var(--transition-slow);
    cursor: pointer;
}

.logo-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.ring-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 50% 100%);
}

.seg-1 {
    background: conic-gradient(var(--accent-teal) 0% 25%, transparent 25% 100%);
    transform: rotate(0deg);
}

.seg-2 {
    background: conic-gradient(var(--accent-yellow) 0% 25%, transparent 25% 100%);
    transform: rotate(90deg);
}

.seg-3 {
    background: conic-gradient(var(--accent-orange) 0% 25%, transparent 25% 100%);
    transform: rotate(180deg);
}

.seg-4 {
    background: conic-gradient(transparent 0% 25%, var(--accent-teal-light) 25% 50%, transparent 50% 100%);
    transform: rotate(270deg);
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.logo-inner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-strong);
    z-index: 2;
    transition: var(--transition);
}

.logo-inner img {
    width: 30px;
    height: 30px;
}

.logo-letter {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-container:hover .logo-ring {
    animation-duration: 5s;
}

.logo-container:hover .logo-inner {
    transform: scale(1.1);
}

.description {
    line-height: 1.7;
    color: var(--text-medium);
    font-size: 0.95rem;
    max-width: 400px;
    position: relative;
    padding-left: 1.5rem;
}

.description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-teal), var(--accent-yellow), var(--accent-orange));
    border-radius: 3px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition-slow);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: white;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:nth-child(1):hover { background: linear-gradient(135deg, #E1306C, #F77737); }
.social-link:nth-child(2):hover { background: linear-gradient(135deg, #1DA1F2, #0e76a8); }
.social-link:nth-child(3):hover { background: linear-gradient(135deg, #3b5998, #4267B2); }
.social-link:nth-child(4):hover { background: linear-gradient(135deg, #000000, #333333); }
.social-link:nth-child(5):hover { background: linear-gradient(135deg, #0077B5, #00A0DC); }
.social-link:nth-child(6):hover { background: linear-gradient(135deg, #FF4500, #FF5700); }
.social-link:nth-child(7):hover { background: linear-gradient(135deg, #000000, #010101); }
.social-link:nth-child(8):hover { background: linear-gradient(135deg, #1DBF73, #1DBF73); }

.social-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-dark);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid var(--text-dark);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Footer Columns */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.column {
    position: relative;
}

.column-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.title-text {
    position: relative;
    z-index: 2;
}

.title-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-orange));
    border-radius: 3px;
    transition: var(--transition);
    z-index: 1;
}

.column-title:hover .title-underline {
    width: 100%;
}

.column-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.column-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.column-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-orange));
    transition: var(--transition);
    border-radius: 1px;
}

.column-link:hover {
    color: var(--text-dark);
    padding-left: 15px;
}

.column-link:hover::before {
    width: 10px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent-teal), var(--accent-orange));
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--text-dark);
}

.footer-legal a:hover::after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-orange));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-strong);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(56, 178, 172, 0.3);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .logo-section {
        align-items: center;
        text-align: center;
    }
    
    .description::before {
        display: none;
    }
    
    .description {
        padding-left: 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}