
/* Color Variables */
:root {
    --color-3: #1a202de3;
    --color-5: #4b5b8b;
    --color-4: #789ad9;
    --color-2: #a2c7e7;
    --color-1: #ecedee;
    
  }
 

/* Custom font */
@font-face {
    font-family: 'Estedad';
    src: url('../fonts/Estedad.woff2');
}


/* Base Styles */
* {
    box-sizing: border-box; 
}

html {
    font-size: 16px; 
}

body {
    background-color: var(--color-1);
    font-family: 'Estedad'; 
}

/* Logo */
#logo {
    margin-inline-start: 5px;
    aspect-ratio: 1; 
    object-fit: cover; 
}
.hover-grow {
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .hover-grow:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, #241e3a, #3a516d) !important;
  }
  .rounded-pill {
    border-radius: 50rem !important;
  }
/* Links */
a {
    text-decoration: none;
}

a:hover {
    color: var(--color-5);
    transition: color 0.5s ease;
}

/* Images */
img:hover {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main heading */
h1 {
    color: white;
    font-size: 1.7rem;
    border-radius: 10px 10px 10px 10px;
    background-color: var(--color-3);
    margin-block-end: 10px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
}
h1:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
.offcanvas-sign{
border: none;
background-color: var(--color-3);
margin-bottom: 8px;
padding: 17px 43px 12px 45px;
text-align: center;
text-decoration: none;
font-size: 16px;
}

/* about-Certificates section */
.certificates-section {
    padding: 10px;
    margin: 10px 0;
}

.certificates-section h2 {
    color: #101a53c0;
    font-size: 20px;
    margin-block-end: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eaeaea;
}

.certificates-section img {
    display: block;
    margin: 15px auto;
    border: 1px solid #ddd;
    padding: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.certificates-section img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* about-Mission section */
.mission-section {
    padding: 30px;
    margin: 10px 0;
}

.mission-section h2 {
    color: #101a53c0;
    font-size: 24px;
    margin-block-end: 25px;
    padding-block-end: 10px;
    border-block-end: 2px solid #eaeaea;
}

/* Articles */
.articles-title {
    color: var(--color1);
    padding-inline-start: 20px;
    margin-block-start: 15px;
    border-block-end: solid 1px #b0b1b3;
    margin-block-end: 20px;
    font-size: 24px;
    padding-block-end: 10px;
}

.articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--color2);
    font-weight: 500;
}

.article-link i {
    margin-inline-end: 10px;
    color: #3498db;
    font-size: 1.2em;
}

/* Content */
.content-title {
    color: #21486f;
    font-size: 23px;
    margin-block-end: 25px;
    padding-block-end: 15px;
    border-block-end: 2px solid #eaeaea;
    text-align: center;
}

.content-title-h3 {
    padding-right: 10px;
    color: #5f748b;
    font-size: 18px;
    font-weight: 500px;
}

/* Products */
.pipe-list {
    list-style-type: none;
    padding: 10px;
    margin: 20px;
}

.pipe-item {
    padding: 5px 10px;
    margin-block-end: 8px;
    background-color: #f9f9f9;
    border-inline-start: 4px solid #2a6496;
    border-radius: 4px;
}

.pipe-item:hover {
    background-color: #e9e9e9;
}


/* Main Site Structure */
main {
    display: grid;
    grid-template-columns: 200px auto;
    grid-template-rows: auto auto auto;
    gap: 10px;
    grid-template-areas: 
        'header header'
        'aside article'
        'footer footer';
    width: 950px;
    min-height: 1000px;
    margin: 0 auto;
    padding: 10px;
    border: none !important;
    background-color: transparent !important;
}

header {
    grid-area: header;
    
}

aside {
    grid-area: aside;
}

article {
    grid-area: article;
    border-color: none !important;
    background-color: transparent !important;
    display: block !important;
}

footer {
    grid-area: footer;
    direction: ltr;
    text-align: center;
}


/* Responsive */
@media screen and (max-width: 1024px) {
    #mainmenu {
        display: inherit;
    }
    
    main {
        width: 100%;
    }
    
    #nav {
        display: none;
    }
}

@media screen and (max-width: 500px) {
    main {
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto;
        grid-template-areas: 
            'header'
            'aside'
            'article'
            'footer';
    }
}


/* Gallery */
#gallery {
    text-align: center;
}

#gallery img {
    border: 4px solid white;
    box-shadow: 0px 0px 5px rgb(174, 51, 51);
    margin: 5px;
    width: 125;
    aspect-ratio: 1;
    filter: grayscale(40%);
    object-fit: cover;
}

#gallery img:hover {
    box-shadow: 0px 0px 5px rgb(38, 32, 32);
    transition: 0.1s;
    filter: grayscale(0%);
    transform: scale(1.1);
}


/* Utility Classes */
.mt-6 {
    margin-top: 4rem !important;
}

.bg-body-tertiary {

    background-color: var(--color-3) !important;
}

.card-body {
   
    box-shadow: #344c8fd0 
}

/* Animation */
@keyframes logoplay{
    from{
        opacity: 0;
        transform: translateX(-300px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}
#logo{
    animation: logoplay 2s;
}

/* back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e2b3a, #3a516d);
    color: var(--color-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 100;
  }
  .btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    background: linear-gradient(135deg, #1e2b3a, #3a516d) !important;
    color: white !important;
  }