@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap");
:root {
    --dark: #222429;
    --ultra-dark: #1c1e22;
    --text-font: "DM Sans", sans-serif;
    --title-font: "Space Grotesk", sans-serif;
    --primary: #c6d446;
    --primary-dark: #879227;
    --primary-light: #d6e54b;
    --text-grey: #bbb;
}
/* General Reset */
body, h1, h2, p, ul, li, figure {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
*, ::after, ::before, html {
  box-sizing: border-box;
}
h1, h2, h3, h4 {
    font-family: var(--title-font);
    color: #fff;
    line-height: 1.1;
}
html {
  /* 10px */
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
    font-family: var(--text-font);
    line-height: 1.5;
    color: var(--text-grey);
    font-size: 1.7rem;
}

/* Hero Section */
.hero {   
    background: linear-gradient(to right, rgba(25, 25, 25, 1) 0%, rgba(33, 33, 33, 0.9) 30%, rgba(43, 43, 43, 0.5) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero .container {
    z-index: 2;     
}

.hero::before { 
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;  
    background: linear-gradient(to right, rgba(25, 25, 25, 1) 0%, rgba(33, 33, 33, 0.9) 30%, rgba(43, 43, 43, 0.5) 100%);
    z-index: 0;
    left: 0;
}
.hero img {
  width: 100%;
  animation: move 15s ease;
  height: 100%;
  object-fit: cover;  
  /* Add infinite to loop. */
  
  -ms-animation: move 15s ease;
  -webkit-animation: move 15s ease;
  -0-animation: move 15s ease;
  -moz-animation: move 15s ease;
  position: absolute;  
  z-index: -1;
  left: 0;
  top: 0;  
}
.hero-overlay {
    width: 28ch;
    display: flex;
    flex-direction: column;
    gap:3rem;
    align-items: flex-start;
    
}
.hero h1 {
    font-size: 6.7rem;
}
.hero h1 span {
    color: var(--primary);
}
.hero p {
    font-size: 2.1rem;
}
.btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    color: var(--dark);
    background: var(--primary);
    border: none;
    text-decoration: none;
    transition: all 0.5s ease;
    font-size: 1.7rem;
}
.btn:hover {
    background: var(--primary-dark);
    color: var(--primary-light);
}


.about h2, .services h2, .contact h2 {
    font-size: 5rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}
.service-card {
    background: var(--ultra-dark);
    padding: 4rem 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.service-card h3 {
    font-size: 2.3rem;
    margin: 1rem 0;
}
.service-card ul {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: circle;
}
.service-card li {
    margin-left: 1.4rem;
}

/* Contact Section */

.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
}
input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
}
button {
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    border: none;
    cursor: pointer;
}
button:hover {
    background: #0056b3;
}
/* Navigation Menu */
.navbar {
    position: fixed !important;
    top: 0;
    width: 100%;
    background: var(--dark);
    z-index: 1000;
    padding-block: 1.5rem !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6rem;
}
.nav-links li {
    display: inline;
}
.nav-links a {
    color: var(--text-grey);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary);
}
.nav-links a.active {
    color: var(--primary);
}

.navbar .logo {
    height: 6rem;
}
.container {
    max-width: 100%;
    width: 136rem;
    margin: 0 auto;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section {
    padding: 3rem 1.5rem;
    position: relative;
    isolation: isolate;

}

.about {
    background-color: var(--ultra-dark);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}
.about::before {
  position: absolute;
  left: 0;
  top: 30px;
  bottom: 0;
  max-width: 560px;
  width: 100%;
  content: "";    
  background-image: url(techwise-ofirmie-pattern.webp);
  background-repeat: no-repeat;
  z-index: -1;
}
.about .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    gap: 3rem;
    align-self: center;
}
.about .inner-column {
  position: relative;
}
.about .image-1 {
  position: relative;
  max-width: 400px;
  margin-bottom: 0px;
}
.about .image-1::before {
  position: absolute;
  right: -40px;
  top: 0;
  height: 110px;
  width: 20px;
  background-color: var(--primary);
  content: "";
}
.about .image-1 img {
  width: 100%;
}
.about .image-2 {
  position: absolute;
  right: 75px;
  bottom: 0;
  margin-bottom: 0;
}
.about .image-2 img {
  width: 100%;
  max-width: 300px;
  box-shadow: -6px 6px 15px rgba(0,0,0,0.75);
}

.subtitle {
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;    
  color: var(--primary);
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: .5rem;
}
.subtitle::before {
  position: absolute;
  left: 100%;
  top: 50%;
  height: 2px;
  width: 40px;
  margin-left: 10px;
  margin-top: -1px;
  background: var(--primary);
  content: "";
}
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    font-size: 1.7rem;
    line-height: 1.7;
    margin-top: 3rem;
}

.services::before {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-image: url(techwise-oferta-pattern.jpg);
  content: "";
  z-index: -1;
}
.services {
    background-color: #2d2e33;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
}
.services .container {
    align-self: center;
}

.svg-wrapper {
    background-color: var(--primary);
    width: 8rem;
    height: 8rem;
    padding: 1rem;
}

.contact {
    background-color: var(--ultra-dark);
    min-height: 100vh;
    display: flex;
}
.form-bg {
    background-image: url(techwise-contact.jpg);
    position: absolute;
  right: 15px;
  left: -375px;
  top: 0;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;  
  z-index: -1;  
}
.form-bg::before {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: var(--ultra-dark);
  opacity: 0.8;
  content: "";
}

.contact .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(32rem, 1fr));
    align-self: center;
    gap:5rem;
}
.form-wrapper {
    padding: 5rem;
    background-color: var(--dark);
}

.contact a {
    text-decoration: none;
    color: #fff;
}
.contact-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
}
footer {
    background-color: #2d2e33;
}

@media (max-width: 600px) {
    .about h2, .services h2, .contact h2 {
        font-size: 4.1rem;
    }
    .form-wrapper {
        padding: 1.5rem;
        background-color: var(--dark);
    }
    .navbar .container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }  
    .nav-links {
        gap: 3rem;
    }  
    .about .image-2 {
      display: none;
    }
    .about .image-1 {
      
      max-width: 100%;
    }    
    .about .image-1 img {
      aspect-ratio: 1 / 1;
      width: 100%;
    }
    .about .image-1::before {
      content: none;
    }   
    .contact-wrapper {
        order: -1;
    }      
}

@-webkit-keyframes move {
  0% {
    -webkit-transform-origin: bottom left;
    -moz-transform-origin: bottom left;
    -ms-transform-origin: bottom left;
    -o-transform-origin: bottom left;
    transform-origin: bottom left;
    transform: scale(1.0);
    -ms-transform: scale(1.0);
    /* IE 9 */
    
    -webkit-transform: scale(1.0);
    /* Safari and Chrome */
    
    -o-transform: scale(1.0);
    /* Opera */
    
    -moz-transform: scale(1.0);
    /* Firefox */
  }
  100% {
    transform: scale(1.1);
    -ms-transform: scale(1.1);
    /* IE 9 */
    
    -webkit-transform: scale(1.1);
    /* Safari and Chrome */
    
    -o-transform: scale(1.1);
    /* Opera */
    
    -moz-transform: scale(1.1);
    /* Firefox */
  }
}