/* Common styles for Mushroom Computing website */

/* Basic styling */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Global image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(45deg, #013042, #327b8c);
    color: white;
    padding: 4rem 0;
    padding-top: calc(4rem + 80px); /* Add space for fixed navbar */
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.page-header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive adjustments for page header */
@media (max-width: 768px) {
    .page-header {
        min-height: 40vh;
        padding: 1rem 0;
        padding-top: calc(1rem + 70px); /* Adjust for smaller navbar on mobile */
    }
    
    .page-header .container {
        padding: 1.5rem 15px;
    }
}

/* Navigation bar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #013042 !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: color 0.3s ease;
    font-size: 1.6rem;
}

.navbar-nav .nav-link:hover {
    color: #327b8c !important;
}

/* Buttons */
.btn-primary {
    background-color: #327b8c;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #013042;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 123, 140, 0.3);
}

/* Footer */
footer {
    background-color: #013042;
    color: white;
    padding: 2rem 0;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.2rem;
}

footer ul li {
    margin-bottom: 0.5rem;
}

/* Hero section styles */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: 80px; /* Add space for fixed navbar */
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Medium dark overlay for better text readability */
}

.hero-content {
    position: relative;
    color: white;
    z-index: 1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    padding-left: 0;
    padding-right: 0;
    padding-top: 1.5rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* Card styles */
.feature-card, .service-card, .values-card, .contact-info-card {
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);    transition: transform 0.3s ease;
    height: 100%;
    text-align: center;
}

/* Features section */
.features-section {
    padding: 2rem 0 5rem 0;
    background-color: #f8f9fa;
}

/* Section styling */
.section-bg-light {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.section-title {
    color: #013042;
    position: relative;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #327b8c;
    border-radius: 2px;
}

/* Icon Styles */
.feature-icon, .service-icon, .value-icon, .contact-icon {
    font-size: 2.5rem;
    color: #327b8c;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Social icons */
.social-icons a {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: #327b8c;
    transform: translateY(-3px);
}

/* Contact info styling */
.contact-info p {
    display: flex;
    align-items: flex-start;
}

.icon-wrapper {
    display: inline-block;
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* Contact page specific styles */
.contact-info-aligned {
    display: inline-block;
    text-align: left;
}

.contact-info-aligned p {
    margin-bottom: 0.5rem;
}

.contact-label {
    display: inline-block;
    width: 65px;
    font-weight: 500;
    text-align: right;
    padding-right: 8px;
}

.info-label, .support-label {
    width: 70px;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .contact-info-card {
        margin-bottom: 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 0;
        padding-top: 70px; /* Adjust for smaller navbar on mobile */
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 60vh;
        padding: 0;
        padding-top: 70px; /* Consistent mobile navbar height */
    }
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    padding: 0.8rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    border-radius: 8px;
}

.form-control:focus {
    border-color: #327b8c;
    box-shadow: none;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.contact-form form {
    display: inline-block;
    text-align: left;
    width: 100%;
    max-width: 500px;
}

/* Equal height row */
.row.equal-height {
    display: flex;
    flex-wrap: wrap;
}

/* Recruitment Link */
.recruitment-link {
    display: block;
    text-align: center;
    margin: 20px auto;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    background-color: #013042;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    max-width: 1140px;
}

.recruitment-link:hover {
    background-color: #327b8c;
    color: #ffffff;
}

@media (max-width: 1200px) {
    .recruitment-link {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .recruitment-link {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .recruitment-link {
        max-width: 540px;
    }
}

@media (max-width: 576px) {
    .recruitment-link {
        max-width: 100%;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }
}
