@import url("http://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on header height */
  overflow-x: hidden;
}

body {
  background: #f5f1ee;
  color: #2b2a29;
  overflow-x: hidden;
  width: 100%;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.6s;
  padding: 30px 100px;
  z-index: 2000000;
  overflow: visible;
}

header.sticky {
  padding: 15px 100px;
}

header.sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 241, 238, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}

header img {
  height: 60px;
  width: auto;
  transition: 0.6s;
}

header.sticky img {
  height: 50px;
}

header ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
}

/* Mobile navigation */
.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2b2a29;
  transition: 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 12px; }
.menu-toggle span:nth-child(3) { bottom: 0; }
.menu-toggle.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 2000000;
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.no-scroll { overflow: hidden; }

header ul li a {
  text-decoration: none;
  color: #2b2a29;
  letter-spacing: 1px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: 0.3s;
  padding: 8px 0;
  position: relative;
}

header ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #231f20;
  transition: 0.3s;
}

header ul li a:hover {
  color: #231f20;
}

header ul li a:hover::after {
  width: 100%;
}

section {
  width: 100%;
  padding: 80px 0;
  background-color: transparent;
}

.banner {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url(../img/banner.png) no-repeat right center;
  background-size: cover;
}

.about {
  background: #fff;
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.about-maja {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 40px;
}

.content-section {
  padding: 40px 0;
  width: 100%;
  position: relative;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40px;
  width: 4px;
  height: 100px;
  background: #231f20;
}

.content-section .title h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #231f20;
  margin-bottom: 30px;
}

.content-section .content p {
  line-height: 1.8;
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.content-section .content .button a {
  background-color: #231f20;
  padding: 15px 40px;
  text-decoration: none;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.3s;
  border-radius: 5px;
  display: inline-block;
}

.content-section .content .button a:hover {
  background-color: #444;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.image-section {
  position: relative;
}

.image-section img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 40px 40px 0 #f5f1ee;
  transition: 0.5s;
}

.image-section:hover img {
  transform: translate(-10px, -10px);
  box-shadow: 50px 50px 0 #aba19b;
}

section.vis {
  background-color: #231f20;
  padding: 100px 0;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.portfolio-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  border-left: 4px solid #fff;
  padding-left: 30px;
}

.portfolio-header .title h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.portfolio-header .subtitle {
  max-width: 500px;
  text-align: right;
}

.portfolio-header .subtitle p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #aaa;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/5;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item .item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 31, 32, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.5s;
  backdrop-filter: blur(5px);
}

