body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Custom styles for application cards with hover effects */
.app-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.app-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

/* New styles for Vehicle Attributes section */
.attribute-card {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-width: 120px;
    max-width: 150px;
    height: auto;
    text-align: center;
    white-space: normal;
    z-index: 10;
}

.attribute-card:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2), 0 5px 10px -2px rgba(0, 0, 0, 0.1);
}

.attribute-card i {
    color: #a7f3d0;
    font-size: 1.2rem;
}

/* SVG line animation */
#vehicle-attributes svg .attribute-line {
    stroke: rgba(167, 243, 208, 0.3);
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 0.5s ease-out, stroke 0.2s ease-out;
}

#vehicle-attributes svg .attribute-line.active-line {
    stroke: #a7f3d0;
    stroke-dashoffset: 0;
}

#nvh-center-circle {
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
    animation: nvhPulse 2s infinite alternate ease-in-out;
}

#nvh-center-circle.nvh-active {
    fill: #e0f2fe;
    stroke: #7dd3fc;
    filter: drop-shadow(0 0 15px rgba(125, 211, 252, 0.9));
}

@keyframes nvhPulse {
    from {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.5));
    }

    to {
        transform: scale(1.03);
        filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.8));
    }
}

#nvh-center-circle+text {
    transition: fill 0.2s ease;
}

#nvh-center-circle.nvh-active+text {
    fill: #0891b2;
}

#car-outline {
    animation: drawCar 2s forwards 0.5s ease-out;
    transition: stroke 0.3s ease;
}

@keyframes drawCar {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 1024px) {
    .attribute-card {
        font-size: 0.8rem;
        padding: 0.5rem;
        min-width: 100px;
        max-width: 130px;
    }
}

@media (max-width: 768px) {
    .attribute-card {
        position: static;
        margin: 0.75rem auto;
        width: 70%;
        max-width: 250px;
        font-size: 0.9rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
    }

    .relative.w-full.max-w-5xl.mx-auto {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        padding-bottom: 0;
        padding: 1rem;
    }

    svg {
        position: relative;
        height: 250px;
        width: 100%;
        margin-bottom: 2rem;
    }

    .attribute-line {
        display: none;
    }

    #nvh-center-circle,
    #nvh-center-circle+text {
        transform: none;
        animation: none;
        filter: none;
    }
}

.FDP-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.FDP-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.FDP-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #93c5fd;
}

#ecosystem {
    background: linear-gradient(135deg, #6b46c1 0%, #4c1d95 100%);
    color: white;
}

.ecosystem-card {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    transition: all 0.3s ease;
}

.ecosystem-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.industry-card {
    background-color: #a855f7;
}

.industry-card:hover {
    background-color: #9333ea;
}

.core-concept-card {
    background-color: #2563eb;
    min-width: 300px;
    max-width: 80%;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
}

.core-concept-card:hover {
    background-color: #1d4ed8;
}

.partner-card {
    background-color: #16a34a;
}

.partner-card:hover {
    background-color: #15803d;
}

.expert-card {
    background-color: #eab308;
}

.expert-card:hover {
    background-color: #d97706;
}

.elective-card {
    background-color: #dc2626;
    min-width: 400px;
    max-width: 90%;
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
}

.elective-card:hover {
    background-color: #b91c1c;
}

.outcome-card {
    background-color: #0d9488;
}

.outcome-card:hover {
    background-color: #0f766e;
}

.arrow-down,
.arrow-down-short,
.arrow-right {
    position: relative;
    width: 2px;
    height: 40px;
    background-color: #e0f2fe;
    margin: 0 auto;
    display: block;
}

.arrow-down::after,
.arrow-down-short::after,
.arrow-right::after {
    content: '';
    position: absolute;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #e0f2fe;
}

.arrow-down::after,
.arrow-down-short::after {
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
}

