/**
 * Tuğra Elektronik - Global Styles & Reset
 * Premium Smart Home & Building Automation
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Managed by Lenis */
  overflow-x: hidden;
  background-color: var(--color-white);
  color: var(--color-dark);
}

body {
  font-family: var(--font-primary);
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-white);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection highlight */
::selection {
  background-color: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: var(--space-16);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(48px, 6vw, 80px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(20px, 2vw, 28px); }

p {
  color: var(--color-gray);
  margin-bottom: var(--space-24);
  font-weight: 400;
  max-width: 720px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* Focus outline for accessibility */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}
