/* === Fonts (self-hosted, no external requests) === */

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/quicksand-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/quicksand-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Variables === */
:root {
  --teal: #59AAB2;
  --teal-text: #498f96;
  --teal-light: #e6f2f3;
  --orange: #F3734E;
  --orange-text: #d05a35;
  --orange-light: #fdeee9;
  --yellow: #FEDD3E;
  --yellow-light: #fef8e0;
  --dark: #1a1a1a;
  --text: #4a4a4a;
  --text-light: #6b6b6b;
  --bg: #fafaf8;
  --bg-warm: #fdfbf2;
  --white: #fefefe;
  --radius: 10px;
  --font-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --font-heading: 'Quicksand', system-ui, sans-serif;
}

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.6;
  background: var(--bg);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-text);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Accessibility === */
*:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* === Language Toggle === */
html[lang="lt"] [data-lang="en"],
html[lang="en"] [data-lang="lt"] {
  display: none;
}

/* === Section Shared === */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 32px);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange-text);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--teal-text);
}

/* === Entrance Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title,
.hero-tagline,
.hero-cta {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-tagline {
  animation-delay: 0.15s;
}

.hero-cta {
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-tagline,
  .hero-cta {
    animation: none;
  }
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8e6e3;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 32px);
}

.header-logo {
  height: 56px;
  width: auto;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch {
  font-size: 0.875rem;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  padding: 4px 2px;
  transition: color 0.2s;
}

.lang-switch:hover {
  color: var(--teal-text);
}

.lang-switch.active {
  color: var(--teal-text);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

.lang-divider {
  color: #ddd;
  font-size: 0.875rem;
  user-select: none;
}

/* === Hero === */
.hero {
  background: var(--teal-text) url('../assets/intro.jpg') center/cover no-repeat;
  text-align: center;
  padding: 140px 32px;
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(73, 143, 150, 0.65) 0%, rgba(26, 26, 26, 0.72) 100%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: #fafafa;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  padding: 16px 36px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta:hover {
  background: var(--yellow);
  color: var(--dark);
  text-decoration: none;
  transform: translateY(-2px);
}

/* === Projects === */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card-header {
  height: 220px;
  overflow: hidden;
  background: var(--teal-light);
}

.project-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-img {
  transform: scale(1.04);
}

.project-card-body {
  padding: 24px;
}

.project-card-meta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--orange-text);
  margin-bottom: 8px;
}

.project-card-badge {
  display: inline-block;
  background: var(--yellow-light);
  color: #8a7600;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.project-card-desc {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 45ch;
}

.project-card-link {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-text);
  transition: color 0.2s, text-decoration-color 0.2s;
  text-decoration: underline transparent;
}

.project-card-link:hover {
  color: var(--teal);
  text-decoration-color: var(--teal);
}

/* === About === */
.about {
  background: var(--bg-warm);
}

.about-intro {
  max-width: 65ch;
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 40px;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}

.about-feature:nth-child(2) .about-feature-icon {
  color: var(--yellow);
}

.about-feature:nth-child(3) .about-feature-icon {
  color: var(--orange);
}

.about-feature-text h4 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.about-feature-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

/* === Contact === */
.contact-band {
  background: var(--teal);
  padding: 48px 32px;
}

.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #fafafa;
}

.contact-email-link {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--teal-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-email-link:hover {
  background: var(--yellow-light);
  text-decoration: none;
  transform: translateY(-2px);
}

/* === Footer === */
.footer {
  background: var(--dark);
  padding: 24px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.footer-copy {
  font-size: 0.75rem;
  color: #a8a4a0;
  line-height: 1.8;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero {
    padding: 80px 24px;
    min-height: 320px;
  }

  .section {
    padding: 48px 20px;
  }

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

  .about-features {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .header-logo {
    height: 40px;
  }
}
