:root {
    --vh: 1vh;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

.section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://source.unsplash.com/random/1600x900/?technology,office') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    color: white;
    height: 90vh;
    height: calc(var(--vh, 1vh) * 90);
    display: flex;
    align-items: center;
}

.page-footer {
    padding-top: 0;
}

.parallax-container {
    height: 300px;
}

.service-icon {
    font-size: 3rem;
    color: #26a69a;
    margin-bottom: 1rem;
}

.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.product-card {
    transition: transform 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
}

.contact-info {
    margin-top: 2rem;
}

.brand-logo {
    font-weight: bold;
}

/* Mobile navigation fixes */
.sidenav {
    padding-top: 20px;
}

.sidenav li {
    line-height: 48px;
}

.sidenav li a {
    font-size: 16px;
    font-weight: 500;
    height: 48px;
    line-height: 48px;
    padding: 0 32px;
}

.sidenav li a:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Form validation styles */
.input-field .helper-text {
    color: #f44336;
}

.input-field .valid {
    border-bottom: 1px solid #4caf50;
    box-shadow: 0 1px 0 0 #4caf50;
}

.input-field .invalid {
    border-bottom: 1px solid #f44336;
    box-shadow: 0 1px 0 0 #f44336;
}

/* Success message styling */
.success-message {
    background-color: #4caf50;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

/* Prevent flash of unstyled content */
.no-js .sidenav-trigger {
    display: none;
}

/* Ensure smooth scrolling behavior */
html {
    scroll-behavior: auto;
}

/* Active navigation states */
.nav-active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness */
@media only screen and (max-width: 600px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h4 {
        font-size: 1.5rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .contact-info .col {
        margin-bottom: 2rem;
    }
    
    .section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .parallax-container {
        height: 200px;
    }
    
    /* Fix for mobile navigation trigger */
    .sidenav-trigger {
        display: block !important;
    }
    
    .hero {
        background-attachment: scroll;
        height: 80vh;
        height: calc(var(--vh, 1vh) * 80);
    }
}

/* Tablet responsiveness */
@media only screen and (max-width: 992px) {
    .team-member {
        margin-bottom: 2rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

/* Fix for Materialize sidenav overlay */
.sidenav-overlay {
    z-index: 996;
}

/* Smooth transitions */
a, button, .card, .card-panel {
    transition: all 0.3s ease;
}

/* Loading state for form submission */
.form-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Scroll animation fix */
.no-scroll {
    overflow: hidden;
}

/* Mobile menu trigger fix */
.sidenav-trigger {
    cursor: pointer;
}