/* ===== BASIC STYLES ===== */
body {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* No padding for home page since navbar is hidden initially */
.home-page {
    padding-top: 0;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: static;
    height: 120px;
    z-index: 1000;
}

/* Navbar scroll effect for home page */
.home-page .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.home-page .navbar.scrolled {
    transform: translateY(0);
}

.nav-left {
    flex: 0 0 auto;
}

.nav-logo-img {
    height: 100px;
    width: auto;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.nav-right {
    flex: 0 0 auto;
}

.login-section {
    position: static;
    transform: none;
}

.login-btn {
    background: #000000;
    color: white;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    text-align: center;
    line-height: 1.2;
    display: inline-block;
}

.login-btn:hover {
    background: #333333;
    border-color: #333333;
}

/* Hide the text logo */
.nav-logo {
    display: none;
}


/* ===== HERO BANNER (SECTORS ONLY) - FIXED WHITE LINES ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: 100vh;

    /* Prevent zoom scaling */
    transform: translateZ(0);
    will-change: transform;
}

.hero-sectors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;

    transform: translateZ(0);
}

.hero-sector-card {
    background: rgba(255, 255, 255, 0.1);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;

    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    text-decoration: none;

    transform: translateZ(0);
    will-change: transform, background;
    /* FIX: Prevent white lines */
    overflow: hidden;
    background-clip: padding-box;
}

.hero-sector-card:last-child {
    border-right: none;
}

