@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.hero-content,
.section-content {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.stats-card,
.card {
    animation: fadeInUp 1.2s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.stats-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Standard Top Navbar */
.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(30, 58, 138, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-top.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

.nav-top .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Magic UI-inspired Bottom Dock */
.nav-bottom {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 20px);
    max-width: 1280px;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-bottom.visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.nav-bottom .nav-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    max-width: 1280px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-top .nav-links {
    gap: 2rem;
}

.nav-bottom .nav-links {
    gap: 0.5rem;
}

.nav-item {
    white-space: nowrap;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.nav-top .nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #facc15;
}

/* Magic UI Dock Zoom Effect */
.nav-bottom .nav-item {
    position: relative;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-bottom .nav-item:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
    color: #facc15;
    z-index: 10;
}

.nav-bottom .nav-item:hover~.nav-item,
.nav-bottom .nav-item:has(~ .nav-item:hover) {
    transform: scale(1.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-top .nav-logo {
    padding: 0.5rem 0;
}

.nav-bottom .nav-logo {
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #facc15;
    transition: transform 0.5s ease;
}

.nav-bottom .nav-logo img {
    width: 28px;
    height: 28px;
}

.nav-logo img:hover {
    transform: rotate(180deg);
}

.nav-logo span {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-bottom .nav-logo span {
    font-size: 0.875rem;
    font-weight: 600;
}

.nav-item.active {
    background: rgba(250, 204, 21, 0.2);
    color: #fa9b15;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.button-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#hero {
    padding-top: 80px;
}

#hero .stats-card,
#hero .stats-card * {
    background-color: #f9642e !important;
    color: white !important;
    border: none;
}
#hero .button-hover:hover {
    background-color: #f9642e !important;
    color: white !important;
}

.chart-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.chart-container canvas {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    touch-action: manipulation;
}

.chart-container canvas:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Marquee Effect for Top Recruiters */
.marquee {
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    width: 100%;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: none;
}

.marquee--left .marquee-content {
    animation: marquee-left 20s linear infinite;
}

.marquee--right .marquee-content {
    animation: marquee-right 20s linear infinite;
}

@keyframes marquee-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes marquee-right {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.marquee img {
    height: 40px;
    margin: 0 1.5rem;
    transition: transform 0.3s ease;
}

.marquee img:hover {
    transform: scale(1.05);
}

/* Desktop/Laptop sizing */
@media (min-width: 1024px) {
    .chart-container {
        min-height: 300px;
        max-height: 350px;
        padding: 1.5rem;
    }

    #placementBarChart,
    #higherStudiesBarChart {
        min-height: 250px !important;
        max-height: 300px !important;
    }

    #sectorPieChart {
        min-height: 300px !important;
        max-height: 350px !important;
    }

    .chart-container canvas {
        height: 280px !important;
        width: 100% !important;
    }

    .marquee img {
        height: 56px;
        margin: 0 2rem;
    }
}

/* Tablet sizing */
@media (max-width: 1023px) and (min-width: 769px) {
    .chart-container {
        min-height: 280px;
        padding: 1rem;
    }

    #placementBarChart,
    #higherStudiesBarChart,
    #sectorPieChart {
        min-height: 260px !important;
        max-height: 320px !important;
    }

    .chart-container canvas {
        height: 260px !important;
        width: 100% !important;
    }

    .nav-bottom .nav-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-bottom .nav-logo img {
        width: 26px;
        height: 26px;
    }

    .nav-bottom .nav-logo span {
        font-size: 0.8rem;
    }

    .marquee img {
        height: 48px;
        margin: 0 1.25rem;
    }

    .marquee--left .marquee-content,
    .marquee--right .marquee-content {
        animation-duration: 18s;
    }
}

/* Mobile responsive navigation and marquee */
@media (max-width: 768px) {
    .nav-top {
        padding: 0.75rem 1rem;
    }

    .nav-top .nav-links {
        gap: 1rem;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0.25rem 0;
    }

    .nav-top .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-top .nav-item {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        flex-shrink: 0;
    }

    .nav-bottom {
        max-width: 1280px;
        padding: 0.4rem;
    }

    .nav-bottom .nav-container {
        justify-content: space-between;
    }

    .nav-bottom .nav-links {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-bottom .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-bottom .nav-item {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        flex-shrink: 0;
    }

    .nav-bottom .nav-item:hover {
        transform: scale(1.1);
    }

    .nav-bottom .nav-item:hover~.nav-item,
    .nav-bottom .nav-item:has(~ .nav-item:hover) {
        transform: scale(1.05);
    }

    .nav-logo span {
        font-size: 1rem;
    }

    .nav-bottom .nav-logo span {
        font-size: 0.75rem;
    }

    .nav-logo img,
    .nav-bottom .nav-logo img {
        width: 24px;
        height: 24px;
    }

    #hero {
        padding-top: 70px;
    }

    .chart-container {
        min-height: 320px;
        padding: 1rem;
    }

    #placementBarChart,
    #higherStudiesBarChart {
        min-height: 300px !important;
        max-height: 350px !important;
    }

    #sectorPieChart {
        min-height: 350px !important;
        max-height: 400px !important;
    }

    .chart-container canvas {
        height: 300px !important;
        width: 100% !important;
    }

    .chart-container:has(#sectorPieChart) canvas {
        height: 350px !important;
    }

    .marquee img {
        height: 32px;
        margin: 0 1rem;
    }

    .marquee--left .marquee-content,
    .marquee--right .marquee-content {
        animation-duration: 15s;
    }
}

