/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-accent: #3b82f6;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #111827;

    /* Purple gradient colors */
    --color-purple-start: #667eea;
    --color-purple-end: #764ba2;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Enhanced border radius for modern look */
    --border-radius-sm: 0.5rem;
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-in-out;
}

/* Light Mode - Manual Override (forces light even when system is dark) */
html.light-mode {
    /* Light background colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-bg-dark: #111827;

    /* Light text colors */
    --color-text: #1f2937;
    --color-text-light: #6b7280;

    /* Light border colors */
    --color-border: #e5e7eb;

    /* Standard primary/secondary for light mode */
    --color-primary: #000000;
    --color-secondary: #ffffff;

    /* Standard shadows for light backgrounds */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Light mode gallery overrides - force light even when system prefers dark */
html.light-mode .gallery-container {
    background-color: var(--color-bg) !important;
}

html.light-mode .gallery-slide {
    background-color: var(--color-bg) !important;
}

html.light-mode .gallery-slide img {
    background-color: #f3f4f6 !important;
}

html.light-mode .gallery-nav {
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: white !important;
}

html.light-mode .gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Light mode overrides for gallery card wrapper */
html.light-mode .card-featured,
html.light-mode .card-featured-compact {
    background: rgba(245, 245, 247, 0.7) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Ensure all text inside gallery cards is dark in light mode */
html.light-mode .card-featured .card-header h2,
html.light-mode .card-featured-compact .card-header h2,
html.light-mode .card-featured .card-subtitle,
html.light-mode .card-featured-compact .card-subtitle,
html.light-mode .card-featured .highlight-text-compact,
html.light-mode .card-featured-compact .highlight-text-compact,
html.light-mode .card-featured .assessment-domains h4,
html.light-mode .card-featured-compact .assessment-domains h4 {
    color: var(--color-text) !important;
}

/* Domain tags - light background, dark text */
html.light-mode .card-featured .domain-tag,
html.light-mode .card-featured-compact .domain-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
    color: var(--color-text) !important;
}

/* CTA box inside gallery - light background */
html.light-mode .card-featured .cta-box,
html.light-mode .card-featured-compact .cta-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08)) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

/* CTA note text - purple/blue in light mode */
html.light-mode .card-featured .cta-box .cta-note,
html.light-mode .card-featured-compact .cta-box .cta-note {
    color: rgba(102, 126, 234, 1) !important;
}

/* CTA note text for standalone CTA boxes - dark text in light mode */
html.light-mode .cta-box .cta-note {
    color: var(--color-text) !important;
}

/* Light mode link colors - using brand purple gradient */
html.light-mode a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-nav):not(.nav-link):not(.mobile-nav-link):not(.link-arrow) {
    color: #667eea; /* Brand purple gradient start */
    text-decoration: underline;
}

html.light-mode a:visited:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-nav):not(.nav-link):not(.mobile-nav-link):not(.link-arrow) {
    color: #764ba2; /* Brand purple gradient end */
}

html.light-mode a:hover:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-nav):not(.nav-link):not(.mobile-nav-link):not(.link-arrow) {
    color: #5568d3; /* Darker purple for emphasis */
}

html.light-mode .link-arrow {
    color: #667eea;
    text-decoration: none;
}

html.light-mode .link-arrow:hover {
    color: #5568d3;
}

/* Gallery dots visibility in light mode */
html.light-mode .gallery-dot {
    background-color: rgba(0, 0, 0, 0.3) !important;
}

html.light-mode .gallery-dot.active {
    background-color: var(--color-purple-start) !important;
}

