/* Global reset for consistent margin, padding, and box model */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
/* Optional: Add font-smoothing for better text rendering on macOS and iOS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
:root {
    --background-color-dark: #1f1f21;
    --background-color: #19191B;
    --primary-color: #5454D4;
    --secendary-color:#4242b8;
    --decoration-1-gradient: linear-gradient(180deg, rgba(84, 84, 212, 0.4) 0%, rgba(128, 0, 128, 0) 100%);
    --decoration-2-gradient: linear-gradient(180deg, rgba(212, 84, 84, 0.4) 0%, rgba(128, 0, 128, 0) 100%);
    --text-color: #f4f4f4;
    --text-color-secendary:rgba(255, 255, 255, 0.7);
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.5rem;
    --font-size-xxl: 3.75rem;
    --container-width: 90rem;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    --scroll-behavior: smooth;
    --chat-bg: #1f1f21;
    --chat-header-bg: #5454D4;
    --chat-border-color: #4242b8;
    --chat-text-color: #f4f4f4;
    --chat-button-bg: #5454D4;
    --chat-button-hover: #4242b8;
    --chat-icon-bg: #5454D4;
    --chat-icon-hover: #4242b8;
  }

/* General styles for the body */
body {
  font-family: 'Roboto', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  font-size: var(--font-size-base);
  padding: var(--spacing-md);
  line-height: 1.6;
  margin: 0 auto;
  background-size: cover;
  overflow-x: hidden;
  /* Optional: Improve scrolling behavior */
  scroll-behavior: smooth;
}

/* Wrapper for centering and spacing content */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem; 
    overflow-x: hidden;
}

/* Logo wrapper for layout and spacing */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Logo image size */
.header-logo img {
  width: 70px;
}

/* Navigation bar layout and spacing */
.nav-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  position: relative;
  padding: 40px 20px;
}

/* Menu container */
.menu {
  display: flex;
  gap: 20px;
}

/* Menu list items */
.menu li {
  list-style: none;
  padding-left: 30px;
  z-index: 100;
}

/* Menu links */
.menu li a {
  font-size: var(--font-size-md);
  display: inline-block;
  text-decoration: none;
  color: var(--text-color);
  text-align: center;
  transition: 0.15s ease-in-out;
  position: relative;
  text-transform: uppercase;
}

/* Underline effect on hover */
.menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  transition: 0.15s ease-in-out;
}

.menu li a:hover:after {
  width: 100%;
}

/* Open and close menu buttons for mobile */
.open-menu,
.close-menu {
  position: absolute;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
}

/* Open menu button position */
.open-menu {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* Close menu button position */
.close-menu {
  top: 20px;
  right: 20px;
}

#check {
  display: none;
}

/* Hero section layout and spacing */
.hero-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 20px;
  position: relative;
  flex-wrap: wrap;
  flex-direction: row;

}

/* Background decorations for gradients */
.background-decorations .decoration-1,
.background-decorations .decoration-2 {
  position: absolute;
  filter: blur(150px);
  opacity: 0.5;
  border-radius: 50%;
}

.decoration-1 {
  top: 35%;
  left: -10%;
  width: 80vw;
  height: 80vh;
  background: var(--decoration-1-gradient)
}

.decoration-2 {
  left: 60%;
  top: 15%;
  width: 35vw;
  height: 90vh;
  background: var(--decoration-2-gradient);
}
/* Content styling inside the hero section */
.hero-content {
  flex: 1;
  text-align: left;
}

.hero-heading {
  font-weight: bold;
  font-size: 4rem;
  line-height: 1.2;
  justify-content: left;
  letter-spacing: 0px;
  color: #FFF;
  margin-bottom: 20px;
  gap: 20px;
}

/* Hero description text */
.hero-description {
  color: var(--text-color-secendary);
  line-height: 1.5;
  font-size: 1.31rem;
  margin-top: 20px;
  letter-spacing: -0.66px;
  font-weight: var(--font-weight-normal);
}