@media (max-width: 640px) {
    .nav-top .nav-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .nav-bottom .nav-item {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .chart-container {
        min-height: 340px;
        padding: 0.75rem;
    }

    #placementBarChart,
    #higherStudiesBarChart {
        min-height: 320px !important;
        max-height: 380px !important;
    }

    #sectorPieChart {
        min-height: 380px !important;
        max-height: 420px !important;
    }

    .chart-container canvas {
        height: 320px !important;
    }

    .chart-container:has(#sectorPieChart) canvas {
        height: 380px !important;
    }

    .marquee img {
        height: 28px;
        margin: 0 0.75rem;
    }

    .marquee--left .marquee-content,
    .marquee--right .marquee-content {
        animation-duration: 12s;
    }
}

@media (max-width: 480px) {
    .nav-top .nav-item {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
    }

    .nav-bottom .nav-item {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .nav-logo span,
    .nav-bottom .nav-logo span {
        display: none;
    }

    #hero {
        padding-top: 60px;
    }

    .chart-container {
        min-height: 360px;
        padding: 0.5rem;
    }

    #placementBarChart,
    #higherStudiesBarChart {
        min-height: 340px !important;
        max-height: 400px !important;
    }

    #sectorPieChart {
        min-height: 400px !important;
        max-height: 450px !important;
    }

    .chart-container canvas {
        height: 340px !important;
    }

    .chart-container:has(#sectorPieChart) {
        min-height: 400px;
    }

    .chart-container:has(#sectorPieChart) canvas {
        height: 400px !important;
    }

    .marquee img {
        height: 24px;
        margin: 0 0.5rem;
    }

    .marquee--left .marquee-content,
    .marquee--right .marquee-content {
        animation-duration: 10s;
    }
}

.stats-card:nth-child(1) {
    animation-delay: 0.2s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.4s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.6s;
}

.stats-card:nth-child(4) {
    animation-delay: 0.8s;
}

.card:nth-child(1) {
    animation-delay: 0.3s;
}

.card:nth-child(2) {
    animation-delay: 0.5s;
}

.card:nth-child(3) {
    animation-delay: 0.7s;
}

.card:nth-child(4) {
    animation-delay: 0.9s;
}