/* ============================================
   TEXTCRAFT NLP SKILLS - MAIN STYLESHEET
   Luxury Academic Design System
   Burgundy & Gold Theme
   ============================================ */

/* ============================================
   1. CSS RESET & BASE CONFIGURATION
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Baskerville', 'Georgia', serif;
    color: #2C1810;
    background: 
        linear-gradient(135deg, rgba(253, 248, 245, 0.95), rgba(245, 237, 235, 0.95), rgba(250, 240, 230, 0.95)),
        url('../assets/images/bg.jfif');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */

:root {
    /* Color Palette - Royal Burgundy & Gold */
    --color-burgundy: #722F37;
    --color-burgundy-dark: #5A2329;
    --color-gold: #D4AF37;
    --color-gold-dark: #B8860B;
    --color-text-dark: #2C1810;
    --color-text-light: #FAFAFA;
    --color-gray: #8B7D6B;
    
    /* Backgrounds */
    --bg-gradient-primary: linear-gradient(135deg, #fdf8f5, #f5edeb, #faf0e6);
    --bg-gradient-secondary: linear-gradient(180deg, #fdf8f5, #f5edeb 20%, #faf0e6 80%);
    --bg-gradient-gold: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    --bg-gradient-burgundy: linear-gradient(135deg, #722F37 0%, #5A2329 100%);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(114, 47, 55, 0.1);
    --glass-blur: blur(20px);
    
    /* Shadows */
    --shadow-primary: 0 10px 30px rgba(114, 47, 55, 0.15);
    --shadow-hover: 0 15px 40px rgba(114, 47, 55, 0.25);
    --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.3);
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography Scale */
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.4rem;
    --font-size-h3: 1.6rem;
    --font-size-body: 1rem;
    --font-size-small: 0.875rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   3. TYPOGRAPHY SYSTEM
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Baskerville', 'Times New Roman', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-burgundy);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: -0.02em;
    background: var(--bg-gradient-burgundy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--font-size-h2);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    font-family: 'Baskerville', 'Georgia', serif;
    font-size: var(--font-size-body);
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-sm);
}

.text-gold {
    color: var(--color-gold);
}

.text-burgundy {
    color: var(--color-burgundy);
}

.font-serif {
    font-family: 'Baskerville', 'Georgia', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   4. LAYOUT & CONTAINER SYSTEM
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ============================================
   5. GLASS MORPHISM SYSTEM
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-primary);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

.glass-panel {
    background: rgba(253, 248, 245, 0.7);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(114, 47, 55, 0.15);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
}

/* ============================================
   6. GRADIENT BACKGROUNDS
   ============================================ */

.bg-gradient-primary {
    background: var(--bg-gradient-primary);
}

.bg-gradient-secondary {
    background: var(--bg-gradient-secondary);
}

.bg-burgundy {
    background: var(--bg-gradient-burgundy);
}

.bg-gold {
    background: var(--bg-gradient-gold);
}

/* Decorative Background Elements */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.05;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 30%, var(--color-gold) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, var(--color-burgundy) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ============================================
   7. UTILITY CLASSES
   ============================================ */

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

/* Grid Utilities */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Spacing Utilities */
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.p-1 { padding: var(--spacing-sm); }
.p-2 { padding: var(--spacing-md); }
.p-3 { padding: var(--spacing-lg); }
.p-4 { padding: var(--spacing-xl); }

/* Text Alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Display Utilities */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ============================================
   8. ANIMATION KEYFRAMES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeUp {
    animation: fadeUp 0.8s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

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

.animate-glow {
    animation: goldGlow 2s ease-in-out infinite;
}

/* ============================================
   9. SCROLL REVEAL EFFECTS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition-slow);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition-slow);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   10. ACCESSIBILITY & FOCUS STATES
   ============================================ */

*:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-burgundy);
    color: var(--color-text-light);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 10000;
}

.skip-to-content:focus {
    top: var(--spacing-sm);
}

/* ============================================
   11. SELECTION STYLING
   ============================================ */

::selection {
    background: var(--color-gold);
    color: var(--color-text-dark);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-text-dark);
}

/* ============================================
   12. SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f5edeb;
}

::-webkit-scrollbar-thumb {
    background: var(--color-burgundy);
    border-radius: 6px;
    border: 2px solid #f5edeb;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-burgundy-dark);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-burgundy) #f5edeb;
}

/* ============================================
   END OF STYLE.CSS
   ============================================ */

   /* ============================================
   KEYWORD DISPLAY FIX
   ============================================ */

.keyword-list-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.keyword-item {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.keyword-info {
    display: flex !important;
}

.keyword-rank,
.keyword-text,
.keyword-score {
    display: inline-block !important;
    visibility: visible !important;
}