/* ================= Base & Reset ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

/* ================= Header Layout ================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    left: 0;
    z-index: 1000;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

/* ================= Container ================= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* ================= Logo ================= */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* ================= Navigation (Desktop) ================= */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu li {
    position: relative;
}

.menu-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    display: block;
    transition: color 0.3s;
}

.menu-link span {
    display: inline-block;
    transition: transform 0.3s;
}

/* ================= Dropdown (Desktop) ================= */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    list-style: none;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    border-top: 3px solid #ff9700;
    z-index: 1100;
}

.dropdown li a {
    padding: 12px 20px;
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown li a:hover {
    background: #f8f9fa;
    color: #1a0768;
    padding-left: 25px;
}

/* Desktop Hover Logic */
@media (min-width: 992px) {
    .menu-link:hover {
        color: #ff9700;
    }

    .menu-link:hover span {
        transform: translateY(-3px);
    }

    .has-dropdown:hover .dropdown {
        display: block;
    }

    .has-dropdown .menu-link::after {
        content: '\f107';
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-left: 6px;
        font-size: 12px;
        color: #999;
    }
}

/* ================= Buttons ================= */
.btn-primary {
    background: #ff9700;
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary:hover {
    background: #e68a00;
}

.menu-btn {
    display: none;
}

/* ================= Hamburger ================= */
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #1a0768;
    cursor: pointer;
    padding: 5px;
}

/* ================= Responsive ================= */
@media (max-width: 991px) {

    .hamburger { display: block; }
    .desktop-btn { display: none; }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        display: none;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        height: auto;
        padding-bottom: 20px;
    }

    .main-nav.active { display: block; }

    .menu {
        flex-direction: column;
        gap: 0;
    }

    .menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f1f1f1;
    }

    .menu-link {
        padding: 15px 0;
        width: 100%;
    }

    .menu-link span {
        transform: none !important;
    }

    .dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        border-top: none;
        width: 100%;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .has-dropdown.active > .menu-link {
        color: #ff9700;
        background: #fff8f0;
    }

    .menu-btn {
        display: block;
        border-bottom: none;
        padding: 25px 0 10px;
    }
}





/* --- Main Container --- */
    .social-side-bar {
        position: fixed;
        top: 60%;
        right: 0;
        transform: translateY(-50%);
        z-index: 9999;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    /* --- Individual Box Styling --- */
    .social-side-bar a {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 45px;  /* Optimal Size */
        height: 45px; /* Optimal Size */
        background-color: #1a0768; /* Fixed Background: Deep Blue */
        color: #ffffff; /* Default Icon Color: White */
        text-decoration: none;
        font-size: 20px;
        
        /* Modern styling */
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
        box-shadow: -2px 2px 8px rgba(0,0,0,0.3);
        
        /* Smooth transition for color and movement */
        transition: all 0.3s ease;
        position: relative;
        border-left: 3px solid transparent; /* Placeholder for animation */
    }

    /* --- 1. MOUSEOVER Animation (Specific Item) --- */
    .social-side-bar a:hover {
        width: 55px; /* Slight expansion for feedback */
        color: #ff9700; /* ONLY Icon turns Orange */
        background-color: #1a0768; /* Background stays Blue */
        border-left: 3px solid #ff9700; /* Solid Orange line on hover */
        
        /* Stop automatic animation on the hovered item only */
        animation: none; 
    }

    /* Scale the icon slightly on hover for effect */
    .social-side-bar a:hover i {
        transform: scale(1.1);
        transition: transform 0.2s;
    }

    /* --- 2. AUTOMATIC Animation (Left Border Flash) --- */
    /* This runs continuously to catch the eye */
    .social-side-bar a {
        animation: border-flash 4s infinite;
    }

    @keyframes border-flash {
        0%, 100% { border-left-color: transparent; }
        50% { border-left-color: #ff9700; } /* Flashes Orange */
    }

    /* Stagger the automatic animation for a 'waterfall' effect */
    .social-side-bar a:nth-child(1) { animation-delay: 0.0s; }
    .social-side-bar a:nth-child(2) { animation-delay: 0.5s; }
    .social-side-bar a:nth-child(3) { animation-delay: 1.0s; }
    .social-side-bar a:nth-child(4) { animation-delay: 1.5s; }
    .social-side-bar a:nth-child(5) { animation-delay: 2.0s; }

    /* --- Mobile Fix --- */
    @media (max-width: 768px) {
        .social-side-bar a { width: 40px; height: 40px; font-size: 18px; }
        .social-side-bar a:hover { width: 40px; } /* No expansion on mobile */
    }