/* Main Stylesheet for Alamco Spaceworks */

/* 1. Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Merriweather:ital,wght@0,300;0,400;1,300&family=Montserrat:wght@400;500;600;700&display=swap');

/* 2. Tailwind Custom Configuration (Applied via standard CSS for specific overrides) */
:root {
    --primary: #25c2e3;
    --primary-dark: #1b8ba0;
    --bg-dark: #171717; /* neutral-900 */
    --bg-card: #262626; /* neutral-800 */
    --text-light: #d4d4d4;
}

/* 3. Base Resets & Scrollbar */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: #d4d4d4; /* neutral-300 */
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* 4. Typography Utilities */
.font-heading {
    font-family: 'Montserrat', sans-serif;
}

.font-serif {
    font-family: 'Merriweather', serif;
}

/* 5. Navigation Active State */
.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
}

/* 6. Page Header (Common for sub-pages) */
.page-header {
    background: linear-gradient(rgba(23, 23, 23, 0.8), rgba(23, 23, 23, 0.9)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px 0;
    text-align: center;
}

/* 7. Card Hover Effects */
.service-card, .project-card {
    transition: all 0.3s ease;
}

.service-card:hover, .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 8. Form Styles */
.form-input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid #404040;
    color: white;
    padding: 12px 16px;
    border-radius: 0.5rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* 9. CSS Styling for the Alamco Team Section --- */
.alamco-team-section {
    background-color: #373737;
    color: #ffffff;
    padding: 60px 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.alamco-team-section h2 {
    color: #ffffff;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.alamco-team-section p.intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background-color: transparent;
    border-radius: 8px;
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    overflow: visible; 
    display: flex;
    flex-direction: column;
    padding-bottom: 20px; 
}

/* Hover effect: Only subtle lift */
.team-member:hover {
    transform: translateY(-5px);
}

.member-image-wrapper {
    position: relative;
    width: calc(100% - 60px);
    height: 0;
    padding-bottom: calc(100%); 
    margin: 0 auto;
    margin-top: 20px;
    z-index: 1;
    overflow: hidden; 
    border-radius: 0px;
}

.member-background-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%; 
    background-color: #29c2e3;
    z-index: 0;
}

.member-photo {
    position: absolute;
    bottom: 0; 
    left: 50%;
    transform: translateX(-50%); 
    height: 100%; 
    
    /* CRITICAL FIX: Further height reduction to stop clipping */
    height: 100%; /* Reduced from 110% to give the top more breathing room */
    
    object-fit: cover;
    /* Adjusted object-position to ensure the head is visible while maintaining anchor */
    object-position: center 90%; /* Pushes the subject slightly lower/more centered in the frame */
    
    display: block;
    filter: grayscale(100%); 
    transition: filter 0.5s ease-in-out, transform 0.5s ease-in-out;
    z-index: 2;
    border-radius: 4px;
}

/* Photo Color on Hover */
.team-member:hover .member-photo {
    filter: grayscale(0%);
}

.member-info {
    position: relative;
    z-index: 3;
    padding: 20px 0 0;
    margin-top: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.member-name {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ffffff;
    z-index: 1;
}

.member-title {
    font-size: 1em;
    color: #29c2e3;
    font-weight: 400;
    z-index: 1;
    margin-bottom: 0;
}

/* Specific adjustments for smaller screens */
@media (max-width: 768px) {
    .member-image-wrapper {
        width: calc(100% - 30px);
        padding-bottom: calc(100% - 30px);
        margin-top: 15px;
    }
    .member-photo {
        height: 102%; /* Very slight height increase for projection */
        object-position: center 90%;
    }
}


/* 10. Logo Slider Animation & Styles (for seamless loop) */
@keyframes scroll-right {
    /* Start point: -50% to show the duplicated content */
    0% { transform: translateX(-50%); } 
    /* End point: 0% to complete one loop */
    100% { transform: translateX(0); }
}

.logo-slider {
    /* Prevents logos from wrapping */
    white-space: nowrap; 
    /* Hides the duplicate content overflow */
    overflow: hidden; 
}

.logo-slider-track {
    /* Display inline-block allows the animation to work on a single continuous track */
    display: inline-block;
    /* Animation applied here for looping */
    animation: scroll-right 40s linear infinite;
    /* Duplicate the logos in the HTML for seamless looping */
    width: 200%; 
    /* FIX: Initial state set to match 0% of keyframes for a 'filled' look */
    transform: translateX(-50%); 
}

.logo-slide {
    /* Ensure each logo takes a defined space */
    display: inline-block;
    width: 200px; 
    /* Optional: Add space between logos */
    padding: 0 2rem; 
}

/* 11. Container Width Fix */


/* Re-apply the centering for large screens */
@media (min-width: 1200px) {
    .container {
        /* Adjust 1200px to match your design's max-width */
        max-width: 1200px; 
        margin-left: auto;
        margin-right: auto;
        /* Remove the forced padding if the container is already centered */
        padding-left: 100px !important; 
        padding-right: 100px !important;
    }
}
/* Re-apply the centering for large screens */
@media (min-width: 1200px) {
    .container1 {
        padding-left: 0px !important; 
        padding-right: 0px !important;
    }
}

/* --- Standard Preloader Container --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #373737;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- Animation Styles --- */

.loader-logo {
  width: 120px; /* Adjust size here */
  height: auto;
}

@keyframes sequential-pulse {
  0% { opacity: 0.2; }   /* Dim */
  50% { opacity: 1; }    /* Bright */
  100% { opacity: 0.2; } /* Dim */
}

/* Base animation settings for all lines */
.loader-logo polygon {
  opacity: 0.2; 
  /* Total duration is 1.2s for a faster, sleeker loop */
  animation: sequential-pulse 1.2s infinite ease-in-out;
}

/* --- The Staggered Delays (Left to Right) --- */

/* 1. The Leftmost Line (This is actually the 3rd polygon in your SVG code) */
.loader-logo polygon:nth-of-type(3) {
  animation-delay: 0s; /* Starts immediately */
}

/* 2. The Middle Line */
.loader-logo polygon:nth-of-type(2) {
  animation-delay: 0.2s; /* Waits slightly */
}

/* 3. The Rightmost Line (This is the 1st polygon in your SVG code) */
.loader-logo polygon:nth-of-type(1) {
  animation-delay: 0.4s; /* Waits the longest */
}
/* --- Standard Preloader Container ends --- */