/********** Template CSS **********/
:root {
    --primary: #4A90E2;
    --primary-light: #6FB1FF;
    --primary-dark: #2E6AB8;
    --secondary: #50C9CE;
    --accent-pink: #FF6B9D;
    --accent-orange: #FFA726;
    --accent-green: #4CAF50;
    --accent-lime: #8BC34A;
    --light: #D6E8F5;
    --bg-section-alt: #E8F3FA;
    --dark: #0F172A;
    --text-color: #1a2332;
    --text-light: #ffffff;
    --muted: #4a5568;
}

/* Performance Optimization for Mobile */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration for smooth animations */
.portal-card,
.stat-card,
.feature-card,
.testimonial-card,
.portal-icon-inner,
.portal-btn {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .portal-card:hover,
    .stat-card:hover,
    .feature-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* Enable tap/active states instead */
    .portal-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    .stat-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    .testimonial-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    /* Keep background animations but reduce intensity */
    .portal-card::before,
    .portal-card::after,
    .stat-card::before {
        animation-duration: 4s;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/* Mobile login buttons in navbar */
.mobile-login-btn {
    display: none;
}
@media (max-width: 991.98px) {
    .mobile-login-btn {
        display: flex;
        gap: 8px;
        padding: 15px 0;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }
    .mobile-login-btn .btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 14px;
        font-weight: 600;
    }
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Heading ***/
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive;
    font-weight: 700;
}

h5,
h6,
.h5,
.h6 {
    font-weight: 600;
}

.font-secondary {
    font-family: 'Lobster Two', cursive;
}


/*** Navbar ***/
.navbar .navbar-nav .nav-link {
    padding: 30px 15px;
    color: var(--dark);
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s;
}

.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
        
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x;
    z-index: 1;
}

.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 400px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** About ***/
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important;
}


/*** Classes ***/
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px;
}


/*** Team ***/
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light);
    border-radius: 250px;
    transition: .5s;
}

.team-item:hover .team-text {
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 45px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary) !important;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: rgba(255,255,255,0.5);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: #FFFFFF;
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important;
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


/********** Club Management Custom Styles **********/

/*** Global Enhancements ***/
html {
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: var(--text-color);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Backgrounds */
.section-alt-bg {
    background: var(--bg-section-alt);
}

/*** Enhanced Navbar ***/
.navbar {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 6px 30px rgba(74, 144, 226, 0.12);
}

.navbar-brand h1 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 70%;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

/*** Enhanced Hero Section ***/
.header-carousel .owl-carousel-item {
    position: relative;
    height: 480px;
}

.header-carousel .owl-carousel-item img {
    width: 100%;
    height: 480px;
    object-fit: cover;
}

.header-carousel .owl-carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.25), rgba(26, 35, 50, 0.2));
    pointer-events: none;
}

/* Logo Animation */
.logo-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Pulse Effect */
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 20px 60px rgba(74, 144, 226, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 25px 70px rgba(74, 144, 226, 0.4); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/*** Stats Section ***/
/*** Enhanced Stats Counter Section ***/
.stats-counter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

/* Animated Background Pattern */
.stats-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    animation: pattern-move 20s linear infinite;
}

@keyframes pattern-move {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Floating Orbs Effect */
.stats-counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 35%);
    pointer-events: none;
    animation: pulse-orbs 6s ease-in-out infinite;
}

@keyframes pulse-orbs {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Glass-morphism Stat Cards */
.stats-counter .stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 2.5rem 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Shimmer Effect */
.stats-counter .stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer-stat 3s infinite;
}

@keyframes shimmer-stat {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stats-counter .stat-card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Stat Icon Styling */
.stats-counter .stat-card .bg-white {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.98) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        inset 0 -5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-counter .stat-card .bg-white::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent);
    z-index: -1;
    animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stats-counter .stat-card:hover .bg-white {
    transform: scale(1.15) rotateY(180deg);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        inset 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Number Styling */
.stats-counter h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    line-height: 1;
    transition: all 0.3s ease;
}

.stats-counter .stat-card:hover h1 {
    transform: scale(1.1);
    text-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 255, 255, 0.5);
}

/* Enhanced Label Styling */
.stats-counter p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.stats-counter .stat-card:hover p {
    letter-spacing: 3px;
    color: white;
}

