html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

main {
    padding-top: 80px;
}

body {
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--color-text);
    overflow-x: hidden;
}

:root {
    --color-primary: #258cfb;
    --color-primary-dark: #1a6ed1;
    --color-secondary: #0ea5e9;
    --color-bg: #f8f9fa;
    --color-text: #212529;
    --color-accent: #1abc9c;
    --color-dark: #212529;
    --color-white: #ffffff;
    --color-border: #dee2e6;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --border-radius: 0.25rem;
    --transition: all 0.3s ease;
    --color-dark-rgb: 0, 0, 0;
    --overlay-opacity: 0.5;
}

@font-face {
    font-family: 'NEC';
    src: url('/fonts/NEC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    background-color: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--color-primary-dark);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-primary);
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--color-secondary);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* Custom Navbar Styling */

.navbar {
    height: 80px;
    padding: 0 var(--spacing-md);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    border-radius: 4px;
    transition: var(--transition);
}

.title {
    font-size: 1.2rem;
    font-family: 'NEC', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--color-text) !important;
}

.nav-link {
    position: relative;
    color: var(--color-text) !important;
    font-weight: 500;
    margin: 0 var(--spacing-sm);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--color-primary) !important;
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: var(--spacing-sm);
}

.vr {
    width: 2px;
    background-color: var(--color-border);
}

@media (max-width: 992px) {
    .navbar {
        height: 70px;
        padding: 0 var(--spacing-sm);
    }

    .title,
    .vr {
        display: none;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: var(--spacing-md);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        margin: 0;
        padding: var(--spacing-sm) 0 !important;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background-color: var(--color-bg);
        transform: translateX(5px);
    }
}

/* Loader Wrapper */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.typing-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.typing-loader span {
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Custom Slider Styling */

.slider-container {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background-color: var(--color-bg);
}

.edu-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 1s ease-in-out;
    background-size: cover;
    background-position: center;
    transform-style: preserve-3d;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide[data-slide="1"] {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/slide1.jpg');
}

.slide[data-slide="2"] {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/slide2.jpg');
}

.slide[data-slide="3"] {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/slide3.jpg');
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--color-white);
    width: 80%;
}

.animated-text {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.animated-subtext {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

.slide.active .animated-text,
.slide.active .animated-subtext {
    transform: translateY(0);
    opacity: 1;
}

.slider-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
}

.slide.active .slider-btn {
    transform: scale(1);
    opacity: 1;
    transition: all 0.8s ease 0.4s;
}

.slider-btn:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 2;
    transform: translateY(-50%);
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--color-white);

    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 0 20px;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--color-accent);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--color-white);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .animated-text {
        font-size: 2rem;
    }

    .animated-subtext {
        font-size: 1rem;
    }
}

/* Custom Feature Card Styling */

.feature-card {
    background: var(--color-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-top: 4px solid var(--color-primary);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-accent);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    font-size: 1.8rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* Custom Parallax Styling */

.parallax-section {
    background-image: url('../images/campus.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 500px;
    position: relative;
}

.parallax-section .container {
    z-index: 2;
    position: relative;
}

.parallax-section::before {
    content: "";
    background-color: rgba(var(--color-dark-rgb, 0, 0, 0), var(--overlay-opacity, 0.5));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom Stats Styling */

.stats-container {
    background: linear-gradient(135deg, var(--color-dark), #0f172a);
    color: var(--color-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.stats-container::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--color-secondary), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Gallery Styling */

.hover-zoom img {
    transition: transform var(--hover-transition-speed, 0.4s) ease;
}

.hover-zoom:hover img {
    transform: scale(var(--hover-zoom-scale, 1.08));
}

/* Custom About Styling */

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text, #111827);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.about-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.about-content:hover {
    transform: translateY(-10px);
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(126, 34, 206, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(126, 34, 206, 0.5);
    }
}

.about-img {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
}

.about-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
    z-index: 1;
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .institute-tag {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .about-content {
        padding: 1.5rem;
    }
}

/* Custom Footer Styling */

footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-logo {
    font-family: 'NEC', monospace;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--color-white);
}

.footer-logo span {
    color: var(--color-secondary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Custom Back-To-Top Styling */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    transform: translateY(-5px);
}

/* Custom Hero Styling */

.hero-section {
    background-image: url('../images/slide1.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(30deg);
    animation: pulse 15s infinite linear;
    z-index: 2;
}

@keyframes pulse {
    0% {
        transform: rotate(30deg) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: rotate(30deg) scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: rotate(30deg) scale(1);
        opacity: 0.3;
    }
}

.hero-section>.container {
    position: relative;
    z-index: 3;
}