:root {
  --primary-color: #41a2d5;
  --secondary-color: #4f3193;
  --tertiary-color: #4cade0;
}

/* Base Resets */
.absolute {
  position: absolute;
  width: 100%;
  height: auto;
}
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}
.open-sans {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}
.pacifico-regular {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-style: normal;
}
html, body, div, span, object, iframe, h1, h2, h3, img, fieldset, form, label, legend, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}
html {
  font-family: "Open Sans", sans-serif;
  overflow-y: scroll;
}
input[type="hidden"] {
  display: none;
}
input, select {
  vertical-align: middle;
}
button {
  width: auto;
  overflow: visible;
}
table {
  border: 0;
  padding: 0;
  border-spacing: 0;
}
h1 {
  font-size: 2em;
}

/* Scroll Anchors */
.anchor-target-speed-6{
  scroll-margin-top: 200px;
}
.anchor-target-speed-4{
  scroll-margin-top: 400px;
}
.anchor-target-speed-2{
  scroll-margin-top: 375px;
}
.anchor-target-speed-1{
  scroll-margin-top: 300px;
}

/* Header */
.header {
  background-color: #3eaddd;
  height: 191px;
  background-image: linear-gradient(#4f2e91,#36c3ec);
  z-index: 300;
}
.headerWave, .footerWave {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1921 146.48" preserveAspectRatio="none"><path fill="%23fff" fill-rule="evenodd" d="M0,88S188,6,536,6c294,0,476,56,880,56,284,0,505-62,505-62V146.48L0,146.12Z"/></svg>');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  width: 100%;
  height: 146px;
  position: relative;
  top: 6.3em;
  z-index: 99;
  display: block;
}
.header-contact-info {
  display: block;
  padding: 0 15px 0 0;
  position: absolute;
  right: 0;
  top: 60px;
  color: #FFF;
}
.header-contact-info a {
  color: #FFF;
  text-align: right;
  font-size: 1em;
  font-weight: 700;
  padding: 0 auto 0 auto;
  margin: -86px 0 0 0;
  text-decoration: none;
  font-style: italic;
  opacity: calc(0.9);
  z-index: 0;
}
.header-contact-info svg {
  margin-top: 0;
}
.mainLogo {
  font-size: 4.5em;
  font-weight: 800;
  position: absolute;
  top: 0px;
  color: #FFF;
  margin: -3% 0 0 1%;
  text-decoration: none;
  transform: rotate(-.07rad);
}
.mainLogo SPAN:first-of-type {
  font-size: 1.5em;
  font-weight: 400;
  position: relative;
  bottom: -.2em;
  letter-spacing: -.05em;
}
.mainLogo SPAN:last-of-type {
  font-size: .5em;
  font-weight: 400;
  color: rgba(89, 177, 223, 1);
}

/* Footer */
.footer {
  color: #FFF;
  text-align: center;
  padding: 126px 0 0 0;
  margin: -172px 0 0 0;
  width: 100%;
  background-color: #4f2e91;
  height: 110px;
  background-image: linear-gradient(#36c3ec,#4f2e91);
}
.footer p a {
  color: #FFF;
  text-decoration: none;
}
.footerWave {
  top: -1.7em;
  transform: rotate(180deg);
  margin: 10% 0 0 0;
  z-index: 20;
}

/* Main Container */
.mainContainer {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: auto;
  margin: 0 auto;
  z-index: 50;
  background-size: cover;
  background-position: center;
}
.mainContainer.home {
  background-image: url('../images/colosseum-bg-1.jpg');
  min-height: 1350px;
}
.mainContainer.web-design-developmnent {
  background-image: url('../images/web-design-developmnent-bg-1.jpg');
  min-height: 1350px;  
}
.underMenuCurve {
  width: 100%;
  height: auto;
  top: 0;
}

/* Sections */
.heroBg {
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  margin: 2% auto 5% auto;
  height: auto;
  width: 72%;
  z-index: 200;
  align-items: center;
}
section {
  flex-wrap: nowrap;
  width: 100%;
}
.contentSection {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  align-content: center;
  max-width: 1440px;
  z-index: 50;
  margin: 0 auto;
}
.contentSection:nth-of-type(odd) {
  flex-direction: row-reverse;
}
.heroBg .sectionImage {
  padding: 0 2% 0 0;
}
.contentSection:nth-of-type(even) .sectionImage {
  padding: 0 0 0 2%;
}
.contentSection:nth-of-type(odd) .sectionImage {
  padding: 0 2% 0 0;
}
.sectionImage {
  width: 38%;
  height: auto;
  border-radius: 8px;
}
.sectionImage IMG {
  width: 100%;
  margin: 0 0 5% 0;
}
.sectionImage.circle IMG {
  width: 100%;
  border-radius: 50%;
}
.sectionImage.rounded IMG {
  width: 100%;
  border-radius: 10px;
}
.sectionCopy {
  margin: 0;
  width: 68%;
  height: auto;
  border-radius: 8px;
}
.sectionBullets {
  margin: 0;
  width: 24%;
  height: auto;
  border-radius: 8px;
}
.sectionCopy A {
  text-decoration: underline;
  font-weight: 700;
  color: #4e3193;
}
A.primaryButton, A.primaryButton:visited {
  color: #FFFFFF;
  background: linear-gradient(#667eea 0%, #764ba2 100%);
  transition: transform 0.2s, box-shadow 0.2s;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  display: block;
  margin: 4px 0;
  width: 190px;
}
A.primaryButton:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}
.sectionCopy ul {
  list-style-type: disc;
  margin: 0 0 22px 0;
  padding: 0;
  position: relative;
  width: 300px;
}
.sectionCopy ul li {
  margin-bottom: .5em;
  list-style-type: disc;
  margin-left: 20px;
}

/* Navigation Menu */
#menu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  position: absolute;
  width: auto;
  right: 0px;
  top: 0px;
  z-index: 500;
  transition: all 0.3s ease;
}
#menu ul {
  padding-inline-start: 0px;
}
#menu > li {
  display: inline-block;
  float: left;
  width: auto;
  min-width: 282px;
}
#menu li a {
  font-size: 1em;
  letter-spacing: -.9px;
  font-weight: 700;
  display: block;
  min-width: 140px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  color: #FFFFFF;
  background: #41a2d5;
  text-decoration: none;
  border-right: 1px solid var(--tertiary-color);
}
#menu li:hover a {
  background: #36c3ec;
}
#menu li:hover ul a {
  background: #2b8abd;
  color: #FFFFFF;
  height: 40px;
  line-height: 40px;
}
#menu li ul a {
  border-bottom: 1px solid #36c3ec;
}
#menu li:hover ul a:hover {
  background: #084d72;
  color: #FFFFFF;
}
#menu li.menu-spacer {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  background: #41a2d5;
  border-bottom-left-radius: 20px;
  height: 40px;
}
#menu li:hover ul li:last-child a {
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}
#menu li ul {
  display: none;
}
#menu li ul li {
  display: block;
  float: none;
}
#menu li ul li a {
  width: auto;
  min-width: 228px;
  padding: 5px 20px;
}
#menu li ul li:last-of-type {
  border-bottom-right-radius: 8px;
  border-bottom-left-radius: 8px;
}
#menu li a:hover + .hidden, #menu .hidden:hover {
  display: block;
  padding: 0;
}
#menu li a span {
  position: relative;
  top: 1em;
  left: 8px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #FFF;
}
#menu li.header-contact-info {
  display: none;
}

