 /* Reset i osnova */
  *, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
  }


  
body {
  font-family: 'Poppins', sans-serif;
  background-color: #0d0d0d;
  color: #eee;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 100px;
  scroll-behavior: smooth;
  
  /* Sakrivanje scrollbar-a */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE i Edge */
  overflow-y: scroll; /* da skrol uvek postoji da ne "skače" sadržaj */
  
  /* Sakrivanje standardnog kursora jer imaš custom */
  cursor: none;
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Dodaj i na html da se kursor sakrije kompletno */
html, body, a, button, img, section, .skill-card, .project-item, .logo{
  cursor: none !important;
}




  /* Loading Screen */
  #loading-screen {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0d0d0d, #1a1a3a);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
    color: #2a72ff;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    user-select: none;
    animation: loadingPulse 2.5s ease-in-out infinite alternate;
  }
  #loading-spinner {
    margin-bottom: 24px;
    width: 80px;
    height: 80px;
    border: 8px solid #2a72ff44;
    border-top-color: #2a72ff;
    border-radius: 50%;
    animation: spin 1.6s linear infinite;
  }
  @keyframes loadingPulse {
    0% { color: #2a72ffcc; text-shadow: 0 0 12px #2a72ffcc; }
    100% { color: #1955d1ff; text-shadow: 0 0 30px #1955d1ff; }
  }
  @keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
  }

  /* Particle pozadina */
  #particles-js {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a3a 100%);
  }

  /* Glavni container */
  #main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    min-height: 100vh;
    z-index: 10;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
  }
  #main-container.loaded {
    opacity: 1;
    transform: translateY(0);
  }

  /* HEADER - sticky, fade i slide animacija */
  header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.8);
    z-index: 999;
    transition: transform 0.5s ease, opacity 0.5s ease;
    will-change: transform, opacity;
  }
  header.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
    pointer-events: none;
  }
  header .logo {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
  }
  header .logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #2a72ff;
    box-shadow: 0 0 15px #2a72ffbb;
    transition: transform 0.6s cubic-bezier(0.42, 0, 0.58, 1);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
  }
  header .logo:hover img {
    transform: rotateY(25deg) rotateX(12deg) scale(1.2);
    box-shadow: 0 0 35px #2a72ffdd;
  }
  header nav {
    display: flex;
    gap: 32px;
  }
  header nav a {
    color: #ccc;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 12px;
    transition: background 0.3s, color 0.3s;
    user-select: none;
    position: relative;
    overflow: hidden;
  }
  header nav a:hover, header nav a:focus {
    background: #2a72ff;
    color: white;
    outline: none;
    box-shadow: 0 0 15px #2a72ffcc;
  }
  header nav a:hover::after, header nav a:focus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200%;
    height: 200%;
    background: rgba(42,114,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleLight 0.6s ease forwards;
    pointer-events: none;
    z-index: 1;
  }
  a:focus, button:focus {
    outline: 3px solid #2a72ff;
    outline-offset: 3px;
  }

  /* HERO */
  .hero {
    margin-top: 80px;
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
    z-index: 10;
    perspective: 1000px;
    overflow: visible;
  }
  .hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #2a72ff;
    margin-bottom: 20px;
    text-shadow: 0 0 18px #2a72ffdd;
    animation: neonGlow 3s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    will-change: transform;
  }
  .hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #ccc;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-out 0.1s;
    will-change: transform;
  }
  .cta-btn {
    background: linear-gradient(90deg, #2a72ff, #1955d1);
    padding: 18px 48px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 18px #2a72ffcc;
    animation: neonPulse 3s ease-in-out infinite alternate;
    transition: all 0.3s;
    user-select: none;
    transform-style: preserve-3d;
  }
  .cta-btn:hover, .cta-btn:focus {
    background: linear-gradient(90deg, #1955d1, #0e3d91);
    box-shadow: 0 0 32px #0e3d91cc;
    transform: translateY(-4px);
    outline: none;
  }
  .cta-btn:active {
    transform: translateZ(-20px) scale(0.95);
    box-shadow: 0 0 20px #1955d1cc inset;
  }
  .cta-btn .emoji {
    font-size: 1.6rem;
    transition: transform 0.6s ease;
  }
  .cta-btn:hover .emoji {
    transform: rotateY(30deg) rotateX(15deg) scale(1.4);
  }

  /* O meni sekcija */
  #about {
    max-width: 900px;
    margin: 80px auto;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(30, 30, 50, 0.9);
    box-shadow: 0 0 20px #2a72ffaa inset;
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s ease, transform 1s ease;
  }
  #about.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #about img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2a72ff;
    box-shadow: 0 0 25px #2a72ffbb;
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }
  #about img:hover {
    transform: scale(1.07) rotate(3deg);
  }
  #about div {
    flex-grow: 1;
  }
  #about h2 {
    font-size: 2.8rem;
    margin-bottom: 18px;
    color: #2a72ff;
  }
  #about p {
    font-size: 1.15rem;
    color: #ccc;
  }

  /* Sekcija veština */
  #skills {
    margin: 80px 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s ease, transform 1s ease;
  }
  #skills.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #skills h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    color: #2a72ff;
    text-shadow: 0 0 10px #2a72ffaa;
  }
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 32px;
  }
  .skill-card {
    background: #222244dd;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 0 16px #2a72ff66 inset;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
  }
  .skill-card:hover, .skill-card:focus {
    transform: translateY(-12px) rotateX(8deg) rotateY(6deg);
    box-shadow:
      0 20px 40px rgba(42,114,255,0.7),
      inset 0 0 40px #2a72ffcc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline-offset: 8px;
    z-index: 15;
  }
  .skill-card i {
    font-size: 3.6rem;
    color: #2a72ff;
    margin-bottom: 18px;
    text-shadow: 0 0 12px #2a72ffcc;
    animation: pulseIcon 2.5s infinite alternate,
               floatUpDown 6s ease-in-out infinite;
  }
  .skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #99bbff;
  }
  .skill-card p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.4;
  }

  /* Projekti */
  #projects {
    margin: 80px 0;
    padding: 20px;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s ease, transform 1s ease;
  }
  #projects.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #projects h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    color: #2a72ff;
    text-shadow: 0 0 10px #2a72ffaa;
  }
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 36px;
  }
  .project-item {
    background: #1b1b30dd;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.7), inset 0 0 10px #2a72ff55;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    user-select: none;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
  }
  .project-item:hover, .project-item:focus {
    transform: translateY(-16px) rotateX(7deg) rotateY(-6deg);
    box-shadow:
      0 24px 60px rgba(42,114,255,0.9),
      inset 0 0 25px #2a72ffaa;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    outline-offset: 8px;
    z-index: 25;
  }
  .project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(15%);
    will-change: transform, filter;
  }
  .project-item:hover .project-image img {
    transform: scale(1.14) rotateY(8deg);
    filter: grayscale(0%);
    transition: transform 0.5s ease;
  }
  .project-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 3.8rem;
    color: #2a72ffcc;
    filter: drop-shadow(0 0 8px #2a72ffcc);
    transition: all 0.4s ease;
  }
  .project-item:hover .project-icon {
    color: #0e3d91ff;
    filter: drop-shadow(0 0 18px #0e3d91ff);
    transform: rotateY(30deg) scale(1.5);
  }
  .project-text {
    padding: 20px 24px;
    flex-grow: 1;
    color: #ccc;
  }
  .project-text h3 {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: #2a72ff;
  }
  .project-text p {
    font-size: 1.15rem;
    line-height: 1.6;
  }

  /* Kontakt */
  #contact {
    max-width: 720px;
    margin: 80px auto 100px;
    padding: 20px;
    text-align: center;
    color: #ccc;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s ease, transform 1s ease;
  }
  #contact.visible {
    opacity: 1;
    transform: translateY(0);
  }
  #contact h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    color: #2a72ff;
  }
  #contact p {
    margin-bottom: 20px;
    font-size: 1.3rem;
  }
  #contact a {
    color: #2a72ff;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
  }
  #contact a:hover, #contact a:focus {
    color: #1955d1;
    text-decoration: underline;
  }
  #contact a:hover::after, #contact a:focus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200%;
    height: 200%;
    background: rgba(42,114,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleLight 0.6s ease forwards;
    pointer-events: none;
    z-index: 1;
  }

  /* Back to top dugme */
  #backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #2a72ff;
  box-shadow: 0 0 18px #2a72ffcc;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: 
    opacity 0.3s ease, 
    box-shadow 0.3s ease, 
    background 0.3s ease, 
    transform 0.3s ease;
  z-index: 9999;

  /* Dodaj početnu nevidljivost */
  opacity: 0;
  pointer-events: none;
}

