/* Footer Styles - Matrix Cyber Luxury Edition */
footer {
    background-color: #050505; /* Darker background */
    color: #fff;
    padding: 60px 0 40px;
    font-family: 'Arial', sans-serif;
    transition: all 0.5s ease-in-out;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 -10px 20px rgba(0, 255, 255, 0.05);
}

/* Matrix canvas background for footer */
.footer-matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3; /* Usklađeno sa kontakt sekcijom */
    z-index: 0;
}

/* Cyber Grid background for footer */
.footer-cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    animation: footerGridPulse 8s infinite alternate;
}

@keyframes footerGridPulse {
    0% {
        background-size: 20px 20px;
        opacity: 0.1;
    }
    100% {
        background-size: 22px 22px;
        opacity: 0.2;
    }
}

/* Glowing orbs */
.footer-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15), transparent 70%);
    filter: blur(20px);
    animation: footerGlowPulse 6s infinite alternate, footerGlowMove 30s infinite linear;
    z-index: 0;
}

.footer-glow:nth-child(1) {
    top: -50px;
    left: 10%;
}

.footer-glow:nth-child(2) {
    top: 30%;
    right: 5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.12), transparent 70%);
    animation: footerGlowPulse 7s infinite alternate, footerGlowMove 25s infinite linear reverse;
}

.footer-glow:nth-child(3) {
    bottom: -30px;
    left: 40%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.08), transparent 70%);
    animation: footerGlowPulse 5s infinite alternate, footerGlowMove 20s infinite linear;
}

@keyframes footerGlowPulse {
    0% {
        opacity: 0.3;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes footerGlowMove {
    0% { transform: translateX(-30px) translateY(0); }
    25% { transform: translateX(-15px) translateY(-15px); }
    50% { transform: translateX(0) translateY(-30px); }
    75% { transform: translateX(15px) translateY(-15px); }
    100% { transform: translateX(30px) translateY(0); }
}

/* Light theme footer */
body.light footer {
    background-color: #f0f0f0;
    color: #121212;
    border-top: 1px solid rgba(0, 150, 150, 0.2);
    box-shadow: 0 -5px 15px rgba(0, 150, 150, 0.03);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border-radius: 8px;
    margin: 10px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.05) 0%, transparent 100%);
    z-index: -1;
    transition: all 0.5s ease;
}

.footer-section:hover::before {
    opacity: 0.2;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, transparent 100%);
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #00e5ff; /* Cyber cyan */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: all 0.3s ease;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

body.light .footer-section h3 {
    color: #008b8b; /* Darker teal for light theme */
    text-shadow: none;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 8%;
    position: relative;
    transition: transform 0.3s ease;
}

.footer-section:hover p {
    transform: translateY(-5px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    position: relative;
}

.footer-section ul li::before {
    content: '›';
    position: absolute;
    left: -15px;
    color: #00e5ff;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(5px);
}

.footer-section ul li:hover::before {
    opacity: 1;
    left: -10px;
}

.footer-section ul li a {
    color: #b0b3b8; /* For dark theme */
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.footer-section ul li a:hover::after {
    width: 100%;
}

body.light .footer-section ul li a {
    color: #5a5a5a; /* For light theme */
}

body.light .footer-section ul li a:hover {
    color: #008b8b;
    text-shadow: none;
}

.btn-footer {
    display: inline-block;
    background: linear-gradient(90deg, #4a89dc, #00e5ff);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 40px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
    border: none;
    z-index: 1;
}

.btn-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #4a89dc);
    z-index: -1;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.btn-footer:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

.btn-footer:hover::before {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    font-size: 14px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom p {
    position: relative;
    display: inline-block;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.5), transparent);
}

body.light .footer-bottom {
    border-top: 1px solid rgba(0, 150, 150, 0.1);
}

.footer-bottom strong {
    color: #00e5ff;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

body.light .footer-bottom strong {
    color: #008b8b;
}

.footer-bottom strong::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    animation: footerPulse 2s infinite;
}

@keyframes footerPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Email link and contact styling */
.footer-section p img.contact-icon {
    transition: transform 0.3s ease;
    margin-right: 8px;
    filter: drop-shadow(0 0 2px rgba(0, 229, 255, 0.5));
}

.footer-section p:hover img.contact-icon {
    transform: scale(1.2) rotate(10deg);
}

.footer-section a[href^="mailto:"] {
    color: #b0b3b8; /* For dark theme */
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.footer-section a[href^="mailto:"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #00e5ff, transparent);
    transition: width 0.3s ease;
}

body.light .footer-section a[href^="mailto:"] {
    color: #5a5a5a; /* For light theme */
}

.footer-section a[href^="mailto:"]:hover {
    color: #00e5ff;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

body.light .footer-section a[href^="mailto:"]:hover {
    color: #008b8b;
    text-shadow: none;
}

.footer-section a[href^="mailto:"]:hover::after {
    width: 100%;
}

/* Social icons styling */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.15);
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 229, 255, 0.6);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.footer-social a:hover::before {
    transform: scale(1.6);
    opacity: 0;
}

.footer-social a img {
    width: 18px;
    height: 18px;
    filter: invert(80%) sepia(32%) saturate(4948%) hue-rotate(155deg) brightness(99%) contrast(101%);
    transition: all 0.3s ease;
}

.footer-social a:hover img {
    filter: invert(87%) sepia(51%) saturate(1862%) hue-rotate(155deg) brightness(104%) contrast(101%);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-container {
        justify-content: center;
    }
    
    .footer-section {
        min-width: 200px;
        flex: 0 0 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .footer-section {
        width: 100%;
        padding: 20px;
        margin: 10px 0;
    }
    
    .footer-section h3::after {
        width: 80px;
    }
    
    .footer-glow {
        opacity: 0.4;
    }
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Data blocks decoration */
.footer-data-blocks {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    display: flex;
    z-index: 1;
}

.footer-data-block {
    height: 100%;
    flex: 1;
    background: rgba(0, 229, 255, 0.3);
    margin: 0 2px;
    animation: footerDataPulse 2s infinite alternate;
}

.footer-data-block:nth-child(1) { animation-delay: 0.1s; }
.footer-data-block:nth-child(2) { animation-delay: 0.2s; }
.footer-data-block:nth-child(3) { animation-delay: 0.3s; }
.footer-data-block:nth-child(4) { animation-delay: 0.4s; }
.footer-data-block:nth-child(5) { animation-delay: 0.5s; }
.footer-data-block:nth-child(6) { animation-delay: 0.6s; }
.footer-data-block:nth-child(7) { animation-delay: 0.7s; }
.footer-data-block:nth-child(8) { animation-delay: 0.8s; }
.footer-data-block:nth-child(9) { animation-delay: 0.9s; }
.footer-data-block:nth-child(10) { animation-delay: 1.0s; }

@keyframes footerDataPulse {
    0%, 100% { opacity: 0.3; height: 3px; }
    50% { opacity: 0.8; height: 5px; }
}

/* Cyber Footer */
.cyber-footer {
  position: relative;
  background-color: var(--cyber-bg-dark);
  overflow: hidden;
  border-top: 1px solid var(--cyber-neon);
  padding: 50px 0 30px;
  color: white;
  font-family: var(--font-body);
}

/* Pozadinski efekat */
.cyber-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%),
    radial-gradient(var(--cyber-grid) 1px, transparent 1px);
  background-size: 100%, 20px 20px;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

/* Gornja ivica sa svetlećim efektom */
.footer-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--cyber-gradient-1);
  opacity: 0.8;
  box-shadow: 
    0 0 10px 2px var(--cyber-glow),
    0 0 20px 5px var(--cyber-glow);
  z-index: 2;
}

/* Holografski elementi */
.holo-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}