/* Hamburger Menu */
.showMenu {
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  text-decoration: none;
  height: 25px;
  color: #FFFFFF;
  text-align: right;
  padding: 10px 0;
  display: none;
  cursor: pointer;
}
.hamburgerMenu {
  position: absolute;
  top: 15px;
  right: 5px;
  transition: transform 0.3s ease;
}
.hamburgerMenu span {
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  right: 8px;
  float: right;
  clear: both;
  background: #FFF;
  border-radius: 3px;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Menu States (JavaScript controlled) */
#menu.menu-open {
  display: block;
  margin-top: 8px;
}
#menu .hidden.submenu-open {
  display: block !important;
}

/* Contact Form */
.formContainer {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  z-index: 200;
}
h1 {
  color: #333;
  margin-bottom: 10px;
  font-size: 28px;
  z-index: 300;
  position: relative;
  padding: 2% 0 0 4%;
}
.subtitle {
  color: #666;
  margin-bottom: 30px;
}
.message {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}
.message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
}
input[type="text"],
input[type="email"],
textarea {
  width: 93%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
}
textarea {
  resize: vertical;
  min-height: 80px;
}
.honeypot {
  position: absolute;
  left: -9999px;
}
button {
  background: linear-gradient(#667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0 auto;
  display: block;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}
button:active {
  transform: translateY(0);
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

/* Large Screens (2560px+) */
@media screen and (min-width: 2560px) {
  .mainContainer.home {
      min-height: 2640px;
  }
  .headerWave {
    top: 3.3em;
  }
  .mainLogo {
    margin: -1.5% 0 0 1%;
  }
  .header-contact-info {
    padding: 0 350px 0 0;
    top: 50px;
  }
  .heroBg {
    max-width: 2080px;
  }
  .contentSection {
    margin: 0 auto 1% auto;
  }
}

/* Tablet (1024px and below) */
@media screen and (max-width: 1024px) {
  .header {
    height: 130px;
  }
  .mainLogo {
    width: 180px;
  }
  .headerWave {
    top: 7.75em;
  }
}

/* Small Tablet/Large Phone (760px and below) */
@media screen and (max-width: 760px) {
  .header {
    height: 93px;
  }
  .headerWave {
    display: none;
  }
  #menu {
    top: 40px;
    position: static;
    display: none;
  }
  #menu li {
    margin-bottom: 1px;
  }
  #menu li, #menu li a {
    width: 100%;
  }
  .showMenu {
    display: block;
    height: 65px;
    margin-top: -33px;
  }
  #menu li a:hover + .hidden, 
  #menu .hidden:hover {
    display: none; /* Disable hover on mobile */
  }
  
  #menu .hidden.submenu-open {
    display: block !important;
  }
  /* Hamburger animation when menu is open */
  #menu.menu-open ~ .showMenu .hamburgerMenu span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  #menu.menu-open ~ .showMenu .hamburgerMenu span:nth-child(2) {
    opacity: 0;
  }
  #menu.menu-open ~ .showMenu .hamburgerMenu span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Mobile (430px and below) */