#backToTop.show {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover,
#backToTop:focus {
  box-shadow: 0 0 42px #1955d1ff;
  background: linear-gradient(45deg, #1955d1, #2a72ff);
  transform: translateY(-2px);
  outline: none;
}


  /* --- dodatni 3D i animacioni efekti --- */

  /* Parallax efekat na hero */
  .hero {
    perspective: 1000px;
    overflow: visible;
    position: relative;
  }
  .hero h1 {
    transform-style: preserve-3d;
    transition: transform 0.5s ease-out;
    will-change: transform;
  }
  .hero p {
    transform-style: preserve-3d;
    transition: transform 0.6s ease-out 0.1s;
    will-change: transform;
  }

  /* Floating efekat za ikone u skill-card */
  .skill-card i {
    animation: pulseIcon 2.5s infinite alternate,
               floatUpDown 6s ease-in-out infinite;
  }
  @keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  /* 3D hover efekat na skill-card */
  .skill-card:hover, .skill-card:focus {
    transform: translateY(-12px) rotateX(8deg) rotateY(6deg);
    box-shadow:
      0 20px 40px rgba(42,114,255,0.7),
      inset 0 0 40px #2a72ffcc;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline-offset: 8px;
    z-index: 15;
  }

  /* 3D hover efekat na project-item */
  .project-item:hover, .project-item:focus {
    transform: translateY(-16px) rotateX(7deg) rotateY(-6deg);
    box-shadow:
      0 24px 60px rgba(42,114,255,0.9),
      inset 0 0 25px #2a72ffaa;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    outline-offset: 8px;
    z-index: 25;
  }

  /* 3D hover rotacija slike projekta */
  .project-item:hover .project-image img {
    transform: scale(1.14) rotateY(8deg);
    filter: grayscale(0%);
    transition: transform 0.5s ease;
  }

  /* Dinamički shadow koji prati kretanje miša po kartici (JS dodatak) */
  .project-item, .skill-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
  }

  /* 3D rotacija logo slike pri hover */
  header .logo img {
    transition: transform 0.6s cubic-bezier(0.42, 0, 0.58, 1);
    transform-style: preserve-3d;
    will-change: transform;
    cursor: pointer;
  }
  header .logo:hover img {
    transform: rotateY(25deg) rotateX(12deg) scale(1.2);
    box-shadow: 0 0 35px #2a72ffdd;
  }

  /* Animacija dugmeta CTA sa 3D "push" efektom pri kliku */
  .cta-btn {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .cta-btn:active {
    transform: translateZ(-20px) scale(0.95);
    box-shadow: 0 0 20px #1955d1cc inset;
  }

  /* Ripple svetlosni efekat na linkovima i dugmadima */
  a:hover, a:focus, .cta-btn:hover, .cta-btn:focus, header nav a:hover, header nav a:focus {
    position: relative;
    overflow: hidden;
  }
  a:hover::after, a:focus::after, .cta-btn:hover::after, .cta-btn:focus::after, header nav a:hover::after, header nav a:focus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 200%;
    height: 200%;
    background: rgba(42,114,255,0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    animation: rippleLight 0.6s ease forwards;
    pointer-events: none;
    z-index: 1;
  }
  @keyframes rippleLight {
    to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  }

  /* Back to top dugme sa glow animacijom */
  #backToTop {
    will-change: box-shadow, background;
    box-shadow: 0 0 18px #2a72ffcc;
  }
  #backToTop:hover, #backToTop:focus {
    box-shadow: 0 0 42px #1955d1ff;
    background: linear-gradient(45deg, #1955d1, #2a72ff);
    transform: translateY(-2px);
    transition: all 0.3s ease;
  }

  /* Sekcije fade-in sa stagger efektom */
  #about, #skills, #projects, #contact {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1s ease, transform 1s ease;
  }
  #about.visible, #skills.visible, #projects.visible, #contact.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Animacija za pojedinačne elemente unutar sekcija */
  .fade-delay-1 { transition-delay: 0.2s; }
  .fade-delay-2 { transition-delay: 0.4s; }
  .fade-delay-3 { transition-delay: 0.6s; }
  .fade-delay-4 { transition-delay: 0.8s; }

  /* Neon pulsiranje */
  @keyframes neonGlow {
    0%, 100% {
      text-shadow:
        0 0 5px #2a72ff,
        0 0 10px #2a72ff,
        0 0 20px #2a72ff,
        0 0 40px #1955d1,
        0 0 80px #1955d1,
        0 0 90px #1955d1;
      color: #2a72ff;
    }
    50% {
      text-shadow: none;
      color: #aacbff;
    }
  }
  @keyframes neonPulse {
    0%, 100% {
      box-shadow:
        0 0 18px #2a72ffcc,
        0 0 28px #2a72ffbb;
    }
    50% {
      box-shadow:
        0 0 32px #1955d1ff,
        0 0 42px #1955d1ff;
    }
  }
  @keyframes pulseIcon {
    0% { filter: drop-shadow(0 0 4px #2a72ffcc); }
    100% { filter: drop-shadow(0 0 12px #2a72ffcc); }
  }
#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #2a72ff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
    z-index: 99999;
    mix-blend-mode: difference;
    animation: pulseCursor 2.5s infinite alternate;
  }
  @keyframes pulseCursor {
    0% { box-shadow: 0 0 6px #2a72ff, 0 0 12px #2a72ffcc; }
    100% { box-shadow: 0 0 18px #1955d1, 0 0 28px #1955d1cc; }
  }
  /* Hover efekt na klik */
  #custom-cursor.active {
    background-color: #2a72ff55;
  }
  .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2a72ffcc;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    user-select: none;
    z-index: 50;
  }
  .skill-card:hover .tooltip,
  .skill-card:focus .tooltip,
  .project-item:hover .tooltip,
  .project-item:focus .tooltip {
    opacity: 1;
    pointer-events: auto;
  }

  /* --- Responsive tweaks za manje ekrane --- */

@media (max-width: 768px) {
  /* Glavni container padding i širina */
  #main-container {
    padding: 12px 16px;
    max-width: 95vw;
  }

  /* HEADER - smanji padding i raspored */
  header {
    padding: 10px 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  header .logo {
    width: 48px;
    height: 48px;
  }
  header .logo img {
    width: 48px;
    height: 48px;
  }
  header nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  header nav a {
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 10px;
  }

  /* HERO - smanji veličine fontova i padding */
  .hero {
    margin-top: 70px;
    padding: 40px 12px 30px;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero p {
    font-size: 1rem;
    max-width: 90vw;
  }
  .cta-btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    gap: 10px;
  }
  .cta-btn .emoji {
    font-size: 1.3rem;
  }

  /* O meni sekcija - prelom u kolonu */
  #about {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 90vw;
  }
  #about img {
    width: 180px;
    height: 180px;
  }
  #about h2 {
    font-size: 2.2rem;
  }
  #about p {
    font-size: 1rem;
  }

  /* Sekcija veština */
  #skills {
    margin: 60px 0;
  }
  #skills h2 {
    font-size: 2.4rem;
    margin-bottom: 28px;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
  }
  .skill-card {
    padding: 22px 14px;
  }
  .skill-card i {
    font-size: 2.8rem;
    margin-bottom: 14px;
  }
  .skill-card h3 {
    font-size: 1.3rem;
  }
  .skill-card p {
    font-size: 1rem;
  }

  /* Projekti */
  #projects {
    margin: 60px 0;
  }
  #projects h2 {
    font-size: 2.4rem;
    margin-bottom: 28px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-item {
    border-radius: 16px;
  }
  .project-image {
    height: 180px;
  }
  .project-icon {
    font-size: 3rem;
    top: 12px;
    right: 12px;
  }
  .project-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  .project-text p {
    font-size: 1rem;
  }

  /* Kontakt */
  #contact {
    max-width: 90vw;
    margin: 60px auto 80px;
  }
  #contact h2 {
    font-size: 2.4rem;
    margin-bottom: 24px;
  }
  #contact p {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  /* Back to top dugme - manje i pomereno malo u stranu */
  #backToTop {
    width: 44px;
    height: 44px;
    right: 16px;
    bottom: 16px;
    font-size: 1.6rem;
  }

  /* Tooltip manje na mobilnim */
  .tooltip {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
}

