@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Arial Nova Cond', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #1E222F;
}

    /* Automatically add padding to body equal to navbar height */ 
    body:has(.navbar) {
        padding-top: calc(var(--navbar-height, 0px));
    }

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNT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jUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


/* General */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    overflow-x:hidden;
    position:relative;
    z-index:1;
}

/* Dark and Light Mode */
.dark {
    background-color: #1E222F;
    color: white;
}

.light {
    background-color: white;
    color: #1E222F;
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1E222F;
    padding: 1px 10px;
    width: 100%;
    position: sticky;
    top: 0;
    left:0;
    right:0;
    z-index: 100;
}
.navbar-left,
.navbar-right {
    display: flex;
    gap: 15px;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
}

    .navbar a:hover {
        background-color: #575757;
        border-radius: 4px;
    }


    .navbar button {
        background: none;
        border: none;
        color: white;
        cursor: pointer;
    }


/* Let the navbar define its own height variable */ 
.navbar {
    --navbar-height: 60px; /* fallback if auto not supported */
    block-size: auto; /* let it size naturally */
}




.nav-list {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

    .nav-list a {
        color: #f1f5f9;
        text-decoration: none;
        font-weight: 300;
    }

/*
.dropdown {
    position: relative;
}*/

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e293b;
    list-style: none;
    padding: 0.2rem 0;
    margin: 0;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

    .dropdown-menu li {
        padding: 0.2rem 1rem;
    }

        .dropdown-menu li a {
            color: #f1f5f9;
            display: block;
        }



.dropdown-divider {
    background: #f9f9f9;
    margin-left:5%;
    margin-right:5%;
}







/* Hero Section */
.hero {
    padding: 4rem 2rem;
    text-align: center;
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0.2)), url(../Assets/SMETechHerobmp.bmp);
    background-size: cover;
    color: #1E222F;
    min-height: 80vh;
}

    .hero h2 {
        font-size: 3rem;
        margin-bottom: 5rem;
    }

    .hero p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto 7rem auto;
        text-align:center;
    }

/* Button */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight:500;
    cursor: pointer;
    border: 0.5px solid  #1E222F;
    background-color: #f9f9f9;
    color: #1E222F;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

    .btn:hover {
        opacity: 0.85;
    }

.btn-dark {
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    background-color: #1E222F;
    color: #f9f9f9;
    transition: all 0.3s ease;
    margin-bottom: 5px;
}

    .btn-dark:hover {
        opacity: 0.85;
    }

/*home overview section*/
.home-overview {
    background: linear-gradient(135deg, #1E222F, #2F3549);
    padding: 4rem 2rem;
    text-align: center;
    display:flex;
    gap:20px;
    align-items:center;
}

.text {
    flex: 1;
}
.home-overview-subtitle {
    text-align: center;
    padding-left: 2rem;
    color: #204A5A;
}

.home-overview-title {
    text-align: center;
    padding-left: 2rem;
    color: #BCC9D7;
}

.home-overview-text {
    text-align: center;
    padding-left: 2rem;
    color: #BCC9D7;
    animation-name: fadeIn;
    animation-duration: 2s; /* The fade will take 2 seconds */
    animation-fill-mode: forwards; /* Ensures the text remains visible after the animation finishes */
}

.home-overview-catchtext home-overview-text {
    font-size:7rem;
}

.home-overview-img img {
    flex: 0 0 30px;
    padding-left: 2rem;
    animation-name: fadeIn;
    animation-duration: 2s; /* The fade will take 2 seconds */
    animation-fill-mode: forwards; /* Ensures the text remains visible after the animation finishes */
}

.home-overview-img img {
    height: 400px;
    width: auto;
    display:block;
    
}

/* Modules Section */
.modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.module-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

    .module-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }



/* Customization Section */
.custom {
    background-color: #1E222F;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
}

    .custom h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

/* Website Section */
.website {
    text-align: center;
    padding: 0rem 0.2rem;
    margin-bottom:3rem;
}

    .website h2 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

/* Contact Section */
.contact {
    /*    background-color: #f0f0f0;
*/ background-color: #5B687E;
    padding: 4rem 2rem;
    text-align: center;
}

    .contact input, .contact textarea {
        width: 100%;
        align-self: center;
        max-width: 500px;
        margin-bottom: 1rem;
        padding: 0.5rem;
        border-radius: 3px;
        border: 1px solid #ccc;
        display: flex;
        margin-left: auto;
        margin-right:auto;
    }

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #1E222F;
    color: white;
}


.site-footer {
    position: relative;
    margin-top: 0;
    color: #f5f5f5;
    background-image: url(../Assets/SMETFooter.png); /* your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .site-footer .footer-overlay {
        /*background: linear-gradient( to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4) );
        padding: 3rem 8vw 2rem;*/

        padding: 1rem 6vw 1rem;
    }

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: flex-start;
    padding-top:7%;
}

.footer-herotext {
    margin-top:5rem;
    font-weight: 400;
    font-size: 1.5rem;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-align: left;
}

.footer-column p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align:left;
}

    .footer-column ul li {
        margin-bottom: 0.4rem;
    }

.footer-column a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, opacity 0.2s ease;
}

    .footer-column a:hover {
        color: #ffffff;
        opacity: 0.85;
    }

