/* Landing Page Styles - NDR Design Portfolio */
/* Using the same design system as main site */

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f2f0ef;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  /* Add a full page background, make sure its responsive and covers full page */
  background-image: url("../images/contactbackground.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

/* Landing Container */
.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 104px 20px 40px 20px; /* Added top padding for fixed nav */
  position: relative;
  z-index: 1;
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  width: 100%;
}

.cta-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 30px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(8%) saturate(1037%) hue-rotate(169deg) brightness(95%) contrast(95%);
  /* This filter converts the white logo to match the text color (#0e1111) */
}

.cta-title {
  color: #0e1111;
  font-size: 3.5em;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-subtitle {
  color: #0e1111;
  font-size: 1.25em;
  font-weight: 400;
  margin: 0 0 40px 0;
  opacity: 0.9;
  line-height: 1.5;
}

.cta-button {
  display: inline-block;
  background-color: #3185FC;
  color: #f2f0ef;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0px 4px 15px rgba(49, 133, 252, 0.4);
  border: 3px solid #3185FC;
  transform: translateY(0) scale(1);
  animation: floatButton 3s ease-in-out infinite;
}

.cta-button:hover {
  background-color: #f2f0ef;
  color: #0e1111;
  border-color: #f2f0ef;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.2), 0px 6px 15px rgba(0, 0, 0, 0.1);
  animation-play-state: paused;
}

@keyframes floatButton {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Horizontal Slideshow */
/* Smartphone Gallery */
.smartphone-gallery {
  width: 100%;
  height: 440px;
  position: relative;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.phone-container {
  position: relative;
  transform: none;
  animation: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
}

.phone-frame {
  width: 700px;
  height: 340px;
  background: #000000;
  border-radius: 35px;
  padding: 15px;
  position: relative;
  margin: 0 auto;
  display: block;
}

.phone-speaker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 3px;
}

.phone-camera {
  position: absolute;
  top: 6px;
  right: 60px;
  width: 12px;
  height: 12px;
  background: #0a0a0a;
  border-radius: 50%;
}

.phone-flash {
  position: absolute;
  top: 8px;
  right: 40px;
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 25px;
  overflow: hidden;
  position: relative;
}

.gallery-app {
  height: 100%;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  height: 48px;
  background: white;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.app-title-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-logo {
  width: 28px;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(8%) saturate(1037%) hue-rotate(169deg) brightness(95%) contrast(95%);
  /* This filter converts the white logo to match the text color (#1f2937) */
}

.app-header h3 {
  margin: 0;
  margin-left: -5px;
  font-size: 18px;
  font-weight: 800;
  color: #1f2937;
}

.back-btn, .share-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #3185FC;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.back-btn:hover, .share-btn:hover {
  background-color: rgba(49, 133, 252, 0.1);
}

.gallery-viewer {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-container {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: grab;
}

.photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.photo.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.photo-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 20;
}

.nav-btn {
  background: rgba(49, 133, 252, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
  z-index: 15;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
  background: rgba(49, 133, 252, 1);
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(49, 133, 252, 0.4);
}

.photo-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  padding: 8px 20px;
  background: white;
  overflow-x: auto;
  border-top: 1px solid #e5e7eb;
}

.thumbnail {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.thumbnail.active {
  border-color: #3185FC;
  transform: scale(1.05);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Animations - phoneFloat animation removed */

/* Contact Section */
.contact-section {
  text-align: center;
  margin-top: 80px;
  max-width: 600px;
  width: 100%;
}

.contact-title {
  color: #0e1111;
  font-size: 2.2em;
  font-weight: 600;
  margin: 0 0 40px 0;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-button-landing {
  display: inline-flex;
  align-items: center;
  background-color: #3185FC;
  color: #f2f0ef;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0px 4px 15px rgba(49, 133, 252, 0.4);
  border: 3px solid #3185FC;
  transform: translateY(0) scale(1);
  animation: floatButton 3s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.contact-button-landing:hover {
  background-color: #f2f0ef;
  color: #0e1111;
  border-color: #f2f0ef;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.2), 0px 6px 15px rgba(0, 0, 0, 0.1);
  animation-play-state: paused;
}

.contact-button-landing img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  transition: transform 0.3s ease;
}

.contact-button-landing:hover img {
  transform: rotate(15deg) scale(1.1);
}

/* Navigation Styles */
#logo {
  width: 40px;
  height: 40px;
  margin-left: 32px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  padding: 0px 20px;
  background-color: #0e1111;
  color: #f2f0ef;
  box-shadow: #0e1111 1px;
  transition: background-color 0.3s ease;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  max-width: 100vw;
}

.navItems {
  display: flex;
  color: #f2f0ef;
  align-items: center;
}

.navItems a {
  margin-right: 32px;
  color: #f2f0ef;
  text-decoration: none;
}

.navItems .navItem4 {
  background-color: #f2f0ef;
  color: #0e1111;
  padding: 8px 16px;
  border-radius: 16px;
  font-weight: bold;
  border: #0e1111 3px solid;
}

.navItem4 {
  transition: all ease .5s;
}

.navItem2,
.navItem3 {
  position: relative;
  text-decoration: none;
}

.navItem2::before,
.navItem3::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3185FC;
  transition: width 0.3s ease;
}

.navItem2:hover::before,
.navItem3:hover::before {
  width: 100%;
}

.navItem4:hover {
  background-color: #3185FC;
  color: #f2f0ef;
  border: #f2f0ef 2px solid;
  transition: all ease-in-out .5s;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background-color: #f2f0ef;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, rgba(14, 17, 17, 0) 0%, rgba(14, 17, 17, 0) 100%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(0px);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  background: linear-gradient(135deg, rgba(14, 17, 17, 0.95) 0%, rgba(26, 66, 121, 0.5) 50%, rgba(14, 17, 17, 0.98) 100%);
  backdrop-filter: blur(20px);
}

/* Hide contact button when mobile menu is active */
.mobile-nav-overlay.active ~ .contact-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-overlay a {
  color: #f2f0ef;
  text-decoration: none;
  font-size: 1.5em;
  margin: 20px 0;
  padding: 10px 20px;
  border-radius: 0;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: none;
  position: relative;
  background: none;
  border: none;
  font-weight: 400;
}

.mobile-nav-overlay a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3185FC;
  transition: width 0.3s ease;
}

.mobile-nav-overlay a:hover::before {
  width: 100%;
}

.mobile-nav-overlay a:hover {
  background: none;
  color: #f2f0ef;
  border: none;
}

.mobile-nav-overlay.active a {
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.6s ease forwards;
}

.mobile-nav-overlay.active a:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-nav-overlay.active a:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-nav-overlay.active a:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Styles */
footer {
  background-color: #0e1111;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer h5 {
  margin: 0;
  color: #f2f0ef;
  font-size: 1em;
  text-align: center;
}

footer h5 .year {
  font-weight: 400;
}

/* Contact Button */
.contact-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #f2f0ef;
  color: #f2f0ef;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  margin-right: 32px;
  transform: translateY(0) scale(1);
  animation: floatButton 3s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.contact-button:hover {
  background-color: #3185FC;
  color: #f2f0ef;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 12px 25px rgba(49, 133, 252, 0.4), 0px 6px 15px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.contact-button a {
  text-decoration: none;
  color: #0e1111;
  transition: color 0.3s ease;
}

.contact-button:hover a {
  color: #f2f0ef;
}

.contact-button img {
  width: 32px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.contact-button:hover img {
  transform: rotate(15deg) scale(1.1);
}

@keyframes floatButton {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Responsive Design */

/* Tablet Portrait */
@media (max-width: 992px) {
  .cta-title {
    font-size: 2.8em;
  }
  
  .cta-subtitle {
    font-size: 1.1em;
  }
  
  .smartphone-gallery {
    height: 400px;
    margin: 50px 0;
  }
  
  .phone-frame {
    width: 600px;
    height: 320px;
    padding: 12px;
  }
  
  .phone-speaker {
    width: 60px;
    height: 5px;
  }
  
  .phone-camera {
    width: 10px;
    height: 10px;
    right: 50px;
  }
  
  .contact-section {
    margin-top: 60px;
  }
  
  .contact-title {
    font-size: 2em;
  }
}

/* Tablet Landscape / Small Desktop */
@media (max-width: 768px) {
  .landing-container {
    padding: 30px 15px;
  }
  
  .cta-section {
    margin-bottom: 60px;
  }
  
  .cta-title {
    font-size: 2.4em;
  }
  
  .cta-subtitle {
    font-size: 1em;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 1em;
  }
  
  .smartphone-gallery {
    height: 350px;
    margin: 40px 0;
  }
  
  .phone-frame {
    width: 500px;
    height: 280px;
    padding: 10px;
  }
  
  .phone-speaker {
    width: 50px;
    height: 4px;
  }
  
  .phone-camera {
    width: 8px;
    height: 8px;
    right: 40px;
  }
  
  .phone-flash {
    width: 6px;
    height: 6px;
    right: 30px;
  }
  
  .gallery-thumbnails {
    padding: 6px 15px;
    gap: 6px;
  }
  
  .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .contact-section {
    margin-top: 50px;
  }
  
  .contact-title {
    font-size: 1.8em;
  }
  
  .contact-button-landing {
    padding: 14px 28px;
    font-size: 1em;
  }
  
  .contact-button-landing img {
    width: 22px;
    height: 22px;
    margin-right: 10px;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .landing-container {
    padding: 20px 15px;
  }
  
  .cta-section {
    margin-bottom: 40px;
  }
  
  .cta-title {
    font-size: 2em;
    line-height: 1.3;
  }
  
  .cta-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 0.95em;
  }
  
  .smartphone-gallery {
    height: 300px;
    margin: 30px 0;
  }
  
  .phone-frame {
    width: 400px;
    height: 220px;
    padding: 8px;
  }
  
  .phone-speaker {
    width: 40px;
    height: 3px;
  }
  
  .phone-camera {
    width: 6px;
    height: 6px;
    right: 35px;
  }
  
  .phone-flash {
    width: 5px;
    height: 5px;
    right: 25px;
  }
  
  .app-header {
    padding: 6px 15px;
  }
  
  .app-header h3 {
    font-size: 16px;
  }
  
  .gallery-thumbnails {
    padding: 6px 12px;
    gap: 5px;
  }
  
  .thumbnail {
    width: 40px;
    height: 40px;
  }
  
  .nav-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  
  .contact-section {
    margin-top: 40px;
  }
  
  .contact-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  
  .contact-button-landing {
    padding: 12px 24px;
    font-size: 0.95em;
  }
  
  .contact-button-landing img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .cta-title {
    font-size: 1.8em;
  }
  
  .cta-subtitle {
    font-size: 0.9em;
  }
  
  .constellation-gallery {
    height: 300px;
    margin: 25px 0;
  }
  
  .project-orb {
    width: 80px;
    height: 80px;
  }
  
  .contact-title {
    font-size: 1.4em;
  }
  
  .contact-button-landing {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}

/* Very Large Screens */
@media (min-width: 1920px) {
  .cta-title {
    font-size: 4em;
  }
  
  .cta-subtitle {
    font-size: 1.4em;
  }
  
  .constellation-gallery {
    height: 600px;
    margin: 80px 0;
  }
  
  .project-orb {
    width: 220px;
    height: 220px;
  }
}

/* Navigation Responsive Styles */
@media (max-width: 768px) {
  nav {
    padding: 0 15px;
    height: 56px;
  }

  #logo {
    width: 35px;
    height: 35px;
    margin-left: 20px;
  }

  .navItems {
    display: none;
  }

  .mobile-menu-btn {
    display: none; /* Hide hamburger menu on mobile */
  }

  .landing-container {
    padding-top: 76px; /* Adjust for smaller nav height */
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 10px;
    height: 50px;
  }

  #logo {
    width: 30px;
    height: 30px;
    margin-left: 15px;
  }

  .mobile-menu-btn {
    display: none; /* Hide hamburger menu on mobile */
  }

  .landing-container {
    padding-top: 70px; /* Adjust for smaller nav height */
  }

  .contact-button {
    padding: 8px 16px;
    margin-right: 15px;
    bottom: 15px;
    right: 15px;
  }

  .contact-button img {
    width: 24px;
  }
}

@media (max-width: 600px) {
  /* Portrait phone mode for smallest desktop tab / mobile resolution */
  .phone-frame {
    width: 260px;
    height: 520px; /* Much taller than wide for true portrait */
    margin: 0 auto;
    border-radius: 30px; /* Slightly smaller radius for mobile */
  }

  .smartphone-gallery {
    height: 560px; /* Adjust container height for portrait phone */
    margin: 10px auto;
  }

  .phone-screen {
    border-radius: 20px; /* Adjust screen radius to match frame */
  }

  .phone-speaker {
    width: 50px;
    height: 4px;
    top: 6px;
  }

  .phone-camera {
    top: 6px;
    right: 35px;
    width: 8px;
    height: 8px;
  }

  .phone-flash {
    top: 8px;
    right: 20px;
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 360px) {
  .contact-button {
    padding: 6px 12px;
  }

  .contact-button img {
    width: 20px;
  }
}