/* css/global.css */

/* Webfont: Namian-Bold */
@font-face {
    font-family: 'NamianBold';
    src: url('../fonts/Namian-Bold.eot'); /* IE9 Compat Modes */
    src: url('../fonts/Namian-Bold.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/Namian-Bold.woff2') format('woff2'), /* Modern Browsers - put woff2 first for better performance */
         url('../fonts/Namian-Bold.woff') format('woff'), /* Modern Browsers */
         url('../fonts/Namian-Bold.ttf') format('truetype'); /* Safari, Android, iOS */
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
    font-display: swap; /* Improves loading performance */
}

/* Apply to headings with DM Sans fallback */
h1{
    font-family: 'NamianBold', 'DM Sans', sans-serif;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular weight for body text */
    font-size: 16px; /* Adjust as per your Figma design */
    line-height: 1.5; /* Common for body text readability */
    background-color: #0e0e0e;
   
}

/* Headers and titles (DM Sans) */
h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; /* Bold for headers, adjust per Figma */
    line-height: 1.2; /* Tighter for headings */
}



/* Ensure buttons use DM Sans for consistency with titles */
button,
.button,
input[type="submit"] {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600; /* Slightly bold for buttons */
}




/* css/global.css */

/* Ensure header-placeholder doesn't interfere with sticky */
#header-placeholder {
  margin: 0;
  padding: 0;
  width: 100vw; /* Full width */
  display: block; /* Default display */
  position: relative; /* Avoid overflow or positioning issues */
}

/* Header (MenuBar) */
header {
  display: flex;
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100vw; /* Ensure full width */
  box-sizing: border-box; /* Include padding in width */
  box-shadow: 0px 0px 12px rgba(0, 0, 0, 0.123);
  /* Fix for edge-to-edge background */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

header .mark img {
  height: 40px;
  margin: 10px;
}

/* Logo and nav font overrides */
header .logo span,
header nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 40px;
}

header .logo span {
  align-self: self-end;
  margin-left: 40px;
  font-weight: 600;
  font-size: 1rem;
  color: #00000041;
}

header nav ul {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  align-items: self-end;
  display: flex;
  list-style: none;
  gap: 50px;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  color: #0e0e0e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

header nav ul li a:hover {
  color: #ff4d8d; /* Pink accent */
}

/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #0e0e0e;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    font-weight: 500;
    flex-direction: row; /* Keep horizontal layout for logo and hamburger */
    justify-content: space-between;
    align-items: center;
    /* Ensure full width coverage */
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Logo container adjustments */
  header .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  /* Move tagline under logo and make it smaller */
  header .logo span {
    margin-left: 0;
    font-size: 0.75rem;
    align-self: flex-start;
    color: #00000060;
  }
  
  /* Hide desktop navigation */
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 99;
  }
  
  /* Show navigation when active */
  header nav.active {
    display: block;
  }
  
  /* Mobile navigation styles */
  header nav ul {
    flex-direction: column;
    gap: 0;
    padding: 20px;
  }
  
  header nav ul li {
    border-bottom: 1px solid #f0f0f0;
  }
  
  header nav ul li:last-child {
    border-bottom: none;
  }
  
  header nav ul li a {
    display: block;
    padding: 15px 0;
    font-size: 1.1rem;
  }
  
  /* Show hamburger menu */
  .hamburger {
    display: flex;
  }
}






/* Footer */
footer {
    background-color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(44, 42, 42, 0.089); /* Subtle top border */
    color: #141414;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px; /* Match header logo size */
    margin-bottom: 10px;
}

.footer-logo p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    opacity: 0.7;
}

footer > p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

footer > p a {
    color: #1b1b1b;
    text-decoration: none;
    font-weight: 500;
}

footer > p a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow links to wrap on small screens */
}

.footer-links a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2c2c2c;
    opacity: 0.7;
    text-decoration: none;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    footer {
        padding: 30px 15px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 13px;
    }
}


/* Lightbox styles */
/* Lightbox styles */
/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Darkened overlay */
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    aspect-ratio: 16 / 9; /* Maintains video aspect ratio */
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1100;
}

