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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #ffffff;
    color: #374151;
    line-height: 1.6;
}

/* Scroll margin for anchor links to account for sticky navbar */
h2[id],
h3[id],
h4[id] {
    scroll-margin-top: 100px;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    animation: fadeIn 0.6s ease-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff7a3d;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    stroke: #111827;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.9), transparent);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    max-width: 56rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge-orange {
    background: #ff7a3d;
    color: #ffffff;
}

.badge-green {
    background: #d1fae5;
    color: #065f46;
}

.badge-purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-amber {
    background: #fef3c7;
    color: #92400e;
}

.badge-teal {
    background: #ccfbf1;
    color: #115e59;
}

.badge-large {
    padding: 0.75rem 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: #ff7a3d;
    color: #ffffff;
}

.btn-primary:hover {
    background: #ff9f5a;
}

.btn-secondary {
    background: #ff7a3d;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #ff9f5a;
}

.btn-dark {
    background: #000000;
    color: #ffffff;
}

.btn-dark:hover {
    background: #1f2937;
}

.icon {
    width: 1rem;
    height: 1rem;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

.article {
    position: relative;
    z-index: 10;
}

.lead-text {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Link Hub */
.link-hub {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

.section-title-large {
    font-size: 3.75rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.section-subtitle-large {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    text-decoration: none;
    display: block;
}

.card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.card-large .card-image {
    height: 14rem;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff7a3d;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: #ff7a3d;
}

.card-title-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card:hover .card-title-large {
    color: #ff7a3d;
}

.card-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-text-large {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff7a3d;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.card:hover .card-link {
    gap: 0.75rem;
}

.card-link .icon {
    transition: transform 0.3s ease;
}

.card:hover .card-link .icon {
    transform: translateX(0.25rem);
}

/* Prose Content */
.prose {
    max-width: none;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.prose strong {
    font-weight: 600;
    color: #111827;
}

.inline-link {
    color: #ff7a3d;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 122, 61, 0.3);
    padding-bottom: 1px;
    transition: all 0.2s ease;
}

.inline-link:hover {
    color: #ff9f5a;
    border-bottom-color: #ff9f5a;
    background: rgba(255, 122, 61, 0.05);
    padding: 2px 4px;
    margin: -2px -4px;
    border-radius: 4px;
}

/* Custom Bullets */
.custom-bullets {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.custom-bullets li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.875rem;
    color: #374151;
}

.custom-bullets li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.55rem;
    width: 0.45rem;
    height: 0.45rem;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff9f5a 100%);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 122, 61, 0.12);
}

/* Custom Numbered List */
.custom-numbered {
    list-style: none;
    counter-reset: custom-counter;
    padding-left: 0;
    margin-bottom: 2.5rem;
}

.custom-numbered li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    counter-increment: custom-counter;
}

.custom-numbered li::before {
    content: counter(custom-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff9f5a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Performance Table */
.table-wrapper {
    margin: 2.5rem 0;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
}

.performance-table thead {
    background: linear-gradient(to right, #ff7a3d, #ff9f5a);
    color: #ffffff;
}

.performance-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
}

.performance-table tbody {
    background: #ffffff;
}

.performance-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.performance-table tbody tr:hover {
    background-color: #f9fafb;
}

.performance-table td {
    padding: 1rem 1.5rem;
    color: #374151;
}

.performance-table .font-bold {
    font-weight: 500;
    color: #111827;
}

.performance-table .text-green {
    color: #059669;
    font-weight: 600;
}

.performance-table .text-orange {
    color: #f59e0b;
    font-weight: 600;
}

.performance-table .text-red {
    color: #dc2626;
    font-weight: 600;
}

/* CTA Box */
.cta-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    padding: 4rem;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff9f5a 50%, #ffc299 100%);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    margin: 3rem 0;
}

.cta-decorations {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 66.666%;
    pointer-events: none;
    overflow: hidden;
}

.circle-wave {
    position: absolute;
    right: -8rem;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    border: 60px solid rgba(251, 146, 60, 0.3);
    opacity: 0;
}

.wave-1 {
    width: 600px;
    height: 600px;
    animation: fadeInScale 1s ease-out 0.5s forwards;
}

.wave-2 {
    width: 500px;
    height: 500px;
    border-width: 50px;
    border-color: rgba(253, 186, 116, 0.25);
    animation: fadeInScale 1s ease-out 0.7s forwards;
}

.wave-3 {
    width: 400px;
    height: 400px;
    border-width: 40px;
    border-color: rgba(254, 215, 170, 0.2);
    animation: fadeInScale 1s ease-out 0.9s forwards;
}

.wave-4 {
    width: 300px;
    height: 300px;
    border-width: 30px;
    border-color: rgba(255, 237, 213, 0.15);
    animation: fadeInScale 1s ease-out 1.1s forwards;
}

.floating-text {
    position: absolute;
    top: 25%;
    left: 0;
    right: 0;
    color: #ffffff;
    font-weight: 900;
    font-size: 4rem;
    white-space: nowrap;
    opacity: 0.05;
    pointer-events: none;
    animation: scrollText 30s linear infinite;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
}

.cta-title {
    font-size: 3.75rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 36rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Image Text Section */
.image-text-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin: 4rem 0;
}

.image-text-image {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.image-text-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.image-text-content h3 {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.image-text-content p {
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Author Box */
.author-box {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.author-avatar {
    position: relative;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff9f5a 50%, #ffa07a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.875rem;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.author-status {
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #10b981;
    border: 4px solid #ffffff;
    border-radius: 50%;
}

.author-info h4 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.25rem;
}

.author-role {
    color: #6b7280;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.author-bio {
    color: #374151;
    line-height: 1.6;
}

/* Share Section */
.share-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-dropdown {
    position: relative;
    z-index: 300;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.share-btn:hover {
    background: #e5e7eb;
}

.share-btn .chevron {
    transition: transform 0.3s ease;
}

.share-btn.active .chevron {
    transform: rotate(180deg);
}

.share-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0;
    min-width: 220px;
    z-index: 300;
    display: none;
    animation: scaleIn 0.15s ease-out;
}

.share-menu.active {
    display: block;
}

.share-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border: none;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.share-item:hover {
    background: #f9fafb;
}

.share-item svg {
    width: 1rem;
    height: 1rem;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.25rem 0;
}

/* Related Section */
.related-section {
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 237, 213, 0.2) 50%, #f9fafb 100%);
    padding: 6rem 0;
    position: relative;
    z-index: 0;
}

/* Footer */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scrollText {
    0% {
        transform: translateX(0) rotate(-6deg);
    }
    100% {
        transform: translateX(-50%) rotate(-6deg);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-on-scroll.animate-in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-scale-in {
    animation: scaleIn 0.15s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .cta-title {
        font-size: 3rem;
    }

    .section-title-large {
        font-size: 3rem;
    }

    .image-text-section {
        grid-template-columns: 1fr;
    }

    .image-text-image img {
        height: 400px;
    }

    .floating-text {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .header-content {
        position: relative;
    }

    .hero {
        height: 50vh;
        min-height: 350px;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .section-title {
        font-size: 1.875rem;
    }

    .section-title-large {
        font-size: 2.25rem;
    }

    .cta-box {
        padding: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1rem;
    }

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

    .circle-wave {
        display: none;
    }

    .floating-text {
        font-size: 2rem;
    }

    .share-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-left {
        flex-direction: column;
        width: 100%;
    }

    .share-left .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .author-box {
        flex-direction: column;
    }
}
