body { 
    font-family: 'Manrope', sans-serif; 
    perspective: 1000px; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Sora', sans-serif; 
}

.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; 
}

/* ── Dynamic Academic Background (Upgraded) ── */
.academic-bg {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    z-index: -2; 
    overflow: hidden; 
    pointer-events: none;
    /* Richer multi-color radial gradient */
    background: radial-gradient(circle at 15% 50%, #fff0eb 0%, #f8f9fa 50%, #e3f4fc 100%);
}

/* Premium Architectural Grid Overlay */
.academic-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(170, 48, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(170, 48, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    /* Fades the grid out around the edges for a cinematic look */
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.floating-symbol {
    position: absolute;
    color: rgba(170, 48, 0, 0.15); /* Solid/visible */
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    user-select: none;
    text-shadow: 2px 4px 10px rgba(170, 48, 0, 0.15); /* 3D depth */
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(110vh) rotate(0deg) scale(1); }
    50% { transform: translateY(50vh) rotate(180deg) scale(1.2); }
    100% { transform: translateY(-10vh) rotate(360deg) scale(1); }
}

/* ── 3D Premium Glass Cards ── */
.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Thick 3D Edge effect */
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.9),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02),
        0 10px 30px rgba(170, 48, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.glass-card:hover {
    transform: translateY(-12px) rotateX(2deg) rotateY(-2deg);
    border-color: rgba(170, 48, 0, 0.3);
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.02),
        0 25px 50px rgba(170, 48, 0, 0.12);
}

/* Push elements off the card for 3D depth on hover */
.glass-card:hover h3, 
.glass-card:hover .icon-tile, 
.glass-card:hover .icon-tile-blue {
    transform: translateZ(30px);
}

/* ── Interactive Buttons & Inputs ── */
.btn-glow { 
    transition: all .3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.btn-glow:hover { 
    box-shadow: 0 12px 28px rgba(170, 48, 0, 0.3); 
    transform: translateY(-3px) scale(1.02); 
}
.btn-glow:active { 
    transform: scale(.95); 
}

.btn-outline { 
    border: 2px solid #aa3000; 
    color: #aa3000; 
    transition: all .3s ease; 
}
.btn-outline:hover { 
    background: #aa3000; 
    color: white; 
    transform: translateY(-2px); 
    box-shadow: 0 8px 20px rgba(170, 48, 0, 0.2); 
}

.icon-tile { 
    background: linear-gradient(135deg, #fff0eb, #ffe3d8); 
    color: #aa3000; 
    transition: transform 0.3s ease; 
}
.icon-tile-blue { 
    background: linear-gradient(135deg, #e3f4fc, #c7eafb); 
    color: #119bd2; 
    transition: transform 0.3s ease; 
}

.input-field {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    color: #191c1d;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all .3s ease;
}
.input-field::placeholder { 
    color: #a0a8ad; 
}
.input-field:focus { 
    border-color: #aa3000; 
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(170, 48, 0, 0.1), inset 0 2px 4px rgba(0,0,0,0.01); 
    outline: none; 
    transform: translateY(-1px);
}

/* ── 3D Scroll Reveal Animations ── */
.reveal-container { 
    perspective: 1200px; 
}
.reveal { 
    opacity: 0; 
    transform: translateY(40px) rotateX(-10deg) scale(0.98); 
    transform-origin: top center;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.reveal.visible { 
    opacity: 1; 
    transform: translateY(0) rotateX(0deg) scale(1); 
}

/* ── Form feedback styles ── */
#formAlert { 
    display: none; 
    padding: 16px 20px; 
    border-radius: 12px; 
    font-weight: 600; 
    align-items: center; 
    gap: 10px; 
}
#formAlert.success { 
    display: flex; 
    background: #ecfdf5; 
    border: 1px solid #6ee7b7; 
    color: #065f46; 
}
#formAlert.error { 
    display: flex; 
    background: #fff1f2; 
    border: 1px solid #fda4af; 
    color: #9f1239; 
}

/* ── Button loading state ── */
#submitBtn:disabled { 
    opacity: 0.7; 
    cursor: not-allowed; 
    transform: none !important; 
    box-shadow: none !important; 
}

.spinner {
    display: inline-block; 
    width: 18px; 
    height: 18px; 
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff; 
    border-radius: 50%; 
    animation: spin 0.7s linear infinite;
    vertical-align: middle; 
    margin-right: 8px;
}
@keyframes spin { 
    to { transform: rotate(360deg); } 
}