/* Ensure thumbnails are clickable */
.template img {
    cursor: pointer;
    width: 100%;
    height: auto;
}

/* Optional: Add hover effect to thumbnails */
.template img:hover {
    opacity: 0.4;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .video-container {
        width: 90%;
    }

    .close-btn {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}




/* NEW: Video Creator Form Styles */
.video-creator {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px 30px;
    background-color: #ffffff;
    border-radius: 8px;
    align-content: space-around;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 0px 35px rgba(26, 26, 26, 0.541);
}

#videoForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
}

#videoForm label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #0e0e0e;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#videoForm input[type="text"],
#videoForm input[type="email"],
#videoForm input[type="url"] {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    padding: 10px;
    border: 1px solid #2c2c2c83;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

#videoForm input[type="color"] {
    
    
    padding: 0px;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    
   
    
}

#videoForm input[type="text"]:focus,
#videoForm input[type="email"]:focus,
#videoForm input[type="url"]:focus,
#videoForm input[type="color"]:focus {
    border-color: #ff4d8d;
    outline: none;
}

#videoForm input[type="radio"],
#videoForm input[type="checkbox"] {
    margin-right: 10px;
}

#videoForm input[type="radio"] + label,
#videoForm input[type="checkbox"] + label {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

#videoForm .color-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

#videoForm .template-options,
#videoForm .extra-messages,
#videoForm .recap-list {
    margin-top: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

#videoForm .template-options label,
#videoForm .extra-messages label {
    margin-bottom: 10px;
}

#videoForm .template-options a {
    color: #ff4d8d;
    text-decoration: none;
    margin-left: 10px;
}

#videoForm .template-options a:hover {
    text-decoration: underline;
}

#videoForm button.add-message-btn,
#videoForm button.remove-message-btn {
    font-size: 1.2rem;
    padding: 5px 15px;
    margin-left: 10px;
}

#videoForm #buyNowBtn {
    background-color: #ff4d8d;
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 4px;
    align-self: flex-start;
    margin-top: 20px;
}

#videoForm #buyNowBtn:hover {
    background-color: #e6397a;
}

#videoForm #totalPrice {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: #ff4d8d;
}

/* Social Media Modal */
#socialModal {
    display: none; /* Start hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
   }
   
   #socialModal h3 {
    margin-top: 0;
   }
   
   #socialModal p {
    margin-bottom: 20px;
   }
   
   #socialModal img {
    max-width: 100%;
    border-radius: 4px;
    margin-bottom: 20px;
   }
   
   #socialModal button {
    background-color: #ff4d8d;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer; /* Ensure clickable */
   }
   
   #socialModal button:hover {
    background-color: #e6397a;
   }
   
   /* Overlay for modal */
   #socialModal::before {
    pointer-events: none;
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 1099;
    display: none; /* Hidden by default */
   }
   
   /* Show overlay when modal is visible */
   #socialModal[style*="display: block"]::before {
    display: block;
   }

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-creator {
        margin: 20px auto;
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    #videoForm input[type="text"],
    #videoForm input[type="email"],
    #videoForm input[type="url"],
    #videoForm input[type="color"] {
        max-width: 100%;
    }

    #videoForm .color-group {
        flex-direction: column;
        gap: 10px;
    }

    #videoForm #buyNowBtn {
        width: 100%;
        text-align: center;
    }

    #socialModal {
        width: 95%;
        padding: 15px;
    }

    footer {
        padding: 30px 15px;
    }

    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .lightbox .video-container {
        width: 90%;
    }

    .lightbox .close-btn {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}


/* Template Options (Video Creator) */
.template-options {
    margin-top: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.template {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #ffffff;
    
    border-radius: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.template:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.template label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #0e0e0e;
    display: flex;
    align-items: center;
    gap: 5px;
}

.template img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
}

.template img:hover {
    opacity: 0.8; /* Slightly different from homepage (.4) for form context */
}

.template .preview-btn {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    
    background-color: #ffffff;
    
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.template .preview-btn:hover {
    background-color: #ff4d8d;
    color: #ffffff;
    border-color: #ff4d8d;
}

.template .preview-btn:focus {
    outline: 2px solid #ff4d8d;
    outline-offset: 2px;
}