/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg:              #000000;
  --color-accent:          #0071e3;
  --color-accent-hover:    #0077ed;
  --color-accent-glow:     rgba(0, 113, 227, 0.28);
  --color-text-primary:    #f5f5f7;
  --color-text-secondary:  #86868b;
  --color-text-muted:      #6e6e73;
  --color-separator:       #424245;

  --color-glass-bg:        rgba(255, 255, 255, 0.05);
  --color-glass-bg-hover:  rgba(255, 255, 255, 0.09);
  --color-glass-border:    rgba(255, 255, 255, 0.10);
  --color-glass-border-hover: rgba(255, 255, 255, 0.20);

  --font-stack: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container-max:     1200px;
  --container-padding: 0 22px;
  --section-padding:   120px 22px;

  --transition-base:   0.25s ease;
  --transition-slow:   0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

.body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-stack);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   3. SCROLL-ANIMATIONS (IntersectionObserver)
   ============================================================ */
.hero,
.services,
.contacts,
.footer {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.hero.is-visible,
.services.is-visible,
.contacts.is-visible,
.footer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  opacity: 0;
  transition-delay: 0.1s;
}

.services {
  transition-delay: 0s;
}

.contacts {
  transition-delay: 0s;
}

.footer {
  transition-delay: 0s;
}


/* ============================================================
   4. HEADER SECTION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background-color: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--color-separator);
  height: 44px;
  display: flex;
  align-items: center;
}

.header__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0;
}


/* ============================================================
   5. MAIN WRAPPER SECTION
   ============================================================ */
.main {
  position: relative;
}


/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../assets/images/cyprus.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.20) 40%,
    rgba(0, 0, 0, 0.55) 75%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: -1;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 22px;
  max-width: 900px;
}

.hero__title {
  font-size: clamp(52px, 8vw, 82px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  background: linear-gradient(160deg, #ffffff 0%, #d1d1d6 60%, #86868b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(19px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  margin-bottom: 40px;
  line-height: 1.4;
}

.hero__cta {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  padding: 16px 32px;
  border-radius: 980px;
  letter-spacing: 0;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.hero__cta:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.03);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}


/* ============================================================
   7. SERVICES SECTION — BENTO GRID
   ============================================================ */
.services {
  position: relative;
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.services__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.services__glow--left {
  top: -100px;
  left: -200px;
}

.services__glow--right {
  bottom: -100px;
  right: -200px;
}

.services__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: var(--section-padding);
}

.services__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.services__heading {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin-bottom: 56px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.services__card {
  position: relative;
  background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  overflow: hidden;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-base);
}

.services__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
}

.services__card:hover {
  background: var(--color-glass-bg-hover);
  border-color: var(--color-glass-border-hover);
  transform: translateY(-3px);
}

.services__card--large {
  grid-column: span 2;
  grid-row: span 1;
}

.services__card--accent {
  background: linear-gradient(
    135deg,
    rgba(0, 113, 227, 0.12) 0%,
    rgba(0, 113, 227, 0.04) 100%
  );
  border-color: rgba(0, 113, 227, 0.25);
}

.services__card--accent:hover {
  border-color: rgba(0, 113, 227, 0.45);
}

.services__card--cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.services__card-icon {
  margin-bottom: 20px;
}

.services__card-label {
  display: block;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.services__card-desc {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.services__card-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  background: rgba(0, 113, 227, 0.12);
  border: 1px solid rgba(0, 113, 227, 0.25);
  border-radius: 980px;
  padding: 6px 14px;
  letter-spacing: 0.02em;
}

.services__card-btn {
  display: inline-block;
  align-self: flex-start;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.services__card-btn:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.04);
}


/* ============================================================
   8. CONTACTS SECTION
   ============================================================ */
.contacts {
  position: relative;
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0.5px solid var(--color-separator);
}

.contacts__inner {
  max-width: var(--container-max);
  width: 100%;
  padding: 80px 22px;
  text-align: center;
}

.contacts__eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contacts__heading {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.contacts__subtext {
  font-size: 19px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.5;
}

.contacts__btn--primary {
  display: inline-block;
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 400;
  padding: 18px 36px;
  border-radius: 980px;
  letter-spacing: 0;
  transition:
    background-color var(--transition-base),
    transform var(--transition-base),
    box-shadow var(--transition-base);
}

.contacts__btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.4);
}


/* ============================================================
   9. FOOTER
   ============================================================ */
.footer {
  background-color: var(--color-bg);
  border-top: 0.5px solid var(--color-separator);
  padding: 28px 22px;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer__text {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
}

.footer__address {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
}


/* ============================================================
   10. ADAPTIVE — TABLET (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --section-padding: 80px 22px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__card--large {
    grid-column: span 2;
  }
}


/* ============================================================
   11. ADAPTIVE — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 22px;
  }

  .hero__bg {
    position: absolute;
    background-attachment: scroll;
  }

  .hero__title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .hero__subtitle {
    font-size: 18px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .services__card--large {
    grid-column: span 1;
  }

  .services__glow {
    width: 320px;
    height: 320px;
    filter: blur(50px);
  }

  .services__glow--left {
    top: -60px;
    left: -120px;
  }

  .services__glow--right {
    bottom: -60px;
    right: -120px;
  }

  .contacts__heading {
    font-size: clamp(40px, 10vw, 64px);
  }

  .contacts__subtext {
    font-size: 17px;
  }
}


/* ============================================================
   12. ADAPTIVE — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero__cta,
  .contacts__btn--primary {
    width: 100%;
    text-align: center;
  }

  .services__card {
    padding: 28px 24px;
  }

  .services__card-label {
    font-size: 19px;
  }

  .contacts__subtext {
    font-size: 15px;
  }
}
