:root {
    --primary: #0066ff;
    --primary-dark: #004ecc;
    --secondary: #00d2ff;
    --bg-color: #f5f9ff;
    --text-main: #1e293b;
    --text-light: #64748b;
}

/* Main Content area */
.main-wrapper {
    flex: 1;
    position: relative;
    z-index: 2;
    /* Texture Overlay */
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}

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

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

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

/* Glass Elements */
.glass-header,
.glass-footer {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.glass-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    color: var(--text-main);
}

.logo-text {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.dept-login-btn {
    background: rgba(0, 102, 255, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dept-login-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 102, 255, 0.2);
    border-color: var(--primary);
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(-45deg, #00d2ff, #3a7bd5, #0066ff, #0a4b9c);
    background-size: 400% 400%;
    animation: waterBackground 15s ease infinite;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content area */
.main-wrapper {
    flex: 1;
    position: relative;
    z-index: 2;
    /* Sparse Realistic Water Droplet Texture Overlay */
    background-color: #143e5c;
    /* fallback color */
    background-image: url('/img/consumer-bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: normal;
    /* We don't need overlay mode since the image itself has the blue gradient */
}

.main-wrapper-inner {
    background-color: #f8f9fa;
    background-image: none;
}

.hero-title {
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.hero-title span {
    background: linear-gradient(135deg, #e0f2fe, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
    text-decoration: none;
}

.glass-card:nth-child(1) {
    animation-delay: 0.1s;
}

.glass-card:nth-child(2) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.3s;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.05) 0%, rgba(0, 102, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 102, 255, 0.1);
}

.glass-card:hover .card-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.25);
    transform: scale(1.1);
}

.card-icon-wrapper svg {
    width: 36px;
    height: 36px;
    stroke: var(--primary);
    transition: stroke 0.3s ease;
}

.glass-card:hover .card-icon-wrapper svg {
    stroke: white;
}

.card-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.glass-card:hover .card-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateX(5px);
}

.glass-card:hover .card-title {
    color: var(--primary);
}

/* Glass Footer -> Now merged into Glass Elements at top */

.max-w-1100 {
    max-width: 1100px;
}

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

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

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

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

.pg-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

.pg-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.pg-icon-wrapper-success {
    background: #d1fae5;
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.pg-icon-wrapper-success svg {
    color: #10b981;
}

.pg-icon-wrapper-failure {
    background: #fee2e2;
    border: 2px solid #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.pg-icon-wrapper-failure svg {
    color: #ef4444;
}