/* Hero image container */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Main image inside hero section */
.hero-image .main-image {
  object-fit: cover;
  max-width: 100%;
  height: auto;
  z-index: 2;
  position: relative;
}

/* Decorations for circles and symbols */
.hero-image .circle-decoration,
.hero-image .plus-symbol {
  position: absolute;
  width: 40px;
  height: 40px;
}

.circle-decoration {
    top: 15%;
    right: 15%;
}

.plus-symbol {
    bottom: 0;
    right: 0;
}

@media (max-width: 768px) {
  /* Container padding adjustment for mobile */
  .container {
    padding: 0 1rem;
  }

  /* Navbar adjustments for mobile */
  .nav-bar {
    padding: 20px 10px;
  }

  .header-logo img {
    width: 50px;
  }

  /* Responsive menu styling */
  .menu {
    background-color: var(--background-color-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 85%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100;
    transition: all 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  }

  .menu li {
    margin-top: 30px;
    padding-left: 0;
  }

  .menu li a {
    padding: 12px 20px;
    font-size: 1.1rem;
    display: block;
    width: 100%;
    text-align: center;
  }

  .open-menu,
  .close-menu {
    display: block;
    font-size: 1.8rem;
  }

  #check:checked ~ .menu {
    right: 0;
    transform: translateX(0); 
  }

  /* Hero section responsive layout */
  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    gap: 30px;
  }

  .hero-content {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
  }

  .hero-heading {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 15px;
    padding: 0 10px;
  }

  .hero-description {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0 10px;
  }

  .hero-image {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  .hero-image img {
    max-width: 100%;
    height: auto;
  }

  .hero-gradient {
    width: 150px;
    height: 400px;
    border-radius: 150px;
    filter: blur(100px);
  }

  .hero-image .circle-decoration {
    top: 0;
    right: 0;
  }

  .hero-image .plus-symbol {
    bottom: 0;
    right: 0;
  }

  .hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 252px;
    height: 667px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--decoration-2-gradient);
    border-radius: 233.5px;
    filter: blur(150px);
    z-index: -1;
  }


  /* About image section mobile */
  .about-image-section {
    padding: 30px 15px;
  }

  .about-image-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .about-image-description {
    font-size: 0.95rem;
    margin-top: 15px;
  }

  .about-image-container {
    margin-top: 20px;
    padding: 0;
  }

  .about-image-gif {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .about-image-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

@media only screen and (max-width: 760px) {
  ul {
    width: 100%;
  }
}

/* Full-width list for very small screens */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Responsive menu */
  .menu {
    background-color: var(--background-color-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 100;
    transition: all 0.2s ease-in-out;
  }

  .menu li {
    margin-top: 20px;
  }

  .menu li a {
    padding: 8px;
    font-size: 1rem;
  }

  .open-menu,
  .close-menu {
    display: block;
  }

  #check:checked ~ .menu {
    right: 0;
  }

  /* Hero section layout for tablets */
  .hero-section {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 50px 40px;
    gap: 30px;
  }

  .hero-content {
    margin-right: 0;
    margin-bottom: 20px;
    text-align: left;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-heading {
    font-size: 2.8rem;
    line-height: 1.25;
    margin: 0;
  }

  .hero-description {
    margin-top: 0;
    font-size: 1.1rem;
    max-width: 600px;
  }

  .hero-image {
    width: 80%;
    margin: 0;
  }

  .hero-image .circle-decoration {
    top: -5%;
    right: 5%;
  }

  .hero-image .plus-symbol {
    bottom: 15%;
    right: 5%;
  }

  .hero-gradient {
    width: 260px;
    height: 520px;
    border-radius: 220px;
    filter: blur(140px);
  }
}

/* About image section container */
.about-image-section {
  padding: 100px 40px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  max-width: 1400px;
  margin-bottom: 120px;
}

@media (max-width: 1024px) {
  .about-image-section {
    flex-direction: column;
    gap: 50px;
    padding: 60px 30px;
    margin-bottom: 80px;
  }
}

/* Text content in the about image section */
.text-content {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  min-width: 0;
}

/* Heading container for alignment */
.text-heading {
  margin-bottom: 15px;
}

/* About image title styling */
.about-image-title {
  font-weight: var(--font-weight-bold);
  font-size: 2.75rem;
  line-height: 1.2;
  font-family: 'Playfair Display', serif;
  color: var(--text-color);
  margin: 0 0 20px 0;
}

@media (max-width: 1024px) {
  .about-image-title {
    font-size: 2.25rem;
    line-height: 1.3;
  }
}

/* Description text styling */
.text-description {
  font-size: 1.1rem;
  text-align: left;
  color: var(--text-color-secendary);
  line-height: 1.8;
  flex: 1;
}

.about-image-description {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--text-color-secendary);
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 1024px) {
  .about-image-description {
    font-size: 1.05rem;
    line-height: 1.8;
  }
}

