:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9f9f9;
    color: var(--dark-color);
    overflow-x: hidden;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/Aristotle Legacy/servicom-logo-removebg-preview.png') center/contain no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}


.legacy-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.achievement-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: white;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achievement-card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.signature {
    font-family: 'Brush Script MT', cursive;
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-pills .nav-link.active {
    background-color: var(--secondary-color);
}

.nav-pills .nav-link {
    color: var(--dark-color);
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 18px;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .legacy-title {
        font-size: 1.8rem;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 10;
    color: white;
    opacity: 1;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-size: 2rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}







/* Modern Timeline Styles */
.modern-timeline {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #4e54c8, #8f94fb);
    border-radius: 2px;
}

.timeline-block {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

.timeline-img {
    width: 60px;
    height: 60px;
    background: #4e54c8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(78, 84, 200, 0.3);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-content {
    width: calc(50% - 50px);
    padding: 20px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-block:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-block:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.timeline-date {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

.timeline-content h3 {
    color: #4e54c8;
    margin: 0;
    font-size: 20px;
}

.timeline-content p {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

.timeline-badge {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-block:nth-child(odd) .timeline-badge {
    right: -60px;
}

.timeline-block:nth-child(even) .timeline-badge {
    left: -60px;
}

/* Different colored badges */
.badge-1 { background-color: #4e54c8; }
.badge-2 { background-color: #8f94fb; }
.badge-3 { background-color: #6a11cb; }
.badge-4 { background-color: #2575fc; }
.badge-5 { background-color: #4facfe; }
.badge-6 { background-color: #00f2fe; }
.badge-7 { background-color: #00d2ff; }
.badge-8 { background-color: #3a7bd5; }
.badge-9 { background-color: #00d2ff; }
.badge-10 { background-color: #4facfe; }
.badge-11 { background-color: #3a7bd5; }

/* Hover Effects */
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }

    .timeline-img {
        left: 30px;
        transform: none;
    }

    .timeline-content {
        width: calc(100% - 100px);
        margin-left: 80px !important;
    }

    .timeline-badge {
        left: 0px !important;
        right: auto !important;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date {
        margin-bottom: 5px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-block {
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-block:nth-child(1) { animation-delay: 0.1s; }
.timeline-block:nth-child(2) { animation-delay: 0.2s; }
.timeline-block:nth-child(3) { animation-delay: 0.3s; }
.timeline-block:nth-child(4) { animation-delay: 0.4s; }
.timeline-block:nth-child(5) { animation-delay: 0.5s; }
.timeline-block:nth-child(6) { animation-delay: 0.6s; }
.timeline-block:nth-child(7) { animation-delay: 0.7s; }
.timeline-block:nth-child(8) { animation-delay: 0.8s; }
.timeline-block:nth-child(9) { animation-delay: 0.9s; }
.timeline-block:nth-child(10) { animation-delay: 1.0s; }
.timeline-block:nth-child(11) { animation-delay: 1.1s; }



/* Home Button Styles */
.home-nav {
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.home-button {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.home-button:hover {
  transform: translateX(-5px);
  color: #fff;
}

/* Floating Button Style */
.floating-home-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(78, 84, 200, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.floating-home-button:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 6px 25px rgba(78, 84, 200, 0.4);
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .floating-home-button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}








header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 1rem 0;
    min-width: 70%;
    position: relative;
    display: flex;
    justify-content: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 80px;
    margin-right: 15px;
}

.logo-text h1 {
    margin: 0;
    font-size: 1.8rem;
}

.logo-text p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.9;
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff; /* optional, for contrast */
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-container img {
    height: 80px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.2);
}

.logo-text h1 {
    margin: 0;
    font-size: 24px;
    color: #1a1a1a;
}

.logo-text p {
    margin: 4px 0 0;
    color: #555;
    font-size: 14px;
}




nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
