@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titillium-web-400.ttf") format("truetype");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/titillium-web-600.ttf") format("truetype");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/titillium-web-700.ttf") format("truetype");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/titillium-web-900.ttf") format("truetype");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #004ce5;
  --color-primary-hover: #003fbd;
  --color-dark: #02033a;
  --color-text: #02033a;
  --color-white: #ffffff;
  --color-accent: #03ddaa;
  --font-family: "Titillium Web", sans-serif;
}

html {
  font-size: 125%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-white);
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.2em;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3em;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Layout */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* Header */

header {
  background-color: var(--color-white);
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  min-height: 80px;
}

.logo img {
  height: 64px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 400;
}

/* Mobile Menu Toggle */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-toggle .close-icon {
  display: none;
}

.mobile-menu-toggle.active .menu-icon {
  display: none;
}

.mobile-menu-toggle.active .close-icon {
  display: block;
}

/* Mobile Menu Overlay */

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Sidebar */

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 100vw;
  height: auto;
  background-color: var(--color-white);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eaeaea;
}

.mobile-menu-header .logo img {
  height: 38px;
  width: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  align-items: stretch;
  list-style: none;
}

.mobile-menu li {
  border-bottom: 1px solid #eaeaea;
}

.mobile-menu li:last-child {
  border-bottom: none;
}

.mobile-menu > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
}

.mobile-menu .btn {
  width: calc(100% - 40px);
  margin: 20px;
  text-align: center;
  color: var(--color-white) !important;
}

.mobile-menu .btn:hover {
  color: var(--color-white) !important;
}

.mobile-menu .language-switcher {
  position: static;
}

.mobile-menu .language-switcher .dropdown {
  position: static;
  display: none;
  box-shadow: none;
  border: none;
  border-top: 1px solid #eaeaea;
  border-radius: 0;
  margin-top: 0;
}

.mobile-menu .language-switcher.active .dropdown {
  display: block;
}

.mobile-menu .language-switcher > a {
  padding: 15px 20px;
}

.mobile-menu .language-switcher .dropdown a {
  padding: 12px 20px 12px 40px;
}

.mobile-menu .nav-dropdown {
  position: static;
}

.mobile-menu .nav-dropdown .dropdown {
  position: static;
  display: none;
  box-shadow: none;
  border: none;
  border-top: 1px solid #eaeaea;
  border-radius: 0;
  margin-top: 0;
}

.mobile-menu .nav-dropdown.active .dropdown {
  display: block;
}

.mobile-menu .nav-dropdown .dropdown a {
  padding: 12px 20px 12px 40px;
}

/* Language Switcher */

.language-switcher {
  position: relative;
}

.nav-dropdown {
  position: relative;
}

/* Ensure dropdown stays open when moving mouse from button to dropdown */

.language-switcher:hover .dropdown {
  pointer-events: auto;
}

.language-switcher > a {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: transparent;
  color: var(--color-text);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.language-switcher > a:hover {
  background-color: transparent;
  border-color: transparent;
}

.language-switcher > a .language-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown .arrow {
  width: 12px;
  height: 8px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-dropdown.active .arrow {
  transform: rotate(180deg);
}

/* Ensure dropdown stays open when moving mouse from button to dropdown */

.language-switcher:hover .dropdown {
  pointer-events: auto;
}

.language-switcher .dropdown,
.nav-dropdown .dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-white);
  border: 1px solid #eaeaea;
  border-radius: 8px;
  box-shadow: 0px 4px 10px -2px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  display: none;
  z-index: 1000;
  overflow: visible;
  margin-top: 5px;
}

.language-switcher .dropdown {
  min-width: 230px;
  right: -70px;
}

.nav-dropdown .dropdown {
  min-width: 235px;
  left: 0;
  right: auto;
}

.language-switcher:hover .dropdown,
.language-switcher.active .dropdown,
.nav-dropdown:hover .dropdown,
.nav-dropdown.active .dropdown {
  display: block;
}

/* Create invisible bridge between button and dropdown */

.language-switcher .dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -10px;
  right: -10px;
  height: 5px;
  background: transparent;
}

.nav-dropdown .dropdown::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -10px;
  right: -10px;
  height: 5px;
  background: transparent;
}

/* Keep dropdown open when hovering over it */

.language-switcher:hover .dropdown,
.language-switcher .dropdown:hover,
.nav-dropdown:hover .dropdown,
.nav-dropdown .dropdown:hover {
  display: block !important;
}