/* About image container for responsive GIF */
.about-image-container {
  flex: 0 0 500px;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1024px) {
  .about-image-container {
    flex: 1;
    max-width: 100%;
    width: 100%;
  }
}

/* GIF image styling */
.about-image-gif {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

@media (max-width: 768px) {
  /* Adjust about image section layout for small screens */
  .about-image-section {
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 50px 20px;
    margin-bottom: 60px;
  }

  /* Text content styling for small screens */
  .text-content {
    width: 100%;
    text-align: left;
    gap: 20px;
  }

  /* About image title styling for mobile */
  .about-image-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 15px;
    text-align: center;
  }

  /* About image description styling for mobile */
  .about-image-description {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
  }

  /* About image container for small screens */
  .about-image-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* GIF image styling for mobile */
  .about-image-gif {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
  }
}

/* Services section container */
.services-section {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  margin: 40px 0;
}

/* Header of the services section */
.services-header {
  position: relative;
  margin-bottom: 50px;
}

.services-header h2 {
  font-size: var(--font-size-xxl);
  font-family: 'Playfair Display', serif;
  margin: 0 auto;
  color: var(--text-color);
  line-height: 1.5;
}

/* Triangle decoration */
.services-triangle-decoration {
  position: absolute;
  top: -50px;
  left: 0;
  transform: translateX(-50%);
  width: 104.66px;
  height: 120.07px;
}

/* Plus decoration */
.services-plus-decoration1 {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
}

.services-decoration-1 {
  position: absolute;
  top: 0;
  left: 10%;
  width: 30vw;
  height: auto;
  transform: rotate(54.37deg);
}

/* Circular decorations */
.services-decoration-1,
.services-decoration-2 {
  position: absolute;
  filter: blur(150px);
  opacity: 0.5;
  border-radius: 50%;
}

.services-decoration-1 {
  top: 35%;
  left: -10%;
  width: 80vw;
  height: 80vh;
  background: var(--decoration-1-gradient);
  z-index: -1;
  opacity: 0.5;
}

.services-decoration-2 {
  left: 60%;
  top: 15%;
  bottom: -100px;
  right: -200px;
  width: 35vw;
  height: 90vh;
  background: var(--decoration-2-gradient);
  z-index: -1;
  opacity: 0.5;
}

/* Grid layout for services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* Icon in each service item */
.service-icon {
  width: 60px;
  height: 60px;
}

/* Service title styling */
.service h3 {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: normal;
  letter-spacing: normal;
  text-align: center;
  color:var(--text-color);
}

/* Service description text */
.service p {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: var(--font-weight-normal);
  font-size: 1.35rem;
  line-height: 28px;
  letter-spacing: -0.5px;
  color: var(--text-color-secendary);
}

/* Additional plus decoration */
.services-section .plus-decoration2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 42px;
  background-color: transparent;
  font-size: 1.5rem;
  color: ver(--text-color);
}

