/**
 * File: styles.css
 * Dev: Kevin S. Vohra, IES Marketing
 * Description: Complete Modern styling for Info-Electronics Systems Inc.
 * Updated with NAV, hero, card-grid styles, 
 **/
/* ─────────────────────────────────────────── */
/* GLOBAL TYPOGRAPHY */
/* ─────────────────────────────────────────── */
html {
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    color: #222;
    line-height: 1.65;
    letter-spacing: 0.2px;
    margin: 0;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 15px;
    color: #111;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
}
/* LINKS */
a {
    color: #007bff;
    text-decoration: none;
    transition: 0.25s;
}

a:hover {
    color: #0056d2;
}
.info-link {
    color: #0d6efd;              /* IES brand blue */
    display: inline-flex;
    align-items: center;
    gap: 8px;                    /* spacing between icon + text */
    font-weight: 500;
    text-decoration: none;
    transition: color .2s ease;
}

.info-link:hover {
    color: #084298;              /* darker hover blue */
}

.info-link svg {
    width: 20px;                 /* adjust icon size */
    height: 20px;
    fill: currentColor;          /* icon matches text color */
    transition: transform .2s ease;
}

.info-link:hover svg {
    transform: translateY(-2px); /* subtle hover lift */
}
.bi.bi-linkedin {
    width: 38px;
    height: 38px;
}


/* CONTAINER */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* SECTIONS */
.section {
    padding: 60px 0;
}

.section.projects {
    background: #f9f9f9;
}

.section.partners {
    background: #f5f5f5;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #111;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-content {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.hero-content h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
}

.hero-content h3 {
    color: #fff;
}

.hero-content p {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ─────────────────────────────────────────── */
/* NAVIGATION */
/* ─────────────────────────────────────────── */
.nav-header {
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 130px;
    width: auto;
    display: block;
    padding: 2px;
}

.nav-menu ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-menu a {
    color: #fff;
    font-size: 15px;
    padding: 8px 0;
}

.nav-menu a:hover {
    color: #087990;
}

/* DROPDOWNS */
.dropdown-menu .dropdown-item {
    color: #fff !important;
}
/* NAVBAR COLOR */
.navbar {
    background-color: #052c65 !important; /* $blue-900 */
}

/* SUBMENU DEFAULT */
.dropdown-menu {
    background-color: #343a40 !important; /* $blue-800 */
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    left: 0;
    min-width: 200px;
        
}

/* SUBMENU LINKS */
.dropdown-menu li a {
    color: #ffffff !important;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* SUBMENU HOVER */
.dropdown-menu li a:hover {
    background-color: #087990 !important; 
    color: #ffffff !important;
}

/*.dropdown-menu {
    background-color: #212529 !important;
}*/

/* MOBILE NAV */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
}
/* Fix submenu hover: keep dark background + white text */
.navbar .dropdown-menu .dropdown-item {
    color: #ffffff !important;
    background-color: transparent !important;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            color 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: #6c757d !important; /* Theme */
    color: #000000 !important;            /* keep text visible */
}

/* HERO SECTION + SOCIAL ICONS */
.hero-social {
    margin-top: 20px;
}

.hero-social a {
    color: #fff;
    font-size: 32px;
    margin: 0 10px;
    transition: 0.3s;
    display: inline-block;
}

.hero-social a:hover {
    color: #00c8ff;
}
/* ─────────────────────────────────────────── */
/* CARD GRID */
/* ─────────────────────────────────────────── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* CARDS */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.card h3 {
    color: #111;
    margin-bottom: 15px;
}

.card p {
    color: #666;
    line-height: 1.6; 
}
.justify-text {
    text-align: justify;
}

/*CARD ICONS*/
.card-icon {
    margin-bottom: 12px;
}

.card-icon i {
    font-size: 45px;
    color: #005baa; /* Adjust to your brand color */
}

/* IMAGE TILES */
.card-img {
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.card-img:hover {
    text-decoration: none;
}

.card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: 0.3s;
}

.card-img:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
    background: #fff;
    

}
   .card-body a {
  text-decoration: #;
  color:#;

}

.more-link {
    color: #00c8ff;
    font-weight: 600;
    transition: 0.3s;
  }

.card-img:hover .more-link {
    color: #0099cc;
    text-decoration: none;
}