.hero-sector-card:hover {
    background: rgba(255, 255, 255, 0.25);
    /* SIMPLIFIED shadow for better performance */
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
    /* ORIGINAL grayscale removal on hover */
    filter: grayscale(0%) brightness(1.1) saturate(1.2) !important;
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-sector-card h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 30px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.hero-sector-card a {
    text-decoration: none !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.hero-sector-card a:link,
.hero-sector-card a:visited,
.hero-sector-card a:hover,
.hero-sector-card a:active {
    text-decoration: none !important;
    color: white !important;
    border: none !important;
    outline: none !important;
}

.hero-sector-card a h3 {
    text-decoration: none !important;
    color: white !important;
}


/* ===== SECTOR BACKGROUND IMAGES - RESTORED WITH SIMPLER GRAYSCALE ===== */
.hero-sector-card:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/mass-transit-hero.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-sector-card:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/manufacturing.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-sector-card:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/wholesale-trade.jpg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-sector-card:nth-child(4) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/structural.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.hero-sector-card:nth-child(5) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/marine.jpeg');
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* ORIGINAL GRAYSCALE RESTORED */
.hero-sector-card {
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Force text elements to render in full color by using mix-blend-mode */
.hero-sector-card h3,
.hero-sector-card .sector-arrow,
.hero-sector-card .read-more,
.hero-sector-card .hero-logo-img {
    mix-blend-mode: normal;
    filter: grayscale(0%) brightness(1) saturate(1) !important;
    position: relative;
    z-index: 10;
}

/* Hover effect - original values */
.hero-sector-card:hover {
    filter: grayscale(0%) brightness(1.1) saturate(1.2);
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ===== OPTIMIZED SECTOR ARROWS ===== */
.sector-arrow {
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    /* REDUCED transition time */
    transition: all 0.2s ease;
}

.arrow-head {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    /* REDUCED transition time */
    transition: all 0.2s ease;
}

.read-more {
    color: white;
    font-size: 1rem;
    font-weight: bold;
    margin-left: 8px;
    opacity: 0;
    transform: translateX(-10px);
    /* REDUCED transition time */
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    top: 1px;
}

a.read-more {
    text-decoration: none !important;
    color: white !important;
}

a.read-more:visited,
a.read-more:hover,
a.read-more:active {
    text-decoration: none !important;
    color: white !important;
}

.hero-sector-card:hover .read-more {
    opacity: 1;
    transform: translateX(0);
}

/* ===== INTRO SECTION ===== */
.intro-section {
    background: white;
    text-align: center;
    padding: 80px 20px;
}

.intro-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.intro-section p {
    font-size: 1.3rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== SECTIONS ===== */
h2 {
    text-align: center;
    color: #2c3e50;
    margin-top: 50px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    text-align: center;
    margin: 30px 0;
}

.contact-section p {
    margin: 10px 0;
    font-size: 1.1rem;
}

/* ===== HYPERPORTAL ===== */
.hyperportal-section {
    text-align: center;
    margin: 50px 0;
}

.hyperportal-btn {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
    background: white;
    padding: 80px 20px;
    text-align: center;
}

.clients-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* Revert client logos back to original size */
.clients-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Back to original */
    gap: 40px;
    align-items: center;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 120px;
    /* Removed min-width */
}

.client-logo:hover {
    transform: translateY(-5px);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.client-logo img {
    max-width: 100%;
    max-height: 160px;
    width: auto;
    height: auto;
    filter: brightness(1.2);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: brightness(1.4);
}

/* ===== FOOTER ===== */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 20px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-logo-img {
    height: 200px;
    width: auto;
    margin-top: 10px;
}

.contact-info p {
    margin: 8px 0;
}

.footer-buttons {
    margin-top: 20px;
}

.footer-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    margin: 5px 5px 5px 0;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.footer-btn:hover {
    background: #2980b9;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-main {
    padding: 80px 20px;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 5px 0;
    color: #666;
}

.form-header {
    margin-bottom: 40px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-divider {
    width: 100%;
    height: 4px;
    background: #000000;
    border-radius: 2px;
}


.contact-form-section {
    position: relative;
}

.contact-form {
    background: transparent;
    padding: 0;
    border-radius: 0;    Copy-Item "G:\Shared drives\Hyperglass Company Drive\Website VScode Dump\Apeax Page Material\Apeax Optishield Revuelto.png" "c:\Users\jhyde\hyperglass-custom-website\public\apeax\images\"
    box-shadow: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* ===== CONTACT PAGE STYLES (NEW) ===== */
.page-header {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.contact-content {
    padding: 60px 20px;
    background: white;
}

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-form-section h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form .submit-btn {
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.contact-info-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.contact-detail {
    margin-bottom: 15px;
}

.contact-detail strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.quick-link-btn {
    display: block;
    background: white;
    color: #2c3e50;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 10px;
    text-align: center;
}

.logo-display {
    text-align: left;
    padding: 10px 0px 20px 0px;
}

.contact-h-logo {
    max-width: 250px;
    height: auto;
    opacity: 0.8;
}

.quick-access-section {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.quick-access-container {
    max-width: 800px;
    margin: 0 auto;
}

.quick-access-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.quick-access-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-access-btn {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.quick-access-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* ===== SECTOR PAGES ===== */
.sector-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    min-height: 400px;
}

/* Specific hero backgrounds for each sector page */
.sector-hero.manufacturing {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/manufacturing.jpg');
    background-size: cover;
    background-position: center center;
}

/* Wholesale & Trade hero background */
.sector-hero.wholesale {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/wholesale-trade.jpg');
    background-size: cover;
    background-position: left center;
}

/* Structural hero background */
.sector-hero.structural {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/structural.png');
    background-size: cover;
    background-position: center center;
}

/* Marine hero background */
.sector-hero.marine {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/marine.jpeg');
    background-size: cover;
    background-position: left center;
}

.sector-hero-content {
    max-width: 800px;
    padding: 40px 20px;
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.sector-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.sector-hero-content p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sector-overview {
    padding: 80px 0;
    background: white;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 30px;
}

.overview-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 20px;
}

.overview-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.sector-services {
    padding: 80px 0;
    background: #f8f9fa;
}

.sector-services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.sector-features {
    padding: 80px 0;
    background: white;
}

.sector-features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

.sector-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background: white;
    color: #2c3e50;
}

.cta-btn.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #2c3e50;
}

/* ===== RESPONSIVE DESIGN FOR SECTOR PAGES ===== */
@media (max-width: 768px) {
    .sector-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

a.read-more {
    text-decoration: none !important;
    color: white !important;
}

a.read-more:visited,
a.read-more:hover,
a.read-more:active {
    text-decoration: none !important;
    color: white !important;
}

a.sector-title-link {
    text-decoration: none !important;
    color: white !important;
}

a.sector-title-link:visited,
a.sector-title-link:hover,
a.sector-title-link:active {
    text-decoration: none !important;
    color: white !important;
}

a.sector-title-link h3 {
    text-decoration: none !important;
    color: white !important;
}

/* Hero logo that appears only when navbar is hidden */
.hero-logo {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1;
    transition: all 0.4s ease;
    z-index: 10;
    pointer-events: none; /* Prevents interfering with card hover */
}

.hero-logo-img {
    height: 240px;
    width: auto;
    filter: none !important; /* Always in full color */
    transition: all 0.4s ease;
}

/* Hide logo when navbar is visible */
.navbar.scrolled ~ .hero .hero-logo {
    opacity: 0;
}

/* Remove any logo from within the cards */
.hero-sector-card .hero-logo-img {
    display: none !important;
}

/* Logo pop effect when hovering over center card - matches sector card scale */
.hero-logo.center-hovered .hero-logo-img {
    transform: scale(1.02);
    filter: brightness(1.05) !important;
}

/* ===== SECTORS PAGE ===== */
.sectors-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.sectors-hero-content {
    margin-bottom: 60px;
}

.sectors-logo {
    margin-bottom: 40px;
}

.sectors-logo-img {
    height: 150px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sectors-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.sectors-hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.sectors-hero .hero-sectors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: 100%;
    max-width: 1400px;
    height: 400px;
}

/* Responsive design for sectors page */
@media (max-width: 1200px) {
    .sectors-hero .hero-sectors {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }
    
    .sectors-hero .hero-sector-card {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .sectors-hero .hero-sectors {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sectors-hero .hero-sector-card {
        height: 250px;
        border-right: none;
        border-radius: 10px;
    }
    
    .sectors-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .sectors-logo-img {
        height: 100px;
    }
}

.services-grid-extended {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card-large {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card-large .service-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    display: block;
}

.service-card-large h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 600;
}

.service-details p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-details ul {
    margin: 10px 0;
    padding-left: 20px;
}

.service-details li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.featured-service {
    border: 2px solid #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.coming-soon-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.subtitle {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.highlight {
    background: #fff3cd;
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffc107;
    margin-top: 15px;
    font-weight: 500;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
    .services-grid-extended {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card-large {
        padding: 20px;
    }
}

/* Add these animations to your main.css file */

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.2;
    }
}

@keyframes slideInDown {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8;
    }
}

@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* HyperPortal-style background enhancements */
.hyperportal-bg {
    background: radial-gradient(circle at 20% 80%, rgba(52,152,219,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(155,89,182,0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(46,204,113,0.05) 0%, transparent 50%);
}

/* Enhanced service card styling */
.service-card-premium {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.service-card-premium > * {
    position: relative;
    z-index: 2;
}

/* Service icon hover effects */
.service-card-premium:hover .service-icon-premium {
    animation: pulse 1s ease-in-out infinite;
}

/* Trust badges styling */
.trust-badges .badge {
    transition: all 0.3s ease;
}

.trust-badges .badge:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Button hover effects */
button {
    transition: all 0.3s ease !important;
}

/* Orb animations for background */
.orb {
    filter: blur(1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .services-grid-premium {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .trust-badges {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
    }
    
    .services-header h2 {
        font-size: 2.5em !important;
    }
    
    .service-card-premium {
        padding: 30px !important;
    }
    
    .service-icon-premium {
        font-size: 3em !important;
    }
}

@media (max-width: 480px) {
    .services-header h2 {
        font-size: 2em !important;
    }
    
    .service-card-premium {
        padding: 25px !important;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced glassmorphism effect */
.service-card-premium {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Grid pattern enhancement */
.hyperportal-bg > div:first-child {
    animation: float 20s linear infinite;
}

/* HyperPortal Theme Override */
.hyperportal-theme {
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
}

/* REMOVED - This was causing lag
.hyperportal-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hyperglass-h-logo.png');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    z-index: -1;
    pointer-events: none;
}
*/

.hyperportal-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.hyperportal-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

/* Hero sector cards - rectangular with no curved corners */
.hero-sector-card.hyperportal-card {
    border-radius: 0 !important; /* Remove curved corners */
}

.hyperportal-text {
    color: rgba(248, 250, 252, 0.9);
}

.hyperportal-heading {
    color: #f8fafc;
    font-weight: 600;
}

/* TEMPORARY PERFORMANCE TEST - Remove heavy effects */
* {
    /* Disable all backdrop filters temporarily */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Re-enable only essential ones */
.hyperportal-navbar {
    backdrop-filter: blur(5px) !important;
}

.hyperportal-navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transform: translateY(-100%); /* Initially hidden */
    transition: transform 0.3s ease;
}

/* Show navbar when scrolling */
.hyperportal-navbar.show {
    transform: translateY(0);
}

.hyperportal-navbar .nav-links a {
    color: #f8fafc !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

.hyperportal-navbar .nav-links a:hover {
    color: #3b82f6 !important;
    transform: translateY(-1px);
}

.hyperportal-navbar .login-btn {
    color: #f8fafc !important;
    font-weight: 600 !important;
    opacity: 1 !important;
    background: rgba(59, 130, 246, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    transition: all 0.3s ease !important;
}

.hyperportal-navbar .login-btn:hover {
    background: rgba(59, 130, 246, 0.3) !important;
    border-color: rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-1px);
}

/* Add padding to body to account for potential navbar space */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    zoom: 1;
}

/* Ensure hero stays fixed on zoom */
.hero, .hero-sectors, .hero-sector-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}
