 :root {
      --primary: #2c3e50;
      --accent: #3498db;
      --warning: #f39c12;
      --white: #ffffff;
      --dark: #1a252f;
      --gray: #ecf0f1;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', sans-serif;
      margin: 0;
      background-color: #f0f2f5;
    }

    /* ---------------- Navigation ---------------- */
    nav {
      /* background: var(--primary); */
      background: linear-gradient(90deg, #1d2671, #c33764);
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.5rem 5%;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
      color: white;
      text-decoration: none;
    }

    .brand-logo {
      background-color: white;
      width: 35px;
      height: 35px;
    }

    .brand-name {
      font-size: 1.4rem;
      font-weight: bold;
    }

    .nav-links {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-links li {
      position: relative;
    }

    .nav-links li a {
      color: white;
      text-decoration: none;
      padding: 1rem 1.5rem;
      display: block;
      transition: 0.3s;
    }

    .nav-links li a:hover {
      background: var(--accent);
      color: white;
    }

    /* -------- Dropdown -------- */
    .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      background: var(--primary);
      list-style: none;
      padding: 0;
      margin: 0;
      min-width: 200px;
      display: none;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    .dropdown-menu li a {
      padding: 12px 16px;
    }

    /* Desktop hover */
    @media (min-width: 769px) {
      .dropdown:hover .dropdown-menu {
        display: block;
      }
    }

    /* -------- Mobile Menu -------- */
    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
      gap: 5px;
    }

    .menu-toggle span {
      width: 25px;
      height: 3px;
      background: white;
    }

    /* ---------------- Gallery ---------------- */
    .container {
      max-width: 1200px;
      margin: 2rem auto;
      padding: 0 20px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 25px;
    }

    .card {
      background: var(--white);
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column;
    }

    .img-wrapper {
      height: 250px;
      overflow: hidden;
    }

    .img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      cursor: pointer;
      transition: transform 0.4s;
    }

    .img-wrapper img:hover {
      transform: scale(1.05);
    }

    .card-actions {
      padding: 15px;
      display: flex;
      gap: 10px;
    }

    .btn {
      flex: 1;
      padding: 12px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-weight: bold;
      font-size: 13px;
    }

    .btn-edit {
      background: var(--warning);
      color: white;
    }

    .btn-download {
      background: var(--accent);
      color: white;
    }

    /* ---------------- Modal ---------------- */
    .modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 2000;
      justify-content: center;
      align-items: center;
    }

    .modal-content {
      max-width: 90%;
      max-height: 85%;
    }

    .close {
      position: absolute;
      top: 20px;
      right: 35px;
      color: white;
      font-size: 40px;
      cursor: pointer;
    }


    /* ---------------- Responsive ---------------- */
    @media (max-width: 768px) {
      .menu-toggle {
        display: flex;
      }

      .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: var(--primary);
      }

      .nav-links.active {
        display: flex;
      }

      .dropdown-menu {
        position: static;
        box-shadow: none;
      }

      .dropdown.open .dropdown-menu {
        display: block;
      }

      .img-wrapper {
        height: 200px;
      }
    }