.portfolio-item .item-overlay span {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
  border: 1px solid #fff;
  padding: 10px 20px;
  transform: translateY(20px);
  transition: 0.5s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .item-overlay {
  opacity: 1;
}

.portfolio-item:hover .item-overlay span {
  transform: translateY(0);
}

@media screen and (max-width: 992px) {
  /* Header: show hamburger, convert nav to overlay */
  .menu-toggle { display: block; }
  header ul {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2000001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  header ul.open { transform: translateX(0); }
  header.sticky { padding: 8px 24px; }
  header img { height: 35px; }
  header ul li a { 
    font-size: 1.1rem; 
    padding: 8px 0; 
    font-weight: 300;
    letter-spacing: 2px;
  }

  /* Layout/paddings */
  section { padding: 25px 0; }
  .about { 
    padding: 15px 0; 
    min-height: calc(100vh - 40vh - 60px); 
    display: flex; 
    align-items: center;
  }
  .about-maja { grid-template-columns: 1fr; gap: 10px; padding: 0 30px; }
  .content-section { padding: 0; }
  .content-section::before { display: none; }
  .content-section .title { border-left: 4px solid #231f20; padding-left: 15px; margin-bottom: 10px; }
  .content-section .title h1, .portfolio-header .title h1, .offer .title h1 { font-size: 1.6rem; margin: 0; }
  .content-section .content p { font-size: 0.95rem; line-height: 1.4; color: #444; margin-bottom: 0; }
  .image-section { display: none; }

  /* Banner */
  .banner { height: 40vh; background-position: center; }

  /* Portfolio */
  .portfolio-container { padding: 0 30px; }
  .portfolio-header { 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 40px; 
    border-left: 4px solid #fff;
    padding-left: 20px;
  }
  .portfolio-header .subtitle { text-align: left; max-width: 100%; }
  .portfolio-header .subtitle p { font-size: 1rem; color: #ccc; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .portfolio-item { aspect-ratio: 1/1; border-radius: 8px; }
  .portfolio-item .item-overlay { display: none; } /* Hide overlay on mobile as it needs hover */

  /* Offer */
  section.offer-timeline { padding: 10px 0; min-height: 100vh; display: flex; align-items: center; }
  section.offer-timeline::before { font-size: 30vw; opacity: 0.03; }
  .offer .title { padding-left: 20px; margin-bottom: 5px; }
  .offer .content .offer-screen { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .offer-screen .screen-visual { display: none; }
  .offer .content { min-height: auto; display: block; margin-bottom: 10px; }
  .offer .content .offer-screen { 
    display: none; 
    transform: none; 
    opacity: 1; 
    visibility: visible; 
    position: relative;
  }
  .offer .content .offer-screen.active { display: block; }
  .offer .content .offer-screen h1 { font-size: 1.4rem; margin-bottom: 5px; }
  .offer .content .offer-screen ul { margin-bottom: 5px; }
  .offer .content .offer-screen ul li { font-size: 0.9rem; margin-bottom: 3px; line-height: 1.3; }
  .offer .content .offer-screen ul li::before { margin-top: 6px; width: 6px; height: 6px; }
  .offer .content .offer-screen .price { padding-top: 5px; }
  .offer .content .offer-screen .price p { font-size: 1.3rem; }
  
  .offer .slider { margin-top: 0; }
  .offer .slider ul { 
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: none;
    padding-top: 0;
    flex-wrap: wrap;
  }
  .offer .slider ul li { 
    flex: 0 1 calc(33.333% - 10px);
    min-width: 100px;
    background: #fdfdfd;
    padding: 8px 5px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .offer .slider ul li p { 
    text-align: center; 
    font-size: 0.8rem; 
    padding-bottom: 0;
    margin: 0;
    line-height: 1.2;
    color: #666;
  }
  .offer .slider ul li p::after { display: none; }
  .offer .slider ul li.current {
    background: #231f20;
    border-color: #231f20;
  }
  .offer .slider ul li.current p { color: #fff; }

  /* Contact Card for Tablet */
  .contact-card {
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    padding: 0 40px;
  }
  .contact-info { text-align: left; }
  .contact-info h1 { 
    font-size: 2rem; 
    border-left: 4px solid #fff; 
    padding-left: 20px; 
    margin-bottom: 10px;
    text-align: left;
  }
  .contact-info .subtitle { text-align: left; font-size: 1rem; margin-bottom: 25px; }
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
    text-align: left;
  }
  .detail-item { 
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    text-align: left;
    gap: 20px;
  }
  .detail-item i { 
    width: 40px; 
    height: 40px; 
    font-size: 1rem; 
  }
  .detail-item .text { text-align: left; }
  .detail-item h3 { font-size: 0.75rem; }
  .detail-item p { font-size: 1rem; word-break: normal; }
  .contact-image { 
    width: 100%;
    height: auto;
    max-width: 350px;
    margin: 0;
  }
  .contact-image img { 
    border-radius: 15px; 
    aspect-ratio: 1/1; 
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top;
    box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.05);
    transition: 0.5s;
  }
  .contact-image:hover img { 
    transform: translate(-6px, -6px); 
    box-shadow: 18px 18px 0 rgba(255, 255, 255, 0.1); 
  }

  /* Footer */
  .promo-images { gap: 20px; }
  .promo-images img { height: 40px; }
}

section.offer-timeline {
  background: #fff;
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

section.offer-timeline::before {
  content: "OFFER";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20vw;
  font-weight: 900;
  color: #f9f7f5;
  z-index: 0;
  pointer-events: none;
  letter-spacing: 20px;
}

div.offer {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.offer .title {
  margin-bottom: 40px;
  text-align: left;
  width: 100%;
  border-left: 4px solid #231f20;
  padding-left: 30px;
}

.offer .title h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #231f20;
  margin: 0;
}

.offer .content {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  position: relative;
  min-height: 450px;
}

.offer .content .offer-screen {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  width: 100%;
  align-items: center;
  transform: translateX(50px);
}

.offer .content .active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.offer-screen .screen-info {
  text-align: left;
}

.offer .content .offer-screen h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #231f20;
}

.offer .content .offer-screen .schedule-title {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 15px;
  font-weight: 600;
  letter-spacing: 1px;
}

.offer .content .offer-screen ul {
  margin: 0 0 40px 0;
  padding: 0;
  list-style: none;
}

.offer .content .offer-screen ul li {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #555;
  display: flex;
  align-items: flex-start;
}

.offer .content .offer-screen ul li::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #aba19b;
  border-radius: 50%;
  margin-right: 20px;
  margin-top: 10px;
  flex-shrink: 0;
}

.offer .content .offer-screen .price {
  margin-top: 0;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.offer .content .offer-screen .price::before {
  content: "Inwestycja";
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #aba19b;
  margin-bottom: 5px;
}

.offer .content .offer-screen .price p {
  font-size: 2rem;
  font-weight: 300;
  color: #231f20;
}

.offer-screen .screen-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.offer-screen .screen-visual::after {
  content: attr(data-step);
  font-size: 15rem;
  font-weight: 900;
  color: #f0edea;
  line-height: 1;
}

.offer .slider {
  width: 100%;
  margin-top: 60px;
}

.offer .slider ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid #eee;
  padding-top: 40px;
}

.offer .slider ul li {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}

.offer .slider ul li .progress {
  display: none; /* Hide old dots */
}

.offer .slider ul li p {
  font-size: 0.85rem;
  font-weight: 500;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  padding-bottom: 15px;
}

.offer .slider ul li p::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #231f20;
  transition: 0.3s;
}

.offer .slider ul li.active p {
  color: #231f20;
}

.offer .slider ul li.current p {
  font-weight: 700;
  color: #231f20;
}

.offer .slider ul li.current p::after {
  width: 40px;
}

.offer .slider ul li:hover p {
  color: #231f20;
}

/* Hide the old line style */
.progress::after {
  display: none;
}

.offer ul li p.lg-view {
  display: inline-block;
}

.offer ul li p.sm-view {
  display: none;
}

@media screen and (max-width: 992px) {
  .offer .content .offer-screen {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .offer-screen .screen-visual {
    display: none;
  }
  .offer .title h1 {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 992px) and (min-width: 769px) {
  .offer .slider ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: none;
    padding-top: 0;
  }

  .offer .slider ul li {
    padding: 12px 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fdfdfd;
  }

  .offer .slider ul li p {
    font-size: 0.75rem;
    padding-bottom: 0;
  }

  .offer .slider ul li p::after {
    display: none;
  }

  .offer .slider ul li.current {
    background: #231f20;
    border-color: #231f20;
  }

  .offer .slider ul li.current p {
    color: #fff;
  }
}

@media screen and (max-width: 768px) {
  section.offer-timeline { padding: 40px 0; }
  header { padding: 8px 20px; }
  header img { height: 32px; }
  .banner { height: 45vh; }
  .about { padding: 15px 0; min-height: calc(100vh - 45vh - 50px); }
  .about-maja { padding: 0 20px; gap: 10px; overflow-x: hidden; }
  .content-section .title h1, .portfolio-header .title h1, .offer .title h1, .contact-info h1 { font-size: 1.4rem; }
  .content-section .content p { font-size: 0.9rem; line-height: 1.35; }
  .content-section::before {
    left: 0;
  }
  .image-section img { box-shadow: 15px 15px 0 #f5f1ee; max-width: calc(100% - 15px); }

  .portfolio-container { padding: 0 20px; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }

  .offer .slider ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-top: none;
    padding-top: 15px;
    justify-content: center;
  }
  
  .offer .slider ul li {
    flex: none;
    min-width: 0;
    padding: 8px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
  }

  .offer .slider ul li p {
    font-size: 0.6rem;
    padding-bottom: 5px;
    margin: 0;
    line-height: 1.2;
    color: #999;
    font-weight: 500;
    text-align: center;
  }

  .offer .slider ul li p::after {
    display: none;
  }

  .offer .slider ul li.current {
    background: transparent;
    border-bottom: 2px solid #231f20;
  }

  .offer .slider ul li.current p {
    color: #231f20;
    font-weight: 700;
  }
  
  .contact-section { padding: 40px 0; min-height: 100vh; }
  .contact-card { grid-template-columns: 1fr; gap: 20px; padding: 0 30px; }
  .contact-info { text-align: center; }
  .contact-info h1 { 
    font-size: 1.6rem; 
    border-left: none; 
    padding-left: 0; 
    margin-bottom: 10px;
  }
  .contact-info .subtitle { font-size: 0.95rem; margin-bottom: 20px; text-align: center; }
  .contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 0;
    width: 100%;
  }
  .detail-item { 
    flex-direction: row;
    align-items: center;
    background: transparent;
    padding: 10px 0;
    border-radius: 0;
    border: none;
    text-align: left;
    gap: 15px;
  }
  .detail-item i { 
    width: 50px; 
    height: 50px; 
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.1rem; 
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
  }
  .detail-item h3 { font-size: 0.8rem; margin-bottom: 2px; text-transform: uppercase; color: #aaa; }
  .detail-item p { font-size: 1rem; word-break: break-all; color: #fff; }
  .contact-image { 
    display: none; /* Hide on mobile phones */
  }
}

@media screen and (max-width: 480px) {
  section.offer-timeline { padding: 30px 0; }
  header { padding: 6px 12px; }
  header img { height: 28px; }
  .menu-toggle { width: 28px; height: 18px; }
  .menu-toggle span { height: 2px; }
  .menu-toggle span:nth-child(2) { top: 8px; }
  
  header ul { width: 100%; }
  
  .banner { height: 40vh; }
  .about-maja, .portfolio-container, .contact-card { padding: 0 10px; overflow-x: hidden; }
  .about { padding: 10px 0; min-height: calc(100vh - 40vh - 44px); }
  .contact-image { width: 200px; height: 200px; margin-bottom: 15px; display: none; }
  .content-section .title h1 { font-size: 1.2rem; }
  .content-section .content p { font-size: 0.8rem; line-height: 1.3; }

  .offer .slider {
    width: 100%;
    margin-top: 20px;
  }
  .offer .slider ul { 
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px; 
    padding-top: 10px;
  }
  .offer .slider ul li {
    flex: none;
    padding: 6px 2px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    border-bottom: 2px solid transparent;
  }
  .offer .slider ul li p {
    font-size: 0.6rem;
    line-height: 1.1;
    font-weight: 500;
    color: #999;
  }
  .offer .slider ul li.current {
    border-bottom: 2px solid #231f20;
  }
  .offer .slider ul li.current p {
    color: #231f20;
    font-weight: 700;
  }
  .offer .content .offer-screen h1 { 
    font-size: 1.35rem; 
    margin-bottom: 12px; 
    font-weight: 500;
    letter-spacing: 1px;
    color: #231f20;
  }
  .offer .content .offer-screen ul li { 
    font-size: 0.9rem; 
    margin-bottom: 8px; 
    line-height: 1.5;
  }
  .offer .content .offer-screen .price {
    padding-top: 15px;
  }
  .offer .content .offer-screen .price p { font-size: 1.1rem; }
  .offer .content {
    min-height: auto;
    margin-bottom: 8px;
  }
  
  .promo-images img { height: 30px; }
}

section.contact-section {
  background-color: #231f20;
  padding: 100px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
}

.contact-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 40px;
}

.contact-info h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 15px;
}

.contact-info .subtitle {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.contact-details {
  margin-bottom: 40px;
}

.detail-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.detail-item i {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 20px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.detail-item:hover i {
  background: #fff;
  color: #231f20;
}

.detail-item h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 2px;
}

.detail-item p {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 500;
}

.detail-item p a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.detail-item p a:hover {
  color: #ccc;
}

.contact-info .social-media h3 {
  display: none;
}

.contact-info .social-media ul {
  display: none;
}

.contact-info .social-media ul li a {
  width: 45px;
  height: 45px;
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #231f20;
  transition: 0.3s;
}

.contact-info .social-media ul li a:hover {
  background: #231f20;
  color: #fff;
  transform: translateY(-3px);
}

.contact-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  border-radius: 15px;
  box-shadow: 20px 20px 0 rgba(255, 255, 255, 0.05);
  transition: 0.5s;
}

.contact-image:hover img {
  transform: translate(-10px, -10px);
  box-shadow: 30px 30px 0 rgba(255, 255, 255, 0.1);
}

footer {
  background-color: #231f20;
  color: #fff;
  padding: 60px 0 0;
}

.footer-promo {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.promo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promo-images {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.promo-images img {
  height: 50px;
  width: auto;
  filter: grayscale(1) brightness(2);
  opacity: 0.6;
  transition: 0.3s;
}

.promo-images img:hover {
  filter: none;
  opacity: 1;
}

.promo-content p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #777;
  max-width: 900px;
}

.copy-right {
  padding: 25px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #555;
  font-size: 0.8rem;
}

@media screen and (max-width: 992px) {
  /* Contact Card Redesign for Tablet/Mobile */
  .contact-card {
    grid-template-columns: 1fr 1.1fr;
    padding: 0 40px;
  }
}

/* Remove all old media queries and mobile views */
.offer ul li p.lg-view,
.offer ul li p.sm-view {
  display: block;
}

/* New cleaner Desktop adjustments if needed */
@media screen and (max-width: 1440px) {
  .about-maja, .offer .content .offer-screen, .contact-card {
    gap: 60px;
  }
  .content-section .title h1, .portfolio-header .title h1, .offer .title h1 {
    font-size: 2.6rem;
  }
}

@media screen and (max-height: 1100px) and (min-width: 992px) {
  section, .about, section.vis, section.offer-timeline, section.contact-section {
    padding: 80px 0;
    min-height: 95vh;
  }
  .about {
    padding: 90px 0;
  }
  section.offer-timeline {
    padding: 60px 0; /* Reduced padding specifically for offer */
  }
  .content-section .title h1, .portfolio-header .title h1, .offer .title h1 {
    font-size: 2.6rem;
    margin-bottom: 25px;
  }
  .content-section .content p, .portfolio-header .subtitle p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.7;
  }
  .about-maja {
    gap: 70px;
  }
  .image-section img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
  }
  
  /* Portfolio optimizations for height */
  .portfolio-header {
    margin-bottom: 40px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .portfolio-item {
    aspect-ratio: 1/1;
  }

  .offer .title {
    margin-bottom: 30px; /* Tighter title margin */
  }
  .offer .content .offer-screen h1 {
    font-size: 2.2rem;
    margin-bottom: 20px; /* Tighter heading margin */
  }
  .offer .content .offer-screen ul {
    margin-bottom: 25px; /* Tighter list margin */
  }
  .offer .content .offer-screen ul li {
    font-size: 1.05rem;
    margin-bottom: 10px; /* Tighter item margin */
    line-height: 1.6;
  }
  .offer .content {
    min-height: 380px; /* Slightly reduced from 400px */
  }
  .offer .slider {
    margin-top: 40px; /* Reduced from 60px */
  }
  .offer .slider ul {
    padding-top: 30px; /* Reduced from 40px */
  }
  .contact-info h1 {
    font-size: 2.4rem;
  }
  .detail-item {
    margin-bottom: 25px;
  }
}

@media screen and (max-height: 900px) and (min-width: 992px) {
  section, section.vis, section.offer-timeline, section.contact-section {
    padding: 50px 0;
    min-height: auto;
  }
  .about {
    padding: 90px 0; /* Increased from 70px to make it less "short" */
    min-height: 90vh; /* Increased from 85vh to give it more presence */
  }
  .content-section .title h1, .portfolio-header .title h1, .offer .title h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  .content-section .content p, .portfolio-header .subtitle p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  /* Portfolio density */
  .portfolio-header {
    margin-bottom: 30px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
  
  /* Offer density */
  .offer .title {
    margin-bottom: 10px; /* Further reduced from 15px */
  }
  .offer .content {
    min-height: 280px; /* Further reduced from 300px to pull buttons up */
  }
  .offer .content .offer-screen {
    gap: 20px; /* Reduced from 30px */
  }
  .offer .content .offer-screen h1 {
    font-size: 1.7rem; /* Reduced from 1.8rem */
    margin-bottom: 10px; /* Reduced from 15px */
  }
  .offer .content .offer-screen ul {
    margin-bottom: 10px; /* Reduced from 15px */
  }
  .offer .content .offer-screen ul li {
    font-size: 0.9rem; /* Reduced from 0.95rem */
    margin-bottom: 6px; /* Reduced from 8px */
    line-height: 1.4;
  }
  .offer .slider {
    margin-top: 15px; /* Reduced from 25px */
  }
  .offer .slider ul {
    padding-top: 15px; /* Reduced from 20px */
  }

  /* Contact density */
  section.contact-section {
    padding: 30px 0; /* Reduced from 40px */
  }
  .contact-info h1 {
    font-size: 2rem; /* Reduced from 2.2rem */
    margin-bottom: 5px; /* Reduced from 10px */
  }
  .contact-info .subtitle {
    margin-bottom: 15px; /* Reduced from 20px */
  }
  .contact-details {
    margin-bottom: 10px; /* Reduced from 20px */
  }
  .detail-item {
    margin-bottom: 10px; /* Reduced from 15px */
  }
}

@media screen and (max-width: 1200px) {
  header, header.sticky {
    padding: 20px 50px;
  }
  .about-maja, .footer-promo {
    width: 95%;
  }
  .about-maja, .offer .content .offer-screen, .contact-card {
    gap: 40px;
  }
}

@media screen and (min-width: 993px) and (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* Offer disclaimer */
.offer .offer-disclaimer {
  font-size: 0.75rem;
  color: #9a8f88;
  text-align: center;
  margin-top: 10px;
  opacity: 0.6;
  font-style: italic;
}
