:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --bg-yellow: #F6F6E8;
    --sb-yellow: #F5E8B7;
    --tree-green: #1DA373;
    --mocha: #8B6F47;
    --sandstone: #D3CBB9;
    --purple: #6800a5;
}

.moderustic-moderustic {
    font-family: "Moderustic", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }


@font-face {
    font-family: 'Varela Round';
    src: url('fonts/varela-round/VarelaRound-Regular.otf') format('opentype'),
         url("fonts/varela-round/VarelaRound-Regular.woff2") format("woff2"),
         url("fonts/varela-round/VarelaRound-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unica One';
    src: url('fonts/unica-one/UnicaOne-Regular.ttf') format('truetype'),
         url("fonts/unica-one/UnicaOne-Regular.woff2") format("woff2"),
         url("fonts/unica-one/UnicaOne-Regular.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: rgb(245,246,250);
    background: linear-gradient(180deg, rgba(245,246,250,1) 0%, rgba(246,246,232,1) 25%, rgba(245,232,183,1) 63%, rgba(139, 111, 71, 0.637) 96%, rgba(211,203,185,1) 98%);
    overflow-x: hidden;
}

#particles-js{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.side-containers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.particles-side {
    width: calc((100% - min(100%, 1200px)) / 2);
    height: 100%;
}


header {
    background-image: url('imgs/navbackground-blue.jpg');
    background-size: cover;  /* Changed from 100% to cover */
    background-position: center;  /* Ensures better image positioning */ 
    box-shadow: 
        0 2px 10px rgba(0,0,0,0.1),
        0 40px 20px rgba(0,0,0,0.05); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 5px solid rgba(255, 255, 255, 0.1);  /* Subtle border */
    backdrop-filter: blur(5px);  /* Adds a slight blur effect */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    padding: 1rem 5%;  /* Unified padding */
    background: rgba(255, 255, 255, 0.05);  /* Subtle background */
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);  /* Adds depth to logo text */
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 2rem;
    transition: all 0.3s ease;  /* Smooth transition for all changes */
    position: relative;
    padding: 0.5rem 0;  /* Increased padding */
    font-weight: bold;  /* Slightly bolder text */
    text-shadow: 0px 2px 3px rgb(255, 255, 255);  /* Subtle text shadow */
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

section {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: inherit;
    transform: skewY(-3deg);
    z-index: -4;
}

.main-content{
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero {
    height: 81.5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    padding-bottom: 0px;
    clip-path: polygon(50% 100%, 100% 70%, 100% 0, 0 0, 0 70%);
    overflow: hidden;
    width: 100%; /* Ensure the section spans the full viewport width */
    max-width: none; /* Remove the max-width constraint for this section */
}

#hero-image {
    padding-top: 0.5%;
    position: fixed;
    top: 6%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 75vh;
    max-width: 850px;
    z-index: -1;
}

h1, h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    text-align: center;
    font-family: 'moderustic', 'Arial Narrow', Arial, sans-serif;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

p{
    color: #1F44A0;
}

.infofocus-title{
    padding-left: 24px;
    line-height: 1;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
}

.infofocus-title h1{
    display: block;
    font-size: clamp(50px, 10vw, 125px);
    text-align: center;
    font-family: "Varela Round", 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 10px;
    font-weight: 900;
    text-shadow: 2px 0px 3px #1F44A0;
    max-width: 100%;
}

.infofocus-title h2{
    font-size: clamp(10px, 2vw, 60px);
    text-align: center;
    font-family: 'Unica One', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 31px;
    font-weight: 200;
    text-shadow: 1px 0px 5px #1DA373;
}

.info-border{
    background-color: var(--sandstone);
    display: flex;
    width: max-content;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-color: var(--mocha);
    border-width: 2px;
    border-radius: 20px;
    margin: 0 auto;
    padding: 0px;
    max-width: 100%;
}

#about{
    display: flex;
    padding: 10px;
    border-radius: 20px;
    margin-top: 0px;
}



