/* Custom Variables */
:root {
    --vulcan-orange: #CC5500;
    --vulcan-dark: #1A1A1A;
    --vulcan-light: #F5F5F5;
    --vulcan-green: #2F9E44; /* Emerald green that complements Vulcan orange */
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--vulcan-dark);
}

/* Header */
.header-topbar {
    background: linear-gradient(90deg, #A04400 0%, #CC5500 50%, #FF7A1A 100%);
}

.navbar-main {
    background: linear-gradient(180deg, #2f2f2f 0%, #1f1f1f 100%);
    border-bottom: 2px solid rgba(204,85,0,0.35);
}

.navbar-main .nav-link {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: .2px;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    position: relative;
    margin: 0 .25rem;
}

.navbar-main .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: .25rem;
    width: 0;
    height: 2px;
    background: var(--vulcan-orange);
    transition: width .25s ease;
}

.navbar-main .nav-link:hover::after,
.navbar-main .nav-link:focus::after,
.navbar-main .nav-link.active::after {
    width: 100%;
}

.navbar-main .nav-link:hover,
.navbar-main .nav-link:focus {
    color: #FFE1D0;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.brand-logo-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.brand-tagline {
    color: #ffffff;
    opacity: .9;
    font-size: .95rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(204, 85, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Video Hero */
.hero-video-wrapper {
    position: relative;
    min-height: 80vh;
    background: #0f0f0f;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.05) brightness(0.6);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 60% at 20% 10%, rgba(204,85,0,0.25) 0%, rgba(26,26,26,0.65) 45%, rgba(26,26,26,0.85) 100%),
                linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.hero-compact .hero-content {
    padding-bottom: 4rem;
}

.brand-quote {
    border-left: 4px solid var(--vulcan-orange);
    padding-left: 12px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

.brand-points {
    color: rgba(255,255,255,0.92);
}

.brand-points li {
    margin: .35rem 0;
    font-size: 1.05rem;
}

.brand-points i {
    color: var(--vulcan-orange);
    margin-top: .15rem;
}

/* AI Announcement Card */
.ai-card {
    background: radial-gradient(120% 120% at 0% 0%, rgba(204,85,0,0.25) 0%, rgba(26,26,26,0.9) 45%, rgba(26,26,26,1) 100%),
                linear-gradient(160deg, rgba(255,255,255,0.04), rgba(0,0,0,0.12));
    border: 1px solid rgba(204,85,0,0.35);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35), inset 0 0 60px rgba(204,85,0,0.08);
}

.ai-badge {
    background: var(--vulcan-orange);
    color: #fff;
    font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    font-size: .8rem;
    letter-spacing: .3px;
}

.ai-icon {
    color: var(--vulcan-orange);
    margin-top: .2rem;
}

@media (max-width: 992px) {
    .ai-card { padding: 1.25rem !important; }
}

/* CTA row helpers */
.cta-row .btn { white-space: nowrap; }

/* Forge Animation */
.forge-animation {
    background: linear-gradient(45deg, var(--vulcan-orange) 0%, transparent 100%);
    animation: forge-glow 3s ease-in-out infinite;
}

@keyframes forge-glow {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Card Hover Effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Icon Animations */
.icon-wrapper i {
    transition: transform 0.3s ease;
}

.card:hover .icon-wrapper i {
    transform: scale(1.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--vulcan-orange);
    border-color: var(--vulcan-orange);
    transition: all 0.3s ease;
}

/* Dark hero variant used on About */
.hero-dark {
    background: linear-gradient(135deg, var(--vulcan-dark) 0%, #2C2C2C 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-dark .container {
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    background-color: #A04400;
    border-color: #A04400;
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Standout Dental CTA (Green) */
.btn-dental {
    background: linear-gradient(135deg, var(--vulcan-green) 0%, #1E7E34 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 28px rgba(47, 158, 68, 0.45);
    letter-spacing: .2px;
    font-weight: 700;
}

.btn-dental:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(47, 158, 68, 0.55);
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .min-vh-75 {
        min-height: 60vh;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }

    .hero-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero-compact .hero-content {
        padding-bottom: 3rem;
    }
}

/* Animation Classes */

/* Blogs listing enhancements */
.blog-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero .btn-primary {
    background-color: var(--vulcan-orange);
    border-color: var(--vulcan-orange);
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-hero .btn-primary:hover {
    background-color: #b34a00;
    border-color: #b34a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 85, 0, 0.3);
}

.blog-hero .btn-outline-light {
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-hero .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Blog Toolbar */
.blog-toolbar {
    transition: all 0.3s ease;
}

.blog-chip {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid #e5e7eb;
    background-color: white;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.blog-chip:hover {
    border-color: var(--vulcan-orange);
    color: var(--vulcan-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.blog-chip.active {
    background: linear-gradient(135deg, var(--vulcan-orange) 0%, #d96000 100%);
    border-color: var(--vulcan-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(204, 85, 0, 0.3);
}

/* Blog Cards */
.blog-card-enhanced {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    height: 100%;
}

.blog-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.blog-card-enhanced .card-title {
    color: #1f2937;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card-enhanced:hover .card-title {
    color: var(--vulcan-orange);
}

.blog-card-enhanced .btn-link {
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.blog-card-enhanced .btn-link:hover {
    transform: translateX(5px);
}

/* Featured Blog Card */
.blog-card-featured {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border: 2px solid #e5e7eb !important;
}

.blog-card-featured .card-body {
    padding: 2.5rem !important;
}

.blog-card-featured .card-title {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    .blog-card-featured .card-title {
        font-size: 1.5rem;
    }
    .blog-card-featured .card-body {
        padding: 1.5rem !important;
    }
}

/* Topic Badges */
.blog-topic-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-reading-time {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Newsletter Section */
.blog-newsletter {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    position: relative;
    overflow: hidden;
}

.blog-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(204, 85, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-newsletter::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.blog-newsletter .row {
    position: relative;
    z-index: 1;
}

.blog-newsletter .form-control {
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
}

.blog-newsletter .btn {
    border-radius: 50px;
    font-weight: 700;
    background-color: var(--vulcan-orange);
    border-color: var(--vulcan-orange);
    color: white;
    transition: all 0.3s ease;
}

.blog-newsletter .btn:hover {
    background-color: #b34a00;
    border-color: #b34a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 85, 0, 0.4);
}

/* Container Card Overrides */
.container .card {
    border-radius: 16px;
    overflow: hidden;
}

/* Blog thumbnails */
.blog-thumb {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

@media (max-width: 768px) {
    .blog-thumb { height: 140px; }
    .blog-hero .display-3 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .blog-thumb { height: 110px; }
    .blog-hero .display-3 { font-size: 2rem; }
    .blog-chip { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Section Divider */
.section-divider {
    height: 3px;
    background: linear-gradient(90deg, rgba(0,0,0,0), var(--vulcan-orange), rgba(0,0,0,0));
    border-radius: 999px;
    opacity: 0.85;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--vulcan-light);
}

::-webkit-scrollbar-thumb {
    background: var(--vulcan-orange);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #A04400;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Design parity with AI site */
.text-primary { color: var(--vulcan-orange) !important; }

/* Hero lower wedge shape */
.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--vulcan-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Cards used on About */
.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.contact-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.avatar-circle {
    inline-size: 48px;
    block-size: 48px;
    border-radius: 999px;
    background: #0f0f10;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Light pattern background */
.pattern-light::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/grid-pattern.svg') repeat;
    opacity: .12;
    pointer-events: none;
}

.story-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.story-glow {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vulcan-orange), #FF7A1A);
    opacity: .9;
}

.pull-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #111;
    border-left: 4px solid var(--vulcan-orange);
    padding-left: 12px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    color: #333;
    font-size: .9rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.12);
    color: #333;
    font-size: .9rem;
}

.story-lede::first-letter {
    float: left;
    font-size: 2.6rem;
    line-height: 1;
    padding-right: 8px;
    font-weight: 700;
    color: var(--vulcan-orange);
}

/* Fabr Launch Badge - Animated */
.fabr-launch-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.6), 0 0 40px rgba(13, 110, 253, 0.3);
    animation: fabr-pulse 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.fabr-launch-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.4), rgba(10, 88, 202, 0.4));
    filter: blur(8px);
    z-index: -1;
    animation: fabr-glow 2s ease-in-out infinite;
}

@keyframes fabr-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(13, 110, 253, 0.6), 0 0 40px rgba(13, 110, 253, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(13, 110, 253, 0.8), 0 0 60px rgba(13, 110, 253, 0.5);
    }
}

@keyframes fabr-glow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.nav-link:has(.fabr-launch-badge):hover .fabr-launch-badge {
    animation: fabr-pulse 1s ease-in-out infinite;
}
