/* ==================================== */
/*            ROOT VARIABLES            */
/* ==================================== */

:root {
    --primary-color: #632E8F;
    --primary-color-dark: #4b1f6e;
    --menu-bg-color: #E5EAF5;
    --dropdown-hover-bg: #e0d6eb;
    --dropdown-border: #b08ac7;
    --balsamic-white: #F8BF00;
    --transition-fast: 0.3s ease-in-out;
}

/* ==================================== */
/*            GLOBAL STYLES             */
/* ==================================== */

html, body {
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Montserrat", sans-serif;
    background-color: var(--menu-bg-color);
    overflow-x: hidden;
}

/* ==================================== */
/*               NAVBAR                 */
/* ==================================== */

.navbar-upper {
    background: var(--primary-color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    width: 100vw;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
    height: 100px;
    position: relative;
}

.navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    width: 100%;
}

.navbar-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 9px rgba(0, 0, 0, 0.15), 
                0px 3px 6px rgba(0, 0, 0, 0.10);
    width: 170px;
    height: 70px;
    margin-left: 30px;
}

.navbar-logo {
    max-width: 160px;
    height: auto;
}

.navbar-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    gap: 20px;
    padding-right: 40px;
}

.navbar-nav {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    gap: 20px;
    width: auto;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 15px;
}

.nav-link {
    color: white;
    font-weight: normal;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 16px;
    padding: 10px 15px;
}

.nav-link:hover {
    color: var(--balsamic-white);
}

.nav-item a {
    display: inline-block;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--balsamic-white);
    transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}

/* ==================================== */
/*         MEGA DROPDOWN MENU           */
/* ==================================== */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(75, 31, 110, 0.95);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .dropdown-menu {
        background-color: rgba(75, 31, 110, 0.85);
    }
}

.nav-item:hover > .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-left, .dropdown-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #E5EAF5;
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-align: left;
    border-radius: 6px;
    width: 100%;
    background-color: transparent;
}

.dropdown-item:hover {
    background-color: #E5EAF5;
    color: var(--primary-color-dark);
}

/* ==================================== */
/*      COMPANY TIMELINE SECTION       */
/* ==================================== */

.company-timeline {
    padding: 80px 20px;
    background: var(--menu-bg-color);
    min-height: 60vh;
}

.timeline-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.15s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 46, 143, 0.2);
}

.timeline-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.timeline-title-box {
    margin-bottom: 20px;
}

.timeline-title-box h3 {
    font-size: 22px;
    color: var(--primary-color-dark);
    font-weight: 700;
    margin: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    display: inline-block;
}

.timeline-box {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.timeline-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 120px;
}

.timeline-box ul li {
    font-size: 14px;
    color: #555;
    padding: 8px 15px;
    background: #f8f5fc;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.timeline-box ul li:hover {
    background: var(--dropdown-hover-bg);
}

/* ==================================== */
/*        CENTERED SECTION              */
/* ==================================== */

.centered-section {
    padding: 80px 20px;
    background: var(--menu-bg-color);
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.text-block {
    flex: 1;
    background: white;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.text-block:nth-child(2) {
    animation-delay: 0.2s;
}

.text-block:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 46, 143, 0.2);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.text-frame ul li:nth-child(1) { animation-delay: 0.4s; }
.text-frame ul li:nth-child(2) { animation-delay: 0.5s; }
.text-frame ul li:nth-child(3) { animation-delay: 0.6s; }
.text-frame ul li:nth-child(4) { animation-delay: 0.7s; }
.text-frame ul li:nth-child(5) { animation-delay: 0.8s; }
.text-frame ul li:nth-child(6) { animation-delay: 0.9s; }

.centered-logo-container {
    display: none;
}

.centered-logo {
    display: none;
}

.text-frame h2 {
    font-size: 28px;
    color: var(--primary-color-dark);
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 0;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.text-frame ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 800px;
}

.text-frame ul li {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    padding: 0;
    background: none;
    border: none;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    opacity: 0;
    transform: translateX(-10px);
    animation: slideInLeft 0.5s ease forwards;
}

.text-frame ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.text-frame ul li:hover {
    color: var(--primary-color-dark);
}

.text-frame ul li ul {
    margin-top: 15px;
    padding-left: 20px;
}

.text-frame ul li ul li {
    background: none;
    font-size: 14px;
    padding: 0;
    padding-left: 15px;
    margin-bottom: 5px;
    border: none;
}

.text-frame ul li ul li::before {
    content: '◦';
    color: var(--balsamic-white);
}

.text-frame a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.text-frame a:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* ==================================== */
/*          MOBILE MENU STYLES          */
/* ==================================== */

@media (max-width: 992px) {
    .navbar-links {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .navbar-links {
        display: flex !important;
    }
}

/* ==================================== */
/*       STICKY BOTTOM NAVIGATION       */
/* ==================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color-dark);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
    height: 60px;
}

.mobile-bottom-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 8px 12px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mobile-bottom-nav button .icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.mobile-bottom-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    body {
        padding-bottom: 70px;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
}

@media (min-width: 993px) {
    .mobile-bottom-nav {
        display: none;
    }
}

/* ==================================== */
/*               FOOTER                 */
/* ==================================== */

.footer {
    background-color: white;
    color: var(--primary-color);
    padding: 60px 40px 40px;
    margin-top: 40px;
    width: 100%;
    text-align: left;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    gap: 40px;
    height: auto;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-center {
    align-items: center;
    text-align: center;
}

.footer-right {
    align-items: flex-end;
    text-align: right;
}

.footer-left {
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    width: 130px;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 18px;
}

.footer-text,
.footer a {
    font-size: 16px;
    color: black;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease, font-weight 0.3s ease;
    line-height: 1.6;
}

.footer a:hover {
    color: var(--primary-color);
    font-weight: bold;
}

.footer-socials a {
    margin-right: 12px;
    font-size: 16px;
}

/* ==================================== */
/*           RESPONSIVE DESIGN          */
/* ==================================== */

@media (max-width: 768px) {
    .company-timeline {
        padding: 40px 15px;
    }
    
    .timeline-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-item {
        padding: 25px 15px;
        max-width: none;
        min-width: auto;
        margin: 0 5px;
    }
    
    .timeline-title-box h3 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .timeline-box ul li {
        font-size: 14px;
        padding: 10px 15px;
    }
    
    .centered-section {
        padding: 40px 15px;
        flex-direction: column;
        gap: 30px;
    }
    
    .text-block {
        padding: 30px 20px;
        max-width: none;
    }
    
    .text-frame h2 {
        font-size: 24px;
    }
    
    .text-block {
        text-align: left;
    }
    
    .text-frame ul li {
        font-size: 14px;
        padding-left: 18px;
    }
    
    .navbar-upper {
        height: auto;
        padding: 10px 0;
    }
    
    .navbar-logo-container {
        margin-left: 15px;
        width: 150px;
        height: 60px;
        padding: 10px 15px;
    }
    
    .navbar-logo {
        max-width: 140px;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
        padding: 20px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        align-items: center;
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

    .footer-logo {
        margin: 0 auto 20px;
    }

    .footer h4 {
        font-size: 17px;
    }

    .footer-text,
    .footer a {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .timeline-logo {
        width: 50px;
        height: 50px;
    }
    
    .timeline-title-box h3 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .timeline-item {
        padding: 20px 10px;
        margin: 0 2px;
    }
    
    .text-frame h2 {
        font-size: 22px;
    }
    
    .centered-logo {
        max-width: 150px;
    }
}