:root {
    --primary: #1877f2;
    --primary-light: #e7f3ff;
    --text: #2d3748;
    --background: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c2e60, #1166d1);
    background-size: cover;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    color: var(--text);
}

/* Particles.js container styling */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

/* Main content container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.main-content {
    z-index: 5;
    position: relative;
    min-width: 100%;
}

.icons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-card {
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.header-card img {
    padding: 8px;
    max-width: 160px;
    max-height: 100px;
    transition: transform 0.3s ease;
}

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

.header-card h2 {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
    font-weight: 600;
}

.college-name {
    position: relative;
    display: inline-block;
}

#college-name {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-size: 3rem;
    position: relative;
    padding: 0 10px;
}

#college-name:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.8), rgba(255,255,255,0));
}

.header-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 10px;
    text-align: center;
}

/* Portal grid styling */
.portal-grid {
    display: flex;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.portal-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 350px;
    height: 300px;
}

.portal-card:before {
    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) 60%);
    transform: rotate(30deg);
    z-index: 0;
    transition: transform 0.5s ease;
}

.portal-card.card-hover:before {
    transform: rotate(0deg);
}

.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.portal-card i {
    font-size: 1.8rem;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.9);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.1);
}

.portal-card:hover i {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.2);
}

.portal-card h3 {
    font-size: 20px;
    color: white;
    font-weight: 500;
    margin: 0;
    transition: color 0.3s ease, transform 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.portal-card:hover h3 {
    color: #ffffff;
    transform: translateY(-5px);
}

.portal-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.portal-card:hover p {
    transform: translateY(-3px);
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.25);
}

/* College info and avatar container styling */
.college-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.avatar-container {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 10;
    transition: all 0.3s ease;
}

.avatar-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-container i {
    font-size: 1.5rem;
}

/* Logout popover styling */
.popover-logout {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

/* Footer styling */
.simple-footer {
    position: relative;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8) !important;
    text-align: center;
    padding: 1rem;
}

.simple-footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.simple-footer a:hover {
    color: var(--primary-light);
}

/* Animation for the login button */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(24, 119, 242, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(24, 119, 242, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styling */
@media (max-width: 1024px) {
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portal-grid {
        grid-template-columns: 1fr;
    }

    .portal-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .header-card h2 {
        font-size: 1.8rem;
    }
    
    .college-info {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .header-card h2 {
        font-size: 1.5rem;
    }

    .header-card p {
        font-size: 0.9rem;
    }
}

.toggle-switch-lang::before{
    content: "English";
    font-weight: 800 !important;
    position: absolute;
    right: 43px !important;
    top: 0px !important;
    font-size: 14px;
    font-weight: 550;
  }