.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    background-image: url('imgs/triangles.jpg');
    background-position-x: -250px;
    padding: 3rem;
    border-style: solid;
    border-color: var(--mocha);
    border-width: 2px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-width: 100%;
}

.about-text{
    flex-shrink: 4;
}

.about-text h1{
    font-size: 50px;
    text-align: center;
    font-family: 'moderustic', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
}

.about-text p{
    font-size: 1.6rem;
    text-align: center;
    font-family: 'Varela Round', 'Arial Narrow', Arial, sans-serif;
}

.profile-image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 300px;
    border-style: solid;
    border-color: var(--mocha);
    border-width: 1px;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    flex-shrink: 1;
}

.profile-image img:hover {
    transform: scale(1.05);
}

#services{
    margin-top: 0px;
    padding-top: 0px;
    padding: 10px;
    border-radius: 20px;
}

.services-content{
    display: flex;
    gap: 4rem;
    align-items: top;
    background-color: whitesmoke;
    padding: 10px;
    background-image: url('imgs/triangles.jpg');
    background-position: right; /* Shift image to simulate a flip */
    border-style: solid;
    border-color: var(--mocha);
    border-width: 2px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-width: 1200px;
}

.services-text{
    background-color: var(--bg-yellow);
    padding-top: 30px;
    padding-bottom: 0px;
    border-style: solid;
    border-color: var(--mocha);
    border-width: 1px;
    border-radius: 20px;
}

.services-text h1{
    font-size: 50px;
    text-align: center;
    font-family: 'moderustic', 'Arial Narrow', Arial, sans-serif;
    font-weight: 500;
}

.services-text h2{
    font-size: 40px;
    text-align: center;
    font-family:  'Arial Narrow', Arial, sans-serif;
    font-weight: 400;
}

.services-text p{
    font-size: 1.6rem;
    text-align: center;
    padding: 20px;
    padding-left: 60px;
    padding-right: 60px;
    font-family: 'Varela Round', 'Arial Narrow', Arial, sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 10px;
    gap: 1rem;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-yellow);
    padding: 1rem;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--card-index) * 0.2s);
}

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#contact {
    background-image: url('imgs/triangles-a-do.jpg');
    backdrop-filter: blur(10px);
    border-style: solid;
    border-color: var(--mocha);
    border-width: 2px;
    border-radius: 20px;
    margin-top: 4rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    width: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--sandstone);
    border-style: solid;
    border-color: var(--mocha);
    border-width: 1px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info{
    max-width: 600px;
    margin: 2rem auto;
    background: var(--sandstone);
    border-style: solid;
    border-color: var(--mocha);
    border-width: 1px;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

input {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.2);
}

button {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    transform-origin: center;
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(41, 128, 185, 0.3);
}

.info-item i {
    color: var(--tree-green);
    margin: 10px;
}

.info-item p {
    font-size: 1.6rem;
    text-align: center;
    font-family: 'Varela Round', 'Arial Narrow', Arial, sans-serif;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--primary-color);
    color: white;
    border-top: solid #333;
}

.footer-content p{
    color: white;
}


@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@media (min-height: 1440px){
    
    #hero-image{
        padding-top: 5%;
    }
    
    #hero{
        height: 82vh;
    }
}


@media (max-height: 1300px){
    
    #hero-image{
        padding-top: 1.5%;
    }
    
    #hero{
        height: 80vh;
        margin-bottom: 0px;
    }
}


@media (max-height: 1120px) {
 
    #hero-image{
        padding-top: 2.25%;
    }

    #hero{
        height: 85vh;
    }

}



@media (max-height: 1024px) {
 
    #hero-image{
        padding-top: 2%;
    }

    #hero{
        height: 85vh;
    }

}


@media (max-height: 982px) {

    #hero-image{
        padding-top: 1.75%;
    }

    #hero{
        height: 84vh;
        margin-bottom: 10px;
    }

}


@media (max-height: 800px) {

    #hero-image{
        padding-top: 2%;
        width: 72vh;
    }

    #hero{
        height: 82vh;
        margin-bottom: 0;
    }

}

@media (max-height: 700px) {

    #hero-image{
        padding-top: 1.5%;
    }

    #hero{
        height: 90vh;
    }

}