/* Individual Color Accents for Icons */
.stats-counter .stat-card:nth-child(1) .bg-white {
    background: linear-gradient(135deg, #ffffff, #e3f2fd) !important;
}

.stats-counter .stat-card:nth-child(1) i {
    color: #4A90E2;
}

.stats-counter .stat-card:nth-child(2) .bg-white {
    background: linear-gradient(135deg, #ffffff, #fce4ec) !important;
}

.stats-counter .stat-card:nth-child(2) i {
    color: #FF6B9D;
}

.stats-counter .stat-card:nth-child(3) .bg-white {
    background: linear-gradient(135deg, #ffffff, #fff3e0) !important;
}

.stats-counter .stat-card:nth-child(3) i {
    color: #FFA726;
}

.stats-counter .stat-card:nth-child(4) .bg-white {
    background: linear-gradient(135deg, #ffffff, #e8f5e9) !important;
}

.stats-counter .stat-card:nth-child(4) i {
    color: #4CAF50;
}

/* Responsive Design for Stats */
@media (max-width: 991.98px) {
    .stats-counter {
        padding: 4rem 0;
    }
    
    .stats-counter h1 {
        font-size: 3rem;
    }
    
    .stats-counter .stat-card .bg-white {
        width: 80px;
        height: 80px;
    }
    
    /* Keep animations on tablets */
    .stats-counter .stat-card:hover {
        transform: translateY(-12px) scale(1.03);
    }
}

@media (max-width: 767.98px) {
    .stats-counter {
        padding: 3rem 0;
    }
    
    .stats-counter .stat-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 20px;
    }
    
    /* Touch-friendly interactions for mobile */
    .stats-counter .stat-card:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.25);
    }
    
    /* Keep shimmer and glow animations */
    .stats-counter .stat-card::before {
        animation: shimmer-stat 3s infinite;
    }
    
    .stats-counter .stat-card .bg-white::before {
        animation: rotate-glow 3s linear infinite;
    }
    
    .stats-counter h1 {
        font-size: 2.5rem;
    }
    
    .stats-counter p {
        font-size: 1rem;
        letter-spacing: 1.5px;
    }
    
    .stats-counter .stat-card .bg-white {
        width: 70px;
        height: 70px;
    }
    
    /* Reduce icon size on mobile */
    .stats-counter .stat-card i {
        font-size: 1.8rem;
    }
    
    /* Keep floating animation but reduce movement */
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-5px); }
    }
}

/*** Enhanced Portal Cards - Modern Redesign ***/
.portal-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-card:hover::before {
    transform: scaleX(1);
}

.portal-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.05), transparent);
    transition: left 0.8s ease;
}

.portal-card:hover::after {
    left: 100%;
}

.portal-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 80px rgba(74, 144, 226, 0.2);
    border-color: rgba(74, 144, 226, 0.3);
}

