:root {
    --footer-bg: #0a0a0f;
    --footer-bg-secondary: #111118;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: rgba(255, 255, 255, 0.7);
    --footer-text-muted: rgba(255, 255, 255, 0.5);
    --footer-border: rgba(255, 255, 255, 0.1);
    --footer-link-hover: var(--primary-color, #0d6efd);
    --footer-spacing: clamp(16px, 4vw, 24px);
    --footer-section-gap: clamp(24px, 6vw, 40px);
    --footer-primary: #0d6efd;
    --footer-primary-dark: #0A2A9F;
    --footer-primary-light: #4dabf7;
    --footer-accent: #6c757d;
}

.footer-portfolio {
    background: linear-gradient(180deg, var(--footer-bg) 0%, #000212 100%);
    color: var(--footer-text-primary);
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.footer-portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/pattern.svg') repeat;
    opacity: 0.02;
    z-index: 1;
    pointer-events: none;
}

.footer-portfolio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(13, 110, 253, 0.5) 50%,
            transparent 100%);
    z-index: 2;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--footer-spacing);
    position: relative;
    z-index: 3;
}

.footer-main {
    padding: clamp(2rem, 6vw, 3rem) 0 clamp(1.5rem, 4vw, 2.5rem);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--footer-section-gap);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1.2fr 2fr;
        gap: clamp(40px, 8vw, 80px);
    }
}

.footer-brand {
    max-width: 400px;
}

.footer-logo h3 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 700;
    margin: 0 0 clamp(4px, 1vw, 8px) 0;
    color: var(--footer-text-primary);
    line-height: 1.2;
}

.footer-brand-name {
    font-family: 'Bangers', cursive !important;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--footer-text-primary);
}

.footer-brand-name .footer-name-highlight {
    color: var(--footer-primary-dark);
    text-shadow: 0 2px 4px rgba(10, 42, 159, 0.3);
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 2vw, 0.875rem);
    color: var(--footer-text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: clamp(10px, 3vw, 16px);
}

.footer-description {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2.2vw, 0.95rem);
    line-height: 1.7;
    color: var(--footer-text-secondary);
    margin: 0 0 clamp(16px, 5vw, 24px) 0;
    font-weight: 400;
}

.footer-social {
    display: flex;
    gap: clamp(10px, 3vw, 16px);
    align-items: center;
    justify-content: center;
    margin-top: clamp(4px, 1vw, 8px);
}

@media (min-width: 768px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.footer-social-link {
    width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.footer-social-link:hover,
.footer-social-link:focus {
    transform: translateY(-3px);
    color: white;
}

.footer-social-link:focus-visible {
    outline: 2px solid var(--footer-primary-light);
    outline-offset: 2px;
}

.footer-social-link[aria-label*="GitHub"]:hover {
    background: #333;
    border-color: #333;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.footer-social-link[aria-label*="LinkedIn"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.footer-social-link[aria-label*="Twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

.footer-social-link[aria-label*="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 6vw, 32px);
}

@media (min-width: 480px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(20px, 4vw, 40px);
    }
}

.footer-section {
    text-align: left;
}

.footer-section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    font-weight: 600;
    margin: 0 0 clamp(8px, 2.5vw, 14px) 0;
    color: var(--footer-text-primary);
    letter-spacing: -0.01em;
    text-align: left;
    position: relative;
    padding-bottom: clamp(6px, 2vw, 10px);
}

.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--footer-primary), transparent);
    border-radius: 2px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-list li {
    margin-bottom: clamp(4px, 1vw, 6px);
}

.footer-link {
    font-family: 'Inter', sans-serif;
    color: var(--footer-text-secondary);
    text-decoration: none;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    padding: clamp(2px, 0.5vw, 3px) 0;
    text-align: left;
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--footer-primary);
    transition: width 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--footer-link-hover);
    transform: translateX(4px);
}

.footer-link:hover::before {
    width: 100%;
}

.footer-link:focus-visible {
    outline: 2px solid var(--footer-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-cta-btn {
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1.5vw, 8px);
    padding: clamp(8px, 2.5vw, 12px) clamp(16px, 5vw, 24px);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: clamp(10px, 3vw, 16px);
}

.footer-cta-btn:hover {
    background: var(--footer-primary);
    border-color: var(--footer-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.3);
}

.footer-cta-btn i {
    font-size: 0.9em;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--footer-border);
    padding: clamp(10px, 3vw, 16px) 0;
    position: relative;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.5vw, 8px);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: clamp(20px, 5vw, 32px);
    }
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.65rem, 1.6vw, 0.813rem);
    color: var(--footer-text-muted);
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
}

