/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Base desktop styles */
.container {
  width: 100%;
  margin: 0 auto;
}


body {
  background-color: #f4f6f9;
  font-family:monospace;
  margin-left: 5%;
  width:fit-content ;
 align-items: center;
}
header{
    background-color: #ffffff;
}
h1 {color: #1713ea;
    margin-top: 5;
    font-weight:bold;
    text-align:justify;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
p{
    margin-right: 50;
    margin-top: 0;
    font-size: 16px;
    text-align: justify;
    }


h2{color: #0000;
    }
   
h3{color: #1e06b7;
margin-right: 50;
margin-top: auto;}
h4{color: #1a72ec;
    margin-right: 50;
margin-top: 10;}
   
/* Header Container */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

/* Logo Styling */
.logo a {
`  font-size: 24px;
  font-weight: 700;
  color: #333333;
  text-decoration: none;
  letter-spacing: 1px;
}

.logo a span {
  color: #007bff; /* Primary branding color */
}

/* Navbar & Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  
}

h5{
    color: #00000;

    
       
}



.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

/* Hover & Active States */
.nav-links a:hover {
  color: #007bff;
}
.nav-links a:active {
  color: #007bff;
}

/* Animated bottom border on hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Action Button */
.btn-cta {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cta:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

/* Hide Mobile Menu Toggle Elements on Desktop */
.menu-toggle,
.cleaning {
  display: none;
}

/* The Parent Layout Container */

/*  */

.flex-container {
  display: flex;       /* Turns on Flexbox */
  flex-direction: row; /* Aligns children side-by-side */
  width: 750px;
  height: 300px;       /* Giving height for demonstration */
  gap: 15px;           /* Adds clean spacing around the divider */
  margin-bottom: 15px;
  margin-left: 15%;
}
.indextitle{
  margin-left: 38%;

}

/* The 1/3 Column */
.sidebar {
   flex: 1;            /* Shorthand for flex-grow: 1, flex-shrink: 1, flex-basis: 0% */
  padding: 1px;
  margin-left: 10px;
  width: 50%;
  
}

/* The 2/3 Column */
.main-content {
   flex: 2;           /* Shorthand for flex-grow: 2, flex-shrink: 1, flex-basis: 0% */
  background-color: #e0e0e0;
  padding: 5px;
}

/* The Visual Line Divider */
.divider {
  flex: 1;          /* Fixed thickness for the line */
  align-self: stretch; /* Forces the line to fill the container's height */
  margin-bottom: 15;
  margin-top: 0;
  width: 50%;
  text-align: center;
  margin-left: 3%;
}



.flex-container1 {
  display: flex;         /* Enforces flexbox layout */
        /* Spans full width of the screen */
  height: 80%        /* Gives the container a visible height */
  gap: 10px;             /* Adds clean spacing between the dividers */
   /* Line color */ 
}

.flex-container2 {
  display: flex;         /* Enforces flexbox layout */
  width: 750px;           /* Spans full width of the screen */
  height: 200px;         /* Gives the container a visible height */
  gap: 15px;             /* Adds clean spacing between the dividers */
  margin-top: 5%;
}


.divider1 {
    flex: 1;             /* Tells all 4 items to share the space equally */

  color: black;
  width: 20%;    /* Centers text vertically */
  justify-content: center;/* Centers text horizontally */
  border-radius: 4px;    /* Optional styling */
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 4%;
  background-color: #e6ebee00;
  
}

.divider2 {
  flex: 1;          /* Fixed thickness for the line */
  background-color: #ffffff; /* Line color */
  align-self: stretch; /* Forces the line to fill the container's height */
  margin-bottom: 15;
  margin-top: 0;
  width: 33%;
  margin-left: 2%;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* Container styling */
.form-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.form-container h2 {
    margin-bottom: 20px;
    color: #333333;
    font-size: 24px;
    text-align: center;
}

/* Group wrapper for spacing */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666666;
    font-size: 14px;
    font-weight: 600;
}

/* Inputs and textareas */
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Textarea specific */
.form-group textarea {
    resize: vertical;
}

/* Submit Button styling */
button {
    width: 100%;
    padding: 12px;
    background-color: #4A90E2;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #357ABD;
}
.copyright {
    text-align: center;
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #000000;
  background-color: #b0ceef;
    width: fit-content;
}

 {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    text-decoration: underline;
}

.copyright strong {
    font-weight: 600;
}
    .portfolio-section {
    padding: 2px 1px;
    margin-top: -5%;
     
}

.portfolio-section .section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
}

.portfolio-section .section-header h2 {
    font-size: 38px;
    margin-bottom: 15px;
   }

.portfolio-section .section-header p {
    font-size: 17px;
    line-height: 1.7;
    color: #666;
}

/* The Grid Container */
.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal-width columns */
    grid-template-rows: repeat(3, auto);   /* 3 rows */
    gap: 30px;
}

/* The Images Inside the Grid */
.portfolio-grid img {
    width: 100%;        /* Forces image to span full width of its grid cell */
    height: 350px;      /* Set a fixed height so all images match perfectly */
    object-fit: cover;  /* Crops the image to fit the box beautifully without stretching */
    display: block;
}


.portfolio-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.portfolio-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.portfolio-button {
    display: inline-block;
    padding: 11px 20px;
    background: #1f5f8b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.portfolio-button:hover {
    background: #17496b;
}

  .footer{
    margin-top: 1%;
    background-color: #93b7de;
    text-align: center;
    font-size: small;
  }


  /* =========================================
   RESPONSIVE DESIGN
   William Company
   ========================================= */

/* Prevent horizontal scrolling */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Make all elements easier to size */
* {
    box-sizing: border-box;
}

/* Main page containers */
.container,
.service-request-section,
section {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.navbar {
    width: 100%;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Buttons */
button,
.btn-cta {
    max-width: 100%;
}

/* Forms */
form {
    width: 100%;
}

input,
select,
textarea {
    max-width: 100%;
}

    .services-section {
    padding: 2px 1px;

    margin-top: -5%;
}



.services-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
  
    padding: 20px;
    text-align: center;
    border-color: #4A90E2;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(33, 16, 93, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    min-height: 80px;
}

.service-button {
    display: inline-block;
    margin-top: 15px;
    padding: 11px 20px;
    text-decoration: none;
    border-radius: 6px;
    background: #1f5f8b;
    color: #ffffff;
    transition: background 0.3s ease;
}

.service-button:hover {
    background: #17496b;
}

@media (max-width: 900px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-container {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 30px;
    }
}
  </style>

/* =========================================
   TABLETS
   ========================================= */

@media (max-width: 900px) {

    .header {
        padding: 15px 20px;
        
    }

    .service-request-section {
        width: 95%;
        margin: 40px auto;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 15px;
    }
}

/* =========================================
   MOBILE PHONES
   ========================================= */

@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .header {
        height: fit-content;
        padding: 12px 15px;
        background: #ffffff;
    }

    .logo img {
        max-width: 190px;
    }

    .navbar {
        width: 100%;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 8px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 10px;
    }

    .nav-actions {
        width: 100%;
        text-align: center;
    }

    .btn-cta {
        display: inline-block;
        max-width: 90%;
    }

    .service-request-section {
        width: 94%;
        margin: 25px auto;
        padding: 10px;
    }

    #serviceRequestForm {
        width: 100%;
        padding: 20px;
    }

    .form-group {
        width: 100%;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        font-size: 16px;
    }

    .submit-button {
        width: 100%;
    }

    /* Footer */
    .footer {
        width: 100%;
        padding: 20px 15px;
        text-align: center;
        line-height: 1.8;
        overflow-wrap: break-word;
    }
}

/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 480px) {

    .header {
        padding: 10px;
        background: #ffffff;
    }

    .logo img {
        max-width: 150px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 21px;
    }

    p {
        font-size: 15px;
        line-height: 1.6;
    }

    .service-request-section {
        width: 96%;
        padding: 5px;
    }

    #serviceRequestForm {
        padding: 15px;
        border-radius: 8px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px;
    }

    .submit-button {
        padding: 13px;
        font-size: 16px;
    }

    .footer {
        font-size: 14px;
    }
}