@media (max-width: 2000px) {

    .particles-side {
        width: calc((100% - 875px) / 2); 
        height: 100%;
    }
}

@media (max-width: 1800px) {

    .particles-side {
        width: calc((100% - 875px) / 2); 
        height: 100%;
    }
}

@media (max-width: 1440px) {

}


@media (max-width: 1150px) {

    .particles-side {
        width: calc((100% - 950px)); 
        height: 100%;
    }

}


@media (max-width: 1024px){

}



/* -----------------Tablets-----------------*/

/* Larger Tablets (like iPad Pro) */

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    /* Portrait-specific styles */

    #hero-image{
        width: 45vh; /* Adjust as needed */
      }
    
      #hero{
        height: 53vh; /* Adjust as needed */
      }
    
      .infofocus-title h2{
          font-size: 2.5vh;
          padding-left: 2vh;
      }
  
      .about-text h1{
          font-size: 45px;
      }
  
      .about-text p{
          font-size: 1.3rem;
      }
  
      .services-text h1{
          font-size: 40px;
      }
  
      
      .services-text h2{
          font-size: 30px;
      }
  
      
      .services-text p{
          font-size: 1.3rem;
      }
  
      .services-content{
          flex-direction: column;
      }
  
      .services-grid{
      grid-template-columns: repeat(auto-fit, minmax(350px, 2fr));
      }

      .service-card{
         text-align: center;
      }

  }

@media (min-width: 901px) and (max-width: 1366px) 
        and (orientation: portrait) and (min-aspect-ratio: 3/4) 
        and (max-aspect-ratio: 4/3) {

    #hero-image{
      width: 45vh; /* Adjust as needed */
    }
  
    #hero{
      height: 53vh; /* Adjust as needed */
    }
  
    .infofocus-title h2{
        font-size: 2.5vh;
        padding-left: 2vh;
    }

    .about-text h1{
        font-size: 45px;
    }

    .about-text p{
        font-size: 1.3rem;
    }

    .services-text h1{
        font-size: 40px;
    }

    
    .services-text h2{
        font-size: 30px;
    }

    
    .services-text p{
        font-size: 1.3rem;
    }

    .services-content{
        flex-direction: column;
    }

    .services-grid{
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    }
  }


@media (max-width: 900px){

    #hero-image{
        width: 40vh
    }

    #hero{
        height: 47.5vh;
        margin-bottom: 0.5vh;
    }
    
    .infofocus-title h2{
        font-size: 2.5vh;
        padding-left: 2vh;
    }

    .about-text h1{
        font-size: 45px;
    }

    .about-text p{
        font-size: 1.3rem;
    }

    .services-text h1{
        font-size: 40px;
    }

    
    .services-text h2{
        font-size: 30px;
    }

    
    .services-text p{
        font-size: 1.3rem;
    }

    .services-content{
        flex-direction: column;
    }

    .services-grid{
    grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
    }
}


/* -----------------Mobile-----------------*/

@media (max-width: 800px) {

    .side-pattern {
        display: none; /* Hide on mobile as before */
    }
        
    .nav-links {
         display: none;
    }

    #hero-image{
        padding-top: 0;
    }

    #hero{
        height: 48vh;
    }

    .profile-image{
        max-width: 100%;
    }

    #about{
        justify-items: center;
        max-width: 100%;
    }


    .about-text h1{
        font-size: 40px;
    }
    

    .about-content {
         text-align: center;
         max-width: 100%;
    }

    #services{
        max-width: 100%;
    }




}


@media (max-width: 599px){

    #hero{
        height: 49vh;
    }

    .infofocus-title{
        text-align: center;
    }

    .infofocus-title h1{
        font-size: 9vw;
    }

    .infofocus-title h2{
        font-size: 4vw;
    }

    .about-content{
        flex-direction: column-reverse;
    }

    .services-grid{
        width: 100%;
    }

    .contact-info{
        padding: 10px
    }

    .info-item p{
        font-size: 4vw;
    }

}


@media (max-width: 388px){
}
