<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!--

    - custom css link
  -->
  <link rel="stylesheet" href="./assets/css/style.css">
  <link rel="stylesheet" href="./assets/css/media_queries.css">
  <link rel="stylesheet" href="./assets/css/animation.css">

  <!--
    - google font link
  -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link
    href="https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700;800;900&family=Roboto:wght@400;500&display=swap"
    rel="stylesheet">
    <style>
        body {
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            /* background-color: #7F6EFC; */
            background: linear-gradient(160deg, #7f6efc5c 14.29%, #08bd8166);
        }

        #contact-box {
            /* height: 90vh; */
            margin: 50px auto;
            margin-bottom: 2rem;
            width: 90vw;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 20px;
            background-color: rgb(243, 244, 246);
            box-shadow: 0 10px 50px -3px rgba(0, 0, 0, 0.274), 0 4px 6px -2px rgba(0, 0, 0, 0.258);
            padding: 2rem;
        }

        .contact-items {
            width: 40%;
            margin: 0rem 1rem;
            padding: 0.5rem 1rem;
        }

        #form input {
            width: 80%;
            height: 1.7rem;
            margin: auto;
            border-radius: 6px;
            background-color: rgb(212, 218, 218);
            outline: none;
            margin: 8px 0px;
            border: none;
        }

        #content {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
        }

        #content p {
            text-align: justify;
        }

        #content h1 {
            font-size: 2.4rem;
            font-family: 'Josefin Sans', sans-serif;
            color: #7F6EFC;
            text-shadow: 0.3px 0.5px 1px rgb(140, 145, 145);
        }

        #content h2 {
            font-size: 1.8rem;
            font-family: 'Josefin Sans', sans-serif;
            text-shadow: 0.3px 0.5px 1px rgb(140, 145, 145);
        }

        form {
            font-family: 'Exo 2', sans-serif;
        }

        textarea {
            resize: vertical;
            border: none;
            border-radius: 6px;
            margin: 8px 0px;
            background-color: rgb(212, 218, 218);

        }

        #btn {
            width: 81%;
            height: 1.8rem;
            background-color: #7F6EFC;
            color: white;
            padding: 0;
            border-radius: 6px;
            border: none;
            font-family: 'Exo 2', sans-serif;
            font-weight: bold;
            cursor: pointer;
            font-size: 1rem;
        }

        #btn:hover {
            background-color: #6658ce;
        }

        /* input:focus,
        textarea:focus,
        select:focus {
            outline: none;
        } */
        #service-container {
            display: flex;
            justify-content: center;
            margin-bottom: 3rem;
            padding: 1rem;
            margin-bottom: 25px;

        }

        #service-container h2 {
            font-size: 2.4rem;
            font-family: 'Josefin Sans', sans-serif;
            color: #7F6EFC;
            text-shadow: 0.3px 0.5px 1px rgb(140 145 145);
            margin-top: 0.5rem;
        }


        /* #service-container > div:before {
            content: " hello";
            content: "";
            background-image: url('smoke1.webp');
            background-size: cover;
            background-position: center;
            position: absolute;
            top: 30rem;
            right: 0px;
            bottom: 10rem;
            left: 0px;
            opacity: 0.4;
            z-index: -10; 
        } */

        .service-items {
            margin: 1rem;
            padding: 1rem;
            width: 40%;
            text-align: center;
            border-radius: 20px;
            background-color: rgb(243, 244, 246);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }

        .service-items li {
            list-style: none;
        }

        /* .service-items ul {
            text-align: center;

        } */

        .service-items:nth-child(2) div {
            font-family: 'Exo 2', sans-serif;
            width: 50%;
            margin: 0.8rem auto;
            border-radius: 12px;
        }

        .service-items:nth-child(1) li {
            margin: 0.8rem;
            text-align: center;
        }

        .service-items:nth-child(2) div p:nth-child(1) {
            padding: 0.68rem;
            font-size: 1rem;
            background-color: #7F6EFC;
            color: aliceblue;
            font-weight: bold;
            margin: 0px;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            /* box-shadow: 2px 0px orange; */

        }

        .service-items:nth-child(2) div p:nth-child(2) {
            padding: 0.68rem;
            /* background-color: orange; */
            margin: 0px;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
            border: 2px solid #7F6EFC;
            color: grey;
        }

        #ps {
            margin-bottom: 0.5rem;
            text-align: center;
            font-size: 2.5rem;
            font-family: 'Paytone One', sans-serif;
            color: #7F6EFC;
            text-shadow: 0.3px 0.5px 1px rgb(140 145 145);
        }
    </style>
</head>

<body>
    <header>

        <nav class="navbar">
  
          <div class="navbar-brand">
            <span><img src="./assets/images/logo.png" height="75em" alt="Educator Logo"></span>
            <span>
              <h1>ABHYUDAYA</h1>
            </span>
          </div>
  
          <ul class="navbar-nav">
  
            <li class="nav-item">
              <a href="/">Home</a>
            </li>
            <li class="nav-item">
              <a href="about">About Us</a>
            </li>
            <li class="nav-item">
              <a href="course">Courses</a>
            </li>
            <li class="nav-item">
              <a href="community">Community</a>
            </li>
            <li class="nav-item">
              <a href="contact">Contact Us</a>
            </li>
  
          </ul>
  
          <!-- <button class="btn btn-primary">
            <p class="btn-text">Try for free</p>
            <span class="square"></span>
          </button> -->
  
          <div class="btn1">
            <a href="login">
              <button><span>LOGIN</span></button>
            </a>
          </div>
  
          <button class="nav-toggle-btn">
            <span class="one"></span>
            <span class="two"></span>
            <span class="three"></span>
          </button>
  
        </nav>
  
      </header>
    <div id="contact-box">
        <div id="content" class="contact-items">
            <h1> Lets talk about everything!</h1>
            <img src="./assets/images/logo.png" alt="error" height="100px" width=" 100px">
            <h2>Feel free to ask us anything!</h2>
            <p>Have doubt or suggestion to make? Feel free to ask anything. If you have any suggestions, please let me
                know. Your suggestions are highly appreciated. I appreciate your time and try hard to reply to every
                single
                message posted here! Keep dropping your priceless opinions.</p>

        </div>
        <div id="form" class="contact-items">
            <form action="" onsubmit="sendMail() ; reset(); return false;">
                <label for="name1">FULL NAME </label> <br>
                <input type="text" name="fullname" id="name1"> <br><br>

                <label for="mail">E-MAIL </label> <br>
                <input type="email" name="email" id="mail"><br><br>

                <label for="no">NUMBER </label> <br>
                <input type="text" name="num" id="no"><br><br>

                <label for="message">MESSAGE </label> <br>
                <textarea name="message" id="message" cols="58.4" rows="5"></textarea>
                <!-- <input type="text" name="message" id="message"> -->

                <button id="btn">SEND MESSAGE</button>
            </form>
        </div>
    </div>
    <script src="https://smtpjs.com/v3/smtp.js"></script>
    <script>
        function sendMail() {
            Email.send({
                Host: "smtp.gmail.com",
                Username: "jiteenofficial@gmail.com",
                Password: "holyfuck92718",
                To: 'subrat3471@gmail.com',
                From: document.getElementById("email").value,
                Subject: "New Contact form Enquiry",
                Body: "Name "+document.getElementById("name").value
                +"<br> Email : "+document.getElementById("email").value
                +"<br> Phone Number : "+document.getElementById("phone").value
                +"<br> Message : "+document.getElementById("message").value
            }).then(
                message => alert("Message sent successfully !!")
            );
        }
    </script>
</body>

</html>