/* ─────────────────────────────────────────── */
/* CONTENT SLIDER — FIXED FOR IMAGE OVERFLOW */
/* ─────────────────────────────────────────── */
.slider {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
}

.slide {
    display: none;
    text-align: center;
    width: 100%;
}

.slide.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.slide-desc {
    margin-top: 10px;
    font-size: 1.1rem;
    color: #666;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 15;
}

.slide-btn:hover {
    background: #00c8ff;
}

.slide-btn.prev { left: 10px; }
.slide-btn.next { right: 10px; }

/* ─────────────────────────────────────────── */
/* PARTNER CAROUSEL — FIXED FOR IMAGE OVERFLOW */
/* ─────────────────────────────────────────── */
.partner-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.partner-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-item img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s;
    display: block;
}

.partner-item img:hover {
    filter: grayscale(0%);
}

.icon-link {
    display: inline-flex;
    align-items: center;
}
/* ─────────────────────────────────────────── */
/* FOOTER */
/* ─────────────────────────────────────────── */
.footer {
    background: #111;
    color: #ddd;
    margin-top: 60px;
}

.footer-top {
    padding: 50px 0;
    border-bottom: 1px solid #222;
}

.footer-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

.footer-top .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    color: #ddd;
}

.footer-links a {
    color: #dddddd;
}

.footer-links a:hover {
    color: #dddddd;

}

.footer-bottom {
    background: #0d0d0d;
    padding: 15px 0;
    font-size: 14px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-column .iso-cert {
    margin-top: 15px;
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}
.about-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.about-text {
    flex: 1;
    text-align: justify;
}
/* FORCE REMOVE BULLETS FROM NAVBAR */
.main-nav ul,
.main-nav li,
.nav-menu,
.nav-menu li,
header ul,
header nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.about-flex {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.iso-and-title {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}
.iso-and-title h3 {
    margin: 0;   /* pushes the heading to the bottom of the ISO image */
    line-height: 1;     /* prevents extra vertical padding */
}

.iso-cert {
    width: 100px;   /* adjust as needed */
    height: auto;
    display: block;
}

.about-text p {
    text-align: justify;
}

/* BACK TO TOP BUTTON */
#backTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #005baa;
    color: #fff;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    display: none;
    font-size: 14px;
    z-index: 998;
    text-decoration: none;
    transition: all 0.3s ease;
}

#backTop:hover {
    background: #00c8ff;
    color: #000;
    transform: translateY(-2px);
}

/* RESPONSIVE STYLING */
@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #111;
        display: none;
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        box-shadow: none;
        background: #181818;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: flex;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .hero {
        padding: 80px 0;
    }

    .section {
        padding: 40px 0;
    }

    .slide img {
        max-height: 300px;
    }

    .partner-item img {
        height: 80px;
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 38px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-social a {
        font-size: 18px;
        margin: 0 8px;
    }

    .slide img {
        max-height: 250px;
    }

    .slide-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .partner-item img {
        height: 60px;
        max-width: 120px;
    }

    .partner-carousel {
        gap: 15px;
        padding: 15px 0;
    }

    .staff-photo {
        width: 120px;          /* circle size */
        height: 120px;         /* must match width */
        object-fit: cover;     /* fills the circle without distortion */
        object-position: center; /* centers the face */
        border-radius: 50%;    /* ensures perfect circle */
        display: block;        /* required for mx-auto centering */
    }
}

/* LANGUAGE TOGGLE */
.lang-btn {
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 4px 6px;
    border-radius: 4px;
    transition: color 0.2s;
}

.lang-btn:hover {
    color: #ffffff;
}

.lang-btn.lang-active {
    color: #ffffff;
    background: rgba(255,255,255,0.12);
}

/* Google Translate — navbar styling */
#google_translate_element .goog-te-gadget-simple {
    background: rgba(255,255,255,0.10) !important;
    border: 1px solid rgba(255,255,255,0.22) !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
}

#google_translate_element .goog-te-gadget-simple a,
#google_translate_element .goog-te-gadget-simple span {
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    color: rgba(255,255,255,0.60) !important;
}

/* Hide the "Powered by Google" text */
.goog-logo-link { display: none !important; }
.goog-te-gadget { font-size: 0 !important; }
