/*
====================================
DESTINI LANDING PAGE STYLES
====================================
Developer: Clean, scalable CSS with universal breakpoints
Last updated: 2024
*/

/*
====================================
CSS CUSTOM PROPERTIES (VARIABLES)
====================================
*/
:root {
  /* Colors */
  --color-primary: #9C27E0;
  --color-primary-hover: rgba(156, 39, 224, 0.2);
  --color-bg-main: #010214;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #888888;
  --color-text-footer: #000000;

  /* Gradients */
  --gradient-text: radial-gradient(ellipse at center, #FFFFFF 30%, #888888 100%);
  --gradient-logo: linear-gradient(to bottom, transparent 0%, #B7B2BA 46.6%, #9C27E0 100%);
  --gradient-bg: radial-gradient(140% 107.13% at 50% 10%, rgba(102, 51, 238, 0) 37.41%, #6633EE 69.27%, #FFFFFF 100%);

  /* Spacing Scale */
  --space-xs: clamp(4px, 1vw, 8px);
  --space-sm: clamp(8px, 2vw, 16px);
  --space-md: clamp(12px, 3vw, 24px);
  --space-lg: clamp(16px, 4vw, 32px);
  --space-xl: clamp(24px, 6vw, 48px);
  --space-2xl: clamp(32px, 8vw, 64px);
  --space-3xl: clamp(48px, 12vw, 96px);

  /* Typography Scale */
  --text-xs: clamp(0.7rem, 1.8vw, 0.9rem);
  --text-sm: clamp(0.8rem, 2.2vw, 1rem);
  --text-base: clamp(0.95rem, 2.7vw, 1.3rem);
  --text-lg: clamp(1.1rem, 3.5vw, 2.4rem);
  --text-xl: clamp(1.3rem, 4vw, 2.6rem);
  --text-2xl: clamp(1.4rem, 4.2vw, 3rem);
  --text-3xl: clamp(1.6rem, 4.8vw, 3.2rem);

  /* Component Sizes */
  --logo-size: clamp(50px, 6vw, 85px);
  --button-height: clamp(35px, 8vw, 55px);
  --button-width: clamp(120px, 20vw, 170px);
  --image-height: clamp(160px, 20vw, 280px);

  /* Layout */
  --container-max-width: 1400px;
  --container-padding: clamp(20px, 3vw, 40px);
  --border-radius: clamp(8px, 2vw, 12px);
}

/*
====================================
UNIVERSAL BREAKPOINTS
====================================
*/
/*
Mobile-first approach:
- Mobile: 0px - 767px (phones)
- Tablet: 768px - 1023px (tablets, small laptops)
- Desktop: 1024px+ (laptops, desktops, large screens)
*/

/*
====================================
RESET & BASE STYLES
====================================
*/
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--color-text-primary);
  background: var(--color-bg-main);
  overflow: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
====================================
LAYOUT COMPONENTS
====================================
*/

/* Main Container */
.main-background {
  background: var(--color-bg-main);
  min-height: 100vh;
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Content Container */
.laptop-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: var(--container-padding);
  position: relative;
  z-index: 2;
  width: clamp(90%, 95vw, 95%);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-md);
  overflow-y: auto;
}

/* Hero Section */
.laptop-frame {
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Image Container */
.laptop-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-sm);
  position: relative;
}

.phone-mockups-image {
  max-width: 100%;
  height: auto;
  max-height: var(--image-height);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  margin: var(--space-xs) 0;
}

/* Content Area */
.content-area {
  text-align: center;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*
====================================
TYPOGRAPHY
====================================
*/
.content-area h1 {
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-xs);
  line-height: 1.2;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
  white-space: normal;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.content-area h2 {
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  text-align: center;
  max-width: 100%;
}

.content-area p {
  font-size: var(--text-sm);
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: var(--space-lg);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: clamp(300px, 80vw, 800px);
}

/*
====================================
LOGO COMPONENT
====================================
*/
.website-logo {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10;
}

.logo {
  height: var(--logo-size);
  width: auto;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
}

/* Logo Animation */
.logo-path {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: drawPath 3s ease-in-out infinite, colorChange 4s ease-in-out infinite;
}

@keyframes drawPath {
  0% {
    stroke-dashoffset: 500;
    opacity: 0.3;
  }
  50% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -500;
    opacity: 0.3;
  }
}

