/* 
 * Stellar Material Solutions - Main Stylesheet
 * This file contains all styles for the SMS website
 */

/* ===== ACCESSIBILITY STYLES ===== */
.skip-link,
.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    padding: 8px;
    background: #0066cc;
    color: white;
    z-index: 100;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===== HEADER LAYOUT ADJUSTMENTS ===== */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.tagline {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    text-align: left;
}

.desktop-nav {
    margin-left: auto;
}

.desktop-nav ul {
    display: flex;
    justify-content: flex-end;
}

/* ===== SIDE CONTACT BUTTON ===== */
.side-contact-btn {
    position: fixed;
    right: -150px; /* Start off-screen */
    bottom: 50%;
    transform: translateY(50%) rotate(-90deg);
    transform-origin: left bottom;
    background-color: #0066cc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    transition: right 0.5s ease;
    z-index: 99;
    outline: none;
}

.side-contact-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.side-contact-btn:hover {
    background-color: #0052a3;
}

.side-contact-btn i {
    font-size: 18px;
    margin-right: 5px;
}

/* ===== NAVIGATION STYLES ===== */
.nav-contact-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-contact-btn:hover {
    background-color: #0052a3;
}

.nav-contact-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.mobile-menu .nav-contact-btn {
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    margin-top: 10px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Header styles */
.main-header {
    background-color: #0a0a1a; /* Dark blue-black color */
    background-image: radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 40px),
                      radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 30px),
                      radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 40px),
                      radial-gradient(rgba(255,255,255,.4), rgba(255,255,255,.1) 2px, transparent 30px);
    background-size: 550px 550px, 350px 350px, 250px 250px, 150px 150px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.logo-container, .company-name, .tagline, .desktop-nav {
    position: relative;
    z-index: 2;
}

/* Desktop Navigation Styles */
.desktop-nav {
    margin: 1.5rem auto;
    max-width: 800px;
    display: none; /* Hidden by default, shown in media query */
}

.desktop-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.desktop-nav a:hover, 
.desktop-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.desktop-nav a.active {
    font-weight: 700;
}

.logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.company-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
}

/* Main content styles */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.company-intro {
    margin-bottom: 3rem;
    text-align: justify;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Services section */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-category {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    object-fit: contain;
}

.category-header h2 {
    font-size: 1.5rem;
    color: #333;
    line-height: 1.3;
}

.service-list {
    list-style-type: none;
    padding: 1.5rem;
}

.service-list li {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #333;
    font-weight: bold;
}

.service-list li:last-child {
    margin-bottom: 0;
}

.service-list h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: bold;
}

.service-list p {
    font-size: 0.95rem;
    color: #555;
}

/* Footer styles */
footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 2rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1.5rem;
}

.company-section {
    flex: 0.8;
}

.logo-small {
    width: 100px;
    margin-bottom: 1rem;
}

.company-info {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    text-decoration: none;
    color: #0066cc;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #004c99;
    text-decoration: underline;
}

.contact-info {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #004c99;
    text-decoration: underline;
}

/* Responsive design - Mobile first approach */
@media (min-width: 576px) {
    .company-name {
        font-size: 2.8rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
}

@media (min-width: 768px) {
    .company-name {
        font-size: 3rem;
    }
    
    .service-category {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 992px) {
    .service-category {
        flex: 1;
    }
}

/* Page Header Styles */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Resource Page Styles */
.resource-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

.resource-category {
    margin-bottom: 1rem;
}

.resource-category h2 {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.resource-category h2 i {
    margin-right: 0.75rem;
    color: #0066cc;
}

.resource-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease;
    -moz-transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.resource-item:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.resource-icon {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.resource-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.resource-content p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.resource-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: #004c99;
    text-decoration: underline;
}

.resource-link i {
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* News Page Styles */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-filters {
    margin-bottom: 2rem;
}

.news-filters h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #e9e9e9;
}

.filter-btn.active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Twitter (X.com) specific styles */
.tweet-content {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hashtag {
    color: #0066cc;
    text-decoration: none;
}

.hashtag:hover {
    text-decoration: underline;
}

.tweet-engagement {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    color: #777;
    font-size: 0.85rem;
}

/* LinkedIn specific styles */
.linkedin-author {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.85rem;
    color: #666;
}

@media (min-width: 768px) {
    .news-item {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }
    
    .news-thumbnail {
        width: 250px;
        height: 100%;
    }
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 10px;
}

.hamburger-icon, 
.hamburger-icon::before, 
.hamburger-icon::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.hamburger-icon::before, 
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    top: 8px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 26, 0.95);
    z-index: 9;
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    -webkit-transform: translateX(-100%);
    -moz-transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    -webkit-transition: transform 0.3s ease-in-out;
    -moz-transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Make images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive styles */
@media (max-width: 1200px) {
    main {
        padding: 2rem 1.5rem;
    }
    
    .company-intro {
        font-size: 0.95rem;
    }
    
    .services-container {
        gap: 1.5rem;
    }
}

@media (max-width: 991px) {
    .services-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .service-category {
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }
    
    .company-intro {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    /* Show desktop navigation on tablet and larger screens */
    .desktop-nav {
        display: block;
    }
    
    /* Hide mobile menu elements on tablet and larger screens */
    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Show mobile menu elements on small screens */
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Hide desktop navigation on small screens */
    .desktop-nav {
        display: none;
    }
    
    .main-header {
        padding: 2rem 1rem;
    }
    
    .logo {
        max-width: 200px;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .company-intro {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .category-header {
        padding: 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-header h2 {
        font-size: 1.3rem;
    }
    
    .service-list {
        padding: 1.2rem;
    }
    
    .service-list h3 {
        font-size: 1rem;
    }
    
    .service-list p {
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        padding: 0 1.5rem;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 1.5rem 0.5rem;
    }
    
    .logo {
        max-width: 150px;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .company-intro {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
    }
    
    .service-category {
        min-width: auto;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .service-list li {
        padding-left: 1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}
