/* assets/css/style.css */

/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Base Typographic Styling */
body {
    background-color: #f8fafc;
    color: #334155;
    font-family: 'Kantumruy Pro', 'Inter', sans-serif;
}

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

/* 3D Mesh Gradient Backgrounds - Vivid Pastels for Depth */
.mesh-gradient-hero {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.14) 0px, transparent 60%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 60%),
        radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.14) 0px, transparent 60%),
        radial-gradient(at 80% 50%, rgba(20, 184, 166, 0.08) 0px, transparent 50%);
}

.mesh-gradient-section-1 {
    background-color: #f1f5f9;
    background-image: 
        radial-gradient(at 100% 100%, rgba(79, 70, 229, 0.12) 0px, transparent 60%),
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 60%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.6) 0px, transparent 50%);
}

.mesh-gradient-section-2 {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.12) 0px, transparent 60%),
        radial-gradient(at 100% 0%, rgba(79, 70, 229, 0.1) 0px, transparent 60%),
        radial-gradient(at 30% 40%, rgba(255, 255, 255, 0.5) 0px, transparent 55%);
}

/* Highly Visible Cyber Grid Texture */
.cyber-grid {
    background-image: 
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* Technology Dot Matrix Overlay */
.dot-matrix {
    background-image: radial-gradient(rgba(79, 70, 229, 0.11) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

/* Elevated Light Glassmorphism Card (Vivid Foreground Pop) */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 4px 6px -1px rgba(79, 70, 229, 0.03),
        0 20px 40px -15px rgba(79, 70, 229, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-panel:hover {
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 
        0 10px 15px -3px rgba(79, 70, 229, 0.05),
        0 30px 60px -15px rgba(79, 70, 229, 0.22);
}

.glass-card-3d {
    transform-style: preserve-3d;
    perspective: 1200px;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
}

.glass-card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-3deg);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 
        0 20px 25px -5px rgba(79, 70, 229, 0.08),
        0 35px 70px -15px rgba(79, 70, 229, 0.25);
}

/* Floating Elements keyframes */
@keyframes float-y {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(4deg); }
}

@keyframes float-x {
    0%, 100% { transform: translateX(0px) translateY(0px) rotate(0deg); }
    50% { transform: translateX(15px) translateY(-15px) rotate(-4deg); }
}

.animate-float-y {
    animation: float-y 6s ease-in-out infinite;
}

.animate-float-x {
    animation: float-x 7s ease-in-out infinite;
}

/* Magnetic Button Subtle Glow & Pulse */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(79, 70, 229, 0.2); }
    50% { box-shadow: 0 0 25px rgba(79, 70, 229, 0.45), 0 0 35px rgba(6, 182, 212, 0.2); }
}

.magnetic-btn {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}

.magnetic-btn:hover {
    animation: glow-pulse 2s infinite;
}

/* Role tab active states */
.role-tab-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-tab-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #ffffff;
    box-shadow: 0 12px 24px -5px rgba(79, 70, 229, 0.4);
    border-color: transparent;
    transform: scale(1.03);
}

/* Toastify Alert styling */
.toastify {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
    border-left: 6px solid #4f46e5 !important;
    color: #1e293b !important;
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12) !important;
    border-radius: 16px !important;
    font-family: 'Kantumruy Pro', 'Inter', sans-serif !important;
    font-weight: 500 !important;
    padding: 14px 20px !important;
}

.toastify.toastify-error {
    border-left-color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.toastify.toastify-success {
    border-left-color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* SweetAlert Popup overrides */
.swal2-popup.swal2-modal {
    background: #ffffff !important;
    color: #334155 !important;
    border-radius: 28px !important;
    border: 1.5px solid #f1f5f9 !important;
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.2) !important;
}

.swal2-title {
    color: #0f172a !important;
}

.swal2-html-container {
    color: #475569 !important;
}

/* Image overlays */
.image-glow-overlay {
    position: relative;
}

.image-glow-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(241, 245, 249, 0.3), transparent 60%);
    pointer-events: none;
}

/* Perspective rules */
.perspective-1200 {
    perspective: 1200px;
}

.rotate-y-12 {
    transform: rotateY(12deg);
}

.rotate-y-negative-12 {
    transform: rotateY(-12deg);
}

/* Typography Gradient (High Contrast) */
.text-gradient-purple-cyan {
    background: linear-gradient(to right, #3b82f6, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-indigo-violet {
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
