:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray: #64748b;
    --success: #10b981;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
  }

  /* Header Styles - SHORTER NAVBAR */
  #header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
  }

  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; /* Reduced padding to make navbar shorter */
    max-width: 1400px;
    margin: 0 auto;
  }

  #header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  #header .logo img {
    height: 60px; /* Slightly smaller logo */
    width: auto;
    border-radius: var(--radius);
    transition: var(--transition);
  }

  #header .logo:hover img {
    transform: scale(1.05);
  }

  .logo-text {
    display: flex;
    flex-direction: column;
    background: white; /* WHITE BACKGROUND for logo text */
    padding: 8px 12px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  #header .logo label {
    font-size: 20px; /* Slightly smaller font */
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  #header .logo label:last-child {
    font-size: 13px; /* Slightly smaller font */
    font-weight: 500;
    color: var(--gray);
    margin-top: 2px;
  }

  #header .contact-info {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced gap */
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px; /* Slightly smaller padding */
    background: var(--light);
    border-radius: 25px;
    transition: var(--transition);
    font-size: 14px; /* Smaller font */
  }

  .contact-item:hover {
    background: var(--primary);
    transform: translateY(-2px);
  }

  .contact-item:hover label,
  .contact-item:hover a {
    color: white !important;
  }

  .contact-item i {
    font-size: 14px; /* Smaller icons */
    background: var(--success);
    color: white;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
  }

  .contact-item:hover i {
    background: white;
    color: var(--success);
  }

  #header .contact-info label {
    font-size: 13px; /* Smaller font */
    font-weight: 600;
    color: var(--dark);
  }

  #header .contact-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 13px; /* Smaller font */
  }

  /* Navigation Styles - SHORTER */
  .main-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
  }

  .main-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }

  .main-menu li {
    margin: 0;
    position: relative;
  }

  .main-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px; /* Reduced padding to make navbar shorter */
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 14px; /* Slightly smaller font */
  }

  .main-menu li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
  }

  .main-menu li a:hover::before {
    width: 80%;
  }

  .main-menu li a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  /* Dropdown Styles */
  #dropdown-products {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: dropdownFade 0.3s ease;
  }

  @keyframes dropdownFade {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  #menu-products:hover #dropdown-products {
    display: block;
  }

  #dropdown-products ul {
    margin: 0;
    padding: 10px 0;
    list-style: none;
  }

  #dropdown-products ul li {
    padding: 0;
  }

  #dropdown-products ul li a {
    padding: 12px 25px;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 14px;
  }

  #dropdown-products ul li a:hover {
    background: var(--light);
    color: var(--primary);
    border-left-color: var(--accent);
    transform: none;
  }

  /* Main Content - ADJUSTED FOR SHORTER NAVBAR */
  #main {
    padding-top: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero Section - ORIGINAL COLOR BACKGROUND */
  #b1 {
    background: url('../foto/Foto zyre2.jpg'); /* REMOVED blue overlay */
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    border-radius: var(--radius);
    padding: 80px 40px;
    margin: 20px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  #b1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Only slight dark overlay for text readability */
    z-index: 1;
  }

  #b1 p {
    position: relative;
    z-index: 2;
    font-size: 28px;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
  }

  #b1 span {
    font-size: 42px;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 10px;
  }

  /* Content Layout */
  .content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin: 60px 0;
  }

  #permbajtja {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  #permbajtja:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  #permbajtja p {
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 25px;
    font-size: 16px;
    color: var(--gray);
  }

  #foto {
    flex: 0 0 45%;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  #foto:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
  }

  #foto img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 5px);
    transition: var(--transition);
  }

  /* Services List */
  .services-list {
    margin: 30px 0;
  }

  .services-list .item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
    border-left: 4px solid transparent;
  }

  .services-list .item:hover {
    background: white;
    border-left-color: var(--accent);
    transform: translateX(10px);
    box-shadow: var(--shadow);
  }

  .services-list .item i {
    color: var(--success);
    margin-right: 15px;
    font-size: 18px;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 50%;
    transition: var(--transition);
  }

  .services-list .item:hover i {
    background: var(--success);
    color: white;
    transform: scale(1.1);
  }

  .services-list .item label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
  }

  /* Footer Styles */
  #footer {
    background: linear-gradient(135deg, var(--dark), #0f172a);
    color: white;
    margin-top: 80px;
    position: relative;
  }

  #footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
  }

  .footer-menu {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    gap: 40px;
  }

  .footer-col {
    flex: 1;
    min-width: 250px;
  }

  .footer-col h2 {
    color: var(--accent);
    margin-bottom: 25px;
    font-size: 22px;
    position: relative;
    padding-bottom: 10px;
  }

  .footer-col h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
  }

  .footer-col p {
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
  }

  .footer-col a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
  }

  .footer-col a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: translateX(10px);
  }

  .contact-details {
    color: #cbd5e1;
  }

  .contact-details i {
    color: var(--secondary);
    margin-right: 10px;
    width: 20px;
    text-align: center;
  }

  .contact-details a {
    display: inline;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
  }

  .contact-details a:hover {
    color: var(--accent);
    text-decoration: underline;
  }

  .footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #334155;
    margin-top: 40px;
  }

  .footer-bottom p {
    color: #94a3b8;
    margin: 5px 0;
  }

  /* Contact Form Styles */
  .contact-box {
    display: flex;
    gap: 40px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 40px 0;
  }

  .contact-left {
    flex: 1;
    padding: 40px;
  }

  .contact-right {
    flex: 0 0 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
  }

  .contact-right h3 {
    color: var(--accent);
    margin-bottom: 25px;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--dark);
    font-weight: 600;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    color: var(--dark);
    background: white;
    transition: var(--transition);
  }

  .contact-form textarea {
    resize: vertical;
    min-height: 140px;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }

  .contact-submit {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
  }

  .contact-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }

  /* Theme and language controls */
  body.dark-mode {
    --light: #1e293b;
    --dark: #f1f5f9;
    --gray: #cbd5e1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  }

  body.dark-mode #header {
    background: rgba(15, 23, 42, 0.96);
  }

  body.dark-mode #permbajtja,
  body.dark-mode #foto,
  body.dark-mode .contact-box,
  body.dark-mode .partner-logo-strip,
  body.dark-mode .logo-text {
    background: #1e293b;
  }

  body.dark-mode .contact-form input,
  body.dark-mode .contact-form textarea {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #475569;
  }

  body.dark-mode #footer {
    background: #f8fafc;
  }

  body.dark-mode #footer,
  body.dark-mode .footer-col p,
  body.dark-mode .footer-col a,
  body.dark-mode .contact-details,
  body.dark-mode .contact-details a,
  body.dark-mode .footer-bottom p {
    color: #111827;
  }

  body.dark-mode .footer-bottom {
    border-top-color: #cbd5e1;
  }

  body.dark-mode #dropdown-products {
    background: #1e293b;
    border-color: #334155;
  }

  body.dark-mode #dropdown-products ul li a {
    color: #f1f5f9;
  }

  body.dark-mode #dropdown-products ul li a:hover {
    background: #334155;
    color: #38bdf8;
  }

  body.dark-mode .services-list .item {
    background: #0f172a;
    border-left-color: transparent;
  }

  body.dark-mode .services-list .item label {
    color: #f1f5f9;
  }

  body.dark-mode .services-list .item:hover {
    background: #334155;
    border-left-color: var(--accent);
  }

  body.dark-mode .services-list .item:hover label {
    color: #ffffff;
  }

  .navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .navbar-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--light);
    color: var(--dark);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .navbar-actions {
      gap: 4px;
    }

    .navbar-actions button {
      width: auto;
      min-height: 34px;
      padding: 6px 8px;
      font-size: 9px;
    }
  }

  @media (max-width: 768px) {
    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    #header .container {
      padding: 8px 12px;
      gap: 8px;
    }

    #header .logo {
      min-width: 0;
      gap: 7px;
      flex: 1;
    }

    #header .logo img {
      height: 44px;
      max-width: 44px;
      object-fit: contain;
    }

    .logo-text {
      min-width: 0;
      padding: 5px 7px;
      border-radius: 8px;
    }

    #header .logo label {
      max-width: 145px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: 12px;
    }

    #header .logo label:last-child {
      max-width: 145px;
      font-size: 9px;
      white-space: normal;
      line-height: 1.2;
    }

    #header .contact-info {
      display: none;
    }

    .navbar-actions {
      flex-shrink: 0;
    }

    .navbar-actions button {
      min-height: 32px;
      padding: 5px 7px;
      font-size: 10px;
    }

    .main-menu {
      width: 100%;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .main-menu li {
      min-width: 0;
    }

    .main-menu li a {
      min-height: 44px;
      justify-content: center;
      gap: 4px;
      padding: 8px 4px;
      font-size: 10px;
      line-height: 1.15;
      text-align: center;
      white-space: normal;
    }

    #menu-products {
      position: relative;
    }

    #dropdown-products {
      left: 0;
      min-width: 220px;
      max-width: calc(100vw - 16px);
    }

    #main {
      width: 100%;
      max-width: 100%;
      padding: 12px 12px 0;
    }

    #b1,
    div[id="b1"][style] {
      min-height: 190px;
      padding: 35px 18px !important;
      margin: 12px 0;
      background-attachment: scroll;
    }

    #b1 p,
    #b1 h1 {
      max-width: 100%;
      font-size: clamp(22px, 7vw, 32px) !important;
      line-height: 1.18;
      text-align: center;
    }

    .content-wrapper {
      flex-direction: column;
      gap: 18px;
      margin: 24px 0;
    }

    #permbajtja {
      width: 100%;
      padding: 22px 16px;
    }

    #permbajtja p {
      font-size: 15px;
      line-height: 1.65;
      text-align: left;
    }

    #foto {
      width: 100%;
      flex: none;
      padding: 12px;
    }

    #foto img {
      width: 100%;
      max-height: 320px;
      object-fit: cover;
    }

    .services-list {
      margin: 18px 0 0;
    }

    .services-list .item {
      margin-bottom: 10px;
      padding: 11px 12px;
    }

    .services-list .item i {
      flex: 0 0 auto;
      margin-right: 10px;
      padding: 7px;
      font-size: 14px;
    }

    .services-list .item label {
      min-width: 0;
      font-size: 14px;
      line-height: 1.35;
    }

    .services-list .item:hover {
      transform: none;
    }

    .footer-menu {
      flex-direction: column;
      padding: 36px 20px 24px;
      gap: 24px;
    }

    .footer-col {
      width: 100%;
      min-width: 0;
    }

    .footer-col h2 {
      margin-bottom: 16px;
      font-size: 20px;
    }

    .footer-bottom {
      margin-top: 12px;
      padding: 22px 12px;
    }

    .contact-box {
      flex-direction: column;
      gap: 0;
      margin: 24px 0;
    }

    .contact-left,
    .contact-right {
      width: 100%;
      flex: none;
      padding: 22px 16px;
    }

    .form-grid {
      grid-template-columns: 1fr;
    }

    .contact-form input,
    .contact-form textarea {
      min-height: 44px;
      font-size: 16px;
    }

    .contact-submit {
      width: 100%;
      justify-content: center;
    }

    #main > div[style*="padding-top: 140px"] {
      padding-top: 32px !important;
      padding-left: 12px !important;
      padding-right: 12px !important;
    }
  }

  @media (max-width: 480px) {
    #header .logo img {
      height: 38px;
      max-width: 38px;
    }

    #header .logo label {
      max-width: 112px;
      font-size: 10px;
    }

    #header .logo label:last-child {
      display: none;
    }

    .main-menu li a {
      font-size: 9px;
      padding-inline: 2px;
    }

    .navbar-actions button {
      min-width: 34px;
      padding-inline: 5px;
      font-size: 9px;
    }
  }

  .footer-partners-title {
    max-width: 1400px;
    margin: 0 auto 12px;
    padding: 0 40px;
    color: var(--accent);
    font-size: 22px;
  }

  /* Partner Logo Slideshow */
  .partner-logo-strip {
    position: relative;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
    border-top: 1px solid rgba(37, 99, 235, 0.08);
  }

  .partner-logo-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    padding: 6px 24px;
    animation: partner-scroll 48s linear infinite;
  }

  .partner-logo-strip:hover .partner-logo-track {
    animation-play-state: paused;
  }

  @keyframes partner-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }

  .partner-logo-track img {
    width: 190px;
    height: 58px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .partner-logo-track img:hover {
    opacity: 1;
    transform: scale(1.04);
  }

  @media (max-width: 768px) {
    .footer-partners-title {
      padding: 0 20px;
      font-size: 20px;
    }

    .partner-logo-strip {
      height: 58px;
    }

    .partner-logo-track {
      gap: 18px;
      padding: 5px 12px;
      animation-duration: 34s;
    }

    .partner-logo-track img {
      width: 125px;
      height: 46px;
    }
  }