.arrow-down-short {
    height: 20px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.arrow-right {
    width: 80px;
    height: 2px;
    margin: 0;
    background-color: #e0f2fe;
    align-self: center;
}

.arrow-right::after {
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #e0f2fe;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .ecosystem-card {
        min-width: unset;
        width: 90%;
        max-width: 300px;
        font-size: 0.9rem;
        padding: 1rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .core-concept-card,
    .elective-card {
        max-width: 90%;
    }

    .ecosystem-card i {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    .arrow-down,
    .arrow-down-short {
        height: 30px;
    }

    .arrow-right {
        display: none;
    }

    .flex.justify-between.w-full.max-w-3xl.px-8.md\:px-0 {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .flex.items-center.space-x-8 {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }
}

.objective-image {
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.objective-image:hover {
    transform: scale(1.03);
}

.course-card-style {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-style:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.course-detail-image {
    border-radius: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.course-detail-image:hover {
    transform: scale(1.03);
}

#roadmap {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.roadmap-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    backdrop-filter: blur(8px);
}

.roadmap-card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(59, 130, 246, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
}

.roadmap-card h4 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #38bdf8;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.roadmap-card p {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.roadmap-card i {
    font-size: 3rem;
    color: #22d3ee;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.7));
}

.roadmap-arrow {
    position: relative;
    width: 4px;
    height: 80px;
    background: linear-gradient(to bottom, #22d3ee 0%, #3b82f6 100%);
    margin: 2rem auto;
    z-index: 1;
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

.roadmap-arrow::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #3b82f6;
    filter: drop-shadow(0 5px 10px rgba(59, 130, 246, 0.7));
}

@media (max-width: 768px) {
    .roadmap-card {
        padding: 1.25rem;
        min-height: 150px;
        width: 95%;
        max-width: 400px;
    }

    .roadmap-card h4 {
        font-size: 1.8rem;
    }

    .roadmap-card i {
        font-size: 2.5rem;
    }

    .roadmap-arrow {
        height: 50px;
        margin: 1.5rem auto;
    }

    .roadmap-arrow::after {
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 16px solid #3b82f6;
    }
}

#fdp-details {
    background: linear-gradient(-45deg, #f9fafb, #f3f4f6, #e5e7eb, #f3f4f6);
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
}

@keyframes gradient-bg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

#fdp-details ul li {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#fdp-details ul li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.parallax-item {
    transition: transform 0.2s ease-out;
}

#inauguration-event {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: white;
}

.inauguration-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.inauguration-image-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.inauguration-image-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.inauguration-image-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.inauguration-image-card .image-caption {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    color: #e0f2fe;
}

@media (max-width: 640px) {
    .inauguration-gallery-grid {
        grid-template-columns: 1fr;
    }

    .inauguration-image-card img {
        height: 220px;
    }
}

#nvh-learning-lab {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    color: white;
}

.nvh-lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nvh-lab-image-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nvh-lab-image-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.nvh-lab-image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nvh-lab-image-card .image-caption {
    padding: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    color: #cbd5e1;
}

@media (max-width: 640px) {
    .nvh-lab-grid {
        grid-template-columns: 1fr;
    }
}

#shortlisting-process {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 100%);
    color: white;
}

.shortlisting-map {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.shortlisting-map:hover {
    transform: scale(1.02);
}

.shortlisting-table {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.shortlisting-table th,
.shortlisting-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.shortlisting-table th {
    font-weight: 700;
    color: #a5b4fc;
}

.shortlisted-colleges ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortlisted-colleges li {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.shortlisted-colleges li:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.shortlisted-colleges li i {
    color: #c4b5fd;
}

@media (max-width: 768px) {
    .shortlisting-content {
        flex-direction: column;
    }

    .shortlisting-map {
        margin-bottom: 2rem;
    }
}

#nvh-course-deployment {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

.deployment-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: left;
}

.deployment-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.deployment-card h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #60a5fa;
}

.deployment-card p,
.deployment-card ul {
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.deployment-card ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.deployment-card ul li i {
    color: #34d399;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.deployment-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.deployment-image-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.deployment-image-grid img:hover {
    transform: scale(1.03);
}

.model-card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.model-card h6 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1e40af;
}

.model-card p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.advanced-topic-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advanced-topic-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .advanced-topic-image {
        height: 180px;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-reveal-image {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-reveal-image.active {
    opacity: 1;
    transform: scale(1);
}

.flowchart-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-sizing: border-box;
}

.flowchart-node {
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 150px;
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.flowchart-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.flowchart-node.bg-blue-700 {
    background-color: #2563eb;
}

.flowchart-node.bg-blue-600 {
    background-color: #1e40af;
}

.flowchart-node.bg-green-700 {
    background-color: #059669;
}

.flowchart-node.bg-sky-700 {
    background-color: #0ea5e9;
}

.flowchart-node.bg-yellow-700 {
    background-color: #d97706;
}

.flowchart-node.bg-red-700 {
    background-color: #dc2626;
}

.flowchart-node.bg-gray-700 {
    background-color: #4b5563;
}

.flowchart-arrow.vertical {
    width: 2px;
    height: 30px;
    background-color: #cbd5e1;
    position: relative;
    margin: 0.5rem 0;
}

.flowchart-arrow.vertical::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #cbd5e1;
}

.flowchart-image-node {
    width: 160px;
    text-align: center;
}

.flowchart-image-node img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.flowchart-image-node img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .flowchart-wrapper {
        height: auto;
        min-height: 800px;
        flex-direction: column;
        padding: 1rem;
    }

    .flowchart-node {
        min-width: unset;
        width: 90%;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .flowchart-wrapper>div.absolute {
        position: relative !important;
        margin-bottom: 1.5rem;
        left: unset !important;
        right: unset !important;
        top: unset !important;
        bottom: unset !important;
        transform: none !important;
        width: 90% !important;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .flowchart-arrow.vertical {
        height: 20px;
        margin: 0.5rem 0;
    }

    .flowchart-wrapper svg {
        display: none;
    }

    .flowchart-wrapper .flex.flex-col {
        width: 100%;
        align-items: center;
    }
}