/* Light mode mobile menu */
html.light-mode .mobile-menu {
    background: rgba(102, 126, 234, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Dark Mode - System Preference */
@media (prefers-color-scheme: dark) {
    :root {
        /* Dark background colors */
        --color-bg: #0b0f19;
        --color-bg-alt: #0f1422;
        --color-bg-dark: #0f1422;

        /* Dark text colors */
        --color-text: #e5e7eb;
        --color-text-light: #9ca3af;

        /* Dark border colors */
        --color-border: #1f2937;

        /* Inverted primary/secondary for dark mode */
        --color-primary: #f9fafb;
        --color-secondary: #1f2937;

        /* Purple gradients remain unchanged - they look great on dark! */
        /* --color-purple-start and --color-purple-end stay the same */

        /* Adjusted shadows for dark backgrounds */
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
        --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    }

    /* Specific component adjustments for dark mode */

    /* Primary button - use rich purple gradient for visibility and brand consistency */
    .btn-primary {
        background: linear-gradient(135deg, #764ba2 0%, #8b5fbf 100%);
        color: white;
        border: none;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #8b5fbf 0%, #9d6fd4 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(139, 95, 191, 0.3);
    }

    /* Secondary button - invert for dark mode */
    .btn-secondary {
        background-color: var(--color-secondary);
        color: var(--color-text);
        border-color: var(--color-border);
    }

    .btn-secondary:hover {
        background-color: #374151;
        border-color: #4b5563;
    }

    /* Hero section secondary buttons - use purple gradient like primary */
    .hero .btn-secondary {
        background: linear-gradient(135deg, #764ba2 0%, #8b5fbf 100%);
        color: white;
        border: none;
    }

    .hero .btn-secondary:hover {
        background: linear-gradient(135deg, #8b5fbf 0%, #9d6fd4 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(139, 95, 191, 0.3);
    }

    /* Outline button */
    .btn-outline {
        border-color: var(--color-border);
        color: var(--color-text);
    }

    .btn-outline:hover {
        background-color: rgba(255, 255, 255, 0.05);
        border-color: var(--color-purple-start);
    }

    /* Gallery backgrounds - match card color for consistency */
    .gallery-container {
        background-color: #0f1422;
    }

    .gallery-slide {
        background-color: #0f1422;
    }

    .gallery-slide img {
        background-color: #0f1422;
    }

    /* Gallery navigation - ensure visibility on dark background */
    .gallery-nav {
        background: rgba(15, 20, 34, 0.8);
        color: white;
    }

    .gallery-nav:hover {
        background: rgba(15, 20, 34, 0.95);
    }

    /* Stat items */
    .stat-item {
        background-color: rgba(255, 255, 255, 0.03);
    }

    /* Article thumbnails */
    .article-thumbnail {
        background-color: var(--color-bg-alt);
    }

    /* Card featured gradient - adjust for dark mode */
    .card-featured {
        background: linear-gradient(to bottom, #0f1422 0%, #1a1f2e 100%);
    }

    /* Compact featured card - dark glassmorphic effect */
    .card-featured-compact {
        background: rgba(15, 20, 34, 0.9) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    /* Highlight boxes - yellow text on dark needs adjustment */
    .highlight-text {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
        border-left-color: var(--color-purple-start);
        color: var(--color-text);
    }

    /* Increase opacity of very light purple tints for visibility */
    .benefit-item,
    .domain-tag {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    }

    /* CTA box background */
    .cta-box {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
    }

    /* IBM report card border */
    .ibm-report-card {
        border-color: var(--color-border);
    }

    /* Mobile menu already dark, but ensure consistency */
    .mobile-menu {
        background: rgba(15, 20, 34, 0.85);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* Gallery dots */
    .gallery-dot {
        background-color: rgba(255, 255, 255, 0.3);
    }

    .gallery-dot.active {
        background-color: var(--color-purple-start);
    }

    /* Form inputs (if any) */
    input,
    textarea,
    select {
        background-color: var(--color-bg-alt);
        border-color: var(--color-border);
        color: var(--color-text);
    }

    input:focus,
    textarea:focus,
    select:focus {
        border-color: var(--color-purple-start);
        background-color: #1a1f2e;
    }

    /* Link styling for dark mode - readable on dark backgrounds */
    a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-nav):not(.nav-link):not(.mobile-nav-link) {
        color: #93c5fd; /* Light blue - readable on dark */
        text-decoration: underline;
    }

    a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-nav):not(.nav-link):not(.mobile-nav-link):visited {
        color: #c4b5fd; /* Light purple - complements theme */
    }

    a:not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-nav):not(.nav-link):not(.mobile-nav-link):hover {
        color: #ddd6fe; /* Lighter purple on hover */
    }

    /* Override link-arrow class to match global link styling */
    .link-arrow {
        color: #93c5fd;
        text-decoration: none;
    }

    .link-arrow:hover {
        color: #ddd6fe;
    }
}

/* Dark Mode - Manual Toggle (Hybrid Mode) */
/* Applies same styles as system preference, but via .dark-mode class */
html.dark-mode {
    /* Dark background colors */
    --color-bg: #0b0f19;
    --color-bg-alt: #0f1422;
    --color-bg-dark: #0f1422;

    /* Dark text colors */
    --color-text: #e5e7eb;
    --color-text-light: #9ca3af;

    /* Dark border colors */
    --color-border: #1f2937;

    /* Inverted primary/secondary for dark mode */
    --color-primary: #f9fafb;
    --color-secondary: #1f2937;

    /* Adjusted shadows for dark backgrounds */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Dark mode component styles */
html.dark-mode .gallery-container {
    background-color: #0f1422;
}

html.dark-mode .gallery-slide {
    background-color: #0f1422;
}

html.dark-mode .gallery-slide img {
    background-color: #0f1422;
}

html.dark-mode .gallery-nav {
    background: rgba(15, 20, 34, 0.8);
    color: white;
}

html.dark-mode .gallery-nav:hover {
    background: rgba(15, 20, 34, 0.95);
}

html.dark-mode .benefit-item,
html.dark-mode .domain-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Dark mode mobile menu */
html.dark-mode .mobile-menu {
    background: rgba(15, 20, 34, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   LAYOUT & TYPOGRAPHY
   ============================================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Fixed Glassmorphic Navigation */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1.25rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    height: 1.75rem;
    width: 1.75rem;
    object-fit: contain;
    border-radius: 0.5rem;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.nav-subtitle {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    margin-top: -0.125rem;
    line-height: 1;
}

/* Desktop Navigation Menu */
.nav-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: white;
    transform: scale(1.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    padding: 0.4rem 1.25rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.btn-nav:hover {
    background: white;
    color: var(--color-purple-start);
    transform: scale(1.05);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-toggle .theme-icon {
    width: 18px;
    height: 18px;
    display: none;
}

/* Show appropriate icon based on current mode */
.theme-icon-dark {
    display: block;
}

.dark-mode .theme-icon-dark {
    display: none;
}

.dark-mode .theme-icon-light {
    display: block;
}

/* Mobile theme toggle */
.theme-toggle.mobile {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle.mobile:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle-text {
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    gap: 0.3rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu-button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.hamburger-line {
    width: 1.25rem;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(0.45rem) rotate(45deg);
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-0.45rem) rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    background: rgba(102, 126, 234, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 1rem 1rem;
}

.mobile-menu.active {
    display: flex;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    display: block;
}

.mobile-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(0.25rem) scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.btn-nav.mobile {
    width: fit-content;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
    padding-top: calc(var(--spacing-2xl) + 3.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 3.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><path d="M30 0v60M0 30h60" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 95, 191, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-alt);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 95, 191, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Main Content */
.main-content {
    padding: var(--spacing-2xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* Cards */
.card {
    background-color: var(--color-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.card.revealed:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.card-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.card-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.card-content {
    padding: var(--spacing-lg);
}

.card-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.card-content p:last-child {
    margin-bottom: 0;
}

/* Card Variants */
.card-large {
    grid-column: 1 / -1;
}

.card-sidebar {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border: 2px solid var(--color-border);
}

.card-featured {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9ff 100%);
    border: 2px solid #667eea;
    position: relative;
}

/* Compact Glassmorphic Assessment Card */
@media (prefers-color-scheme: light) {
    .card-featured-compact {
        background: rgba(245, 245, 247, 0.7) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}

.card-featured-compact .card-header {
    padding: var(--spacing-md);
}

.card-featured-compact .card-content {
    padding: var(--spacing-md);
}

.card-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.card-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.card-cta .card-content {
    padding: 1.5rem;
}

.card-cta h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.card-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

/* Data Breach Impact Section - Ultra Compact */
.card-breach-impact {
    grid-column: 1 / -1;
}

.card-breach-impact .card-header {
    padding: var(--spacing-sm) var(--spacing-md);
}

.card-breach-impact .card-content {
    padding: var(--spacing-sm) var(--spacing-md);
}

.breach-impact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.breach-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.breach-stats .stat-item {
    padding: var(--spacing-sm);
}

/* IBM Report Card - 1/3 Size */
.ibm-report-card {
    flex: 0 0 auto;
    max-width: 200px;
    height: auto;
    margin: var(--spacing-lg) auto 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ibm-report-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ibm-report-link {
    display: block;
    position: relative;
    height: 100%;
    text-decoration: none;
}

.ibm-report-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ibm-report-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 80px;
}

.ibm-report-link:hover .ibm-report-overlay {
    opacity: 1;
}

.ibm-report-link:hover img {
    opacity: 0.95;
}

.ibm-report-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Mobile: Stack stats and IBM report */
@media (max-width: 767px) {
    .breach-impact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .ibm-report-card {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Assessment Benefits Section */
.card-assessment-benefits {
    grid-column: 1 / -1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: var(--transition-smooth);
}

.benefit-item:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    margin-bottom: var(--spacing-sm);
    color: var(--color-purple-start);
}

.benefit-icon svg,
.benefit-icon i {
    width: 2.5rem;
    height: 2.5rem;
    stroke-width: 1.5;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.benefit-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Text Styles */
.intro-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.7;
    padding: var(--spacing-md);
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    margin-bottom: var(--spacing-lg);
}

/* Compact Highlight Text for Assessment */
.highlight-text-compact {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.link-arrow {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease;
}

.link-arrow:hover {
    transform: translateX(4px);
}

/* Stats and IBM Report Container */
.stats-ibm-container {
    display: flex;
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    align-items: stretch;
}

.stats-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-bg-alt);
    border-radius: var(--border-radius);
    border: 2px solid var(--color-border);
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Features List */
.features-list {
    margin: var(--spacing-lg) 0;
}

.features-list h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: var(--spacing-sm);
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
}

/* Assessment Domains */
.assessment-domains {
    margin: var(--spacing-md) 0;
}

.assessment-domains h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.domain-tag {
    text-align: center;
    padding: var(--spacing-sm);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(102, 126, 234, 0.15);
    transition: var(--transition-smooth);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
}

.domain-tag:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Image Gallery */
.gallery-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: var(--spacing-lg) auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--color-bg);
    box-shadow: var(--shadow-xl);
}

/* Compact Gallery for Assessment Section */
.gallery-container-compact {
    max-width: 600px;
    margin: var(--spacing-md) auto;
}

.gallery-container-compact .gallery-slides {
    aspect-ratio: 16 / 10;
}

.gallery-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f3f4f6;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
    border-radius: 0.25rem;
}

.gallery-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 1rem;
}

.gallery-next {
    right: 1rem;
}

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.gallery-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gallery-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.gallery-dot.active {
    background-color: white;
    width: 2rem;
    border-radius: 0.375rem;
}

/* CTA Box */
.cta-box {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 2px solid #667eea;
}

/* Full-width CTA Box by default (mobile) */
.content-grid > .cta-box {
    grid-column: 1 / -1;
}

.cta-note {
    font-size: 0.875rem;
    color: rgba(102, 126, 234, 1);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

/* Light text for cta-note on purple backgrounds */
.cta-box .cta-note {
    color: rgba(255, 255, 255, 0.85);
}

/* Icon */
.icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Latest Articles Styles */
.article-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    align-items: flex-start;
}

.article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-item:first-child {
    padding-top: 0;
}

.article-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
    background-color: var(--color-bg-alt);
}

.article-content {
    flex: 1;
    min-width: 0;
}

.article-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.4;
    transition: color 0.2s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-title:hover {
    color: var(--color-purple-start);
}

.article-date {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.loading-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0;
}

.error-text {
    color: #dc2626;
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0;
}

/* Footer */
.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-2xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-rss {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
}

.footer-rss a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-rss a:hover {
    color: white;
}

.footer-rss-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.rss-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-rss-link:hover .rss-icon {
    transform: scale(1.15);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .card-large {
        grid-column: span 3;
    }

    .card-sidebar {
        grid-column: span 2;
    }

    .card-featured {
        grid-column: 1 / -1;
    }

    .card-cta {
        grid-column: 1 / -1;
    }

    .cta-box {
        grid-column: 1 / -1;
    }

    /* Two-column section for AI Security Readiness page */
    .two-column-section {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: var(--spacing-lg);
        grid-column: 1 / -1;
    }

    .two-column-section > .card-large {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .two-column-section > .cta-box {
        grid-column: 2;
        grid-row: 1;
    }

    .two-column-section > .card-cta {
        grid-column: 2;
        grid-row: 2;
    }
}

@media (max-width: 767px) {
    /* Mobile: single column for two-column section */
    .two-column-section {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .two-column-section > .card-large,
    .two-column-section > .cta-box,
    .two-column-section > .card-cta {
        grid-column: auto;
        grid-row: auto;
    }
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Stack stats and IBM report vertically on mobile */
    .stats-ibm-container {
        flex-direction: column;
    }

    .ibm-report-card {
        flex: 1;
        max-width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional mobile navigation styles */
@media (max-width: 767px) {
    .nav-container {
        padding: 0.5rem 1rem;
    }

    .nav-logo {
        height: 1.5rem;
        width: 1.5rem;
    }

    .nav-title {
        font-size: 0.95rem;
    }

    .nav-subtitle {
        font-size: 0.6rem;
    }

    .hero {
        padding-top: calc(var(--spacing-xl) + 3rem);
    }
}

/* ============================================
   RSS FEED LOADING INDICATORS
   ============================================ */

.refresh-indicator {
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem;
}

.error-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 2rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}
