* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #120c1c;
    color: #fff;
    line-height: 1.6;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  ul {
    list-style: none;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  /* Navbar */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 3%;
    background: #2c2046;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .logo {
    text-decoration: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Dancing Script', cursive;
    transition: color 0.3s ease;
  }

  .logo:hover {
    color: #d0a9f5;
  }
  
  .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .nav-links li {
    margin: 0;
    padding: 0;
  }
  
  .nav-links li a {
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    padding: 8px 16px;
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
  }
  
  .nav-links li a:hover {
    color: #d0a9f5;
    background: rgba(136, 84, 208, 0.1);
  }
  
  .nav-links li a.active {
    color: #fff;
    background: #8854d0;
  }
  
  .nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #d0a9f5;
    transform: scaleX(1);
  }
  
  .btn.login {
    background-color: #8854d0;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
  }
  
  /* Profile container styles */
  .profile-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 10px;
  }
  
  .profile-pic {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #8854d0;
  }
  
  .profile-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: #2c2046;
    border-radius: 8px;
    padding: 8px;
    min-width: 150px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  
  /* Mobile menu styles */
  .menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
  }
  
  /* Hero */
  .hero {
    background: url('assets/landing-pg-background.png') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    padding-top: 80px; /* Account for navbar */
    overflow: hidden;
  }
  
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .hero-text {
    flex: 1;
    max-width: 500px;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
  }
  
  .btn.primary {
    background: #8854d0;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    color: white;
    transition: background 0.3s;
  }
  
  .btn.primary:hover {
    background: #a46cf0;
  }
  
  .hero-images {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    width: fit-content;
    perspective: 1000px;
    padding: 40px;
    border-radius: 20px;
  }

  .polaroid {
    background: white;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border-radius: 4px;
    transform: rotate(-2deg);
    position: relative;
    cursor: pointer;
  }

  .polaroid:nth-child(2) {
    transform: rotate(3deg);
    margin-left: -40px;
    margin-top: 20px;
  }

  .polaroid:hover {
    transform: rotate(0) scale(1.05);
    z-index: 2;
  }

  .polaroid:first-child {
    z-index: 1;
  }

  .polaroid img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 2px;
    margin: 0;
  }
  
  /* Features */
  .features {
    padding: 80px 10%;
    background-color: #1a122b;
    text-align: center;
  }
  
  .features h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .feature-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .card {
    background-color: #d0a9f5;
    color: #120c1c;
    border-radius: 16px;
    padding: 30px;
    max-width: 280px;
    flex: 1 1 250px;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
  
  .card img {
    height: 80px;
    margin: 0 auto 20px auto;
    display: block;
    transition: transform 0.3s;
  }
  
  .card img:hover {
    transform: scale(1.1);
  }
  
  .card p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  /* Gallery */
  .gallery {
    padding: 80px 5% 60px;
    background: #2c2046;
    text-align: center;
  }
  
  .gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
  }
  
  .gallery-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
  }
  
  .gallery-images {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .gallery-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  .gallery-img.active {
    opacity: 1;
  }
  
  .gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
    transition: background-color 0.3s;
  }
  
  .gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
  }
  
  .prev {
    left: 20px;
  }
  
  .next {
    right: 20px;
  }
  
  .gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .dot.active {
    background: white;
  }
  
  /* CTA */
  .cta {
    padding: 60px 10%;
    background: linear-gradient(45deg, #e6e6fa, #f0e6ff);
    text-align: center;
  }
  
  .cta p {
    font-size: 3.5rem;
    font-family: 'Dancing Script', 'Brush Script MT', cursive;
    color: #2c1810;
    text-shadow: 2px 2px 4px rgba(44, 24, 16, 0.1);
    line-height: 1.2;
  }
  
  /* Footer */
  footer {
    background: #120c1c;
    padding: 40px 10%;
    color: white;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  
  .footer-content form {
    display: flex;
    gap: 10px;
  }
  
  .footer-content input {
    padding: 10px;
    border-radius: 20px;
    border: none;
    width: 200px;
  }
  
  .footer-content button {
    background: #8854d0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
  }
  
  .footer-content button:hover {
    background: #a46cf0;
  }
  
  /* User Profile in Navigation */
  .user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
  }
  
  .user-name {
    font-weight: 600;
    color: #d0a9f5;
  }
  
  /* Responsive */
  @media (max-width: 768px) 
  {
    .hero-content {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .hero-images {
      margin-top: 20px;
      display: flex;
      justify-content: center;
    }
  
    .feature-cards {
      flex-direction: column;
      align-items: center;
    }
  
    .footer-content {
      flex-direction: column;
      gap: 20px;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      gap: 10px;
      background: #2c2046;
      position: absolute;
      right: 0;
      top: 100%;
      padding: 15px;
      border-radius: 0 0 10px 10px;
      width: 200px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .nav-links li {
      width: 100%;
    }
  
    .nav-links li a {
      display: block;
      padding: 10px 16px;
      text-align: left;
      width: 100%;
    }
  
    .menu-toggle {
      display: block;
      padding: 8px;
    }
  
    .nav-links li a.active::after {
        display: none;
    }
  
    .nav-links li a.active {
        background: #8854d0;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c2046;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 24px;
    }
  }

  /* Create Board Page */
  .create-board-container {
    padding-top: 100px; /* Increased padding to account for fixed navbar */
    max-width: 1600px;
    margin: 0 auto 40px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .create-board-header {
    text-align: center;
    margin-bottom: 40px;
  }

  .create-board-header h1 {
    color: #8854d0;
    margin-bottom: 10px;
  }

  .create-board-header p {
    color: rgba(255, 255, 255, 0.7);
  }

  .board-creation-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    min-height: 600px;
  }

  /* Left Column - Controls */
  .board-controls {
    background: rgba(26, 18, 43, 0.8);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .control-group {
    width: 100%;
  }

  .board-title-input,
  .board-category-select,
  .board-notes-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #2c2046;
    border-radius: 8px;
    background: #120c1c;
    color: white;
    font-size: 16px;
  }

  .board-title-input:focus,
  .board-category-select:focus,
  .board-notes-input:focus {
    border-color: #8854d0;
    outline: none;
  }

  .board-notes-input {
    min-height: 100px;
    resize: vertical;
  }

  .image-collection {
    background: rgba(18, 12, 28, 0.5);
    border-radius: 8px;
    padding: 16px;
  }

  .image-collection h3 {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
  }

  .image-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: move;
    transition: transform 0.2s;
  }

  .image-grid img:hover {
    transform: scale(1.05);
  }

  /* Right Column - Preview */
  .board-preview {
    background: rgba(26, 18, 43, 0.8);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
  }

  .preview-header {
    margin-bottom: 20px;
    text-align: center;
  }

  .preview-header h2 {
    color: #8854d0;
    margin-bottom: 8px;
  }

  .drag-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
  }

  .board-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
    background: rgba(18, 12, 28, 0.5);
    border-radius: 8px;
    min-height: 400px;
  }

  .board-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: move;
    aspect-ratio: 1;
    transition: transform 0.2s;
  }

  .board-item:hover {
    transform: scale(1.05);
  }

  .board-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .board-item .delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
  }

  .board-item:hover .delete-btn {
    opacity: 1;
  }

  .board-actions {
    display: flex;
    gap: 12px;
  }

  .board-actions button {
    flex: 1;
  }

  /* Dragging styles */
  .board-item.dragging {
    opacity: 0.5;
    cursor: move;
  }

  .board-grid.drag-over {
    background: rgba(136, 84, 208, 0.1);
  }

  /* Responsive adjustments */
  @media (max-width: 1200px) {
    .board-creation-layout {
      grid-template-columns: 1fr;
    }
    
    .board-controls {
      order: 2;
    }
    
    .board-preview {
      order: 1;
    }
  }

  /* Image Search Styles */
  .image-search-container {
    margin-bottom: 20px;
  }

  .search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }

  .search-box input {
    flex: 1;
    padding: 12px;
    border: 2px solid #2c2046;
    border-radius: 8px;
    background: #120c1c;
    color: white;
    font-size: 16px;
  }

  .search-box input:focus {
    border-color: #8854d0;
    outline: none;
  }

  .search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
  }

  .search-result-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
  }

  .search-result-item:hover {
    transform: scale(1.05);
  }

  .search-result-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .search-result-item .select-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(136, 84, 208, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .search-result-item:hover .select-overlay {
    opacity: 1;
  }

  .select-overlay span {
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  }

  .divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
  }

  .divider::before,
  .divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
  }

  .divider::before {
    left: 0;
  }

  .divider::after {
    right: 0;
  }

  .divider span {
    background: #1a122b;
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.5);
  }

  /* Loading indicator */
  .loading-spinner {
    display: none;
    justify-content: center;
    padding: 20px;
  }

  .loading-spinner.active {
    display: flex;
  }

  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(136, 84, 208, 0.1);
    border-left-color: #8854d0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  /* Button Styles */
  .btn {
    padding: 12px 24px;
    border-radius: 30px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    letter-spacing: 0.5px;
  }

  .btn.primary {
    background: linear-gradient(135deg, #8854d0, #a55eea);
    color: white;
    box-shadow: 0 4px 15px rgba(136, 84, 208, 0.3);
  }

  .btn.primary:hover {
    background: linear-gradient(135deg, #a55eea, #8854d0);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 84, 208, 0.4);
  }

  .btn.secondary {
    background: rgba(136, 84, 208, 0.1);
    color: #8854d0;
    border: 2px solid rgba(136, 84, 208, 0.3);
    box-shadow: 0 4px 15px rgba(136, 84, 208, 0.1);
  }

  .btn.secondary:hover {
    background: rgba(136, 84, 208, 0.2);
    border-color: #8854d0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 84, 208, 0.2);
  }

  .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
  }

  /* Upload button specific styles */
  .upload-btn {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    background: rgba(136, 84, 208, 0.1);
    border: 2px dashed rgba(136, 84, 208, 0.3);
    color: #8854d0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .upload-btn:hover {
    background: rgba(136, 84, 208, 0.15);
    border-color: #8854d0;
    transform: translateY(-2px);
  }

  .upload-btn span {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Delete button styles */
  .delete-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(18, 12, 28, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
  }

  .delete-btn:hover {
    background: rgba(208, 84, 84, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: scale(1.1);
  }

  .search-result-item .image-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .search-result-item:hover .image-credit {
    opacity: 1;
  }

  .search-result-item .image-credit a {
    color: #d0a9f5;
    text-decoration: none;
  }

  .search-result-item .image-credit a:hover {
    text-decoration: underline;
  }

  .board-item .image-credit {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .board-item:hover .image-credit {
    opacity: 1;
  }

  .auth-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #111;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .auth-button:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
  }

  .auth-button img {
    width: 20px;
    height: 20px;
  }

  /* Login Prompt Styles */
  .login-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
  }

  .login-prompt {
    background: #2c2046;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
  }

  .login-prompt h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 24px;
  }

  .login-prompt p {
    color: #d0a9f5;
    margin-bottom: 15px;
    font-size: 16px;
  }

  .prompt-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
  }

  .prompt-buttons .btn {
    min-width: 120px;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideIn {
    from { 
        transform: translateY(-20px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
  }

  /* Additional navigation styling */
  #logout-button {
      background-color: #8854d0;
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      transition: all 0.3s ease;
  }

  #logout-button:hover {
    background-color: #7743b8;
    transform: translateY(-1px);
  }

  #toggle-sound {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background-color: #a46cf0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 3px solid #a46cf0;
    border-radius: 25%;
    padding: 0;
    cursor: pointer;
  }

  #toggle-sound img
  {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
  }

  #toggle-sound:hover img {
    transform: scale(1.1);
  }