@media (max-width: 768px) {
    /* Services section adjustments for mobile */
  .services-section {
    justify-content: center;
    padding: 40px 15px;
    margin: 30px 0;
  }

  .services-header {
    margin-bottom: 35px;
  }

   /* Plus decorations for small screens */
  .services-triangle-decoration {
    width: 50px;
    height: 60px;
    left: 0;
  }

  .services-plus-decoration1 {
    bottom: -50%;
    right: 0;
    width: 32px;
    height: 32px;
  }

  .services-plus-decoration2 {
    bottom: -50%;
    left: -10%;
  }

   /* Grid layout adjustment */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
  }

  /* Services header text adjustments */
  .services-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: var(--font-weight-bold);
    font-size: 1.75rem;
    line-height: 1.4;
    letter-spacing: 0px;
    text-align: center;
    padding: 0 15px;
  }

  /* Service card styling */
  .service {
    padding: 25px 15px;
    background-color: rgba(31, 31, 33, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(84, 84, 212, 0.1);
  }

    /* Service title */
  .service h3 {
    font-size: 1.4rem;
    margin: 15px 0;
  }

    /* Service description */
  .service p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
  }

    /* Service icon size */
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Services section adjustments for tablets */
  .services-section {
    padding: 100px 30px;
    justify-content: center;
    text-align: center;
  }

  /* Services header text */
  .services-header h2 {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    font-size: 1.81rem;
    line-height: 1.5;
    letter-spacing: 0px;
    text-align: center;
    margin-bottom: 40px;
  }

   /* Triangle decoration */
  .services-triangle-decoration {
    width: 65.44px;
    height: 75.07px;
    left: 0;
  }

    /* Plus decorations for tablets */
  .services-plus-decoration1 {
    top: 0;
    right: 0;
  }

  .services-plus-decoration2 {
    bottom: -40px;
    right: 10%;
  }

  /* Grid layout for tablets */
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    max-width: 820px;
    margin: 0 auto;
  }

  /* Individual service item styling */
  .service {
    padding: 24px;
    border-radius: 18px;
  }

  /* Service title */
  .service h3 {
    font-size: 1.5rem;
  }

  /* Service description */
  .service p {
    font-size: 1.05rem;
    line-height: 1.7;
  }

   /* Service icon size */
  .service-icon {
    width: 70px;
    height: 70px;
  }
}

/* Portfolio section container */
.portfolio-section {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  margin: 40px 0 50px 0;
}

/* Portfolio header styles */
.portfolio-header {
  position: relative;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

/* Decorative background element */
.portfolio-decoration {
  position: absolute;
  width: 599.58px;
  height: 652.85px;
  background: var(--decoration-1-gradient);
  filter: blur(150px);
  opacity: 0.5;
  border-radius: 10%;
  z-index: -1;
  transform: rotate(125.63deg);
}

.portfolio-header h2 {
  font-size: var(--font-size-xxl);
  font-family: 'Playfair Display', serif;
  color: var(--text-color);
  position: relative;
  z-index: 1;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
}

/* Grid layout for portfolio items */
.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  justify-items: center;
  align-self: start;
  gap: 40px;
  margin: 0 auto;
  padding: 0 20px;
  max-width: var(--container-width);
}

/* Portfolio item styles */
.portfolio-grid .portfolio-item {
  background-color: rgba(31, 31, 33, 0.6);
  border: 1px solid rgba(84, 84, 212, 0.2);
  border-radius: 16px;
  width: 300px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  padding: 12px;
}

.portfolio-item h3 {
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
}

.portfolio-item:hover {
  cursor: pointer;
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(84, 84, 212, 0.25);
  border-color: rgba(84, 84, 212, 0.5);
}

/* Portfolio image inside items */
.portfolio-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image {
  opacity: 0.9;
}

/* Decorative line inside grid */
.portfolio-grid .portfolio-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
}

/* Decorative circles */
.portfolio-circles {
  position: absolute;
  top: 50px;
  right: 0;
  width: 60px;
}

