@font-face {
  font-family: 'Lato-Bold';
  src: url(betuk/Lato-Bold.ttf) format('truetype');
}

@font-face 
{
  font-family: 'OpenSans-All';
  src: url(betuk/OpenSans-VariableFont_wdth,wght.ttf) format('truetype');
}

@font-face {
  font-family: 'OpenSansR';
  src: url(betuk/OpenSans-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'OpenSansR-italic';
  src: url(betuk/OpenSans-Italic.ttf) format('truetype');
}

@font-face {
  font-family: 'NotoSans';
  src: url(betuk/NotoSans-Thin.ttf) format('truetype');
}

@font-face {
  font-family: 'NotoSans-italic';
  src: url(betuk/NotoSans-ThinItalic.ttf) format('truetype');
}

@font-face {
  font-family: 'NotoSansL';
  src: url(betuk/NotoSans-Light.ttf) format('truetype');
}

@font-face {
  font-family: 'Calibri';
  src: url(betuk/calibri.ttf) format('truetype');
}

@font-face {
  font-family: 'CalibriB';
  src: url(betuk/calibrib.ttf) format('truetype');
}

@font-face {
  font-family: 'CalibriL';
  src: url(betuk/calibril.ttf) format('truetype');
}

@font-face {
  font-family: 'Ebrima';
  src: url(betuk/ebrima.ttf) format('truetype');
}

@font-face {
  font-family: 'Opensansb';
  src: url(betuk/OpenSans_SemiCondensed-ExtraBold.ttf) format("truetype");
}

@font-face {
  font-family: 'Litia';
  src: url(betuk/LilitaOne-Regular.ttf) format("truetype");
}

@font-face {
  font-family: 'Playfair';
  src: url(betuk/PlayfairDisplay-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'PlayfairM';
  src: url(betuk/PlayfairDisplay-Medium.ttf) format('truetype');
}

@font-face {
  font-family: 'RobotoR';
  src: url(betuk/Roboto-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'RobotoL';
  src: url(betuk/Roboto-Light.ttf) format('truetype');
}

@font-face {
  font-family: 'Alora';
  src: url(betuk/Lora-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'Murphy';
  src: url(betuk/claire-murphy-400.ttf) format('truetype');
}

@font-face {
  font-family: 'Lato';
  src: url(betuk/Lato-Regular.ttf) format('truetype');
}

@font-face {
  font-family: 'LatoL';
  src: url(betuk/Lato-Light.ttf) format('truetype');
}


/* CSS Color Variables */
:root {
  /* Text colors */
  --white: rgba(255, 255, 255, 0.95);
  --white-pure: white;
  --blue: #1f206b;
  
  /* Accent colors */
  --gold: rgba(255, 176, 28, 0.85);
  --gold-solid: #ffb01c8f;
  --gold-border: rgba(255, 176, 28, 0.7);
  --hatter: #d1cebf;
  
  /* Background colors */
  --beige: #dbd2aa;
  --overlay-dark: rgba(0, 21, 38, 0.85);
  --overlay-light: rgba(0, 21, 38, 0.4);
  
  /* Shadow and hover colors */
  --shadow: rgba(0, 0, 0, 0.3);
  --purple: #2d2f9e;
  
  /* Font Variables - consistent across all devices */
  --font-services-base: 'NotoSans';
  --font-services-title: 'LatoL';
  --font-services-info: 'NotoSansL';
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* Main services section - responsive for all devices */
.szolgaltatasok {
  font-family: var(--font-services-base);
  padding: clamp(3rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  padding-top: clamp(6rem, 15vw, 12rem);
  background-image: url("hatter5.5.avif");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  min-height: 100vh;
  width: 100%;
}

/* Mobile - smaller background pattern that fills the screen */
@media screen and (max-width: 767px) {
  .szolgaltatasok {
    background-size: 200%;
    background-repeat: repeat;
  }
}

/* Main title */
.services-main-title {
  text-transform: uppercase;
  font-family: var(--font-services-title), Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  text-align: center;
  color: var(--white);
  margin-bottom: clamp(4rem, 6vw, 5rem);
  margin-top: clamp(0.5rem, 2vw, 1rem);
  padding: 0 1rem;
  line-height: 1.3;
  animation: fadeInUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
}

.services-title-highlight {
  color: var(--gold);
  position: relative;
  text-decoration: none;
  display: inline-block;
}

.services-title-highlight::after {
  content: "";
  position: absolute;
  bottom: -0.05em;
  left: 0;
  width: 100%;
  height: 0.04em;
  background: var(--white-pure);
  border-radius: 0.02em;
  animation: uExpand 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Services title underline for "MAI MULT" / "TÖBB MINT" / "MORE THAN" */
.services-title-underline {
  position: relative;
  display: inline-block;
}

.services-title-underline::after {
  content: "";
  position: absolute;
  bottom: -0.1em;
  left: 0;
  width: 0;
  height: clamp(0.08rem, 0.15vw, 0.12rem);
  background: var(--gold);
  border-radius: 0.04rem;
  animation: servicesTitleUnderlineExpand 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes servicesTitleUnderlineExpand {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

@keyframes uExpand {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service item container */
.szolgaltatas-elem {
  margin-bottom: clamp(3rem, 8vw, 6rem);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Service title */
.szolgaltatas-cim {
  font-weight: 300;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--white);
  position: relative;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), 
              transform 0.9s cubic-bezier(0.4,0,0.2,1);
}

.szolgaltatas-cim.animate {
  opacity: 1;
  transform: translateY(0);
}

.szolgaltatas-elem:first-child .szolgaltatas-cim {
  animation: fadeInUp 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Service title underline */
.szolgaltatas-cim-underline {
  display: block;
  position: relative;
  width: 0;
  height: clamp(0.08rem, 0.15vw, 0.12rem);
  background: var(--gold-solid);
  border-radius: 0.06rem;
  margin: clamp(0.2rem, 0.4vw, 0.4rem) 0 clamp(0.5rem, 1vw, 0.75rem) 0;
  /*margin-left: clamp(0.5rem, 2vw, 1.5rem);*/
  transition: width 0.9s cubic-bezier(0.4,0,0.2,1);
}

.szolgaltatas-cim-underline.animate {
  width: clamp(8rem, 50vw, 20rem);
}

.szolgaltatas-elem:first-child .szolgaltatas-cim-underline {
  animation: underlineExpand 0.9s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes underlineExpand {
  0% { width: 0; }
  100% { width: clamp(8rem, 50vw, 20rem); }
}

/* Service content box */
.szolgaltatas-doboz {
  width: 100%;
  position: relative;
  border-radius: clamp(0.3rem, 0.5vw, 0.5rem);
  overflow: hidden;
  margin: clamp(1rem, 2vw, 1.5rem) auto;
  box-shadow: 0 4px 20px var(--shadow);
  max-width: 1000px;
}

/* Service image */
.szolgaltatas-kep {
  width: 100%;
  height: clamp(250px, 50vw, 500px);
  object-fit: cover;
  object-position: left center;
  display: block;
  transition: transform 0.3s ease;
}

.szolgaltatas-doboz:hover .szolgaltatas-kep {
  transform: scale(1.05);
}

/* Service info overlay */
.szolgaltatas-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--overlay-dark), var(--overlay-light));
  color: var(--white-pure);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-top: clamp(0.08rem, 0.15vw, 0.12rem) solid var(--gold-border);
}

.szolgaltatas-info p {
  font-family: var(--font-services-info);
  text-align: center;
  margin: 0;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  line-height: 1.6;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), 
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}

.szolgaltatas-info p.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Desktop-specific styles */
@media screen and (min-width: 1024px) {
  .szolgaltatasok {
    background-attachment: fixed;
    padding-top: clamp(10rem, 14vw, 14rem);
  }

  .szolgaltatas-elem {
    max-width: 1400px;
    margin-bottom: 10rem;
  }

  .szolgaltatas-doboz {
    max-width: 1300px;
  }

  .szolgaltatas-kep {
    height: clamp(400px, 45vw, 550px);
  }
}

/* Tablet adjustments */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .szolgaltatasok {
    padding-top: 10rem;
    background-attachment: fixed;
  }

  .szolgaltatas-elem {
    margin-bottom: 8rem;
  }

  .szolgaltatas-cim {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
  }

  .szolgaltatas-info p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }

  .services-main-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
}

/* Small tablet adjustments */
@media screen and (min-width: 481px) and (max-width: 767px) {

  .szolgaltatas-elem {
    margin-bottom: 4rem;
  }

  .szolgaltatas-cim {
    font-size: 1.4rem;
  }

  .szolgaltatas-info p {
    font-size: 1rem;
  }
}

/* Mobile-specific adjustments */
@media screen and (max-width: 480px) {
  body {
    margin-top: 0;
  }

  .szolgaltatasok {
    padding: 2rem 1rem;
    padding-top: 5rem;
  }

  .services-main-title {
    font-size: 1.5rem;
    margin-bottom: 4.5rem;
  }

  .szolgaltatas-elem {
    margin-bottom: 6rem;
  }

  .szolgaltatas-cim {
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
  }

  .szolgaltatas-cim-underline {
    margin-top: -0.3rem;
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
  }

  .szolgaltatas-doboz {
    border-radius: 0.4rem;
  }

  .szolgaltatas-kep {
    height: 360px;
  }

  .szolgaltatas-info {
    padding: 1.25rem;
  }

  .szolgaltatas-info p {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

/* Extra small viewports */
@media screen and (max-width: 360px) {
  .szolgaltatasok {
    padding: 1.5rem 0.75rem;
    padding-top: 4rem;
  }
  .services-main-title {
    font-size: 1.3rem;
    margin-bottom: 3.5rem;
  }
  .szolgaltatas-elem {
    margin-bottom: 4rem;
  }
}

@media screen and (max-width: 320px) {
  .szolgaltatasok {
    padding: 1.25rem 0.5rem;
    padding-top: 3.5rem;
  }
  .services-main-title {
    font-size: 1.15rem;
  }
}

/* Animation utilities */
@keyframes fade-in {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes fade-out {
  from { 
    opacity: 1; 
    transform: translateY(0); 
  }
  to { 
    opacity: 0; 
    transform: translateY(20px); 
  }
}

.fade-in {
  animation: fade-in 0.8s forwards;
}

.fade-out {
  animation: fade-out 0.8s forwards;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .szolgaltatasok {
    background-image: none;
    background-color: var(--white-pure);
  }
  
  .desktop {
    display: none;
  }
}