.language-switcher .dropdown ul,
.nav-dropdown .dropdown ul {
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.language-switcher .dropdown ul li,
.nav-dropdown .dropdown ul li {
  text-align: start;
}

.language-switcher .dropdown li,
.nav-dropdown .dropdown li {
  border-bottom: 1px solid #eaeaea;
  width: 100%;
  text-align: center;
}

.nav-dropdown .dropdown li:hover,
.language-switcher .dropdown li:hover {
  background-color: #f7f7ff;
}

.language-switcher .dropdown li:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.language-switcher .dropdown li:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.language-switcher .dropdown a,
.nav-dropdown .dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.language-switcher .dropdown a:hover,
.nav-dropdown .dropdown a:hover {
  background-color: transparent;
  color: var(--color-text);
}

.language-switcher .dropdown a.current {
  background-color: transparent;
  /*             font-weight: 600; */
}

.language-switcher .arrow {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.language-switcher:hover .arrow,
.language-switcher.active .arrow {
  transform: rotate(180deg);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 17px 25px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: capitalize;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.header-content .btn {
  padding: 6px 20px;
  font-size: 0.8rem;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

/* Hero Section */

.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1d4a 100%);
  color: var(--color-white);
  padding: 65px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
}

.hero-content div:nth-child(1) {
  width: 90%;
}

.hero-content div:nth-child(2) {
  width: 100%;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 25px;
}

.hero h1 mark {
  background-color: transparent;
  color: var(--color-accent);
}

.hero p {
  font-size: 1.2rem;
  font-weight: 600;
  /*             margin-bottom: 25px; */
  color: var(--color-white);
}

.hero-features {
  list-style: none;
  margin: 30px 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  color: var(--color-white);
  font-size: 16px;
}

.hero-features svg {
  width: 16px;
  height: 16px;
  fill: var(--color-accent);
  flex-shrink: 0;
}

.support-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hero-image {
  text-align: center;
}

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

/* Features Grid */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  box-shadow: 0 0 #00000070;
  padding-top: 40px;
  padding-bottom: 40px;
  padding-left: 40px;
  padding-right: 40px;
  overflow: visible;
  order: initial;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-color: inherit;
  background-color: #f7f7ff;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  row-gap: 20px;
  column-gap: 20px;
}

.feature-card img {
  width: 35px;
  height: 35px;
  margin-bottom: 25px;
}

.feature-card h3 {
  margin-bottom: 25px;
}

/* Two Column Layout */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-anony .two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: baseline;
}

.section-anony .two-column div {
  background-color: #f7f7ff;
  border-radius: 30px;
  min-height: 410px;
}

.two-column img {
  width: 100%;
  height: auto;
}

.section-anony .two-column div a {
  border: 1px #004ce5 solid;
  background-color: transparent;
  color: #004ce5;
}

/* IP Lookup Section */

#about {
  background-color: #f7f7ff;
}

.ip-lookup-section {
  margin-top: 80px;
  margin-bottom: 80px;
}

.ip-lookup-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
}

.ip-lookup-main-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin-bottom: 60px;
}

/* Left: IP Card with Devices */

.ip-lookup-left {
  position: relative;
  min-height: 200px;
  max-width: 415px;
  margin-left: 5rem;
}

.ip-lookup-card {
  background-color: rgba(2, 3, 59, 0.94);
  border-radius: 16px;
  padding-top: 50px;
  padding-bottom: 70px;
  padding-left: 88px;
  padding-right: 50px;
  position: relative;
  z-index: 3;
  margin-bottom: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ip-lookup-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ip-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ip-label {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
}

.ip-value {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-top: -15px;
}

.ip-desktop-image {
  border-radius: 12px;
  position: absolute;
  top: 100px;
  right: -65px;
  width: 520px;
  height: auto;
  z-index: 1;
}

.ip-laptop-image {
  border-radius: 12px;
  position: relative;
  bottom: 40px;
  left: -155px;
  width: 380px;
  height: auto;
  z-index: 3;
}

.ip-lookup-tagline {
  text-align: center;
  color: var(--color-dark);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  position: relative;
  z-index: 4;
  margin-top: -25px;
}

/* Right: Privacy Features Accordion */

.ip-lookup-right {
  position: relative;
}

.ip-privacy-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 60px 90px;
  border: 1px solid #000000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.ip-privacy-item {
  border-bottom: 1px solid #000000;
}

.ip-privacy-item:last-child {
  border-bottom: none;
}

.ip-privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  cursor: pointer;
}

.ip-privacy-item:not(:first-child) .ip-privacy-header {
  padding: 1rem 0;
}