@keyframes colorChange {
  0% {
    stroke: #B7B2BA;
    stroke-width: 0.611111;
  }
  25% {
    stroke: var(--color-primary);
    stroke-width: 1.2;
  }
  50% {
    stroke: url(#paint0_linear_146_7598);
    stroke-width: 0.611111;
  }
  75% {
    stroke: var(--color-primary);
    stroke-width: 1.2;
  }
  100% {
    stroke: #B7B2BA;
    stroke-width: 0.611111;
  }
}

/*
====================================
BUTTON COMPONENTS
====================================
*/
.app-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.app-button {
  height: var(--button-height);
  width: var(--button-width);
  border-radius: var(--border-radius);
  transition: transform 0.2s ease;
  object-fit: contain;
}

.app-button:hover {
  transform: translateY(-2px);
}

/*
====================================
FOOTER COMPONENT
====================================
*/
.footer {
  background: transparent;
  padding: var(--space-md) var(--space-lg);
  z-index: 10;
  margin-top: auto;
  flex-shrink: 0;
  position: relative;
}

.footer-content {
  max-width: var(--container-max-width);
  margin: 0 0 0 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 4vw, 30px);
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-footer);
  text-decoration: none;
  font-size: var(--text-xs);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-link:hover {
  color: var(--color-primary);
}

.linkedin-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) clamp(4px, 1.5vw, 10px);
  border-radius: var(--space-xs);
  transition: background-color 0.3s ease;
}

.linkedin-link:hover {
  background-color: var(--color-primary-hover);
}

.linkedin-link svg {
  width: clamp(12px, 3vw, 18px);
  height: clamp(12px, 3vw, 18px);
  fill: var(--color-text-footer);
}


/*
====================================
BACKGROUND EFFECTS
====================================
*/
.gradient-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 100%;
  background: var(--gradient-bg);
  border-radius: 40.8365px;
  z-index: 1;
  pointer-events: none;
}

/*
====================================
RESPONSIVE BREAKPOINTS
====================================
*/

/*
TABLET BREAKPOINT (768px - 1023px)
Tablets, small laptops, landscape phones
*/
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-lg: clamp(1.3rem, 4.1vw, 2.9rem);
    --text-xl: clamp(1.5rem, 4.7vw, 3.1rem);
    --text-base: clamp(0.95rem, 2.7vw, 1.3rem);
    --image-height: clamp(180px, 30vw, 300px);
  }

  .main-background {
    height: 100vh;
    overflow: hidden;
  }

  .laptop-container {
    padding: var(--space-xl) var(--space-lg);
    min-height: auto;
    justify-content: center;
    padding-top: clamp(70px, 9vw, 90px);
    padding-bottom: var(--space-md);
    overflow-y: auto;
  }

  .footer {
    margin-top: var(--space-lg);
    padding: var(--space-sm) var(--space-lg);
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
    margin: 0 auto;
  }

  .footer-links {
    justify-content: center;
    order: 2;
  }

}

/*
MOBILE BREAKPOINT (0px - 767px)
Phones and small devices
*/
@media (max-width: 767px) {
  :root {
    --text-lg: clamp(1.4rem, 4.2vw, 3rem);
    --text-xl: clamp(1.6rem, 4.8vw, 3.2rem);
    --text-base: clamp(1rem, 2.8vw, 1.4rem);
    --image-height: clamp(160px, 28vw, 280px);
    --space-3xl: clamp(75px, 12vw, 95px);
  }

  .main-background {
    min-height: 100vh;
    overflow-y: visible;
    padding-bottom: 60px;
  }

  .laptop-container {
    padding: var(--space-md) var(--space-md);
    justify-content: center;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-lg);
    min-height: auto;
    overflow-y: visible;
  }

  .app-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .content-area {
    padding: 0 var(--space-sm);
  }

  .content-area h1 {
    word-break: break-word;
    hyphens: auto;
  }

  .footer {
    padding: var(--space-sm) var(--space-md);
    margin-top: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-main);
    z-index: 10;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin: 0 auto;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    order: 2;
  }


}

/*
DESKTOP BREAKPOINT (1024px+)
Laptops, desktops, large screens
*/
@media (min-width: 1024px) {
  .main-background {
    height: 100vh;
    overflow: hidden;
  }

  .laptop-container {
    overflow: hidden;
    padding-top: clamp(50px, 4vw, 80px);
    height: calc(100vh - 100px);
    justify-content: center;
  }

  .phone-mockups-image {
    max-height: clamp(140px, 18vw, 280px);
    margin: var(--space-md) 0;
  }
}

/*
====================================
UTILITY CLASSES
====================================
*/
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-scroll {
  overflow: hidden;
}

/*
====================================
ACCESSIBILITY IMPROVEMENTS
====================================
*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus states for better accessibility */
.footer-link:focus,
.app-button:focus,
.logo:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/*
====================================
PRINT STYLES
====================================
*/
@media print {
  .main-background {
    background: white;
    color: black;
  }


  .gradient-background {
    display: none;
  }
}