.footer-copyright a {
    color: var(--footer-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--footer-primary-light);
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.footer-copyright-highlight {
    font-family: 'Bangers', cursive !important;
    color: var(--footer-primary-dark) !important;
    font-weight: 400;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.copyright-line {
    display: block;
    margin-bottom: clamp(6px, 2vw, 12px);
}

.copyright-line:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .copyright-line {
        display: inline;
        margin-bottom: 0;
    }

    .copyright-line:first-child::after {
        content: " ";
    }

    .footer-copyright p {
        line-height: 1.5;
    }
}

.heart {
    color: #EF4444;
    animation: heartbeat 2s ease-in-out infinite;
    display: inline-block;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.heart:hover {
    transform: scale(1.3);
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.coffee {
    display: inline-block;
    animation: steam 2s ease-in-out infinite;
}

@keyframes steam {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

@media (min-width: 768px) {
    .footer-legal {
        justify-content: flex-end;
    }
}

.legal-line {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 12px);
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

@media (min-width: 768px) {
    .legal-line {
        justify-content: flex-end;
    }
}

.footer-legal-link {
    font-family: 'Inter', sans-serif;
    color: var(--footer-text-muted);
    text-decoration: none;
    font-size: clamp(0.6rem, 1.4vw, 0.75rem);
    font-weight: 400;
    transition: color 0.3s ease;
    padding: clamp(2px, 0.5vw, 4px) clamp(2px, 0.5vw, 4px);
    border-radius: 3px;
    white-space: nowrap;
}

.footer-legal-link:hover,
.footer-legal-link:focus {
    color: var(--footer-link-hover);
}

.footer-legal-link:focus-visible {
    outline: 2px solid var(--footer-primary);
    outline-offset: 1px;
}

@media (max-width: 768px) {
    .footer-main {
        padding: clamp(1.5rem, 5vw, 2.5rem) 0 clamp(1rem, 3vw, 1.5rem);
    }
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: clamp(1.25rem, 4vw, 2rem) 0 clamp(0.75rem, 2.5vw, 1.25rem);
    }

    .footer-logo h3 {
        font-size: clamp(1.1rem, 5vw, 1.5rem);
    }

    .footer-tagline {
        font-size: clamp(0.65rem, 2.2vw, 0.8rem);
    }

    .footer-description {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
        margin-bottom: clamp(12px, 4vw, 20px);
    }

    .footer-social-link {
        width: clamp(34px, 9vw, 40px);
        height: clamp(34px, 9vw, 40px);
        font-size: clamp(0.85rem, 2.3vw, 1rem);
    }

    .footer-section-title {
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    }

    .footer-link {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
    }

    .footer-cta-btn {
        font-size: clamp(0.7rem, 2.2vw, 0.8rem);
        padding: clamp(7px, 2.2vw, 10px) clamp(14px, 4vw, 20px);
    }
}

@media (max-width: 480px) {
    .footer-main {
        text-align: left;
    }

    .footer-brand {
        max-width: none;
        text-align: center;
    }

    .footer-logo,
    .footer-tagline,
    .footer-description {
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: left;
        padding-left: 0;
    }

    .footer-section-title {
        text-align: left;
        padding-left: 0;
    }

    .footer-list {
        text-align: left;
    }

    .footer-list li {
        margin-bottom: clamp(3px, 0.75vw, 5px);
    }

    .footer-bottom {
        padding: clamp(8px, 2.5vw, 14px) 0;
    }

    .footer-bottom-content {
        gap: clamp(4px, 1vw, 6px);
    }

    .copyright-line {
        display: block;
        margin-bottom: clamp(5px, 1.5vw, 10px);
    }

    .copyright-line:last-child {
        margin-bottom: 0;
    }

    .footer-copyright p {
        font-size: clamp(0.6rem, 1.5vw, 0.75rem);
        line-height: 1.3;
    }

    .legal-line {
        flex-direction: row;
        gap: clamp(6px, 1.5vw, 8px);
        flex-wrap: wrap;
        justify-content: center;
        margin: 0;
    }

    .footer-legal-link {
        display: inline-block;
        text-align: center;
        font-size: clamp(0.55rem, 1.4vw, 0.7rem);
        padding: clamp(2px, 0.5vw, 4px) clamp(2px, 0.5vw, 4px);
        white-space: nowrap;
        margin: 0;
    }
}

@media (max-width: 375px) {
    .footer-logo h3 {
        font-size: clamp(1rem, 6vw, 1.3rem);
    }

    .footer-tagline {
        font-size: clamp(0.6rem, 2.5vw, 0.75rem);
        margin-bottom: clamp(8px, 2.5vw, 12px);
    }

    .footer-description {
        font-size: clamp(0.7rem, 2.8vw, 0.8rem);
        line-height: 1.5;
    }

    .footer-social {
        gap: clamp(8px, 2.5vw, 12px);
    }

    .footer-social-link {
        width: clamp(32px, 8.5vw, 36px);
        height: clamp(32px, 8.5vw, 36px);
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    }

    .footer-section-title {
        font-size: clamp(0.75rem, 2.8vw, 0.85rem);
        margin-bottom: clamp(6px, 2vw, 10px);
    }

    .footer-link {
        font-size: clamp(0.65rem, 2.5vw, 0.75rem);
    }

    .footer-cta-btn {
        font-size: clamp(0.65rem, 2.5vw, 0.75rem);
        padding: clamp(6px, 2vw, 9px) clamp(12px, 3.5vw, 18px);
    }

    .footer-bottom {
        padding: clamp(8px, 2vw, 12px) 0;
    }

    .footer-copyright p {
        font-size: clamp(0.55rem, 1.8vw, 0.7rem);
    }

    .footer-legal-link {
        font-size: clamp(0.5rem, 1.6vw, 0.65rem);
    }
}

@media (max-width: 320px) {
    .footer-main {
        padding: clamp(1rem, 3vw, 1.5rem) 0 clamp(0.5rem, 2vw, 1rem);
    }

    .footer-logo h3 {
        font-size: clamp(0.9rem, 5vw, 1.1rem);
    }

    .footer-tagline {
        font-size: clamp(0.55rem, 2vw, 0.65rem);
    }

    .footer-description {
        font-size: clamp(0.65rem, 2.2vw, 0.75rem);
    }

    .footer-social-link {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .footer-section-title {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    }

    .footer-link {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
    }

    .footer-cta-btn {
        font-size: clamp(0.6rem, 2vw, 0.7rem);
        padding: 5px 10px;
    }

    .footer-bottom {
        padding: 6px 0;
    }

    .footer-copyright p {
        font-size: clamp(0.5rem, 1.5vw, 0.6rem);
    }

    .footer-legal-link {
        font-size: clamp(0.45rem, 1.4vw, 0.55rem);
    }
}

.footer-brand,
.footer-links,
.footer-bottom {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-brand {
    animation-delay: 0.1s;
}

.footer-links {
    animation-delay: 0.2s;
}

.footer-bottom {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .footer-link,
    .footer-social-link,
    .heart,
    .coffee,
    .footer-link:hover {
        transition: none;
        animation: none;
        transform: none;
    }

    .footer-social-link:hover {
        transform: none;
    }

    .footer-brand,
    .footer-links,
    .footer-bottom {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-contrast: high) {
    .footer-portfolio {
        border-top: 2px solid currentColor;
    }

    .footer-link,
    .footer-legal-link {
        text-decoration: underline;
    }

    .footer-social-link {
        border-width: 2px;
    }
}

.footer-portfolio *:focus-visible {
    outline: 2px solid var(--footer-primary);
    outline-offset: 2px;
    border-radius: 3px;
}

@media (hover: none) and (pointer: coarse) {
    .footer-link:hover {
        transform: none;
    }

    .footer-social-link:hover {
        transform: none;
    }

    .footer-link:active {
        color: var(--footer-link-hover);
        transform: scale(0.98);
    }

    .footer-social-link:active {
        transform: scale(0.95);
    }
}

@media (max-width: 768px) {
    .footer-link {
        padding: clamp(4px, 1vw, 6px) clamp(2px, 0.5vw, 4px);
        margin: clamp(1px, 0.25vw, 2px) 0;
    }

    .footer-legal-link {
        padding: clamp(4px, 1.5vw, 8px) clamp(4px, 1vw, 8px);
        margin: clamp(2px, 0.5vw, 4px) 0;
    }

    .footer-social-link {
        margin: clamp(2px, 1vw, 4px);
    }
}

@media print {

    .footer-social,
    .footer-links {
        display: none !important;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-copyright p {
        color: black !important;
    }

    .footer-legal-link {
        color: black !important;
    }

    .footer-portfolio {
        background: white !important;
        color: black !important;
    }
}