* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* user defined variables in CSS  */

:root{

 --backcolor:  #f4f4f9;
 --btnbackcolor : #0056b3;

}

html {
    scroll-behavior: smooth;
}


body {
    background-color:var(--backcolor) ;
    color: #000;
}


.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    background-color: white; /* Prevents transparent overlap */
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: slight drop shadow */
}


.header-left {
    display: flex;
    align-items: center;
    z-index: 1;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 1;
    flex-grow: 1;
}
.sign-in-button {
    min-width: 150px; /* or width: 150px; */
    text-align: center;
}

.sign-in-button {
    padding: 10px 40px;
    background-color: #007BFF;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.sign-in-button:hover {
    background-color: #0056b3;
}

.company-name {
    font-size: 1.8em;
    color: #000;
}



.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills without distortion */
    z-index: 0;
    opacity: 0.7; /* Optional: slightly faded background image */
}


.company-name {
    position: relative;
    z-index: 1;
    font-size: 2.5em;
    color: #000;
    margin-left: 20px;
}

/* Circle image that overlays and centers */

.circle-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.sign-in-button {
    z-index: 1;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sign-in-button:hover {
    background-color: #0056b3;
}


.navbar {
    position: fixed;
    top: 200px;
    left: 50%;
    transform: translateX(-50%);   /*centers the navbar horizontally */
    width: 77%; /* Same as .section */
    background-color:var(--backcolor);
    z-index: 999;
    padding: 10px 0;
    border-radius: 10px; /* Optional for style */
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    background-color: var(--backcolor);
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: #007BFF;
    color: white;
}

/* Selected/Active link */
.nav-link.active {
    background-color: #0056b3;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: #007BFF;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* this deals with the burger display  */

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.burger {
    cursor: pointer;
}

.burger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}


.burger.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.open .bar:nth-child(2) {
    opacity: 0;
}

.burger.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}



.main-content {
    max-width: 800px;
    padding-top: 280px; /* 200px header + 80px navbar */
    padding-bottom: 80px; /* Optional: to make room for fixed footer */
    margin: 0 auto ;
}


/* This style deals with the portfolio section */

.section {
    border: 2px solid rgb(69, 68, 68);
    margin: 20px auto;
    padding: 20px;
    width: 80%;
    border-radius: 10px;
    background-color: #f9f9f9;
   
}

section.content2{
 visibility: hidden;

}



.section.bio {
    
    background-color: #f4f4f9;
    border: 2px solid #ccc;
    border-left: 6px solid #007BFF;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    padding: 30px;
    line-height: 1.7;
    font-size: 1.05em;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 40px;
}

.bio-content {
    max-width: 1000px;     /* Control width */
    margin: 0 auto;       /* Center horizontally */
    text-align: justify;  /* Optional: cleaner paragraph alignment */
}

.section.bio h2 {
    font-size: 1.8em;
    color: #0056b3;
    text-align: center; 
    margin-bottom: 20px;
}

.section.bio p {
    margin-bottom: 16px;
    text-align: justify;
}

.section.bio strong {
    color: #d6336c;
}




.section.bio h2 {

    font-size: 1.8em;
    color: #0056b3;
    text-align: center; 
    margin-bottom: 20px;
}


/* These sections styles deal with the project previews */

.section.showcase {
    margin-top: 60px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /*  stronger and deeper */
    border-radius: 12px;
    padding: 20px;
    background-color: #f9f9f9;
}


.section.showcase h2{

    font-size: 1.3em;
    color: #0056b3;
    text-align: center; 
    margin-bottom: 20px;
}
/* Grid container */

.grid-gallery  {
    display: grid;
    grid-template-columns:  repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}



.grid-item  {
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.03);
}

.grid-item  img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.grid-item  p {
    font-size: 0.95em;
    color: #333;
}

.notes  p {

    padding: 30px;
    font-size: 0.95em;
    color: #333;
}



.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background-color: #000000;
    color: #fff;
    text-align: center;
    z-index: 1000;
}

.social-icons {
    margin-bottom: 8px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.2s ease;
}

.social-icons img {
    width: 55px;
    height: 55px;
    
   
}

.social-icons a:hover {
    transform: scale(1.2);
}

.footer-note {
    font-size: 0.9em;
    opacity: 0.8;

}


/* =====   this section deals with billing Reports non repsonsive ==== */ 

/* The controls container holds all refesh indicator and buttons  */


.controls{
  display: flex;
  justify-items: center;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin-top: 20px ;
  height: 60px;
  background-color: #574f4f;
  border-radius: 4px;
}


