* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Oswald", sans-serif;
}


body {
  background: #ffffff;
}

/* Scroll reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal-item {
  opacity: 0;
  transform: translateY(10%); /* relative movement */
}

.service-line {
  transform-origin: left;
}


/* ================================
   NAVBAR
================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background-color: #fff;
  z-index: 1000;
  border-bottom: 1px solid #00000046;
}

/* Logo */
.logo {
  text-decoration: none;
  z-index: 1002;
}

/* Typewriter logo */
#typewriter {
  font-family: 'Oswald', monospace;
  font-size: 30px;
  font-weight: 900;
  color: #000;
  border-right: 2px solid #000;
  white-space: nowrap;
  line-height: 1;
}

/* ================================
   DESKTOP NAV
================================ */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

.nav-links a {
  color: #000;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  position: relative;
}

/* Hover underline (original behavior) */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #000;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Contact button (original styling) */
.nav-links .contact-btn {
  background-color: #000;
  color: #fff !important;
  padding: 0.5rem 1rem;
  font-weight: 900;
  text-decoration: none;
}

/* Prevent underline on contact button */
.nav-links .contact-btn::after {
  display: none;
}

/* ================================
   HAMBURGER
================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  z-index: 1002;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}

/* Hamburger → X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
    right: 0.5rem;
  }

  /* Fullscreen mobile menu */
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* Logo pinned top-left */
  .logo {
    position: fixed;
    top: 1.5rem;
    left: 1rem;
  }

  .nav-links a {
    font-size: 1.8rem;
  }

  .contact-btn {
  margin-top: 10px;
  }
}


/* HERO OPENING ANIMATION SUPPORT */
.hero {
  position: relative;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  overflow: hidden;
  perspective: 1200px;
}

.hero-text {
  will-change: transform;
  transition: transform 0.2s ease-out;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  cursor: default;
}

.hero h1 {
  font-size: 560px;
  letter-spacing: 60px;
  font-weight: 900;
  font-family: "Solvent", sans-serif;
  margin-left: 50px;
}

/* Medium screens / notebooks (e.g., 1200px - 1600px) */
@media (max-width: 1600px) {
  .hero h1 {
    font-size: 400px;
    letter-spacing: 40px;
    margin-left: 50px;
  }
}

/* Small desktops / tablets (e.g., 1024px - 1200px) */
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 250px;
    letter-spacing: 25px;
    margin-left: 30px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 100px;
    letter-spacing: 15px;
    margin-left: 10px;
  }
  
  .hero {
    height: auto;           /* remove forced 80vh */
    min-height: 50vh;       /* keeps presence */
    padding-top: 100px;     /* space below navbar */
    padding-bottom: 40px;   /* smaller bottom space */
  }

}

/* Grid Section */

.grid-section {
  padding: 6rem 2rem;
  display: flex;
  justify-content: center;
}

.grid {
  margin-top: -120px;
  max-width: 1640px;        /* larger than before */
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;               /* spacious but not extreme */
}

/* Cards */

.card {
  background-color: transparent;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: black;
  box-shadow: none;
  display: block;
  position: relative;
  cursor: pointer;
}

.card:hover {
  transform: none;
}

.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 558 / 665;
  object-fit: cover;
}

/*.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000000;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  pointer-events: none;
} */

.card-content {
  padding-top: 0.75rem;
}

.card-content h3 {
  margin-bottom: 0.25rem;
  font-size: 22px;
}

.card-content p {
  color: #000000cb;
  font-weight: 300;
  font-size: 22px;
}

.card-indicators {
  position: absolute;
  background-color: rgba(0, 0, 0, 0);
  top: 12px;       /* move to top */
  left: 12px;      /* align left like the old badge */
  display: flex;
  gap: 6px;
  padding: 4px;
  z-index: 10;     /* above image */
}

.card-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8); /* visible on image */
  transition: background-color 0.3s ease;
}

.card-dot.active {
  background-color: #BFFF46;
}

/* About Me Section */
.about-me {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1240px;
  background-color: rgb(255, 255, 255);
  margin: 0 auto;
  flex-wrap: wrap; /* allows stacking on mobile */
}

.about-photo {
  flex: 0 0 auto;
}

.about-photo img {
  width: 100%;
  max-width: 420px; /* desktop */
  height: auto;
  aspect-ratio: 558 / 665;
  object-fit: cover;
  display: block;
}

/* Desktop notebooks */
@media (max-width: 1440px) {

  .about-container {
  max-width: 1000px;
  }

  .about-photo img {
    max-width: 280px;
  }
}

/* Tablets / mobile */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }

  .about-photo img {
    max-width: 558px; /* back to full visual weight */
  }

  .about-text p {
    padding-right: 0;
  }
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.2rem;
  color: rgb(0, 0, 0);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: #000000cb;
  font-weight: 300;
  padding-right: 10px;
}

.long-text {
  display: none;  /* hidden initially */
  font-size: 2rem;
  line-height: 1.8;
  color: #eeeeee;
  margin-top: 1rem;
}