/* Portal Card Header */
.portal-card-header {
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Portal Icon Circle */
.portal-icon-circle {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.portal-icon-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-icon-inner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}

.portal-card:hover .portal-icon-inner {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Admin Portal - Blue Gradient */
.portal-admin {
    background: linear-gradient(135deg, #4A90E2, #50C9CE);
}

/* Student Portal - Pink/Orange Gradient */
.portal-student {
    background: linear-gradient(135deg, #FF6B9D, #FFA726);
}

/* Executive Portal - Green Gradient */
.portal-executive {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
}

/* Portal Badge */
.portal-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.portal-card-admin .portal-badge {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.3);
    color: #4A90E2;
}

.portal-card-student .portal-badge {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    color: #FF6B9D;
}

.portal-card-executive .portal-badge {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.portal-card:hover .portal-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

/* Portal Card Body */
.portal-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portal-description {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Portal Features List */
.portal-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.portal-features li {
    padding: 0.6rem 0;
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.portal-features li i {
    margin-right: 0.8rem;
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.portal-card-admin .portal-features li i {
    color: #4A90E2;
}

.portal-card-student .portal-features li i {
    color: #FF6B9D;
}

.portal-card-executive .portal-features li i {
    color: #4CAF50;
}

.portal-card:hover .portal-features li {
    padding-left: 5px;
}

.portal-card:hover .portal-features li i {
    transform: scale(1.2);
}

/* Portal Card Footer */
.portal-card-footer {
    padding: 0 2rem 2.5rem;
}

/* Portal Button */
.portal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.portal-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    transition: transform 0.6s ease;
}

.portal-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.portal-btn-primary {
    background: linear-gradient(135deg, #4A90E2, #50C9CE);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.portal-btn-primary:hover {
    background: linear-gradient(135deg, #3a80d2, #40b9be);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
    transform: translateY(-3px);
}

.portal-btn-pink {
    background: linear-gradient(135deg, #FF6B9D, #FFA726);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.portal-btn-pink:hover {
    background: linear-gradient(135deg, #ef5b8d, #ef9716);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
    transform: translateY(-3px);
}

.portal-btn-green {
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

.portal-btn-green:hover {
    background: linear-gradient(135deg, #3c9f40, #7bb33a);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    transform: translateY(-3px);
}

.portal-btn i {
    transition: transform 0.3s ease;
}

.portal-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design for Portal Cards */
@media (max-width: 991.98px) {
    .portal-card {
        margin-bottom: 2rem;
    }
    
    .portal-icon-circle {
        width: 120px;
        height: 120px;
    }
    
    .portal-title {
        font-size: 1.6rem;
    }
    
    /* Maintain animations on tablets */
    .portal-card:hover {
        transform: translateY(-15px) scale(1.02);
    }
}

@media (max-width: 767.98px) {
    .portal-card {
        border-radius: 25px;
        margin-bottom: 1.5rem;
    }
    
    /* Reduce hover effects for touch devices but keep animations */
    .portal-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    .portal-card-header {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .portal-card-body {
        padding: 1.5rem;
    }
    
    .portal-card-footer {
        padding: 0 1.5rem 2rem;
    }
    
    .portal-icon-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Keep icon animations but reduce intensity */
    .portal-card:active .portal-icon-inner {
        transform: scale(1.05);
    }
    
    .portal-title {
        font-size: 1.4rem;
    }
    
    .portal-description {
        font-size: 0.9rem;
    }
    
    .portal-features li {
        font-size: 0.85rem;
        padding: 0.5rem 0;
    }
    
    .portal-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/*** Features Section ***/
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.15);
}

.feature-icon {
    width: 75px;
    height: 75px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: inherit;
    opacity: 0.3;
    filter: blur(20px);
    z-index: -1;
}

/* Feature Icon Colors */
.feature-icon-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.feature-icon-pink {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange));
}

.feature-icon-green {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-lime));
}

/*** Testimonials Enhancement ***/
.testimonial-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 80px;
    opacity: 0.1;
    font-family: Georgia, serif;
    z-index: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.12);
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

/*** Button Enhancements ***/
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
}

/*** About Section Enhancement ***/
.about-img img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
}

.about-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(74, 144, 226, 0.25);
}

/*** Footer Enhancement ***/
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.footer .btn.btn-social {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer .btn.btn-social:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.footer .btn.btn-link:hover {
    color: var(--primary-light) !important;
    padding-left: 8px;
}

/*** Back to Top Enhancement ***/
.back-to-top {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(74, 144, 226, 0.5);
}

/*** Loading Animations ***/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/*** Comprehensive Responsive Enhancements ***/
@media (max-width: 991.98px) {
    /* Feature Cards - Tablets */
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .feature-card:hover {
        transform: translateY(-10px);
    }
    
    /* Testimonial Cards - Tablets */
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* Feature Cards - Mobile */
    .feature-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    /* Touch interaction for feature cards */
    .feature-card:active {
        transform: scale(0.98);
        transition: transform 0.2s ease;
    }
    
    /* Keep top border animation */
    .feature-card::before {
        height: 4px;
    }
    
    .feature-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
        border-radius: 18px;
    }
    
    /* Reduce but keep icon animations */
    .feature-card:active .feature-icon {
        transform: scale(1.05);
    }
    
    /* Testimonial Cards - Mobile */
    .testimonial-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin-bottom: 1.5rem;
    }
    
    .testimonial-card:active {
        transform: scale(0.98);
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Hero Section - Mobile */
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 0.95rem;
    }
    
    .carousel-caption .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* About Section - Mobile */
    .about-section h1 {
        font-size: 2rem;
    }
    
    .about-section .lead {
        font-size: 1rem;
    }
    
    /* About Images - Blue border on mobile */
    .about-img img {
        border: 4px solid #4A90E2 !important;
        box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
    }
    
    .about-img img:active {
        border-color: #2E6AB8 !important;
        transform: scale(1.02);
    }
    
    /* Section Headings - Mobile */
    .section-title h1 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices */
    .carousel-caption h1 {
        font-size: 1.6rem;
    }
    
    .carousel-caption p {
        font-size: 0.85rem;
        display: none; /* Hide long descriptions on very small screens */
    }
    
    .portal-card {
        border-radius: 20px;
    }
    
    .portal-icon-circle {
        width: 90px;
        height: 90px;
    }
    
    .portal-title {
        font-size: 1.3rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
        border-radius: 15px;
    }
    
    .stats-counter h1 {
        font-size: 2rem;
    }
    
    .stats-counter .stat-card .bg-white {
        width: 60px;
        height: 60px;
    }
    
    .stats-counter .stat-card i {
        font-size: 1.5rem;
    }
}

/*** Smooth Scrollbar ***/
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/*** Gallery Hover Effect ***/
.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

/*** Selection Style ***/
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}