/* Auto-refresh indicator */
.refresh-indicator {
    display: flex;
    justify-content: flex-start;
    width: 160px;
    background: var(--btnbackcolor) ;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
   
}

.btn-refresh {
 height:  40px ;
 background-color: var(--btnbackcolor) ;
 border-radius: 4px;
 color:white ;
 width: 120px;
 padding :4px ;
 margin : 0 5px ;

}

.logout-button

{
 height:  40px ;
 width: 100px ;
 background-color:var(--btnbackcolor) ;
 color:white ;
 border-radius: 4px;
 width: 160px;

}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background: #007bff;
    color: white;
}

/* Office data section */
.office-section {
    margin-bottom: 40px;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
}

.office-section .eml-button {
 height:  40px ;
 width: 100px ;
 background-color:var(--btnbackcolor) ;
 color:white ;
 border-radius: 4px;
 width: 160px;
 font: size 0.7em;

}

.office-header {
    background: #007bff;
    color: white;
    padding: 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 6px 6px 0 0;
}

/* Table groups */
.table-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.table-container {
    flex: 1;
    min-width: 300px;
}

.table-container h4 {
    background: #f8f9fa;
    padding: 10px;
    margin: 0 0 10px 0;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.table-container table {
    margin-top: 0;
}


.Search-Form {
display:flex ;
background-color: #007BFF;
justify-items: center;
align-items: center;
justify-content: space-around;
height: 60px ;
border-radius: 4px;
}

.office-section form {
    margin-top: 15px; /* space from last data row */
    display: block;   /* ensures it takes the full width and goes on a new line */
    justify-items: left;
    width: 100%;
}


/* ====== media  queries start here =====*/



/* === Media Queries for Responsiveness === */



@media (max-width: 930px) {
    
    .header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        height: 100px;
        position: relative;
    }

    .eml-button{
        margin-top: 10px;
        width: 140px;
        font-size: 0.7em;
    }


    .header-left {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: flex-start;
    }

    .header-right {
        display: flex;
        flex: 1;
        justify-content: flex-end;
    }

    .company-name {
        font-size: 1.2em;
        margin-left: 0;
        white-space: nowrap;
    }

    .sign-in-button {
        font-size: 0.8em;
        padding: 6px 12px;
        min-width: auto;
    }

    .circle-image {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 70px;
        height: 70px;
        z-index: 2;
    }

    .header-image {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100px;
    }

    /* Media query for the navbar  */

    .navbar {
        position: relative;
        top: 5px;
        left: 0;
        transform: none;
        width: 100%;
        padding: 10px 0;
        border-radius: 0;
        z-index: 1000;
    }

    .burger {
        display: flex;
        position: absolute;
        top: 0px;
        right: 20px;
        z-index: 1001;
    
    }

    .navbar ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.8s ease-in-out;
        flex-direction: column;
        background-color: #f9f9f9;
        width: 100%;
        position: absolute;
        top: 25px;
        left: 0;
        gap: 15px;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 0 0;
    }


    .navbar ul.show {
    max-height: 400px;
    padding: 20px 0;   /* Add back padding when visible */
    }

    .navbar ul li {
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
        background-color: #007BFF;
        color: white;
        text-align: center;
        font-size: 1em;
        font-weight: bold;
        text-decoration: none;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid #0056b3;
    }

    .navbar ul li a:hover {
        background-color: #0056b3;

    }

    .main-content {
        padding-top: 0px; /* Adjust based on new header + navbar height */
    }
    
    .section {
        border: 1px solid rgb(69, 68, 68);
        margin: 10px auto;
        padding: 10px;
        width: 80%;
        border-radius: 5px;
        background-color: #f9f9f9;
    
    }

    .section.bio h2 {
        font-size: 1.2em;
        color: #0056b3;
        text-align: center; 
        margin-bottom: 10px;
    }

    .section.bio p {
        margin-bottom: 16px;
        text-align: justify;
        font-size: 0.8em;
    }

    .grid-gallery {
            grid-template-columns: 1fr;
        }

    .section.showcase h2{

        font-size: 1.0em;
    }

    .footer{

        height:70px ;
        padding: 5px;
    }

    .social-icons img {
        width: 30px;
        height: 30px;
    
    }

    .footer-note{

        margin-bottom: 10px;
    }


    .Search-Form {
        margin-top: 40px;
        font: size 0.7em; ;
    }

    .controls{
        margin-top:30px ;
    }

    .refresh-indicator {
    font-size: 0.7rem;
    padding :2px ;
    width: 100px;
    height:40px;
    justify-items: center;
    align-items: center;

    }

    .btn-refresh{

        font-size: 0.7rem ;
        width: 100px;
    }



}