/* Još manji uređaji (telefoni do 400px širine) */
@media (max-width: 400px) {
  header nav a {
    font-size: 0.9rem;
    padding: 6px 8px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .cta-btn {
    padding: 12px 24px;
    font-size: 1rem;
  }
  #about img {
    width: 140px;
    height: 140px;
  }
  .skill-card i {
    font-size: 2.2rem;
  }
  .project-image {
    height: 140px;
  }
  #contact h2 {
    font-size: 2rem;
  }
}

/* Sprečavanje horizontalnog skrolovanja */
body, html {
  overflow-x: hidden;
}

/* Osiguravanje da backToTop dugme ne prekriva druge elemente na mobilnom */
#backToTop {
  touch-action: manipulation;
}


/* Primer CSS-a (dodaj u svoj stil) */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--primary-color);
  width: 0%;
  z-index: 9999;
  transition: width 0.25s ease;
}










:root {
  --bg-color: #0d0d0d;
  --text-color: #0832ee; /* za tamnu pozadinu */
  --primary-color: #2a72ff;
  --primary-color-dark: #1955d1;
  --card-bg: rgba(30, 30, 50, 0.9);
  --card-shadow: #2a72ffaa;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Kartice za tamnu temu */
.skill-card, .project-item {
  background-color: var(--card-bg);
  box-shadow: 0 4px 10px var(--card-shadow);
  color: var(--text-color); /* nasleđuje plavi tekst, nije idealno za svetlu temu */
}

/* Kada je svetla tema aktivna */
.light-theme {
  --bg-color: #f9f9f9;
  --text-color: #222222;
  --card-bg: #ffffff;
  --card-shadow: rgba(0,0,0,0.1);
}

.light-theme body {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.light-theme .skill-card,
.light-theme .project-item {
  background-color: var(--card-bg);
  box-shadow: 0 4px 10px var(--card-shadow);
  color: var(--text-color); /* tamni tekst */
}



footer .social-links a i {
    color: #0832ee !important;
}

footer .social-links a:link,
footer .social-links a:visited,
footer .social-links a:hover,
footer .social-links a:active {
    color: #0832ee !important;
    text-decoration: none !important;
}



/* Osnovni modal */
.modal {
  display: none; /* sakriven dok se ne otvori */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;

  backdrop-filter: blur(6px); /* blur efekat pozadine */
  animation: fadeIn 0.3s ease-in-out;
}

/* Animacija otvaranja */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

.modal-content {
  background: linear-gradient(145deg, #0d0d0d, #121212);
  border: 2px solid #0832ee;
  box-shadow: 0 0 25px #0832ee80, 0 0 60px #2a72ff33 inset;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  color: #fff;
  text-align: center;
  position: relative;
  transform: translateY(-50px);
  animation: slideDown 0.3s ease forwards;
}

/* Animacija sadržaja */
@keyframes slideDown {
  from {opacity:0; transform: translateY(-50px);}
  to {opacity:1; transform: translateY(0);}
}

/* Naslov modal-a */
.modal-content h2 {
  margin-bottom: 1rem;
  color: #2a72ff;
  font-size: 1.8rem;
  text-shadow: 0 0 8px #2a72ff;
}

/* Paragraf */
.modal-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #ddd;
}

/* Kontakt stavke */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.8rem 0;
  font-size: 1rem;
  justify-content: flex-start;
}

.contact-item i {
  font-size: 1.5rem;
  color: #0832ee;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-item i:hover {
  transform: scale(1.2) rotate(-10deg);
  color: #2a72ff;
}

.contact-item a {
  color: #0832ee;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #2a72ff;
  text-decoration: underline;
}

/* Zatvori dugme */
.close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close:hover {
  color: #2a72ff;
  transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 500px) {
  .modal-content {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .contact-item {
    font-size: 0.95rem;
    gap: 0.5rem;
  }

  .contact-item i {
    font-size: 1.3rem;
  }
}
/* Kada je modal otvoren, blokira scroll pozadine */
body.modal-open {
  overflow: hidden;
}