@media (max-width: 768px) {
/* Portfolio grid for mobile */
  .portfolio-section {
    justify-content: center;
    padding: 40px 15px;
    margin: 30px 0;
  }

  .portfolio-header {
    margin-bottom: 35px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    width: 100%;
    padding: 0 5px;
    margin: 0 auto;
  }

    /* Header adjustments */
  .portfolio-header h2 {
    font-weight: var(--font-weight-bold);
    line-height: 1.4;
    letter-spacing: 0;
    font-size: 1.75rem;
    text-align: center;
    padding: 0 15px;
  }

   /* Decorative line */
  .portfolio-grid .portfolio-line {
    display: none;
  }

/* Portfolio item dimensions */
  .portfolio-grid .portfolio-item {
    max-width: 100%;
    width: 100%;
    min-height: auto;
    height: auto;
    margin: 0 auto;
    padding: 15px;
  }

  .portfolio-item h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .portfolio-image {
    width: 100%;
    height: 180px;
    margin-top: 10px;
  }

  /* Decorative circles */
  .portfolio-circles {
    right: 0;
    width: 35px;
    height: 40px;
    opacity: 0.6;
  }

  .portfolio-decoration {
    opacity: 0.3;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {
     /* Portfolio grid for mobile */
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    padding: 0 10px;
    max-width: 760px;
  }

  /* Center portfolio section */
  .portfolio-section {
    justify-content: center;
    padding: 60px 30px;
  }

    /* Header adjustments */
  .portfolio-header h2 {
    font-weight: bold;
    letter-spacing: 0;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
  }

  /* Portfolio item dimensions */
  .portfolio-grid .portfolio-item {
    width: 100%;
    max-width: none;
    min-height: 260px;
}

/* Decorative circles */
  .portfolio-circles {
    right: -10px;
    width: 50px;
    height: 50px;
}

/* Decorative line */
  .portfolio-grid .portfolio-line {
    bottom: 0;
    left: 0;
    width: 80px;
    height: 20px;
  }
}

/* Contact section container */
.contact-section {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-direction: row;
  gap: 32px;
  padding: 72px 64px;
  margin: 0 auto;
  max-width: var(--container-width);
  color: var(--text-color);
  background: linear-gradient(135deg, rgba(84, 84, 212, 0.12) 0%, rgba(25, 25, 27, 0.85) 100%);
  border: 1px solid rgba(84, 84, 212, 0.25);
  border-radius: 32px;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Contact content styles */
.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  column-gap: 56px;
  row-gap: 32px;
  align-items: start;
  margin: 0;
  z-index: 1;
  width: 100%;
}

.contact-content h2 {
  font-size: 3.4rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--text-color);
  text-align: left;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  text-decoration: none;
  max-width: 20ch;
  grid-column: 1 / 2;
}

.contact-content h2 span {
  display: block;
  margin-top: 0.4em;
  font-size: 3rem;
  font-weight: 700;
  color: #d7d7ff;
  letter-spacing: -0.01em;
}

.contact-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-color-secendary);
  max-width: 540px;
  grid-column: 1 / 2;
}

.contact-options {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  align-self: start;
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
}

.contact-option {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 28px;
  border-radius: 20px;
  background: rgba(36, 36, 60, 0.55);
  border: 1px solid transparent;
  color: var(--text-color);
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-option:hover,
.contact-option:focus {
  transform: translateY(-6px);
  border-color: rgba(84, 84, 212, 0.6);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.35);
}

.contact-option:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.contact-option-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(84, 84, 212, 0.2);
  color: var(--text-color);
  font-size: 1.85rem;
}

.contact-option-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-option-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color-secendary);
}

@media (max-width: 1024px) {
  .contact-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .contact-options {
    align-self: stretch;
    grid-column: auto;
    grid-row: auto;
  }
}

/* Decorative plus symbol */
.contact-plus {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
}

/* Decorative circles */
.contact-circles {
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 60px;
}