@media only screen and (max-width:430px), 
       only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3), 
       only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3), 
       only screen and (device-width: 430px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3), 
       only screen and (device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3){

  .header-contact-info {
    display: none;
  }
  #menu li.header-contact-info {
    display: block;
    padding: 0;
    position: relative;
    color: #FFF;
    text-align: center;
    top: 57px;
    margin: 0 0 10% 0;
  }
  #menu li.menu-spacer {
    display: none;
  }
  .mainContainer {
    flex-wrap: wrap;
    width: 90%;
    padding: 0 5%;
  }
  .mainLogo {
    font-size: 2.5em;
    font-weight: 400;
    transform: rotate(0);
    padding: 10px 0 10px 0;
  }
  .mainLogo SPAN:first-of-type {
    font-weight: 400;
    font-size: 1em;
    bottom: 0em;
  }
  .mainLogo SPAN:last-of-type {
    font-size: .5em;
    color: rgba(164, 224, 255, 1);
  }
  .footer {
    height: 130px;
    padding: 52px 0 0 0;
    margin: -76px 0 0 0;
  }
  .footerWave {
    width: 100%;
    height: 44px;
    top: -2em;
    margin: 0 0 -70px 0;
  }
  .contentSection:nth-of-type(odd), 
  .contentSection:nth-of-type(even) {
    flex-direction: column-reverse;
  }
  .contentSection {
    flex-wrap: wrap;
  }
  .heroBg {
    flex-wrap: wrap;
    width: 98%;
    margin: 5% auto;
  }
  .heroBg .sectionImage, 
  .contentSection .sectionImage {
    width: 60%;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 auto;
  }
  .sectionCopy {
    width: 100%;
    margin: 0 auto 5% auto;
  }
  .sectionBullets {
    width: 100%;
  }
  h1 {
    font-size: 1.5em;
    text-align: center;
  }
  .contentSection:nth-of-type(even) .sectionImage {
    padding: 0;
  }
  .contentSection:nth-of-type(odd) .sectionImage {
    padding: 0;
  }
  A.primaryButton {
    margin: 4px auto;
  }
  .formContainer {
    margin: 8% auto 15% auto;
  }
}