:root {
  --brand-color: #1774FF;
  --bg-color: #090A0D;
  --text-color: #ffffff;
  --input-bg: #0F1115;
  --input-border: #262f3c;
  --form-width: 400px;
}

body {
  font-family: 'Work Sans', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  display: flex;
}

.main-content {
  flex: 1;
  margin-right: var(--form-width);
  min-height: 100vh;
}

h1 {
  font-size: 1.6em;
  margin-bottom: 16px;
  margin-top: 0;
  font-weight: 500;
  color: var(--text-color);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.logo-container {
  box-shadow: 0 18px 20px #1774ff08;
  padding: 20px 40px;
  border-bottom: 1px solid var(--input-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-container a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1;
}

/* Add new wrapper for logo and text */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  max-width: 400px;
  height: auto;
  width: 100%;
  min-width: 200px;
  flex-shrink: 1;
}

.logo-divider {
  width: 1px;
  height: 24px;
  background-color: #666666;

  margin-bottom: -5px;
}

.logo-text {
  color: #e5e5e5;
  font-size: 1.5em;
  font-weight: 400;

  margin-bottom: -5px;
}

.portfolio-container {
  padding: 25px 40px 10px 40px;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* Add new media query for larger screens */
@media (min-width: 2000px) {
  .portfolio-container {
    max-width: 2400px; /* Increased from 1600px for 4K screens */
  }
}

@media (min-width: 3000px) {
  .portfolio-container {
    max-width: 3200px; /* Even larger for ultra-wide screens */
  }
}

.form-container {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--form-width);
  height: 100vh;
  overflow-y: auto;
  padding: 18px;
  background: var(--bg-color);
  border-left: 1px solid var(--input-border);
  box-sizing: border-box;
}

.form-field {
  margin-bottom: 16px;
  width: 100%;
}

label {
  display: block;
  margin-bottom: 8px;
  font-size: 1em;
  color: #8490a3;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font-size: 1em;
  font-family: 'Work Sans', sans-serif;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  color: var(--text-color);
  transition: all 0.2s ease;
}

input[type="text"],
input[type="email"],
select {
  height: 38px;
}

textarea {
  min-height: 100px;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px rgba(23, 116, 255, 0.1);
}

button {
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  background: var(--brand-color);
  color: white;
  border: none;
  border-radius: 6px;
  transition: all 0.2s ease;
}

button:hover {
  background: #0062ff;
  transform: translateY(-1px);
}

.submit-container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.submit-container button {
  width: 160px;
  flex: none;
}

button[type="submit"]:disabled {
  background: transparent;
  border: 1px solid #666666;
  color: #666666;
  cursor: not-allowed;
  transform: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button[type="submit"]:disabled::after {
  content: '→';
  font-size: 1.2em;
  line-height: 1;
  color: #666666;
}

button[type="submit"]:not(:disabled) {
  background: var(--brand-color);
  border: 1px solid var(--brand-color);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button[type="submit"]:not(:disabled)::after {
  content: '→';
  font-size: 1.2em;
  line-height: 1;
  transition: transform 0.2s ease;
}

button[type="submit"]:not(:disabled):hover::after {
  transform: translateX(4px);
}

.submit-container select {
  width: 120px;
  margin: 0;
}

.order-summary {
  display: none;
  margin-left: 15px;
  font-weight: 600;
  font-size: 1.2em;
  position: relative;
  text-align: right;
  margin-top:13px;
}

.order-summary.visible {
  display: inline-block;
}

.order-summary::before {
  content: 'TOTAL';
  position: absolute;
  top: -14px;
  right: 0;
  font-size: 0.6em;
  font-weight: 500;
  color: #8490a3;
  letter-spacing: 0.05em;
}

.design-icon {
  color: #666666;
}

.hours-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hour-button {
  width: 100%;
  background: var(--input-bg);
  color: var(--text-color);
  border: 2px solid var(--input-border);
  padding: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.button-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.button-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.project-type {
  font-weight: 600;
  font-size: 1.1em;
}

.project-price {
  display: none;
}

.project-description {
  margin: 0;
  font-size: 0.95em;
  color: #e5e5e5;
  line-height: 1.3;
}

.hour-button:hover {
  border-color: var(--brand-color);
  background: var(--input-bg);
  transform: translateY(-2px);
}

.hour-button.active {
  background: linear-gradient(to bottom left, rgba(23, 116, 255, 0.25), rgba(23, 116, 255, 0.1));
  border-color: var(--brand-color);
  color: white;
}

.hour-button.active .project-description {
  color: #e5e5e5;
}

.portfolio-container h2 {
  font-size: 1.5em;
  font-weight: 500;
  padding: 0;
  margin: 25px 0;
  color: var(--text-color);
}

.portfolio-container h2:first-of-type {
  margin-top: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

/* Add new divider style */
.section-divider {
  margin: 0 -40px;  /* Negative margin to extend beyond container padding */
  border-bottom: 1px solid var(--input-border);
  margin-bottom: 25px;
}

/* Add new styles for 3-column sections */
.portfolio-grid.three-columns {
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 2000px) {
  .portfolio-grid.three-columns {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 3000px) {
  .portfolio-grid.three-columns {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Update media query for medium screens */
@media (max-width: 1600px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Add new styles for 4-column sections */
.portfolio-grid.four-columns {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px; /* Reduced from 40px */
}

@media (min-width: 2000px) {
  .portfolio-grid.four-columns {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 3000px) {
  .portfolio-grid.four-columns {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1400px) {
  .portfolio-grid.four-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Add new media query for main portfolio grid on larger screens */
@media (min-width: 2000px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 3000px) {
  .portfolio-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Remove border from last grid in each section */
.portfolio-grid:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-container {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--input-bg);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(38, 47, 60, 0.5);
}

.video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
  border-radius: 6px;
}

/* Improve image quality on high-resolution displays */
@media (min-width: 2000px) {
  .video-container img {
    object-fit: cover;
  }
}

.video-container:hover img {
  opacity: 0.7;
}

.play-button {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('playbutton.svg') no-repeat center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.video-container:hover .play-button {
  opacity: 1;
}

.portfolio-item .content h3 {
  font-size: 1.2em;
  font-weight: 500;
  margin: 0;
  color: var(--text-color);
}

.portfolio-item .content p {
  margin: 8px 0 0;
  color: #8490a3;
  font-size: 1em;
}

.video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.video video,
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.portfolio-tabs {
  display: none;
}

.portfolio-section {
  display: block;
}

.form-error {
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid #ff453a;
  color: #ff453a;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9em;
  display: none;
}

.form-error.visible {
  display: block;
}

.footer-container {
  padding: 20px 40px;
  border-top: 1px solid #274066;
  box-shadow: 0 -18px 16px #1774ff08;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-gif {
  width: 90px;
  height: auto;
}

.footer-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
}

.footer-brand {
  font-size: 1.5em;
  color: #8bbffc59;
  letter-spacing: 0.07em;
  text-align: left;
  margin-bottom: 8px;
  font-weight: 900;
  text-shadow: 0px 2px black;
}

.footer-contact {
  color: #8490a3;
  font-size: 1em;
  font-weight: 400;
  display: flex;
  gap: 24px;
  align-items: center;
}

.location-info, .email-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.location-info img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

.email-info img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
  margin-right: 4px;
}

.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icons a {
  opacity: 0.6;
  transition: opacity 0.2s;
  line-height: 0;
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons img {
  width: 20px;
  height: 20px;
}

.footer-text a {
  color: #e5e5e5;
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--brand-color);
}

.zoom-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  /*background-image: url('zoom-icon.svg');  */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.video-container:hover .zoom-button {
  opacity: 1;
}

.portfolio-item.wallpaper .video-container {
  cursor: zoom-in;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0;
  font-size: 1.5em;
  font-weight: 500;
}

.section-heading:first-of-type {
  margin-top: 0;
}

.section-heading-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.heading-icon {
  width: 24px;
  height: 24px;
  opacity: 0.8;
}

.delivery-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #34D399; /* green color */
  font-size: 0.85em;
  font-weight: 500;
}

.clock-icon {
  color: #34D399;
}

.project-type-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.circle-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.circle-icon.single {
  transform: scale(0.7);  
}

.circle-icon.triple {
  width: 36px;
}

.circle-icon svg {
  width: 100%;
  height: 100%;
  transition: stroke-width 0.2s ease;
  stroke-width: 24;
}

.circle-icon.triple svg circle {
  mix-blend-mode: screen;
}

/* Mobile form controls */
.mobile-get-started {
  display: none;
  padding: 12px 24px;
  background: linear-gradient(to bottom left, rgba(23, 116, 255, 0.25), rgba(23, 116, 255, 0.1));
  color: white;
  border: 2px solid var(--brand-color);
  border-radius: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.mobile-get-started:hover {
  transform: translateY(-2px);
  background: linear-gradient(to bottom left, rgba(23, 116, 255, 0.3), rgba(23, 116, 255, 0.15));
  box-shadow: 0 4px 12px rgba(23, 116, 255, 0.15);
}

.mobile-get-started:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(23, 116, 255, 0.1);
}

.form-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #888;
  padding: 8px;
  cursor: pointer;
}

.form-close:hover {
  color: white;
  background: none;
  transform: none;
}

/* Media query for tablet/smaller desktop - NEW */
@media (max-width: 1060px) {
  .mobile-get-started {
    display: block;
  }

  .form-close {
    display: block;
  }

  body {
    display: block;
  }

  .main-content {
    margin-right: 0;
  }

  .form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    padding: 16px;
    border-left: none;
  }

  .form-container.active {
    display: block;
  }
}

/* Existing mobile styles can remain at 768px for other mobile-specific adjustments */
@media (max-width: 768px) {
  .logo-container {
    padding: 16px 20px;
  }

  .logo {
    max-width: 280px;
  }

  /* Stack logo and text vertically */
  .logo-container a {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .logo-text {
    font-size: 1em;
    text-align: center;
    width: 100%;
  }

  /* Hide divider on mobile since we're stacking */
  .logo-divider {
    display: none;margin-bottom: -5px;
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 22px 20px 50px;  /* Increased bottom padding from 20px to 35px */
    gap: 40px;
  }

  .footer-gif {
    width: 115px;  
    margin-bottom: -25px;
  }

  .footer-text {
    margin-left: 0;
    align-items: center;
  }

  .footer-brand {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .portfolio-container {
    padding: 20px;
  }

  /* Main portfolio grid (Featured Work) */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  /* Make 3-column sections (3D Loops and Short Films) single column */
  .portfolio-grid.three-columns {
    grid-template-columns: 1fr;
  }

  /* Make 4-column section (Wallpapers) two columns */
  .portfolio-grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* Reduced from 16px */
  }

  .section-heading {
    margin: 20px 0;  /* Reduce section heading margins */
    font-size: 1.3em;  /* Slightly smaller heading size */
  }

  .section-divider {
    margin: 0 -20px;  /* Adjust divider margins to match container padding */
    margin-bottom: 24px;
  }

  .form-container h1 {
    font-size: 1.4em;
    margin-bottom: 12px;
  }

  .form-field {
    margin-bottom: 12px;
  }

  .hours-selector {
    gap: 8px;
    margin-bottom: 16px;
  }

  .hour-button {
    padding: 12px;
  }

  .button-content {
    gap: 4px;
  }

  .project-description {
    font-size: 0.9em;
    line-height: 1.2;
  }

  textarea {
    min-height: 80px;
  }

  /* Keep 3D Loops, Short Films, and Wallpapers in 2 columns */
  .portfolio-grid.three-columns .video-container,
  .portfolio-grid.four-columns .video-container {
    border-radius: 4px;  /* Reduced from 6px */
  }

  .portfolio-grid.three-columns .video video,
  .portfolio-grid.three-columns .video iframe,
  .portfolio-grid.four-columns .video video,
  .portfolio-grid.four-columns .video iframe {
    border-radius: 4px;  /* Reduced from 6px */
  }

  .social-icons img {
    width: 24px;  /* Increased from 20px */
    height: 24px;  /* Increased from 20px */
  }
}

/* Updated button styles */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

button[type="submit"]:not(:disabled):hover:before {
    left: 100%;
}

/* Update existing button hover styles */
button[type="submit"]:not(:disabled):hover {
    background: #0062ff;
    border-color: #0062ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 116, 255, 0.2);
}

/* Add intermediate breakpoint */
@media (max-width: 900px) {

  
  .logo {
    max-width: 300px;
  }
  
  .logo-text {
    font-size: 1.2em;
  }
}
