:root {
    --primary: #1a1a1a;
    --primary-light: #333333;
    --secondary: #666666;
    --accent: #404040;
    --accent-light: #595959;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-600: #757575;
    --gray-800: #424242;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--gray-100);
}

/* Sub-header Styles */
.sub-header {
    background: transparent;
    box-shadow: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    max-width: 100%;
    margin: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-menu {
    display: flex;
    gap: 30px;
    margin-left: auto;
    margin-right: 40px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 0.8rem 1.2rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4CAF50;
}

.nav-link.active {
    color: #4CAF50;
}

/* Visual Container - Updated to match manager_dashboard.php */
.visual-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hero Banner Styles - Updated */
.hero-banner {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    z-index: 2;
    text-align: center;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2E7D32;
    text-transform: uppercase;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.hero-overlay p {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.6),
        -2px -2px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.4);
    line-height: 1.4;
}

/* Gallery Styles - Updated to match manager_dashboard.php */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    width: 100%;
    height: 25vh;
    min-height: 150px;
    max-height: 250px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.25);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.5s ease;
    z-index: 1;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Welcome container */
.welcome-container {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.welcome-message {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2E7D32;
}

/* Features Grid - Update to match manager_dashboard.php */
.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 30px;
    width: 95%;
    max-width: 1600px;
    margin: 1.5rem auto;
    perspective: 1000px;
}

.feature-card {
    background: rgba(220, 220, 220, 0.95);
    border-radius: 20px;
    padding: 30px 25px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.05),
        0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(64, 64, 64, 0.05) 0%,
        rgba(89, 89, 89, 0.1) 100%
    );
    z-index: -1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    position: relative;
    background: linear-gradient(135deg, #2E7D32, #1B5E20);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphing 4s linear infinite;
}

.feature-icon i {
    font-size: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2E7D32;
    width: 100%;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 15px;
    font-weight: 400;
    width: 100%;
    flex-grow: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 0 20px rgba(64, 64, 64, 0.15);
}

.feature-card:hover .feature-icon {
    animation: 
        morphing 6s linear infinite,
        iconFloat 2s ease-in-out infinite;
}

/* Footer Styles */
.footer-divider-top, .footer-divider-bottom {
    width: 100%;
    height: 2px;
    background-color: #2E7D32;
}

.footer-divider-top {
    margin-bottom: 30px;
}

.footer-divider-bottom {
    margin-top: 30px;
}

.footer {
    background-color: var(--white);
    color: var(--primary);
    padding: 60px 0 40px;
    margin-top: 60px;
    border-top: 1px solid var(--gray-300);
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2E7D32;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.footer ul.list-unstyled li {
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.footer ul.list-unstyled li:hover {
    transform: translateX(5px);
}

.footer ul.list-unstyled li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer ul.list-unstyled li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2E7D32;
    transition: width 0.3s ease;
}

.footer ul.list-unstyled li a:hover {
    color: #2E7D32;
}

.footer ul.list-unstyled li a:hover::after {
    width: 100%;
}

.footer ul.list-unstyled {
    padding-left: 0;
    list-style: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0f0f0, #e6e6e6);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1),
                -5px -5px 10px rgba(255,255,255,0.7);
    color: #2E7D32;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15),
                -5px -5px 15px rgba(255,255,255,0.8);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(240, 240, 240, 0.3);
}

.contact-info-item:hover {
    background: rgba(240, 240, 240, 0.8);
    transform: translateX(5px);
}

.contact-info-item i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2E7D32;
    color: white;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 14px;
}

.copyright {
    background-color: #f8f9fa;
    padding: 20px 0;
    color: var(--primary);
    font-size: 14px;
    border-top: 1px solid var(--gray-300);
}

.footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 15px;
    position: relative;
}

.footer-link:hover {
    color: #2E7D32;
    text-decoration: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: var(--gray-600);
}

.footer-link:last-child::after {
    display: none;
}

.footer .container {
    max-width: 1200px;
}

.footer .row {
    display: flex;
    flex-wrap: wrap;
}

.footer .col-md-4 {
    flex: 1;
    padding: 0 15px;
    min-width: 300px;
}

/* Mobile Menu Styles */
.mobile-menu-container {
    display: none;
    position: relative;
}

.mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--primary);
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    margin-top: 5px;
}

.mobile-dropdown.show {
    display: block;
}

