/* Modern Dark Theme for Developer/Streamer - Load before Bootstrap */
:root {
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --tertiary-dark: #252d48;
    --accent-purple: #7c3aed;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --border-color: #2d3748;
    --hover-purple: #a78bfa;
}

/* Reset and Base Styles - CRITICAL OVERRIDES */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--primary-dark) !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif !important;
    line-height: 1.6 !important;
    font-size: 16px !important;
}

/* Override Bootstrap's body background */
body {
    background-color: var(--primary-dark) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hover-purple);
}

/* Navigation Bar Styling - STRONG OVERRIDES */
.navbar {
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--tertiary-dark) 100%) !important;
    border-bottom: 2px solid var(--accent-purple) !important;
    padding: 1rem 0 !important;
}

.navbar-dark {
    background-color: transparent !important;
}

.bg-dark {
    background-color: transparent !important;
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--accent-purple) !important;
    transition: all 0.3s ease !important;
}

.navbar-brand:hover,
.navbar-brand:focus {
    color: var(--hover-purple) !important;
    text-shadow: 0 0 10px var(--accent-purple) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-purple) !important;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.navbar-toggler {
    border-color: var(--accent-purple) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%237c3aed' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Container and Content */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.body-content {
    margin-top: 2rem !important;
    padding: 2rem 1.5rem !important;
    min-height: calc(100vh - 250px) !important;
}

/* Headings - CRITICAL */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

h1 {
    font-size: 3rem !important;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1.5rem !important;
}

h2 {
    font-size: 2rem !important;
    color: var(--accent-purple) !important;
}

h3 {
    font-size: 1.5rem !important;
    color: var(--accent-blue) !important;
}

h4, h5, h6 {
    color: var(--text-primary) !important;
}

/* Paragraphs and Text */
p {
    color: var(--text-secondary) !important;
    margin-bottom: 1rem !important;
}

.lead {
    font-size: 1.25rem !important;
    color: var(--text-secondary) !important;
    margin-bottom: 2rem !important;
}

/* Links - OVERRIDE Bootstrap defaults */
a {
    color: var(--accent-purple) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

a:hover,
a:focus {
    color: var(--accent-cyan) !important;
}

/* Buttons - STRONG OVERRIDES */
.btn {
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--hover-purple), var(--accent-cyan)) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.6) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.btn-outline-dark {
    background: transparent !important;
    border: 2px solid var(--accent-purple) !important;
    color: var(--accent-purple) !important;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background: var(--accent-purple) !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5) !important;
}

.btn-md {
    padding: 0.875rem 2rem !important;
    font-size: 1.1rem !important;
}

/* Sections and Cards */
section {
    margin-bottom: 3rem !important;
}

/* Row Styling */
.row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    margin-bottom: 2rem !important;
}

.col-md-4 {
    flex: 1 !important;
    min-width: 280px !important;
    padding: 2rem !important;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark)) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.col-md-4::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.col-md-4:hover {
    border-color: var(--accent-purple) !important;
    background: linear-gradient(135deg, var(--tertiary-dark), var(--secondary-dark)) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3) !important;
    transform: translateY(-5px) !important;
}

.col-md-4:hover::before {
    transform: scaleX(1);
}

.col-md-4 h2 {
    color: var(--accent-cyan) !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
}

.col-md-4 p {
    color: var(--text-secondary) !important;
    margin-bottom: 1.5rem !important;
}

/* Footer */
footer {
    margin-top: 3rem !important;
    padding: 2rem !important;
    border-top: 2px solid var(--accent-purple) !important;
    text-align: center !important;
    color: var(--text-secondary) !important;
    background: var(--secondary-dark) !important;
}

footer p {
    margin: 0 !important;
    color: var(--text-secondary) !important;
}

/* HR Styling */
hr {
    border: none !important;
    border-top: 1px solid var(--border-color) !important;
    margin: 2rem 0 !important;
}

/* Form Elements - STRONG OVERRIDES */
input,
select,
textarea {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.75rem !important;
    margin-bottom: 1rem !important;
    background-color: var(--secondary-dark) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--accent-purple) !important;
    border-radius: 0.5rem !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
    background-color: var(--tertiary-dark) !important;
}

/* Description Lists */
.dl-horizontal dt {
    white-space: normal !important;
    color: var(--accent-purple) !important;
    font-weight: 600 !important;
}

.dl-horizontal dd {
    color: var(--text-secondary) !important;
}

/* Linktree Style Landing Page */
.linktree-container {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
    min-height: calc(100vh - 300px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.linktree-hero {
    text-align: center !important;
    margin-bottom: 3rem !important;
    animation: fadeInDown 0.6s ease !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    padding: 2rem 0 !important;
}

.profile-image-container {
    margin-bottom: 2rem !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.profile-image {
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid var(--accent-purple) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.3) !important;
    filter: brightness(0.85) contrast(1.1) saturate(1.05) !important;
    transition: all 0.3s ease !important;
}

.profile-image:hover {
    filter: brightness(0.95) contrast(1.15) saturate(1.1) !important;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.7), inset 0 0 20px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05) !important;
}

.hero-title {
    font-size: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

.social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
}

