/* ==========================================================================
   FAZALE RABBI - PORTFOLIO STYLESHEET
   ========================================================================== */

/* Design Tokens */
:root {
    --bg-canvas: #fafafa;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-glass: rgba(255, 255, 255, 0.88);
    --card-border: rgba(0, 0, 0, 0.08);
}

.dark {
    --bg-canvas: #070a12;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-glass: rgba(13, 18, 30, 0.75);
    --card-border: rgba(255, 255, 255, 0.09);
}

/* Global Reset & Spacious Typography */
html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    transition: background-color 0.4s ease, color 0.4s ease;
    letter-spacing: 0.02em;
    line-height: 1.85;
    font-size: 1rem;
}

/* De-condensed Headings & Paragraphs */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.015em !important;
    line-height: 1.35 !important;
    color: var(--text-primary);
}

h1 {
    margin-bottom: 1.75rem;
}

h2 {
    margin-bottom: 1.5rem;
}

h3 {
    margin-bottom: 1.25rem;
}

p {
    line-height: 1.85 !important;
    margin-bottom: 1.5rem;
    letter-spacing: 0.018em;
}

p:last-child {
    margin-bottom: 0;
}

span, a, button, label, input, textarea {
    letter-spacing: 0.02em;
}

.font-mono {
    letter-spacing: 0.035em !important;
}

.font-display {
    letter-spacing: 0.015em !important;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--card-glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--card-border);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient Border Accent */
.gradient-border {
    position: relative;
    background-clip: padding-box;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(139, 92, 246, 0.2), rgba(6, 182, 212, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Background Grid Pattern */
.grid-pattern {
    background-image: radial-gradient(circle, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
}

.dark .grid-pattern {
    background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
}

/* Spacious Card Hover Effects */
.card-hover {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease;
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.25);
}

/* Header Navigation Links */
.nav-link {
    position: relative;
    padding: 0.5rem 0.85rem;
    border-radius: 0.65rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #2563eb;
    background-color: rgba(59, 130, 246, 0.08);
}

.dark .nav-link:hover {
    color: #60a5fa;
    background-color: rgba(255, 255, 255, 0.06);
}

/* Scrollbars */
.terminal-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.terminal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Toast Notifications */
#toastContainer {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 100;
}