@media (max-width: 768px) {
  /* Adjust contact section layout for mobile */
  .contact-section {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    padding: 40px 20px;
    margin: 30px 0;
    text-align: left;
  }

  /* Contact content styles for mobile */
  .contact-content {
    margin: 0;
    width: 100%;
  }

   /* Header adjustments for mobile */
  .contact-content h2 {
    font-size: 2.4rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    max-width: none;
  }

  .contact-content h2 span {
    font-size: 2.1rem;
  }

  .contact-description {
    font-size: 1rem;
  }

  .contact-options {
    flex-direction: column;
  }

  .contact-option {
    width: 100%;
    padding: 20px 22px;
  }

  .contact-option-icon {
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
  }

/* Plus decoration for mobile */
  .contact-plus {
    width: 24px;
    height: 24px;
    right: 10px;
    top: 10px;
    opacity: 0.6;
  }

  /* Circle decoration for mobile */
  .contact-circles {
    width: 35px;
    height: 40px;
    bottom: 10px;
    left: 10px;
    opacity: 0.6;
  }
}

/* Footer section container */
.footer-section {
  margin-top: 100px;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  color: var(--text-color-secendary);
}

/* Footer content container */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--container-width);
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

/* Footer sections */
.footer-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
}

.footer-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  flex-direction: column;
  min-width: 280px;
  position: relative;
}

.footer-right .scroll-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  pointer-events: none;
}

.footer-right .scroll-wrapper .scroll-to-top {
  pointer-events: all;
}

/* Footer logo and text */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  height: 50px;
}

/* Footer links */
.footer-links {
  display: flex;
  flex-direction: row;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}

.footer-links a {
  color: var(--text-color-secendary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
  white-space: nowrap;
  padding: 4px 0;
}

.footer-links a:hover {
  color: var(--text-color);
}

/* Footer copyright text */
.footer-copy {
  font-size: 0.85rem;
  text-align: right;
  margin: 0;
  width: 100%;
  line-height: 1.5;
  color: var(--text-color-secendary);
}

/* Wrapper for scroll-to-top button */
.scroll-wrapper {
  position: fixed;
  bottom: 20px; 
  right: 20px; 
  display: flex;
  align-items: center;
  gap: 0px; 
  z-index: 1000; 
}
  
  /* Scroll-to-top button styles */
  .scroll-to-top {
    font-size: 1.6rem;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--secendary-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .scroll-to-top img {
    width: 45px;
    height: 45px;
  }
  
  /* Hover and focus styles */
  .scroll-to-top:hover,
  .scroll-to-top:focus {
    background-color: var(--secendary-color); 
    transform: translateY(-5px); 
    outline: none; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Accessibility: Focus state */
  .scroll-to-top:focus {
    outline: 2px solid #ffffff; 
    outline-offset: 4px;
  }
    /* Add visibility  and hidden for arrow*/
  .scroll-to-top {
    visibility: visible; 
    transition: visibility 0.3s ease, opacity 0.3s ease;
    opacity: 1; 
  }
  
  .scroll-to-top.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
  }

@media (max-width: 768px) {
  /* Body padding adjustment */
  body {
    padding: 0;
  }

/* Footer section layout adjustments for mobile */
  .footer-section {
    margin-top: 50px;
    padding: 35px 20px 80px;
  }

  .footer-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .footer-left {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 1;
  }

  /* Footer logo: centered stack with subtle divider */
  .logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .logo-wrapper::after {
    content: "";
    display: block;
    width: 90px;
    height: 1px;
    background: rgba(130, 130, 200, 0.35);
    border-radius: 1px;
  }

  .footer-center {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 2;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 3;
  }

  .footer-logo {
    height: 40px;
    margin-bottom: 10px;
  }

  .logo-wrapper {
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    display: flex;
    flex-direction: row;
    gap: 12px 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-links::after {
    content: none;
  }

  .footer-links a {
    font-size: 0.95rem;
    padding: 8px 12px;
    width: auto;
    display: inline-block;
    text-align: center;
  }

  .footer-copy {
    font-size: 0.85rem;
    margin-top: 10px;
    text-align: center;
    color: var(--text-color-secendary);
    line-height: 1.5rem;
    width: 100%;
  }

  .scroll-wrapper {
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top img {
    width: 40px;
    height: 40px;
  }
}

/* Privacy Policy Section */
.privacy-section {
  margin: 4rem auto;
  padding: 2rem 0;
  max-width: 900px;
  min-height: calc(100vh - 300px);
}

.privacy-container {
  background-color: rgba(31, 31, 33, 0.3);
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(84, 84, 212, 0.05);
  line-height: 1.8;
}

.privacy-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: var(--font-weight-bold);
  border-bottom: 2px solid rgba(130, 130, 200, 0.6);
  padding-bottom: 1rem;
}

.privacy-intro {
  font-size: 1.1rem;
  color: var(--text-color-secendary);
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: rgba(84, 84, 212, 0.03);
  border-left: 4px solid rgba(130, 130, 200, 0.5);
  border-radius: 4px;
}

.privacy-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: rgba(200, 200, 240, 0.9);
  margin: 2.5rem 0 1.25rem 0;
  font-weight: var(--font-weight-bold);
  position: relative;
  padding-left: 1rem;
}

.privacy-container h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background-color: rgba(130, 130, 200, 0.6);
  border-radius: 2px;
}

.privacy-container p {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  margin: 1rem 0;
  line-height: 1.8;
  text-align: justify;
}

.privacy-container ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  counter-reset: item;
}

