/* Global Styles */
* {
    font-family: verdana, sans-serif;
    font-size: 16px;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: whitesmoke;
}

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

/* Wrapper */
#wrapper {
    background-color: whitesmoke;
    display: grid;
    grid-template-areas: 
        "banner"
        "menu"
        "content"
        "footer";
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    grid-area: banner;
    display: grid;
    grid-template-areas: "logo heading";
    grid-template-columns: 1fr 3fr;
    background-color: white;
    min-height: 200px;
}

header img {
    grid-area: logo;
}

header h1 {
    grid-area: heading;
    color: blue;
    font-size: xx-large;
    text-align: left;
    padding-top: 100px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* Navigation */
nav {
    grid-area: menu;
    background-color: rgba(11, 11, 237, 0.632);
    padding: 10px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 20px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-transform: capitalize;
}

nav a:hover {
    color: rgb(222, 85, 108);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
main {
    grid-area: content;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "pic"
      "text"
      "about"
      "services"
      "why"
      "contact";
    gap: 20px;
    background-color: whitesmoke;
}

/* Section Styles */
#picone {
    grid-area: pic;
    padding: 20px;
    border-radius: 20px;
}

#paragraphone,
#paragraphtwo,
#paragraphthree,
#paragraphfour,
#paragraphfive {
    padding: 20px;
    text-align: justify;
    line-height: 1.6;
    width: 100%;
    word-break: break-word;
}

#paragraphone { grid-area: text; }
#paragraphtwo { grid-area: about; }
#paragraphthree { grid-area: services; }
#paragraphfour { grid-area: why; }
#paragraphfive { grid-area: contact; }

#paragraphone h2,
#paragraphtwo h3,
#paragraphthree h4,
#paragraphfour h5,
#paragraphfive h6 {
    padding-bottom: 25px;
    color: blue;
}

/* Error Page */
#error {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    height: 100vh;
}

#errorimg { grid-row: 1; width: 600px; padding: 5px; }
#errorh1 { grid-row: 2; font-size: 2rem; }
#errorp { grid-row: 3; font-size: 1.2rem; text-align: center; }

/* About Us Section */
#aboutus {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#abouthead {
    font-size: 2.5rem;
    color: #004aad;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 20px;
}

#about-id {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 40px auto;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.aboutpara {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #222;
    text-align: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

/* Services Section */
#services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 20px 40px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background-color: whitesmoke;
    border-radius: 12px;
}

#serviceheading {
    grid-column: 1 / -1;
    font-size: 2.2rem;
    color: #004aad;
    text-align: center;
    padding-bottom: 20px;
    margin: 0;
}

#serviceone, #servicetwo, #servicethree {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#serviceparaone, #serviceparatwo, #serviceparathree {
    text-align: justify;
    line-height: 1.6;
    padding: 10px 15px;
    font-size: 1rem;
    color: #222;
}

#serviceone { grid-column: 1 / 2; grid-row: 2; }
#serviceparaone { grid-column: 2 / 3; grid-row: 2; }

#servicetwo { grid-column: 1 / 2; grid-row: 3; }
#serviceparatwo { grid-column: 2 / 3; grid-row: 3; }

#servicethree { grid-column: 1 / 2; grid-row: 4; }
#serviceparathree { grid-column: 2 / 3; grid-row: 4; }

/* Contact Us Form */
#contactform {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#contactform label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #004aad;
}

#contactform input,
#contactform textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #f9f9f9;
}

#contactform textarea {
    resize: vertical;
    min-height: 120px;
}

#contactform button {
    padding: 12px;
    font-size: 1rem;
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactform button:hover {
    background-color: #003080;
}

/* Footer */
footer {
    display: grid;
    grid-template-areas:
        "col1 col2 col3 col4"
        "col5 col6 col7 col8";
    background-color: rgba(11, 11, 237, 0.632);
    padding: 20px;
    color: white;
}

footer ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    grid-area: col2;
}

footer p, footer a {
    color: white;
    font-weight: bold;
    word-wrap: break-word;
    line-height: 1.5;
}

footer a:hover {
    color: black;
}

/* Pricing Page */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background-color: whitesmoke;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.container h1 {
    font-size: 2.5rem;
    color: #004aad;
    margin-bottom: 30px;
}

.container table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    text-align: left;
}

.container table thead {
    background-color: #004aad;
    color: white;
}

.container table th,
.container table td {
    padding: 16px 12px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
    font-size: 1rem;
    color: #222;
    line-height: 1.6;
}

.container table tr:hover {
    background-color: rgba(0, 0, 255, 0.05);
}

.container table td ul {
    padding-left: 20px;
    margin: 0;
}

/* Call to Action */
.cta {
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    max-width: 400px;
    margin: 0 auto;
}

.cta p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.cta button {
    font-size: 1.1rem;
    padding: 14px 30px;
    border: none;
    background-color: #004aad;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta button:hover {
    background-color: #003080;

    
}

/**video section styling**/

#video {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
  border-top: 2px solid #e0e0e0;
  border-bottom: 2px solid #e0e0e0;
}

#video h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
}

#video .video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#video .video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* Responsive Styles */

@media (max-width: 768px) {
    #services {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px 0;
    }

    /* Images take odd rows */
    #serviceone { grid-row: 2; grid-column: 1 / -1; height: auto; }
    #servicetwo { grid-row: 4; grid-column: 1 / -1; height: auto; }
    #servicethree { grid-row: 6; grid-column: 1 / -1; height: auto; }

    /* Text takes even rows after images */
    #serviceparaone { grid-row: 3; grid-column: 1 / -1; margin-top: 10px; }
    #serviceparatwo { grid-row: 5; grid-column: 1 / -1; margin-top: 10px; }
    #serviceparathree { grid-row: 7; grid-column: 1 / -1; margin-top: 10px; }
}


@media (max-width: 768px) {
    header {
        grid-template-areas:
            "logo"
            "heading";
        grid-template-columns: 1fr;
        text-align: center;
    }

    header h1 {
        padding-top: 20px;
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 5%;
    }

    #wrapper {
        padding: 10px;
    }

    #services {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    #serviceone,
    #servicetwo,
    #servicethree,
    #serviceparaone,
    #serviceparatwo,
    #serviceparathree {
        grid-column: 1 / -1;
    }

    footer {
        grid-template-areas:
            "col1"
            "col2"
            "col3"
            "col4"
            "col5"
            "col6"
            "col7"
            "col8";
        text-align: center;
    }

    #errorimg {
        width: 90%;
    }

    .container table, 
    .container table thead, 
    .container table tbody, 
    .container table th, 
    .container table td, 
    .container table tr {
        display: block;
        width: 100%;
    }

    .container table thead {
        display: none;
    }

    .container table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        background-color: white;
    }

    .container table td {
        text-align: right;
        position: relative;
        padding-left: 50%;
    }

    .container table td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
}
/* Responsive layout for mobile and tablet (video)*/
@media screen and (max-width: 768px) {
  #video {
    padding: 30px 15px;
  }

  #video h2 {
    font-size: 1.5rem;
  }

  #video div {
    width: 100%;
    padding-bottom: 56.25%; /* Maintains 16:9 aspect ratio */
    height: 0;
  }

  #video iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
}