.ip-privacy-header:hover {
  background-color: transparent;
}

.ip-privacy-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.ip-privacy-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-text);
  position: relative;
}

.ip-privacy-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ip-privacy-icon .icon-up,
.ip-privacy-icon .icon-down {
  position: absolute;
  width: 24px;
  height: 24px;
}

.ip-privacy-item.active .ip-privacy-icon .icon-up {
  display: block !important;
}

.ip-privacy-item.active .ip-privacy-icon .icon-down {
  display: none !important;
}

.ip-privacy-item:not(.active) .ip-privacy-icon .icon-up {
  display: none !important;
}

.ip-privacy-item:not(.active) .ip-privacy-icon .icon-down {
  display: block !important;
}

.ip-privacy-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 35px;
}

.ip-privacy-item.active .ip-privacy-content {
  max-height: 500px;
  padding: 0 0 1rem;
}

.ip-privacy-item:not(:first-child).active .ip-privacy-content {
  padding: 0 0 1rem;
}

.ip-privacy-content p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.ip-lookup-button {
  display: inline-block;
  padding: 16px 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.ip-lookup-button:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

/* Banner*/

.banner-section {
  max-width: 1240px;
  padding: 0 20px;
  margin: 0 auto;
}

.banner-container {
  box-shadow: 0 0 #00000070;
  padding: 4rem;
  overflow: visible;
  order: initial;
  border-radius: 20px;
  background-color: #02033a;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  row-gap: 20px;
  column-gap: 20px;
}

.banner-container > div {
  display: flex;
  align-items: anchor-center;
}

.banner-container > div > div {
  display: flex;
  flex-direction: column;
}

.banner-container img {
  width: 45%;
  height: auto;
  margin-right: 1.5rem;
}

/* FAQ Section */

#faq {
  background-color: #f7f7ff;
  margin-top: 5rem;
  padding-bottom: 8rem;
}

.faq-container {
  max-width: 1240px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #d2d2d2;
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 24px;
}

.faq-answer p {
  color: #02033a;
  margin-bottom: 0;
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-text);
  position: relative;
  flex-shrink: 0;
}

.faq-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.faq-icon .icon-up,
.faq-icon .icon-down {
  position: absolute;
  width: 24px;
  height: 24px;
}

.faq-item.active .faq-icon .icon-up {
  display: block !important;
}

.faq-item.active .faq-icon .icon-down {
  display: none !important;
}

.faq-item:not(.active) .faq-icon .icon-up {
  display: none !important;
}

.faq-item:not(.active) .faq-icon .icon-down {
  display: block !important;
}

.faq-answer {
  display: none;
  padding-top: 15px;
  color: #666;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding-top 0.3s ease;
}

.faq-item.active .faq-answer {
  display: block;
  max-height: 1000px;
  padding-top: 15px;
}

/* Footer */

footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 60px 0 30px;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.footer-links-container {
  display: flex;
  gap: 50px;
  align-items: end;
}

.footer-icons {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logo img {
  width: auto;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-white);
  font-size: 16px;
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid #d2d2d2;
  font-size: 14px;
}

.footer-bottom p {
  max-width: 1240px;
  margin: 0 auto;
}

/* Responsive */

@media (max-width: 1100px) {
  nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .mobile-menu ul li:nth-child(6) a {
    display: flex;
    justify-content: center;
  }

  .header-content {
    position: relative;
  }

  .btn:nth-child(1) {
    padding: 16px 27px;
  }

  .banner-container {
    padding: 1.5rem;
  }

  .banner-container > div {
    flex-direction: column;
  }

  .banner-container img {
    margin-right: 0;
    margin-bottom: 2rem;
    width: 100%;
  }

  .footer-links-container {
    flex-direction: column;
    gap: 0;
    align-items: end;
    text-align: end;
  }
}

@media (max-width: 1062px) {
  .ip-lookup-main-row {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ip-lookup-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    margin-left: 0;
  }

  .ip-desktop-image {
    right: 0;
  }

  .hero-content,
  .two-column {
    grid-template-columns: 1fr;
  }

  .section-anony .two-column {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .ip-lookup-content {
    padding: 0;
  }

  .ip-lookup-card {
    padding-top: 1.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  .ip-desktop-image {
    display: none;
  }

  .ip-laptop-image {
    width: 90%;
    left: 0;
  }

  .ip-privacy-card {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .support-container {
    margin-bottom: 2rem;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links-container {
    align-items: self-start;
    text-align: start;
  }
}

@media (max-width: 544px) {
  html {
    font-size: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Skip Link */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