.privacy-container ol > li {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  margin: 1.25rem 0;
  line-height: 1.8;
  list-style: decimal;
  list-style-position: outside;
}

.privacy-container ul {
  margin: 1rem 0;
  padding-left: 2rem;
  list-style: disc;
  list-style-position: outside;
}

.privacy-container ul li {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  color: var(--text-color-secendary);
  margin: 0.75rem 0;
  line-height: 1.7;
}

.privacy-container ul li strong {
  color: var(--text-color);
  font-weight: var(--font-weight-bold);
}

.privacy-container a {
  color: rgba(170, 170, 230, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(170, 170, 230, 0.4);
  text-underline-offset: 3px;
  font-weight: var(--font-weight-normal);
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.privacy-container a:hover {
  color: rgba(190, 190, 245, 1);
  text-decoration-color: rgba(190, 190, 245, 0.7);
}

.privacy-container a:focus {
  outline: 2px solid rgba(170, 170, 230, 0.8);
  outline-offset: 3px;
  border-radius: 3px;
  background-color: rgba(170, 170, 230, 0.1);
}

.privacy-contact {
  margin-top: 3rem !important;
  padding: 1.5rem;
  background-color: rgba(84, 84, 212, 0.06);
  border: 1px solid rgba(130, 130, 200, 0.4);
  border-radius: 8px;
  text-align: center;
  font-size: 1.05rem !important;
}

.privacy-contact strong {
  color: rgba(200, 200, 240, 0.95);
  font-weight: var(--font-weight-bold);
}

/* Responsive design for privacy policy */
@media (max-width: 768px) {
  .privacy-container {
    padding: 2rem 1.5rem;
  }

  .privacy-container h1 {
    font-size: 2rem;
  }

  .privacy-container h2 {
    font-size: 1.5rem;
  }

  .privacy-container p,
  .privacy-container ol > li,
  .privacy-container ul li {
    font-size: 0.95rem;
  }
}
/* Okno chatbota */
#chatbot {
  position: fixed;
  bottom: 0;
  right: 20px;
  width: 350px;
  height: 500px;
  background-color: var(--background-color);
  border: 1px solid var(--primary-color);
  border-radius: 10px 10px 0 0;
  display: none; 
  flex-direction: column;
  z-index: 1500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Nagłówek chatbota */
#chat-header {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

#chat-header button {
  background: none;
  border: none;
  color: var(--chat-text-color);
  font-size: 1.2rem;
  cursor: pointer;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  color: var(--chat-text-color);
}

#chat-input-container {
  display: flex;
  padding: 10px;
  gap: 10px;
}

