/* 
 * TUNATALK - Premium Design System (Style Sheet)
 * Minimalist Creative Agency Aesthetic
 */

:root {
    --bg-primary: #050506;
    --bg-secondary: #0c0c0e;
    --bg-tertiary: #121216;
    --accent-blue: #3b82f6;
    --accent-indigo: #6366f1;
    --accent-gradient: linear-gradient(135deg, #3b82f6, #6366f1);
    --border-color: rgba(255, 255, 255, 0.05);
    --border-glow: rgba(99, 102, 241, 0.25);
    --text-muted: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: #ffffff;
    overflow-x: hidden;
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #ffffff;
}

/* --- Premium Glassmorphism --- */
.glass-card {
    background: rgba(12, 12, 14, 0.65);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 0.5px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card-hover:hover {
    transform: translateY(-5px);
    background: rgba(20, 20, 24, 0.8);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.1);
}

/* --- Typography & Branding --- */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.agency-title {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- Animations & Keyframes --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@keyframes moving-blobs {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-in {
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 2.5s infinite;
}

.animate-blob {
    animation: moving-blobs 12s infinite ease-in-out;
}

/* --- Premium Buttons --- */
.btn-premium {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.75rem;
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.btn-premium:hover {
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}
.btn-premium:hover::before {
    opacity: 1;
}

.btn-solid-premium {
    background: var(--accent-gradient);
    color: #ffffff;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0.75rem;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}
.btn-solid-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

/* --- Modals & Overlays --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease forwards;
}

.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* --- Premium Inputs --- */
input, textarea, select {
    background: rgba(12, 12, 14, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* --- Table Styling --- */
table {
    border-collapse: separate;
    border-spacing: 0 8px;
}
tbody tr {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: scale(1.005);
}
td {
    border-top: 0.5px solid var(--border-color);
    border-bottom: 0.5px solid var(--border-color);
}
td:first-child {
    border-left: 0.5px solid var(--border-color);
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}
td:last-child {
    border-right: 0.5px solid var(--border-color);
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}

/* --- Toast --- */
.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 60;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.show {
    transform: translateX(0);
}
.toast-success {
    border-left: 4px solid var(--accent-blue);
}
.toast-error {
    border-left: 4px solid #f43f5e;
}

/* --- Glow & Parallax Effects --- */
.glow-soft {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-soft:hover {
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}
.mouse-glow-wrapper {
    position: relative;
    overflow: hidden;
}
.mouse-glow-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mouse-glow-wrapper:hover::after {
    opacity: 1;
}