.holo-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyber-neon);
  opacity: 0.3;
  box-shadow: 0 0 20px var(--cyber-glow);
  animation: pulse var(--pulse-duration) infinite alternate;
}

.holo-circle:nth-child(1) {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: 10%;
  border-color: var(--cyber-purple);
}

.holo-circle:nth-child(2) {
  width: 150px;
  height: 150px;
  top: 20px;
  left: 15%;
  border-color: var(--cyber-blue);
  animation-delay: 0.5s;
}

.holo-circle:nth-child(3) {
  width: 100px;
  height: 100px;
  bottom: 30px;
  left: 30%;
  border-color: var(--cyber-green);
  animation-delay: 1s;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

/* Container za sadržaj */
.footer-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-column {
  position: relative;
}

.footer-title {
  font-family: var(--font-display);
  color: var(--cyber-neon);
  font-size: 18px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
  text-shadow: var(--cyber-text-shadow);
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--cyber-gradient-2);
  box-shadow: var(--cyber-box-shadow);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-family: var(--font-body);
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
  display: inline-block;
}

.footer-links a::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--cyber-blue);
  font-family: var(--font-mono);
  transition: transform 0.3s ease;
  opacity: 0.7;
}

.footer-links a:hover {
  color: var(--cyber-neon);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  transform: scale(1.2);
  color: var(--cyber-neon);
  opacity: 1;
}

/* Newsletter forma */
.newsletter-form {
  position: relative;
  margin-top: 15px;
}

.cyber-input {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--cyber-blue);
  color: white;
  padding: 10px 15px;
  font-family: var(--font-mono);
  border-radius: 0;
  outline: none;
  font-size: 14px;
}

.cyber-input:focus {
  border-color: var(--cyber-neon);
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.cyber-input-submit {
  position: absolute;
  right: 0;
  top: 0;
  background-color: var(--cyber-blue);
  color: var(--cyber-bg-dark);
  border: none;
  padding: 10px 15px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cyber-input-submit:hover {
  background-color: var(--cyber-neon);
  box-shadow: 0 0 10px var(--cyber-glow);
}

/* Socijalne ikone */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cyber-blue);
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon:hover {
  border-color: var(--cyber-neon);
  color: var(--cyber-neon);
  box-shadow: 0 0 10px var(--cyber-glow);
  transform: translateY(-3px);
}

.social-icon::before {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.social-icon:hover::before {
  top: 0;
}

/* Footer bottom */
.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  text-align: center;
  position: relative;
  z-index: 10;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: var(--cyber-gradient-3);
  opacity: 0.5;
}

/* Matrix kišni efekat */
.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  opacity: 0.1;
}

.matrix-column {
  position: absolute;
  top: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--cyber-neon);
  text-shadow: 0 0 5px var(--cyber-glow);
  white-space: nowrap;
  opacity: 0.8;
  animation: matrixRain linear infinite;
}

@keyframes matrixRain {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* Cyber dugme za scroll na vrh */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--cyber-bg-medium);
  border: 1px solid var(--cyber-neon);
  color: var(--cyber-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--cyber-neon);
  color: var(--cyber-bg-dark);
  box-shadow: 0 0 15px var(--cyber-glow);
  transform: translateY(-5px);
}

/* Logo u footeru */
.footer-logo {
  margin-bottom: 20px;
  display: inline-block;
}

.footer-logo img {
  max-width: 150px;
  filter: drop-shadow(0 0 5px var(--cyber-glow));
  transition: all 0.3s ease;
}

.footer-logo:hover img {
  filter: drop-shadow(0 0 10px var(--cyber-glow));
  transform: scale(1.05);
}