#chat-input-container input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--chat-border-color);
  border-radius: 5px;
  background-color: var(--chat-bg);
  color: var(--chat-text-color);
}

#chat-input-container button {
  background-color: var(--chat-button-bg);
  color: var(--chat-text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#chat-input-container button:hover {
  background-color: var(--chat-button-hover);
}

/*Ikonaa*/
#chat-icon {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--text-color);
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

#chat-icon:hover {
  background-color: var(--secendary-color);
}

#chat-icon img {
  width: 55px;
  height: 55px;
}

/* Ukryj strzałkę i menu w trybie mobilnym, gdy chatbot jest aktywny */
.hidden {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* Przycisk zamknięcia w headerze */
#close-chat {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.25rem;
  cursor: pointer;
}

/* Responsywność */
@media (max-width: 768px) {
  #chatbot {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
    border-radius: 0;
  }

  #chat-icon {
    bottom: 15px;
    right: 15px;
  }
}

/* Styl dla wiadomości użytkownika */
.user-message {
  color: rgba(244, 244, 244, 0.95);
  background-color: rgba(84, 84, 212, 0.25);
  border: 1px solid rgba(84, 84, 212, 0.5);
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 10px;
  align-self: flex-end;
  box-shadow: 0px 2px 12px rgba(84, 84, 212, 0.2);
  max-width: 85%;
  word-wrap: break-word;
  line-height: 1.7;
  font-size: 0.95rem;
}

.user-message p {
  margin: 0;
  padding: 0;
}

.user-message strong {
  color: rgba(200, 200, 240, 0.95);
  font-weight: 600;
  margin-right: 0.3em;
}

/* Styl dla wiadomości chatbota */
.bot-message {
  color: var(--chat-text-color);
  background-color: rgba(84, 84, 212, 0.15);
  border: 1px solid rgba(84, 84, 212, 0.3);
  padding: 12px 15px;
  margin: 8px 0;
  border-radius: 8px;
  align-self: flex-start;
  max-width: 85%;
  line-height: 1.6;
  word-wrap: break-word;
}

.bot-message p {
  margin: 0.5em 0;
}

.bot-message p:first-child {
  margin-top: 0;
}

.bot-message p:last-child {
  margin-bottom: 0;
}

.bot-message ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
  list-style-type: disc;
}

.bot-message li {
  margin: 0.3em 0;
  padding-left: 0.3em;
}

.bot-message strong {
  color: rgba(200, 200, 240, 0.95);
  font-weight: 700;
}

.bot-message em {
  font-style: italic;
  color: rgba(240, 240, 255, 0.9);
}

.bot-message small {
  font-size: 0.85em;
  color: var(--text-color-secendary);
  opacity: 0.8;
}

/* Styl dla linków */
.chat-link {
  color: #54d4a1;
  text-decoration: none;
  font-weight: bold;
}

.chat-link:hover {
  text-decoration: underline;
}

/* Styl dla wiadomości o błędzie */
.error-message {
  color: red;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  align-self: center;
  background-color: rgba(255, 0, 0, 0.1);
}

@media (max-width: 768px) {
  /* Dostosowanie rozmieszczenia elementów w widoku mobilnym */
  #chat-icon {
    bottom: 20px;
    right: 20px;
  }

  #chatbot {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 70vh;
    max-width: 100%;
  }

  /*strzałka*/
  .scroll-to-top {
    bottom: 100px; 
  }
}

/* Efekt focus-within i hover dla okna chatbota */
#chatbot:focus-within, #chatbot:hover {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  transform: translateY(-20px);  
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efekt focus dla ikony chatbota */
#chat-icon:focus {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* Ukrywanie chatbota, dopóki nie jest aktywny */
#chatbot {
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

/* Gdy chatbot jest aktywny */
#chatbot.active {
  visibility: visible;
  opacity: 1;
}

