/* Reset and base styles */
* {
    padding: 0;
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #0f0f0f; /* Darker background */
    color: #ffffff; /* main text white */
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url(../img/background.jpg);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* --- NAV / HEADER --- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 8%;
  position: relative;
  z-index: 20;
}

.logo {
  color: #ffffff;
  font-size: 35px;
  letter-spacing: 1px;
  cursor: pointer;
}

.logo span { color: #3385ff; }

/* Hide the default checkbox */
#menu-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* Hamburger icon */
.menu-icon {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 8px;
}
.menu-icon span {
  height: 3px;
  width: 26px;
  background: #ffffff; /* visible on dark bg */
  transition: transform .3s ease, opacity .2s ease, width .3s ease;
}

/* Desktop menu */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}
nav ul li a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  text-transform: capitalize;
  transition: color .25s ease;
}
nav ul li a:hover,
nav ul li a:focus-visible { color: #3385ff; outline: none; }
.content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
}

h1 {
    color: #ffffff;
    font-size: 75px;
}

h1 span {
    color: #3385ff;
}

h3 {
    color: #3385ff;
    font-size: 25px;
    margin-bottom: 30px;
}

h4 {
    color: #e0e0e0;
    letter-spacing: 2px;
    font-size: 20px;
}

/* Newsletter Input */
.newslatter form {
    width: 380px;
    max-width: 100%;
    position: relative;
}

.newslatter form input:first-child {
    width: 100%;
    padding: 14px 130px 14px 15px;
    border: 2px solid #3385ff;
    border-radius: 30px;
    outline: none;
    background-color: #1a1a1a;
    color: #ffffff;
}

.newslatter form input:last-child {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 10px 30px;
    border-radius: 30px;
    background-color: #3385ff;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0px 0px 5px #000, 0px 0px 15px #3385ff;
    transition: transform 0.3s, background-color 0.3s;
}

.newslatter form input:last-child:hover {
    transform: scale(1.1);
    background-color: transparent;
    border: 2px solid #3385ff;
}

/* About Section */
.about {
    width: 100%;
    padding: 100px 0;
    background-color: #1a1a1a; /* Slightly lighter dark */
}

.main {
    width: 1130px;
    max-width: 95%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

.about-text {
    max-width: 600px;
}

.about-text h2 {
    color: #ffffff;
    font-size: 60px;
    text-align: center;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* Numbered Lists */
.about-text ol {
    list-style-type: decimal;
    padding-left: 25px;
    margin-bottom: 30px;
    color: #ffffff;
}

.about-text li {
    margin-bottom: 12px;
}

/* Buttons */
button {
    background-color: #3385ff;
    color: white;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 13px 30px;
    border-radius: 30px;
    transition: 0.4s;
    cursor: pointer;
}

button:hover {
    background-color: transparent;
    border: 2px solid #3385ff;
}

/* Service Section */
.service {
    background: #0f0f0f;
    width: 100%;
    padding: 100px 0;
}

.title h2 {
    color: #ffffff;
    font-size: 60px;
    text-align: center;
    margin-bottom: 50px;
}

.box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card {
    height: 365px;
    width: 335px;
    padding: 20px 35px;
    background: #1a1a1a;
    border-radius: 20px;
    margin: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 30px rgba(255,51,102,0.5);
}

.card i {
    font-size: 50px;
    margin: 25px 0;
    color: #3385ff;
}

.card h5 {
    color: #ffffff;
    font-size: 23px;
    margin-bottom: 15px;
}

.card p {
    color: #e0e0e0;
    font-size: 16px;
    line-height: 27px;
}

/* Contact Section */
.contact-me {
    width: 100%;
    height: 290px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-me p {
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 25px;
}

.contact-me .button-two {
    background-color: #3385ff;
    color: white;
    border: 2px solid transparent;
    font-weight: bold;
    padding: 13px 30px;
    border-radius: 30px;
    transition: 0.4s;
}

.contact-me .button-two:hover {
    background-color: transparent;
    border: 2px solid #3385ff;
    cursor: pointer;
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    height: 25px;
    background: #262626;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer .end {
    color: #f8f8f8;
    font-size: 14px;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .content h1 { font-size: 55px; }
  .content h3 { font-size: 22px; }
  .about-text h2, .title h2 { font-size: 45px; }
}

@media (max-width: 768px) {
  /* Center hero text on mobile (optional) */
  .hero { text-align: center; }
  .content {
    /* remove the horizontal offset that breaks layout */
    left: auto;                 /* or 0 */
    transform: none;
    margin: 0 auto;             /* keeps it centered */
  }
.content h1 {
    font-size: 40px;       /* was 75px; adjust as you like */
  }
  .content h3 {
    font-size: 18px;       /* was 25px */
  }
  .content h4 {
    font-size: 16px;       /* was 20px */
  }
  .about-text h2{
	font-size: 40px;
  }
  .menu-icon { display: flex; }

  /* Mobile menu panel (dark theme) */
  nav ul {
    position: absolute;
    top: 70px;
    right: 2%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(51,133,255,0.25);
    border-radius: 14px;
    width: min(200px, 80vw);
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
    display: none; /* hidden by default */
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
  }

  nav ul li { margin: 0; }
  nav ul li a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
  }
  nav ul li a:hover,
  nav ul li a:focus-visible {
    background: rgba(51,133,255,0.12);
    color: #fff;
  }

  /* Show menu when checkbox is checked */
  #menu-toggle:checked + .menu-icon + ul { display: flex; }

  /* Hamburger -> X animation */
  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* --- SMALL UX/A11Y IMPROVEMENTS --- */
.menu-icon:focus-visible { outline: 2px solid #3385ff; outline-offset: 2px; }
nav ul li a:focus-visible { outline: 2px solid #3385ff; outline-offset: 2px; }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .menu-icon span { transition: none; }
  nav ul li a { transition: none; }
}