.footer-column form {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.footer-column input[type="email"] {
    flex: 1;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
}

.footer-column button {
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    border: none;
    background: #00bcd4;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

    .footer-column button:hover {
        background: #00a0b6;
        transform: translateY(-1px);
    }

.footer-bottom {
    margin-top: 1rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer-bottom-links a {
    margin-left: 1rem;
    color: #f5f5f5;
    text-decoration: none;
}

    .footer-bottom-links a:hover {
        text-decoration: underline;
    }

/* Responsive tweaks */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-bottom-links a {
        margin-left: 0;
        margin-right: 1rem;
    }
}


/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url(../Assets/ModulesSections.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: black;
    position: relative;
}

.modules-title {
    text-align: justify;
    font-size: 2rem;
    padding: 40px 40px 40px 60px;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0rem;
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.6)), url(../Assets/ModuleHeroC.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: black;
    position: sticky;
    color: #d2d2d5;
    top: 0; 
    z-index: 100;
}


.sticky-div {
    position: sticky;
    top: 0; /* Sticks to the top of the viewport when it reaches this point */
    /* Optional additional styling */
    z-index: 100; /* Ensures it stays above other content */
}

.module-card {
    background-color: rgba(240,243,246, 0.8);
    border-radius: 3px;
    padding: 1.8rem;
    margin: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    
}

    .module-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    }

    .module-card h3 {
        margin: 0.5rem 0;
    }

.icon {
    font-size: 2rem;
}




.module-section {
    padding: 4rem 2rem;
    color: #222;
}


.module-content {
    
    margin: 0 auto;
    line-height: 1.6;
    animation: slideUp 1s ease-in-out;
}

    .module-content ul {
        margin: 1rem 0;
        padding-left: 1.5rem;
    }

    .module-content li {
        margin-bottom: 0.5rem;
    }

.btn-main {
    background-color: #1E222F;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, background 0.3s;
}

    .btn-main:hover {
        background-color: #2f3549;
        transform: translateY(-3px);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modules-section {
    background-color: #f9fafb;
    padding: 4rem 2rem;
}



.module-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5rem;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideUp 0.8s ease-in-out forwards;
}

.module-feature.right {
    flex-direction: row-reverse;
}

.module-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    height: 3rem;
    width: auto;
}

.module-info {
    flex: 1 1 400px;
}

.module-info-h4 {
    font-size: 1.8rem;
    color: #1E222F;
    font-weight:300;
    text-align:left;
}

.module-info-h6 {
    font-size: 1.4rem;
    color: #1E222F;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.module-info-p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 1.5rem;
}

.btn-learn {
    background-color: #1E222F;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-learn:hover {
    background-color: #2f3549;
    transform: translateY(-2px);
}

.module-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1E222F, #2F3549);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    color: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}



/*ABOUT PAGE STYLE*/
.about-container {
    width: 100%;
    background-color: #F0F3F6;
}

.about-title {
    color: black;
    text-align: start;
    background-color: #F0F3F6;
    margin-top: 0px;
    margin-left: 5%;
    margin-right: 5%;
    padding: 3rem 2rem;
}

.about-summary {
    margin-bottom: 15px;
    color: #1E222F;
    margin-top: 3rem;
    font-size: 1.4rem;
    text-align:center;
    text-justify:inter-word;
    font-weight:400;
    font-family: 'Arial Narrow', Arial, sans-serif
}

.about-hr {
    align-self: start;
    border: none;
    height: 1px;
    background-color: #1E222F;
    width: 4%;
    margin-left: 0 auto;
    margin-top:0.5rem;
}


.about-section {
    margin-bottom: 40px;
}

.about-container p {
    margin-bottom: 15px;
    color: #C3C5C8;
    margin-left: 3rem;
    font-size: 1.5rem;
}

.about-section-title{
    display:flex;
    align-items:center;
    gap:10px;
}

    .about-section-title h2 {
        flex: 1;
        font-size: 1rem;
        font-weight: 700; 
        margin-bottom: 17px;
        color: #C9D3DF;
    }

    .about-section-title img {
       
        width: 2rem;
    }

.about-section-container {
    margin: 0 auto;
    padding: 4px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

    .about-section-container p {
        margin-bottom: 15px;
        color: #1E222F;
        margin-left: 0rem;
        font-size: 1rem;
        width: 50%;
    }

.about-image {
    display: flex;
    align-items: center;
    justify-content: center;
}


    .about-image img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }



.about-section-img-1 {
    width: 20vw;
    height: 60vh;
    object-fit: cover;
    margin: 10px;
    border-radius: 0px 0px 120px 120px;
}

.about-section-img-2 {
    width: 20vw;
    height: 60vh;
    object-fit: cover;
    margin: 10px;
    border-radius: 120px 120px 0px 0px;
}

.about-value-section-img-1 {
    width: 10vw;
    height: auto;
    object-fit: cover;
    margin: 10px;
    border-radius: 0px 25px 25px 0px;
}

.about-value-section-img-2 {
    width: 10vw;
    height: auto;
    object-fit: cover;
    margin: 10px;
    border-radius: 25px 0px 0px 25px;
}

@media (max-width: 768px) {

    .about-section-container {
        grid-template-columns: 1fr;
    }

    .about-summary {
        font-size: 1.2rem;
    }

    .about-section-img-1 {
        width: 35vw;
        height: 50vh;
    }

    .about-section-img-2 {
        width: 35vw;
        height:50vh;
        
    }

    .about-value-section-img-1 {
        width: 25vw;
       
    }

    .about-value-section-img-2 {
        width: 25vw;
        
    }

}



@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}







toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    animation: slideIn 0.4s ease-out, fadeOut 0.5s ease-in 2.5s forwards;

}

toast-message {
    background: #333;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 0.95rem;
    opacity: 0.95;
}

@keyframes slideIn {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}