.toggle-btn {
  background-color: black;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 1.6rem;
  margin-top: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-btn:hover {
  background-color: #333;
}




.services {
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
  background-color:#ffffff;
}

.services-container {
  max-width: 1640px;
  width: 100%;
  padding-top: 2rem; /* add space at top */
}

.service-item {
  cursor: pointer;
  padding: 1rem 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* prevents vertical overflow during animation */
}

.services h2.reveal {
  opacity: 0;
  transform: translateY(10%);
  font-size: 2.4rem;
  margin-bottom: 1rem; /* spacing to first service */
}

/* Základná čiara */
hr.service-line {
  border: none;
  transform-origin: left;
  height: 1px; /* hrúbka čiary */
  background-color: rgba(0, 0, 0, 0.171); /* svetlá farba 50% opacity */
  position: relative;
  margin: 0.5rem 0;
  overflow: hidden;
}

.service-title {
  all: unset; /* odstráni defaultné štýly tlačidla */
  font-size: 2rem;  /* zväčšenie fontu z pôvodných 2rem */
  color: #000000;
  display: block;
  cursor: pointer;
  margin-bottom: 3rem;
  position: relative;
}

/* Skrytie popisu služby */
.service-desc {
  display: none;
  padding: 0 0 0.75rem 0;
  font-weight: 200;
  color: #000000cb;
  font-size: 1.8rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

/* Ak je otvorené */
.service-item.active .service-desc {
  display: block;
}


/* Fill overlay */
hr.service-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%; /* start hidden */
  background-color: #000000; /* tmavá farba fill */
  transition: width 0.5s ease; /* animácia zľava doprava */
}

/* Hover: fill line */
.service-item:hover hr.service-line::after {
  width: 100%;
}

/* Active: keď je accordion otvorený, fill zostane */
hr.service-line.active::after {
  width: 100%;
}

/* Optional: smooth “unfill” when hover ends */
.service-item hr.service-line::after {
  transition: width 1.0s ease; /* rovnaká rýchlosť pri hover out */
}




/* About Me Section */


.spolupraca {
  padding: 4rem 2rem;
  background-color: #ffffff;
}

.spolupraca-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1240px;
  background-color: rgb(255, 255, 255);
  margin: 0 auto;
  flex-wrap: wrap; /* allows stacking on mobile */
  
}

.spolupraca-photo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 558 / 665;
  object-fit: cover;
}

.spolupraca-text {
  flex: 1;
  text-align: left;
}

.spolupraca-text h2 {
  font-size: 2.2rem;
  color: rgb(0, 0, 0);
  margin-bottom: 1rem;
}

.spolupraca-text p {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.8;
  color: #000000cb;
  padding-right: 10px;
}

.spolupraca-text .contact-btn {
  display: inline-block;
  background: black;
  margin-top: 2rem; /* space above button */
  background-color: #BFFF46;
  border: 1px solid #ffffff; /* black border */
  color: #000000;
  padding: 0.5rem 1rem;
  font-size: 1.6rem;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s ease;
}

.spolupraca-text .contact-btn:hover {
  background-color: #9cd432;
}

/* Desktop notebooks */
@media (max-width: 1400px) {
 .spolupraca-container {
  max-width: 1000px;
  }
  .spolupraca-photo img {
    max-width: 200px;
  }
}

/* Responsive: stack photo and text on mobile */
@media (max-width: 768px) {
  .spolupraca-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .spolupraca-photo img {
    width: 100%;
    max-width: 558px;
  }
}

/* Responsive */

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;  /* Stack on mobile */
    gap: 0.75rem;
  }
}

/* ================================
   FOOTER
================================= */

.site-footer {
  background-color: #000000;
  color: #ffffff;
  border-top: 1px solid #000000;
  padding: 10rem 2rem; /* will adjust for mobile below */
  margin-top: 100px;
}

.footer-container {
  max-width: 1640px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4rem;
}

/* LEFT COLUMN */
.footer-column {
  display: flex;
  flex-direction: column;
  max-width: 520px;
}

/* BRAND */
.footer-title {
  font-size: 6rem;
  font-family: "Solvent", sans-serif;
  letter-spacing: 5px;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 1.4rem;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 3rem;
}

/* CONTACT BLOCKS */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block h4 {
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
}

.contact-block p {
  font-size: 1.6rem;
  font-weight: 400;
  color: #ffffff;
}

/* SOCIAL LINKS */
.footer-socials {
  display: flex;
  gap: 1.4rem;
  margin-top: 3rem;
}

.footer-socials a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #BFFF46;
}

/* ================================
   RESPONSIVE
================================= */

@media (max-width: 1024px) {
  .footer-title {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 4rem 2rem; /* much smaller on mobile */
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-column {
    align-items: flex-start;
    width: 100%;
  }

  .footer-title {
    font-size: 3rem; /* scales down nicely */
    letter-spacing: 2px;
  }

  .footer-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  .footer-contact {
    align-items: flex-start;
    gap: 1.5rem;
  }

  .contact-block h4 {
    font-size: 1.4rem;
  }

  .contact-block p {
    font-size: 1.4rem;
  }

  .footer-socials {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

  .footer-socials a {
    font-size: 1.2rem;
  }
}