.mobile-dropdown a {
    color: white;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-dropdown a:last-child {
    border-bottom: none;
}

.mobile-dropdown a:hover {
    background: rgba(255,255,255,0.1);
}

/* Keyframes Animations */
@keyframes morphing {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0.5;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-overlay h1 {
        font-size: 3rem;
    }
    
    .hero-overlay p {
        font-size: 2rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.8rem 1rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .company-name {
        font-size: 14px;
        margin-left: 10px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-container {
        display: block;
    }
    
    .hero-banner {
        height: 60vh;
    }
    
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-overlay h1 {
        font-size: 2.5rem;
    }
    
    .hero-overlay p {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        padding: 15px;
    }
    
    .hero-overlay h1 {
        font-size: 2rem;
    }
    
    .hero-overlay p {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 20px;
    }
}

/* Stats Container Styles */
.stats-container {
    background: #2E7D32;
    padding: 40px 20px;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    text-align: center;
    color: white;
}

.stat-item {
    flex: 1;
    padding: 0 15px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number .unit {
    font-size: 2.5rem;
    font-weight: 700;
    margin-left: 5px;
}

.stat-label {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 500;
}

.stat-text {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.stat-description {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Timeline Styles - Corrected */
.company-timeline {
    background: #f5f5f5;
    padding: 40px 0; /* Reduced horizontal padding */
}

.timeline-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 50px;
}

.timeline-container {
    position: relative;
    max-width: 1200px; /* Added max-width */
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: #2E7D32;
}

.timeline-item {
    position: relative;
    margin-bottom: 100px;
    min-height: 100px;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #2E7D32;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #2E7D32;
    border-radius: 50%;
}

.timeline-content {
    width: 45%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    position: relative; /* Needed for positioning */
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    margin-right: 5%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    margin-left: 5%;
    text-align: left;
}

/* Clearfix for timeline items */
.timeline-item::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-header {
    margin-bottom: 15px;
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2E7D32;
}

.timeline-content h3 {
    font-size: 18px;
    color: #000;
    font-weight: bold;
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.timeline-info {
    background: #f8f8f8;
    border-radius: 6px;
    border-left: 4px solid #2E7D32;
    padding: 8px 12px;
    margin-top: 10px;
    width: 100%;
}

.info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.capacity {
    color: #2E7D32;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
    font-family: 'Playfair Display', serif;
    width: 100%;
    max-width: 500px;
    text-align: justify;
    hyphens: auto;
    font-weight: 500;
}

.expanded-info {
    background: #f1f1f1;
    border-radius: 4px;
    padding: 20px;
    margin-top: 15px;
    display: none;
}

.expanded-info.show {
    display: block;
}

.expanded-info p {
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    text-align: justify;
    hyphens: auto;
    word-spacing: -1px;
}

.expanded-info p:last-child {
    margin-bottom: 0;
}

.timeline-item:nth-child(odd) .info-wrapper {
    align-items: flex-end;
}

.timeline-item:nth-child(even) .info-wrapper {
    align-items: flex-start;
}

.timeline-image {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.expand-btn {
    background: #2E7D32;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expand-btn:hover {
    background: #1b5e20;
}

.expand-btn:focus {
    outline: none;
    border-color: #ccc;
}

.timeline-background-image {
    position: absolute;
    width: 400px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-item:nth-child(odd) .timeline-background-image {
    left: 52%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-background-image {
    right: 52%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item .expanded-info.show + .timeline-background-image {
    opacity: 0;
    pointer-events: none;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item {
        padding: 20px 0;
    }

    .timeline-line {
        left: 20px; /* Move line to the left */
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: auto; /* Let it take available space */
        float: none;
        margin-left: 40px; /* Space from the line */
        margin-right: 0;
        text-align: left;
    }

    .timeline-dot {
        left: 20px;
    }
    
    .capacity,
    .expanded-info,
    .timeline-image {
        max-width: 100%;
    }
    
    .timeline-item .info-wrapper {
        align-items: flex-start !important;
    }
    
    .capacity,
    .expanded-info p {
        text-align: left;
        hyphens: none;
    }
    
    .company-timeline {
        padding: 20px 10px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-image {
        margin-left: -15px; /* Adjust for padding */
        margin-right: -15px; /* Adjust for padding */
        border-radius: 0;
        max-width: none;
    }
    
    .timeline-image img {
        border-radius: 0;
    }
    
    .timeline-background-image {
        display: none; /* Hide background images on mobile */
    }
} 