.social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark)) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.social-icon:hover {
    border-color: var(--accent-purple) !important;
    background: linear-gradient(135deg, var(--tertiary-dark), var(--secondary-dark)) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4) !important;
    transform: translateY(-3px) scale(1.1) !important;
    color: var(--accent-purple) !important;
}

.linktree-links {
    width: 100% !important;
    animation: fadeInUp 0.8s ease 0.2s both !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.links-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

.linktree-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark)) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 0.75rem !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.3rem !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
}

.linktree-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.linktree-link:hover::before {
    left: 100%;
}

.linktree-link:hover {
    border-color: var(--accent-purple) !important;
    background: linear-gradient(135deg, var(--tertiary-dark), var(--secondary-dark)) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4) !important;
    transform: translateY(-3px) !important;
    color: var(--accent-purple) !important;
}

.linktree-link-featured {
    padding: 1.5rem !important;
    border: 2px solid var(--accent-purple) !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05)) !important;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2) !important;
    font-size: 1.4rem !important;
}

.linktree-link-featured:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1)) !important;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5) !important;
    color: var(--accent-cyan) !important;
}

.link-icon {
    font-size: 2.5rem !important;
    display: inline-flex !important;
    align-items: center !important;
}

.link-text {
    text-align: center !important;
}

.draconicraft-image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.draconicraft-image {
    height: 40px !important;
    max-width: 80px !important;
    object-fit: contain !important;
}

/* DraconiCraft Page Styles */
.draconicraft-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
}

.draconicraft-hero {
    text-align: center !important;
    margin-bottom: 3rem !important;
    animation: fadeInDown 0.6s ease !important;
}

.draconicraft-hero .hero-content {
    padding: 2rem 0 !important;
}

.draconicraft-hero-image {
    max-width: 300px !important;
    height: auto !important;
    margin-bottom: 2rem !important;
    border-radius: 0.75rem !important;
    border: 4px solid var(--accent-purple) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5) !important;
}

.draconicraft-content {
    animation: fadeInUp 0.8s ease 0.2s both !important;
}

/* Development Page Styles */
.development-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 2rem 1.5rem !important;
}

.development-hero {
    text-align: center !important;
    margin-bottom: 3rem !important;
    animation: fadeInDown 0.6s ease !important;
}

.development-hero .hero-content {
    padding: 3rem 0 !important;
}

.development-hero .hero-title {
    font-size: 3rem !important;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin-bottom: 1rem !important;
}

.development-hero .hero-subtitle {
    font-size: 1.3rem !important;
    color: var(--text-secondary) !important;
    margin: 0 !important;
}

.development-content {
    animation: fadeInUp 0.8s ease 0.2s both !important;
}

.content-wrapper {
    padding: 2rem !important;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark)) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 0.75rem !important;
}

.content-wrapper h2 {
    color: var(--accent-cyan) !important;
    margin-bottom: 1rem !important;
    font-size: 2rem !important;
}

.content-wrapper p {
    color: var(--text-secondary) !important;
    margin-bottom: 2rem !important;
    font-size: 1.1rem !important;
}

.content-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    margin-bottom: 2rem !important;
}

.content-card {
    padding: 1.5rem !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05)) !important;
    border: 1px solid var(--accent-purple) !important;
    border-radius: 0.75rem !important;
    transition: all 0.3s ease !important;
}

.content-card:hover {
    border-color: var(--accent-cyan) !important;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1)) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3) !important;
    transform: translateY(-3px) !important;
}

.content-card h3 {
    color: var(--accent-purple) !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.3rem !important;
}

.content-card p {
    color: var(--text-secondary) !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

.action-buttons {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    margin-top: 2rem !important;
    flex-wrap: wrap !important;
}

.btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, var(--secondary-dark), var(--tertiary-dark)) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 0.5rem !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.btn-secondary:hover {
    border-color: var(--accent-purple) !important;
    background: linear-gradient(135deg, var(--tertiary-dark), var(--secondary-dark)) !important;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4) !important;
    color: var(--accent-purple) !important;
}

/* Responsive Design for DraconiCraft & Development */
@media (max-width: 768px) {
    .draconicraft-container,
    .development-container {
        padding: 1.5rem 1rem !important;
    }

    .draconicraft-hero-image {
        max-width: 250px !important;
    }

    .development-hero .hero-title {
        font-size: 2rem !important;
    }

    .development-hero .hero-subtitle {
        font-size: 1.1rem !important;
    }

    .content-wrapper {
        padding: 1.5rem !important;
    }

    .content-wrapper h2 {
        font-size: 1.5rem !important;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
    }

    .action-buttons {
        flex-direction: column !important;
    }

    .btn-secondary {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Responsive Design for Linktree */
@media (max-width: 480px) {
    .linktree-container {
        padding: 1rem !important;
    }

    .profile-image {
        width: 140px !important;
        height: 140px !important;
    }

    .hero-title {
        font-size: 1.75rem !important;
    }

    .linktree-link {
        padding: 0.875rem !important;
        font-size: 0.95rem !important;
        gap: 0.5rem !important;
    }

    .link-icon {
        font-size: 1.25rem !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
