/* ==========================================================================
   Portfolio Web Application Styles
   ========================================================================== */

:root {

    font-size: 15px;
    /* Core Colors - Enhanced from landing.css */
    --primary-color: #f8f9fa;
    --primary-color-light: #ffffff;
    --primary-color-dark: #e9ecef;
    --secondary-color: #6c757d;
    --secondary-color-light: #bdc5cc;
    --accent-color: #007AFF;
    --dark-color: #1f2430;
    --gray-color: #4B5563;
    --light-gray: #F9FAFB;
    --card-border-color: #ececec;
    --white: #FFFFFF;
    --white-alpha-90: rgba(255, 255, 255, 0.9);
    --text-color: #495057;
    --font-color: #212529;
    --text-on-accent: #ffffff;

    --onboarding-color: #19213d;
    --onboarding-text-color: #505e66;
    
    /* Status Colors */
    --success-color: #343a40;
    --warning-color: #495057;
    --danger-color: #dc3545;
    --info-color: #6c757d;
    --light-color: #f8f9fa;
    
    /* Edit Mode Colors */
    --edit-color: #4B5563;
    --edit-color-light: #6B7280;
    --edit-color-dark: #374151;
    --edit-color-hover: #6B7280;
    --edit-color-rgb: 75, 85, 99;
    --edit-color-light-rgb: 107, 114, 128;
    --edit-color-dark-rgb: 55, 65, 81;
    
    /* Edit Mode Opacity Colors */
    --edit-color-alpha-05: rgba(var(--edit-color-rgb), 0.05);
    --edit-color-alpha-10: rgba(var(--edit-color-rgb), 0.1);
    --edit-color-alpha-15: rgba(var(--edit-color-rgb), 0.15);
    --edit-color-alpha-20: rgba(var(--edit-color-rgb), 0.2);
    --edit-color-alpha-25: rgba(var(--edit-color-rgb), 0.25);
    --edit-color-alpha-30: rgba(var(--edit-color-rgb), 0.3);
    --edit-color-alpha-40: rgba(var(--edit-color-rgb), 0.4);
    --edit-color-alpha-50: rgba(var(--edit-color-rgb), 0.5);
    --edit-color-alpha-60: rgba(var(--edit-color-rgb), 0.6);
    --edit-color-light-alpha-05: rgba(var(--edit-color-light-rgb), 0.05);
    --edit-color-light-alpha-10: rgba(var(--edit-color-light-rgb), 0.1);
    --edit-color-light-alpha-15: rgba(var(--edit-color-light-rgb), 0.15);
    --edit-color-light-alpha-30: rgba(var(--edit-color-light-rgb), 0.3);
    --edit-color-alpha-90: rgba(var(--edit-color-rgb), 0.9);
    --edit-color-alpha-100: rgba(var(--edit-color-rgb), 1.0);
    
    /* Edit Mode Gradients */
    --edit-gradient-primary: linear-gradient(135deg, var(--edit-color) 0%, var(--edit-color-light) 100%);
    --edit-gradient-secondary: linear-gradient(135deg, var(--edit-color-light) 0%, var(--edit-color-dark) 100%);
    --edit-gradient-light: linear-gradient(135deg, var(--edit-color-alpha-10) 0%, var(--edit-color-alpha-15) 100%);
    --edit-gradient-drag-hover: linear-gradient(90deg, transparent 10%, var(--edit-color-alpha-100) 25%, var(--edit-color-dark) 50%, var(--edit-color-alpha-100) 75%, transparent 90%);
    
    /* Edit Mode Box Shadows */
    --edit-shadow-sm: 0 2px 8px var(--edit-color-alpha-25);
    --edit-shadow-md: 0 4px 12px var(--edit-color-alpha-30);
    --edit-shadow-lg: 0 4px 15px var(--edit-color-alpha-30);
    --edit-shadow-xl: 0 6px 20px var(--edit-color-alpha-40);
    --edit-shadow-focus: 0 0 15px var(--edit-color-alpha-30);
    --edit-shadow-active: 0 0 0 3px var(--edit-color-alpha-30);
    
    /* Gradients */
    --gradient-primary: linear-gradient(90deg, #00A2FF 0%, #0051FF 100%);
    --gradient-secondary: linear-gradient(180deg, rgba(1, 161, 255, 0.06) 0%, rgba(1, 161, 255, 0) 100%);
    
    /* Shadows - Enhanced system */
    --shadow-sm: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
    --shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 0 1.25rem rgba(0, 0, 0, 0.10);
    --shadow-light: color-mix(in srgb, var(--font-color) 2%, rgba(0, 0, 0, 0.01));
    --shadow-normal: color-mix(in srgb, var(--font-color) 4%, rgba(0, 0, 0, 0.04));
    --shadow-intense: color-mix(in srgb, var(--font-color) 8%, rgba(0, 0, 0, 0.08));
    
    /* Border Radius - Enhanced system */
    --border-radius: 1.75rem;
    --border-radius-sm: 1.25rem;
    --card-border-radius: 0.75rem;
    --button-border-radius: 0.65rem;
    
    /* Typography System */
    --font-family: 'Segoe UI', sans-serif;
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-hero: 5rem;
    --font-size-section: 3rem;
    --font-size-card: 1.5rem;
    --font-size-body: 1.2rem;
    --line-height-hero: 5.5rem;
    --line-height-section: 4.75rem;
    --line-height-card: 2.2rem;
    --line-height-body: 1.9rem;
}

@media (min-width: 1700px) {
    :root {
        font-size: 17px;
    }
}

@media (max-width: 1400px) {
    :root {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    :root {
        font-size: 16px;
    }
}

/* ==========================================================================
   Minimal Scrollbar Styles
   ========================================================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.4);
}

/* Hide scrollbar arrows/buttons */
::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

::-webkit-scrollbar-corner {
    background-color: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-color) 20%, transparent) transparent;
}

/* ==========================================================================
   Font Harmonization
   ========================================================================== */

/* Apply consistent font family to all elements */
* {
    font-family: var(--font-family);
}

main {
    min-height: calc(100vh - 56px);
    margin-bottom: 0;
    padding-bottom: 0;
}

section {
    transition: opacity 0.3s ease-in;
    opacity: 0;
    animation: mainFadeIn .25s ease-in .05s forwards;
}

/* nav {
    transition: opacity 0.3s ease-in;
    opacity: 0;
    animation: mainFadeIn 0.05s ease-in .05s forwards;
} */

@keyframes mainFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Preserve Font Awesome icon fonts - comprehensive coverage */
.fas, .far, .fal, .fat, .fad, .fab,
[class*="fa-"],
.fa,
i[class^="fa"],
i[class*=" fa"],
i.fa,
i.fas,
i.far,
i.fal,
i.fat,
i.fad,
i.fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important; /* Ensure solid icons display correctly */
}

/* Specific weight for different Font Awesome styles */
.far {
    font-weight: 400 !important; /* Regular style */
}

.fab {
    font-weight: 400 !important; /* Brands style */
}

textarea {
    transition: none !important;
}

.close-btn {
    background: none !important; border: none; box-shadow: none; color: var(--edit-color); padding: 0; padding-right: .5rem; line-height: 1.25; font-size: 1.25rem;
}

.close-btn:hover {
    color: var(--danger-color) !important;
    background: none !important; 
    background-color: none !important;
}

.close-btn:focus {
    color: var(--edit-color) !important;
    background: none !important;
    background-color: none !important;
}

/* ==========================================================================
   Enhanced Typography System
   ========================================================================== */

/* Landing page inspired typography */
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700 !important;
    line-height: var(--line-height-hero);
    text-align: left;
    color: var(--dark-color);
    margin-right: auto;
    margin-bottom: 1rem !important;
    max-width: 70vw;
    padding: .5rem;
}

.hero-subtitle {
    font-size: calc(var(--font-size-hero) * 0.3) !important;
    font-weight: 400;
    line-height: calc(var(--line-height-hero) * 0.45) !important;
    text-align: left;
    color: var(--text-color);
    margin-right: auto;
    margin-bottom: 2.5rem;
    padding: .75rem;
    max-width: 70vw;
}

.section-title {
    font-size: var(--font-size-section);
    font-weight: 700;
    line-height: var(--line-height-section);
    text-align: center;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    text-align: center;
    color: #495057;
    margin: auto;
    margin-top: 1rem;
    max-width: 40rem;
}

.final-banner {
    padding-top: 6rem !important;
    padding-bottom: 5.5rem !important;
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .final-banner {
        min-height: 30vh;
        padding-top: 4rem !important;
        padding-bottom: 3.9rem !important;
    }
}

.card-title {
    font-size: var(--font-size-card);
    font-weight: 700;
    line-height: var(--line-height-card);
    color: var(--dark-color);
}

.card-description {
    font-size: var(--font-size-body);
    font-weight: 400;
    line-height: var(--line-height-body);
    color: var(--gray-color);
}

/* Gradient text styling */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--accent-color); /* Fallback */
    animation: gentle-twinkle 4s ease-in-out infinite;
}

/* Text gradient utility */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Edit Mode Styles
   ========================================================================== */

/* Edit button consistency - using CSS variables */
.btn-edit-mode,
.btn-edit-mode-outline {
    background: var(--edit-gradient-primary) !important;
    border-color: var(--edit-color) !important;
    color: white !important;
    transition: none !important;
    position: relative;
    overflow: hidden;
}

.btn-edit-mode-outline {
    background: transparent !important;
    color: var(--edit-color) !important;
    border: 2px solid var(--edit-color) !important;
}

.btn-edit-mode:hover,
.btn-edit-mode-outline:hover {
    background: var(--edit-color) !important;
    border-color: var(--edit-color) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: var(--edit-shadow-xl);
}

.btn-edit-mode::before,
.btn-edit-mode-outline:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-edit-mode:hover::before,
.btn-edit-mode-outline:hover::before {
    left: 100%;
}

/* Editable content styling */
[contenteditable="true"] {
    cursor: text !important;
    position: relative;
    transition: outline-offset 0.2s ease-in-out, background-color 0.2s ease-in-out, outline 0.2s ease-in-out !important;
    outline: 1.5px dashed transparent !important;
    outline-offset: 4px !important;
    border-radius: var(--button-border-radius);
}

[contenteditable="true"]:hover {
    outline-offset: 4px !important;
    outline: 1.5px dashed var(--edit-color-light) !important;
}

[contenteditable="true"]:focus {
    outline: 1.5px solid var(--edit-color-light) !important;
    outline-offset: 6px !important;
    background-color: var(--edit-color-alpha-05) !important;
}

/* Empty content field indication in edit mode */
[contenteditable="true"].empty-content {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        color-mix(in srgb, var(--edit-color) 3%, transparent) 10px,
        color-mix(in srgb, var(--edit-color) 3%, transparent) 20px
    );
}

[contenteditable="true"].empty-content:hover {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.1) 10px,
        color-mix(in srgb, var(--edit-color) 5%, transparent) 10px,
        color-mix(in srgb, var(--edit-color) 5%, transparent) 20px
    );
}

[contenteditable="true"].empty-content:focus {
    background-color: var(--edit-color-alpha-05) !important;
}

/* Always show portrait edit overlay on touch devices in edit mode */
@media (hover: none), (pointer: coarse), (max-width: 992px) {
    /* Editable content styling */
    [contenteditable="true"] {
        outline: 1.5px dashed var(--edit-color-alpha-30) !important;
        outline-offset: 5px !important;
    }
}

/* Ensure buttons are always clickable */
.btn, a.btn {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

.btn:focus {
    outline: none !important;
    background-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    background: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    border-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
}

/* Prevent contenteditable from interfering with buttons */
[contenteditable] .btn,
[contenteditable] a.btn {
    pointer-events: auto !important;
    z-index: 11 !important;
}

/* CTA Button Edit Icon Styling */
.btn-edit-mode.position-absolute-edit-btn {
    position: absolute !important;
    background: var(--white) !important;
    border: 2px solid var(--edit-color) !important;
    color: var(--edit-color) !important;
    box-shadow: var(--edit-shadow-sm) !important;
    transition: all 0.2s ease !important;
    width: 35px !important;
    height: 35px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    top: -10px !important;
    right: -15px !important;
    z-index: 20 !important;
    min-width: unset !important;
    max-width: 35px !important;
    line-height: 1 !important;
    font-size: 0 !important;
}

.btn-edit-mode.position-absolute-edit-btn:hover {
    display: flex !important;
    background: var(--edit-color) !important;
    border-color: var(--edit-color) !important;
    color: white !important;
    transform: scale(1.2) !important;
    box-shadow: var(--edit-shadow-xl);
}

.btn-edit-mode.position-absolute-edit-btn:active {
    transform: scale(0.9) !important;
}

.btn-edit-mode.position-absolute-edit-btn i {
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* CTA Button Edit Icon Styling - Show on hover */
.btn:hover ~ .position-absolute-edit-btn {
    display: flex !important;
}

/* Also show on mobile/touch devices when edit mode is active */
@media (hover: none), (pointer: coarse), (max-width: 992px) {
    .btn-edit-mode.position-absolute-edit-btn {
        display: flex !important;
    }
}

/* Hero CTA container layout adjustments for hidden buttons with visible edit buttons */
.hero-cta-container > div:empty {
    display: none !important;
}

/* Ensure proper spacing when only edit buttons are visible */
.edit-mode .hero-cta-container {
    gap: 1rem !important;
    align-items: flex-start !important;
}

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

/* Hero section button container should not interfere */
.hero-section .d-flex {
    position: relative;
    z-index: 5;
}

.hero-section .btn {
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   Global Styles
   ========================================================================== */

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 56px; /* Account for fixed navbar */
    transition: padding-top 0.3s ease-in-out;
    overflow-y: scroll;
    min-height: 100vh;
    margin: 0;
    padding-bottom: 0;
}

.btn {
    border-radius: var(--button-border-radius);
    font-weight: 500;
    transition: none !important;
}

.btn:hover {
    transform: translateY(-1px);
}

.card {
    border: 1.5px solid var(--card-border-color) !important;
    border-radius: var(--card-border-radius) !important;
    box-shadow: none !important;
    background-color: transparent !important;
    transition: all 0.2s ease-in-out;
}

.card:hover {
    box-shadow: none !important;
}

/* ==========================================================================
   Compact Filter Section Styles
   ========================================================================== */

.compact-filter-container {
    position: relative;
}

.search-bar-container {
    position: relative;
}

.custom-search-wrapper {
    background: transparent;
    border-radius: var(--card-border-radius);
    box-shadow: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.custom-search-wrapper:hover {
    box-shadow: none;
    border-color: #e9ecef;
}

.search-input-container {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    min-height: 60px;
}

.search-icon {
    color: var(--secondary-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    margin-right: 0.5rem;
}

.custom-search-wrapper:focus-within .search-icon {
    color: var(--accent-color);
}

.custom-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-color);
    background: transparent;
    padding: 0;
}

.custom-search-input::placeholder {
    color: color-mix(in srgb, var(--font-color) 60%, transparent);
    font-style: italic;
}

.custom-search-input:focus {
    border-color: none;
    outline: none;
}

.custom-search-input:focus + .search-actions .btn {
    opacity: 1;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-actions .btn {
    border-radius: 25px;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-width: 1px;
    transition: all 0.3s ease;
}

.search-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

/* Search actions primary buttons use primary color */
.search-actions .btn-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color) 85%, black);
    border-color: color-mix(in srgb, var(--accent-color) 85%, black);
}

.search-actions .btn-outline-primary:hover {
    background-color: color-mix(in srgb, var(--accent-color) 85%, black);
    border-color: color-mix(in srgb, var(--accent-color) 85%, black);
}

/* Search actions secondary buttons use secondary color */
.search-actions .btn-secondary:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    border-color: color-mix(in srgb, var(--secondary-color) 85%, black);
}

.search-actions .btn-outline-secondary:hover {
    background-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    border-color: color-mix(in srgb, var(--secondary-color) 85%, black);
}

#clear-filters {
    border-width: 2px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--secondary-color) !important;
}

#clear-filters:hover {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--dark-color) !important;
    opacity: 0.8;
    transform: none !important;
}

#clear-filters:focus {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--secondary-color) !important;
    transform: none !important;
}

#clear-filters:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--dark-color) !important;
    transform: none !important;
}

#advanced-filters-toggle {
    border-width: 2px !important;
}

#advanced-filters-toggle .chevron-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

#advanced-filters-toggle[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg) !important;
}

#advanced-filters-toggle.filters-active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

#advanced-filters-toggle.filters-active:hover {
    background-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    border-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
}

.advanced-filters-card {
    background: transparent;
    border-radius: var(--card-border-radius);
    padding: 20px;
    margin-top: 15px;
    box-shadow: none;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.advanced-filters-card .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.advanced-filters-card .form-select {
    border-radius: 8px;
    border: 1px solid var(--light-gray);
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.advanced-filters-card .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.15rem var(--shadow-light);
}

.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkboxes .form-check {
    margin: 0;
}

.filter-checkboxes .form-check-label {
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s ease;
}

.filter-checkboxes .form-check-label:hover {
    color: var(--accent-color);
}

.filter-checkboxes .form-check-input:checked + .form-check-label {
    color: var(--accent-color);
    font-weight: 500;
}

.filter-checkboxes .form-check-label i {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.filter-checkboxes .form-check-input:checked + .form-check-label i {
    opacity: 1;
}

/* Animation for collapsible advanced filters */
#advanced-filters {
    transition: all 0s ease;
}

#advanced-filters.collapsing {
    opacity: 0;
}

#advanced-filters.show {
    opacity: 1;
}

/* Enhanced focus states for mobile */
@media (max-width: 992px) {
    
    .search-actions .btn:focus {
        outline: none;
    }
    
    .form-select:focus {
        outline: none;
    }
    
    .form-check-input:focus {
        outline: none;
    }
    
    /* Improve touch targets */
    .search-actions .btn,
    .form-select,
    .form-check-label {
        -webkit-tap-highlight-color: var(--edit-color-alpha-30);
    }
    
    /* Loading state for filters */
    .filters-loading {
        opacity: 0.6;
        pointer-events: none;
        position: relative;
    }
    
    .filters-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.7);
        z-index: 10;
        border-radius: 12px;
    }
    
    /* Smooth animations for mobile interactions */
    .search-actions .btn {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .search-actions .btn:active {
        transform: scale(0.95);
    }
    
    .form-select {
        transition: all 0.3s ease;
    }
    
    .form-check-input {
        transition: all 0.2s ease;
    }
    
    .form-check-input:checked {
        transform: scale(1.1);
    }
    
    /* Enhanced search input animations */
    .custom-search-input {
        transition: all 0.2s ease;
    }
    
    .search-icon {
        transition: all 0.3s ease;
    }
    
    /* Filter toggle button enhanced feedback */
    #advanced-filters-toggle {
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    #advanced-filters-toggle:active {
        transform: scale(0.95);
    }
    
    /* Advanced filters slide animation improvement */
    #advanced-filters {
        transition: opacity 0.3s ease, max-height 0.3s ease;
        overflow: hidden;
    }
    
    #advanced-filters.collapsing {
        opacity: 0;
        max-height: 0;
    }
    
    #advanced-filters.show {
        opacity: 1;
        max-height: 500px;
    }
    
    /* Filter card hover effects for touch devices */
    @media (hover: none) and (pointer: coarse) {
        .search-actions .btn:hover {
            transform: none;
        }
        
        .search-actions .btn:active {
            transform: scale(0.95);
            background-color: var(--edit-color-alpha-10);
            border-color: var(--edit-color-alpha-20);
        }
        
        .form-check-label:active {
            background-color: var(--edit-color-alpha-10);
            border-color: var(--edit-color-alpha-20);
            border-radius: 4px;
        }
    }
}

/* Responsive design for compact filters */

/* Tablet styles for filters (992px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .search-input-container {
        padding: 12px 18px;
        gap: 12px;
    }
    
    .custom-search-input {
        font-size: 1rem;
    }
    
    .search-actions .btn {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .advanced-filters-card {
        padding: 20px;
        margin-top: 12px;
    }
    
    .advanced-filters-card .row.g-3 {
        gap: 1rem;
    }
    
    .filter-checkboxes {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-select {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* Mobile styles for filters (max-width: 992px) */
@media (max-width: 992px) {
    #filters-section {
        margin-bottom: 1.5rem !important;
    }
    
    .search-bar-container {
        margin-bottom: 1rem !important;
    }
    
    .custom-search-wrapper {
        border-radius: 12px;
        border: 1px solid #dee2e6;
        background: var(--white);
        position: relative;
    }
    
    .search-input-container {
        padding: 12px 20px;
        padding-right: 10px;
        gap: 12px;
        flex-wrap: wrap;
        position: relative;
    }
    
    .search-icon {
        font-size: 1rem;
        color: #6c757d;
        flex-shrink: 0;
        order: 0;
    }
    
    .custom-search-input {
        font-size: 1rem;
        min-height: 24px;
        flex: 1;
        min-width: 0;
        order: 1;
    }
    
    .custom-search-input::placeholder {
        font-size: 0.95rem;
    }
    
    .search-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
        min-width: fit-content;
        order: 2;
    }
    
    .search-actions .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 8px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }
    
    .search-actions .btn .d-none.d-sm-inline {
        display: none !important;
    }
    
    .search-actions .btn i {
        font-size: 0.9rem;
    }
    
    /* Advanced filters improvements for mobile */
    .advanced-filters-card {
        padding: 16px;
        margin-top: 12px;
        border-radius: 12px;
        background: var(--white);
        border: 1px solid #dee2e6;
    }
    
    .advanced-filters-card .row.g-3 {
        gap: 1.25rem;
    }
    
    .advanced-filters-card .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .advanced-filters-card .form-label {
        font-weight: 600;
        font-size: 0.9rem;
        margin-bottom: 6px;
        color: #495057;
    }
    
    .advanced-filters-card .form-select {
        font-size: 0.9rem;
        padding: 10px 12px;
        border-radius: 8px;
        min-height: 44px;
        border: 1px solid #ced4da;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    }
    
    .filter-checkboxes {
        flex-direction: column;
        gap: 12px;
        margin-top: 4px;
    }
    
    .filter-checkboxes .form-check {
        margin: 0;
        padding-left: 0;
    }
    
    .filter-checkboxes .form-check-input {
        margin-right: 8px;
        margin-left: 0;
        width: 1.2em;
        height: 1.2em;
    }
    
    .filter-checkboxes .form-check-label {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 4px 0;
        min-height: 32px;
    }
    
    .filter-checkboxes .form-check-label i {
        margin-right: 6px;
        width: 14px;
        text-align: center;
    }
    
    /* Search icon improvements */
    .search-icon {
        font-size: 1rem;
        color: #6c757d;
        flex-shrink: 0;
    }
    
    /* Filter toggle button improvements */
    #advanced-filters-toggle {
        position: relative;
    }
    
    #advanced-filters-toggle .chevron-icon {
        margin-left: 4px;
        font-size: 0.75rem;
    }
    
    /* Results info mobile styling */
    .results-info-mobile {
        background: rgba(248, 249, 250, 0.8);
        border-radius: 8px;
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

/* Extra small mobile (max-width: 400px) */
@media (max-width: 400px) {
    
    .search-input-container {
        padding: 8px 20px;
        padding-right: 10px;
    }
    
    .search-actions .btn {
        padding: 8px 6px;
        font-size: 0.75rem;
        min-height: 38px;
    }
    
    .advanced-filters-card {
        padding: 12px;
    }
    
    .advanced-filters-card .form-label {
        font-size: 0.85rem;
    }
    
    .advanced-filters-card .form-select {
        font-size: 0.9rem;
        min-height: 44px;
    }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    /* box-shadow: var(--shadow-sm); */
    border-bottom: 3px solid color-mix(in srgb, var(--accent-color) 5%, transparent);
    backdrop-filter: blur(10px);
    z-index: 999;
    width: 100%;
}

/* Desktop full-width navbar styling */
@media (min-width: 993px) {
    .navbar .container-fluid {
        max-width: 100%;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
    outline: none;
}

.navbar-brand:hover, .navbar-brand:focus {
    outline: none;
}

/* Mobile navbar brand optimization */
@media (max-width: 992px) {
    .navbar-brand {
        max-width: calc(100vw - 100px); /* Leave space for hamburger */
        overflow: hidden;
        white-space: nowrap;
    }
}

.nav-link {
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Navbar text styling */
.nav-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 120px;
}

.dropdown-menu {
    background-color: var(--white);
}

/* Dropdown base styling */
.navbar-nav .dropdown {
    position: relative;
}

.navbar-nav .dropdown-menu {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.25rem 0.75rem var(--shadow-light);
    border-radius: 0.375rem;
}

/* Global dropdown item styling with primary color */
.dropdown-item {
    transition: all 0.15s ease-in-out;
    margin: 0 .5rem;
    padding: 0.5rem 1rem;
    padding-top: 0.45rem;
    width: calc(100% - 1rem);
    border-radius: var(--card-border-radius);
    color: var(--text-color);
}

.dropdown-item i {
    margin-right: .75rem !important;
}

.dropdown-item i {
    color: var(--accent-color);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: white !important;
}

.dropdown-item:active i {
    color: white !important;
}

.dropdown-item.active i {
    color: white !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--accent-color) !important;
    color: white !important;
}

.dropdown-item:active {
    background-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    color: white !important;
}

.dropdown-item.active {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: white !important;
}

/* Edit mode navbar text */
.nav-text.editable-text {
    max-width: none;
    min-width: 30px;
    /* white-space: nowrap; */
}

.nav-text.editable-text:focus {
    max-width: 200px;
    /* white-space: nowrap; */
}

/* Navbar item containers */
.nav-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* New navbar item structure for desktop */
.navbar-item-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Navbar controls container */
.navbar-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Show controls only when navbar text edit is active */
.navbar-text-edit-active .navbar-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Edit mode navbar controls */
.navbar-sortable {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Sortable drag states */
.navbar-sortable.sortable-ghost {
    opacity: 0.4;
    background: var(--edit-color-alpha-10);
    border-radius: 8px;
    transform: scale(0.95);
}

.navbar-sortable.sortable-chosen {
    background: var(--edit-color-alpha-15);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-normal);
}

.navbar-sortable.sortable-drag {
    background: var(--edit-color-alpha-20);
    border-radius: 8px;
    box-shadow: 0 6px 20px var(--shadow-intense);
    transform: rotate(3deg);
}

/* Enhanced navbar drag handle styling */
.navbar-drag-handle {
    color: var(--edit-color);
    cursor: grab;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: var(--edit-color-alpha-10);
    border: 1px solid var(--edit-color-alpha-30);
    font-size: 0.8rem;
    display: none;
}

/* Show drag handles only when navbar text edit is active */
.navbar-text-edit-active .navbar-drag-handle {
    display: inline-block;
}

.navbar-drag-handle:hover {
    color: var(--edit-color-hover);
    background: var(--edit-color-alpha-20);
    border-color: var(--edit-color-alpha-50);
    transform: scale(1.05);
}

.navbar-drag-handle:active {
    cursor: grabbing;
    transform: scale(0.98);
    background: var(--edit-color-alpha-30);
}

/* Enhanced navbar visibility toggle styling */
.navbar-visibility-toggle {
    background: transparent;
    border: 2px solid var(--edit-color-alpha-50);
    color: var(--edit-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.7rem;
    position: relative;
    overflow: hidden;
}

/* Show visibility toggles only when navbar text edit is active */
.navbar-text-edit-active .navbar-visibility-toggle {
    display: flex;
}

.navbar-visibility-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.4s;
}

.navbar-visibility-toggle:hover {
    border-color: var(--edit-color);
    background: var(--edit-color-alpha-10);
    transform: scale(1.1);
    color: var(--edit-color-hover);
}

.navbar-visibility-toggle:hover::before {
    left: 100%;
}

.navbar-visibility-toggle[data-visible="false"] {
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

.navbar-visibility-toggle[data-visible="false"]:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

/* Hidden navbar items - completely hidden by default */
.navbar-hidden {
    display: none !important;
}

/* Show hidden navbar items when navbar text edit is active */
.navbar-text-edit-active .navbar-hidden {
    display: flex !important;
    opacity: 0.3;
    position: relative;
}

.navbar-text-edit-active .navbar-hidden::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(220, 53, 69, 0.1) 2px,
        rgba(220, 53, 69, 0.1) 4px
    );
    pointer-events: none;
    border-radius: 0.375rem;
}

.navbar-text-edit-active .navbar-hidden:hover {
    opacity: 0.6;
}

/* Responsive navbar text */
@media (max-width: 992px) {
    .nav-text {
        max-width: 100px;
    }
    
    .nav-text.editable-text:focus {
        max-width: 150px;
    }
    
    /* Tablet dropdown positioning fix */
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: 0 !important;
        transform: none !important;
        margin-top: 0.125rem;
    }
    
    /* Tablet-specific navbar improvements */
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem !important;
    }
}

/* Small tablets and large phones (576px to 992px) dropdown fix */
@media (min-width: 576px) and (max-width: 992px) {
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        left: auto !important;
        right: 0 !important;
        transform: none !important;
        margin-top: 0.125rem !important;
        width: auto !important;
        min-width: 200px !important;
    }
}

/* Mobile navbar improvements */
@media (max-width: 992px) {
    /* Mobile navbar container spacing */
    .navbar .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Stack navbar item container vertically on mobile */
    .navbar-item-container {
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    
    /* Position controls to the right on mobile */
    .navbar-controls {
        margin-top: 0;
        margin-left: auto;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    
    /* Show controls on mobile when text edit is active */
    .navbar-text-edit-active .navbar-controls {
        opacity: 1;
        transform: none;
    }
    
    .nav-text {
        max-width: none;
        white-space: normal;
    }
    
    .nav-link {
        max-width: none;
        white-space: normal;
        text-overflow: none;
        flex: 1;
    }
    
    .nav-text.editable-text {
        white-space: normal;
    }
    
    /* Make navbar items full width when collapsed */
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        width: auto;
        padding: 0.75rem 1rem !important;
        border-radius: 0;
        justify-content: flex-start;
    }
    
    /* Mobile dropdown positioning fix */
    .navbar-nav .nav-item.dropdown {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .navbar-nav .nav-item .dropdown-menu {
        position: static !important;
        float: none !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }
    
    /* Edit mode controls on mobile */
    .navbar-sortable {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .navbar-sortable .nav-link {
        flex: 1;
    }
    
    /* Better spacing for mobile navbar */
    .navbar-nav {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* ==========================================================================
   Demo Banner Styles
   ========================================================================== */

.demo-banner {
    position: fixed;
    top: 80px; /* Position just below the navbar */
    left: 15%;
    right: 15%;
    z-index: 999; /* Above content but below navbar */
    overflow: hidden;
    animation: slideInFromTop 0.6s ease-out;
    margin-bottom: 0px;
    margin-top: 0px;
    padding-bottom: 20px;
    border-radius: 0;
    border: none;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 5px solid #2196f3;
    box-shadow: 0 2px 10px var(--shadow-light);
    transition: transform 0.3s ease-in-out;
}

/* Demo banner scroll states */
.demo-banner.hidden {
    transform: translateY(-130%);
}

.demo-banner.visible {
    transform: translateY(0);
}

.demo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes slideInFromTop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        touch-action: none;
    }
    80% {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        touch-action: none;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
        touch-action: auto;
    }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.demo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(25, 118, 210, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.demo-banner:hover .demo-icon-wrapper {
    background: rgba(25, 118, 210, 0.2);
    transform: scale(1.1);
}

.demo-link:hover {
    border-bottom-color: #0d47a1 !important;
    transform: translateY(-1px);
}

.demo-close:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Responsive demo banner */
@media (max-width: 992px) {
    .demo-banner .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    .demo-banner .btn-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    .demo-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .demo-banner .container {
        padding: 1rem;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-color) 5%, var(--white)) 0%, color-mix(in srgb, var(--accent-color) 15%, var(--white)) 80%);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    transition: color 0.3s ease;
    /* padding-top: 14rem;
    padding-bottom: 13rem; */
    min-height: 10vh;
    /* max-height: calc(100vh - 60px); */
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

@media (min-width: 1100px) and (max-width: 1900px) {
    .hero-section {
        min-height: calc(100vh - 60px);
        padding-top: 3rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1900px) {
    .hero-section {
        min-height: 10vh;
        padding-top: 8rem;
        padding-bottom: 9rem;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url("#grain#grain")"/></svg>');
    opacity: 0.1;
}

/* .hero-section .container .row {
    min-height: calc(100vh - 90px);
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
} */

.hero-section .container {
    position: relative;
    z-index: 10;
}

.hero-section h1,
.hero-section .lead,
.hero-section .btn {
    position: relative;
    z-index: 15;
    transition: color 0.3s ease;
}

.hero-section .btn {
    transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Hero Image Customization Styles */
.hero-section-with-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section-with-image .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    filter: blur(var(--hero-blur-amount, 0px));
    z-index: 0;
    transition: filter 0.3s ease;
}

.hero-section-with-image .container {
    position: relative;
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Hero CTA Button Spacing */
.hero-cta-container {
    gap: 1.75rem !important; /* Default gap */
    padding-left: .5rem;
    padding-right: .5rem;
}

.hero-cta-container .btn {
    padding: .8rem 1.7rem !important;
    font-size: 1.4rem !important;
    min-width: 250px !important;
    border-radius: calc(var(--button-border-radius) * 1.6) !important;
}

@media (max-width: 992px) {
    .hero-cta-container .btn {
        padding: .7rem 1.2rem !important;
        font-size: 1.3rem !important;
        min-width: 250px !important;
        border-radius: calc(var(--button-border-radius) * 1.6) !important;
    }
}

/* Responsive hero CTA spacing */
@media (max-width: 992px) {
    .hero-section {
        padding-top: calc(70px + 3rem);
        padding-bottom: 2rem;
        min-height: unset;
        max-height: unset;
    }
    
    .hero-cta-container {
        gap: 1.1rem !important; /* Smaller gap on mobile */
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .hero-cta-container > div {
        width: 100% !important;
        max-width: 280px !important;
    }
    
    .hero-cta-container .btn {
        width: 100%;
        min-width: auto !important;
    }
}

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

/* Hero Portrait Image Responsive Styles */
.hero-portrait-image {
    width: 37vw;
    height: unset;
    object-fit: cover;
    border-radius: 15px;
    margin-left: 50px;
    max-width: 600px;
    max-height: 60vh;
    transition: all 0.3s ease;
}

/* Large Desktop Screens */
@media (min-width: 1400px) {
    .hero-portrait-image {
        max-width: 600px;
        max-height: 60vh;
        width: 37vw;
    }
}

/* Remove animation for hero portrait - keep for icon only */
/* .hero-image i {
    animation: float 3s ease-in-out infinite;
} */

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

/* ==========================================================================
   Project Cards
   ========================================================================== */

.project-card {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.project-card:hover {
    transform: none;
    box-shadow: none !important;
}

.project-card .card-img-top {
    transition: transform 0.3s ease-in-out;
    border-radius: var(--card-border-radius) var(--card-border-radius) 0 0;
}

.project-card .card-img-top i {
    font-size: 3.5rem;
    color: var(--accent-color) !important;
}

.project-card:hover .card-img-top {
    transform: none;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

.skill-item {
    background: transparent;
    border-radius: var(--card-border-radius);
    transition: all 0.2s ease-in-out;
    border: 1px solid #e9ecef;
}

.skill-item:hover {
    transform: none;
    box-shadow: none;
    border-color: #e9ecef;
}

.skill-level {
    font-size: 0.9rem;
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */

.about-image {
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
}

.skill-card {
    background: #ffffff !important;
    border: 1px solid #e9ecef !important;
    border-radius: var(--card-border-radius) !important;
    box-shadow: 0 2px 4px var(--shadow-light) !important;
    transition: all 0.3s ease !important;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px var(--shadow-normal) !important;
    border-color: #dee2e6 !important;
}

/* ==========================================================================
   Slide Toggle Checkbox Styles
   ========================================================================== */

/* Hide the default checkbox */
.form-check-input {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
}

/* Custom slide switch container */
.form-check {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    user-select: none !important;
    margin-bottom: 0.5rem !important;
    padding-left: .25rem !important;
}

/* Slide switch track */
.form-check-input + .form-check-label::before {
    content: '' !important;
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 28px !important;
    background-color: #ccc !important;
    border-radius: 26px !important;
    margin-right: 12px !important;
    transition: all 0.3s ease !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Slide switch handle */
.form-check-input + .form-check-label::after {
    content: '' !important;
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 20px !important;
    height: 20px !important;
    background-color: white !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    z-index: 1 !important;
}

/* Checked state - track */
.form-check-input:checked + .form-check-label::before {
    background-color: var(--accent-color) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* Checked state - handle */
.form-check-input:checked + .form-check-label::after {
    left: 26px !important;
    background-color: white !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
}

/* Hover effects */
.form-check:hover .form-check-input + .form-check-label::before {
    background-color: #bbb !important;
    transform: scale(1.02) !important;
}

.form-check:hover .form-check-input:checked + .form-check-label::before {
    background-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
}

.form-check:hover .form-check-input + .form-check-label::after {
    transform: translateY(-50%) scale(1.1) !important;
}

/* Focus state */
.form-check-input:focus + .form-check-label::before {
    outline: none !important;
}

/* Disabled state */
.form-check-input:disabled + .form-check-label {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.form-check-input:disabled + .form-check-label::before {
    background-color: #e9ecef !important;
}

.form-check-input:disabled + .form-check-label::after {
    background-color: #f8f9fa !important;
}

/* Label styling */
.form-check-label {
    cursor: pointer !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.9rem !important;
    color: var(--text-color) !important;
    transition: color 0.2s ease !important;
    position: relative !important;
    padding-left: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

/* Active/checked label styling */
.form-check-input:checked + .form-check-label {
    color: var(--accent-color) !important;
    font-weight: 500 !important;
}

/* Small variant for compact areas */
.form-check-sm .form-check-input + .form-check-label::before {
    width: 40px !important;
    height: 20px !important;
    border-radius: 20px !important;
    margin-right: 10px !important;
}

.form-check-sm .form-check-input + .form-check-label::after {
    width: 16px !important;
    height: 16px !important;
    left: 2px !important;
}

.form-check-sm .form-check-input:checked + .form-check-label::after {
    left: 22px !important;
}

.form-check-sm .form-check-label {
    font-size: 0.8rem !important;
}

/* Large variant for hero sections */
.form-check-lg .form-check-input + .form-check-label::before {
    width: 60px !important;
    height: 32px !important;
    border-radius: 32px !important;
    margin-right: 15px !important;
}

.form-check-lg .form-check-input + .form-check-label::after {
    width: 28px !important;
    height: 28px !important;
    left: 2px !important;
}

.form-check-lg .form-check-input:checked + .form-check-label::after {
    left: 30px !important;
}

.form-check-lg .form-check-label {
    font-size: 1rem !important;
    font-weight: 500 !important;
}

/* Animation enhancements */
.form-check-input + .form-check-label::before,
.form-check-input + .form-check-label::after {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Success/Green variant */
.form-check-success .form-check-input:checked + .form-check-label::before {
    background-color: #28a745 !important;
}

.form-check-success .form-check-input:checked + .form-check-label {
    color: #28a745 !important;
}

/* Warning/Orange variant */
.form-check-warning .form-check-input:checked + .form-check-label::before {
    background-color: #ffc107 !important;
}

.form-check-warning .form-check-input:checked + .form-check-label {
    color: #ffc107 !important;
}

/* Danger/Red variant */
.form-check-danger .form-check-input:checked + .form-check-label::before {
    background-color: #dc3545 !important;
}

.form-check-danger .form-check-input:checked + .form-check-label {
    color: #dc3545 !important;
}

/* Edit mode variant */
.form-check-edit .form-check-input:checked + .form-check-label::before {
    background-color: var(--edit-color) !important;
}

.form-check-edit .form-check-input:checked + .form-check-label {
    color: var(--edit-color) !important;
}

/* Mobile optimizations */
@media (max-width: 992px) {
    .form-check-input + .form-check-label::before {
        width: 45px !important;
        height: 24px !important;
    }
    
    .form-check-input + .form-check-label::after {
        width: 18px !important;
        height: 18px !important;
    }
    
    .form-check-input:checked + .form-check-label::after {
        left: 24px !important;
    }
    
    /* Larger touch targets */
    .form-check {
        min-height: 44px !important;
        padding: 8px 0 !important;
    }
    
    .form-check-label {
        font-size: 0.95rem !important;
        line-height: 1.3 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .form-check-input + .form-check-label::before,
    .form-check-input + .form-check-label::after {
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-check-input + .form-check-label::before {
        border: 2px solid currentColor !important;
    }
    
    .form-check-input:checked + .form-check-label::before {
        background-color: currentColor !important;
    }
    
    .form-check-input + .form-check-label::after {
        border: 1px solid currentColor !important;
    }
}

/* ==========================================================================
   Fancy File Upload System
   ========================================================================== */

/* Hide default file inputs */
input[type="file"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* File upload container */
.fancy-file-upload {
    position: relative;
    border: 1.5px dotted var(--edit-color-alpha-30);
    border-radius: var(--card-border-radius);
    background: linear-gradient(135deg, var(--edit-color-alpha-05) 0%, var(--edit-color-light-alpha-05) 100%);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    overflow: hidden;
}

.fancy-file-upload::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.fancy-file-upload:hover::before {
    left: 100%;
}

/* Hover and active states */
.fancy-file-upload:hover {
    border-color: var(--edit-color);
    background: linear-gradient(135deg, var(--edit-color-alpha-10) 0%, var(--edit-color-light-alpha-10) 100%);
    transform: translateY(-2px);
}

.fancy-file-upload.dragover {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, var(--accent-color, #007AFF) 0.05, var(--accent-color, #007AFF) 0.1);
    transform: scale(1.02);
}

.fancy-file-upload.has-file {
    border-color: var(--success-color, #28a745);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
}

/* Upload icon */
.upload-icon {
    font-size: 3rem;
    color: var(--edit-color);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.fancy-file-upload:hover .upload-icon {
    color: var(--edit-color-dark);
    transform: scale(1.1);
}

.fancy-file-upload.dragover .upload-icon {
    color: var(--accent-color);
    transform: scale(1.2) rotateY(180deg);
}

/* Upload text */
.upload-text {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.upload-subtext {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.fancy-file-upload:hover .upload-text {
    color: var(--edit-color-dark);
}

.fancy-file-upload:hover .upload-subtext {
    opacity: 1;
}

/* File preview container */
.file-preview-container {
    position: relative;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--button-border-radius);
    box-shadow: var(--shadow-sm);
    display: none;
    border: 1px solid var(--edit-color-alpha-20);
}

.file-preview-container.show {
    display: block;
    animation: slideInUp 0.4s ease-out;
}

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

/* File preview content */
.file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--button-border-radius);
    position: relative;
}

.file-preview-icon {
    width: 48px;
    height: 48px;
    background: var(--edit-gradient-primary);
    border-radius: var(--button-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.file-preview-info {
    flex: 1;
    min-width: 0;
}

.file-preview-name {
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-preview-size {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin: 0;
}

.file-preview-progress {
    width: 100%;
    height: 4px;
    background: var(--edit-color-alpha-20);
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.file-preview-progress-bar {
    height: 100%;
    background: var(--edit-gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.file-preview-progress-bar.complete {
    width: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

/* Remove file button */
.file-remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.file-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Image preview */
.image-preview {
    width: 100%;
    max-width: 300px;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--button-border-radius);
    margin-top: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease;
}

.image-preview:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* Multiple files support */
.multiple-files-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Inline file preview styles */
.inline-file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    padding: 0;
}

.inline-file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    justify-content: center;
}

.inline-image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 0.2s ease;
}

.inline-image-preview:hover {
    transform: scale(1.02);
}

.inline-file-icon {
    font-size: 3rem;
    color: var(--edit-color);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.inline-file-icon i {
    display: block;
}

.inline-file-details {
    text-align: center;
}

.inline-file-name {
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
    word-break: break-word;
    line-height: 1.3;
}

.inline-file-size {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin: 0;
    opacity: 0.8;
}

.inline-file-actions {
    display: flex;
    gap: 0.75rem;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
}

.inline-replace-btn,
.inline-remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    color: var(--white);
}

.inline-replace-btn {
    background: var(--edit-color);
}

.inline-replace-btn:hover {
    background: var(--edit-color-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.inline-remove-btn {
    background: var(--danger-color);
}

.inline-remove-btn:hover {
    background: #c82333;
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* File upload with file styling */
.fancy-file-upload.has-file {
    border-color: var(--success-color, #28a745);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
    min-height: 150px;
    cursor: default;
}

.fancy-file-upload.has-file:hover {
    transform: none;
    border-color: var(--success-color, #28a745);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(40, 167, 69, 0.12) 100%);
}

/* Multiple files inline */
.fancy-file-upload.has-file .multiple-files-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin: 0;
}

.fancy-file-upload.has-file .multiple-files-preview .inline-file-preview {
    flex: 0 1 auto;
    min-width: 200px;
    max-width: 300px;
    background: var(--white);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--edit-color-alpha-20);
    position: relative;
    padding: 1rem;
}

/* File type specific icons and colors */
.file-type-image .file-preview-icon {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
}

.file-type-pdf .file-preview-icon {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
}

.file-type-doc .file-preview-icon {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
}

.file-type-video .file-preview-icon {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
}

.file-type-audio .file-preview-icon {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
}

.file-type-zip .file-preview-icon {
    background: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
}

/* Compact variant */
.fancy-file-upload.compact {
    min-height: 120px;
    padding: 1rem;
}

.fancy-file-upload.compact .upload-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.fancy-file-upload.compact .upload-text {
    font-size: 1rem;
}

.fancy-file-upload.compact .upload-subtext {
    font-size: 0.8rem;
}

/* Large variant */
.fancy-file-upload.large {
    min-height: 300px;
    padding: 3rem;
}

.fancy-file-upload.large .upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.fancy-file-upload.large .upload-text {
    font-size: 1.3rem;
}

.fancy-file-upload.large .upload-subtext {
    font-size: 1rem;
}

/* Error states */
.fancy-file-upload.error {
    border-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
}

.fancy-file-upload.error .upload-icon {
    color: var(--danger-color);
}

.fancy-file-upload.error .upload-text {
    color: var(--danger-color);
}

/* Loading state */
.fancy-file-upload.loading {
    pointer-events: none;
    opacity: 0.7;
}

.fancy-file-upload.loading .upload-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* Mobile optimizations */
@media (max-width: 992px) {
    .fancy-file-upload {
        padding: 1.5rem 1rem;
        min-height: 150px;
    }
    
    .upload-icon {
        font-size: 2.5rem;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .upload-subtext {
        font-size: 0.85rem;
    }
    
    .file-preview {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .file-preview-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .multiple-files-preview {
        grid-template-columns: 1fr;
    }
    
    .image-preview {
        max-width: 100%;
        max-height: 150px;
    }
    
    /* Inline preview mobile styles */
    .inline-file-preview {
        position: absolute;
        inset: 0;
        padding: 0;
    }
    
    .inline-image-preview {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    
    .inline-file-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .inline-file-actions {
        top: 0.5rem;
        right: 0.5rem;
        gap: 0.5rem;
    }
    
    .inline-replace-btn,
    .inline-remove-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .fancy-file-upload.has-file {
        min-height: 180px;
    }
    
    .fancy-file-upload.has-file .multiple-files-preview .inline-file-preview {
        min-width: 100%;
        max-width: 100%;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .fancy-file-upload:hover {
        transform: none;
    }
    
    .fancy-file-upload:active {
        transform: scale(0.98);
    }
    
    .file-remove-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .fancy-file-upload,
    .fancy-file-upload::before,
    .upload-icon,
    .file-preview-container,
    .image-preview {
        transition: none !important;
        animation: none !important;
    }
    
    .fancy-file-upload:hover::before {
        left: -100%;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .fancy-file-upload {
        border-width: 3px;
        border-color: currentColor;
    }
    
    .file-preview-icon {
        background: currentColor !important;
    }
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.form-control {
    border-radius: var(--button-border-radius);
    border: 1.5px solid color-mix(in srgb, var(--accent-color) 10%, transparent) !important;
    transition: all 0.2s ease-in-out;
    min-height: 3rem;
    color: var(--text-color);
}

.form-control[type="file"] {
    min-height: auto;
}

.form-select {
    border-radius: var(--button-border-radius);
    border: 1.5px solid color-mix(in srgb, var(--accent-color) 10%, transparent) !important;
    transition: all 0.2s ease-in-out;
    min-height: 3rem;
    color: var(--text-color);
    background-color: var(--primary-color);
}

.form-control::placeholder {
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 400;
}

.form-control:focus {
    border: none;
    box-shadow: none;
    background-color: var(--white);
    color: var(--text-color);
    outline: none !important;
}

.form-control:valid {
    border: 1.5px solid color-mix(in srgb, var(--accent-color) 10%, var(--white));
    background-image: none;
    box-shadow: none !important;
}

.form-control:invalid {
    border: 1.5px solid color-mix(in srgb, var(--accent-color) 10%, var(--white));
    background-image: none;
    box-shadow: none !important;
}

/* ==========================================================================
   Alert Styles
   ========================================================================== */

.alert {
    border-radius: var(--border-radius) !important;
    transition: all 0.3s ease-in-out;
    border: 2px solid;
    box-shadow: none !important;
    padding: 1rem 1.25rem;
}

/* Alert color variants with uniform borders */
.alert-primary {
    background: color-mix(in srgb, #0d6efd 5%, white) !important;
    color: #084594 !important;
    border: 1.5px solid #0d6efd !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-secondary {
    background: color-mix(in srgb, #6c757d 5%, white) !important;
    color: #41464b !important;
    border: 1.5px solid #6c757d !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-success {
    background: color-mix(in srgb, #198754 5%, white) !important;
    color: #0f5132 !important;
    border: 1.5px solid #198754 !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-danger {
    background: color-mix(in srgb, #dc3545 5%, white) !important;
    color: #842029 !important;
    border: 1.5px solid #dc3545 !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-warning {
    background: color-mix(in srgb, #ffc107 5%, white) !important;
    color: #664d03 !important;
    border: 1.5px solid #ffc107 !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-info {
    background: color-mix(in srgb, var(--accent-color) 5%, white) !important;
    color: var(--accent-color) !important;
    border: 1.5px solid var(--accent-color) !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-light {
    background: color-mix(in srgb, #f8f9fa 5%, white) !important;
    color: #636464 !important;
    border: 1.5px solid #f8f9fa !important;
    border-radius: var(--button-border-radius) !important;
}

.alert-dark {
    background: color-mix(in srgb, #212529 5%, white) !important;
    color: #141619 !important;
    border: 1.5px solid #212529 !important;
    border-radius: var(--button-border-radius) !important;
}

.alert .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Ensure alerts are properly positioned */
.alert.position-fixed {
    z-index: 9999;
}

/* Hide alerts that shouldn't be visible */
.alert:not(.show) {
    display: none;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    border-radius: var(--border-radius);
}

.page-link {
    border-radius: var(--border-radius);
    margin: 0 2px;
    border: 1px solid var(--light-gray);
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-on-accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.border-top {
    border-color: var(--primary-color) !important;
    border-width: 1.5px !important;
}

footer {
    background: var(--primary-color) !important;
    border-top: 1.5px solid var(--card-border-color) !important;
    color: var(--text-color) !important;
}

footer a {
    transition: all 0.2s ease-in-out;
    color: var(--text-color) !important;
}

footer a:hover {
    transform: translateY(-2px);
    color: var(--accent-color) !important;
}

.text-dark {
    color: var(--dark-color) !important;
}

/* ==========================================================================
   Enhanced Button System (Landing.css inspired)
   ========================================================================== */

/* Custom primary button with gradient and enhanced effects */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-size: var(--font-size-body);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01875rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Minimum touch target size */
    min-width: 120px;
    text-align: center;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

/* Hover states for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .btn-primary-custom:hover {
        transform: translateY(-0.125rem) scale(1.01);
        box-shadow: var(--shadow-lg);
        color: var(--white);
    }

    .btn-primary-custom:hover::before {
        left: 100%;
    }
}

/* Active states for all devices */
.btn-primary-custom:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
    transition-duration: 0.1s;
}

/* Focus states for accessibility */
.btn-primary-custom:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* White version of primary button */
.btn-primary-custom-white {
    background: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
    font-size: var(--font-size-body);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    line-height: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01875rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Minimum touch target size */
    min-width: 120px;
    text-align: center;
}

.btn-primary-custom-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    transition: left 0.5s ease;
}

/* Hover states for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .btn-primary-custom-white:hover {
        transform: translateY(-0.125rem) scale(1.01);
        box-shadow: var(--shadow-lg);
        color: var(--accent-color);
        background: #f8faff;
    }

    .btn-primary-custom-white:hover::before {
        left: 100%;
    }
}

/* Active states for all devices */
.btn-primary-custom-white:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-sm);
    transition-duration: 0.1s;
}

/* Focus states for accessibility */
.btn-primary-custom-white:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Custom outline button */
.btn-outline-custom {
    border: 0.125rem solid var(--accent-color);
    padding: 1.0625rem 1.875rem;
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
    background: transparent;
    font-size: var(--font-size-body);
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01875rem;
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 162, 255, 0.1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px; /* Minimum touch target size */
    min-width: 120px;
    text-align: center;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 162, 255, 0.03), transparent);
    transition: left 0.5s ease;
}

/* Hover states for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .btn-outline-custom:hover {
        background: var(--accent-color);
        color: var(--white);
        transform: translateY(-0.125rem) scale(1.01);
        box-shadow: 0 0.5rem 1.5625rem rgba(0, 162, 255, 0.25);
    }

    .btn-outline-custom:hover::before {
        left: 100%;
    }
}

/* Active states for all devices */
.btn-outline-custom:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0.1875rem 0.625rem rgba(0, 162, 255, 0.15);
    transition-duration: 0.1s;
}

/* Focus states for accessibility */
.btn-outline-custom:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0.5rem 1.5625rem rgba(0, 162, 255, 0.25), 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Button Variants for New Color Scheme
   ========================================================================== */

.btn-primary {
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    color: var(--text-on-accent);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-light);
    border-radius: var(--button-border-radius) !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background: color-mix(in srgb, var(--accent-color) 85%, black);
    border-color: color-mix(in srgb, var(--accent-color) 85%, black);
    color: var(--text-on-accent);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 25px var(--shadow-normal);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    background: color-mix(in srgb, var(--accent-color) 75%, black);
    border-color: color-mix(in srgb, var(--accent-color) 75%, black);
    color: var(--text-on-accent);
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 10px var(--shadow-normal);
}

.btn-outline-primary {
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px var(--shadow-light);
    border-radius: var(--button-border-radius) !important;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
    transition: left 0.5s ease;
}

@media (hover: none), (pointer: fine), (min-width: 992px) {
    .btn-outline-primary:hover, .btn-outline-primary:focus {
        background: color-mix(in srgb, var(--accent-color) 85%, black);
        border-color: color-mix(in srgb, var(--accent-color) 85%, black);
        color: var(--text-on-accent) !important;
        transform: translateY(-1px) scale(1.01);
        box-shadow: 0 8px 25px var(--shadow-normal);
    }
}

.btn-outline-primary:hover::before {
    left: 100%;
}

.btn-outline-primary:active {
    background: color-mix(in srgb, var(--accent-color) 75%, black);
    border-color: color-mix(in srgb, var(--accent-color) 75%, black);
    color: var(--text-on-accent);
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 10px var(--shadow-normal);
}

.btn-secondary {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--text-on-accent);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--shadow-light);
    border-radius: var(--button-border-radius) !important;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover {
    background: color-mix(in srgb, var(--secondary-color) 85%, black);
    border-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    color: var(--text-on-accent);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.18);
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:active {
    background: color-mix(in srgb, var(--secondary-color) 75%, black);
    border-color: color-mix(in srgb, var(--secondary-color) 75%, black);
    color: var(--text-on-accent);
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.22);
}

.btn-outline-secondary {
    color: var(--text-color);
    border: 2px solid var(--card-border-color);
    background: transparent;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border-radius: var(--button-border-radius) !important;
}

.dropdown-toggle {
    padding: .4rem .8rem;
    /* padding-top: .3rem; */
    border: 1.5px solid color-mix(in srgb, var(--secondary-color) 40%, transparent);
    transition: all 0.2s ease-in-out;
}

.dropdown-toggle::after {
    display: none !important;
}

.dropdown-toggle:hover, .dropdown-toggle:focus {
    background: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    background-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    border-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    color: var(--text-on-accent) !important;
}


.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(108, 117, 125, 0.05), transparent);
    transition: left 0.5s ease;
}

.btn-outline-secondary:hover, .btn-outline-secondary:focus {
    background: color-mix(in srgb, var(--secondary-color) 85%, black);
    border-color: color-mix(in srgb, var(--secondary-color) 85%, black);
    color: var(--white);
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.18);
}

.btn-outline-secondary:hover::before {
    left: 100%;
}

.btn-outline-secondary:active {
    background: color-mix(in srgb, var(--secondary-color) 75%, black);
    border-color: color-mix(in srgb, var(--secondary-color) 75%, black);
    color: var(--white);
    transform: translateY(0) scale(1);
    box-shadow: 0 3px 12px rgba(108, 117, 125, 0.22);
}

.btn-light {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--text-color);
}

.btn-light:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
    color: var(--text-color);
}

/* ==========================================================================
   Background and Text Color Classes
   ========================================================================== */

.bg-primary {
    background-color: var(--primary-color) !important;
    color: var(--text-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
    color: var(--text-on-accent) !important;
}

.text-primary {
    color: var(--accent-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

.text-muted {
    color: var(--secondary-color) !important;
}

/* CTA Button Styles using Primary Color */
.btn-primary-cta {
    background: var(--accent-color) !important;
    border: 2px solid var(--accent-color) !important;
    color: white !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color) 10%, rgba(0, 0, 0, 0.06)) !important;
    border-radius: var(--button-border-radius) !important;
}

.btn-primary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary-cta:hover {
    background: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    border-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
    color: white !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color) 20%, rgba(0, 0, 0, 0.1)) !important;
}

.btn-primary-cta:hover::before {
    left: 100%;
}

.btn-primary-cta:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.btn-outline-primary-cta {
    background: transparent !important;
    border: 2px solid var(--accent-color) !important;
    color: var(--accent-color) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent-color) 10%, rgba(0, 0, 0, 0.06)) !important;
    border-radius: var(--button-border-radius) !important;
}

.btn-outline-primary-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transition: left 0.6s ease;
}

@media (hover: none), (pointer: fine), (min-width: 992px) {
    .btn-outline-primary-cta:hover {
        background: color-mix(in srgb, var(--accent-color) 85%, black) !important;
        border-color: color-mix(in srgb, var(--accent-color) 85%, black) !important;
        color: white !important;
        transform: translateY(-2px) scale(1.02) !important;
        box-shadow: 0 8px 25px color-mix(in srgb, var(--accent-color) 10%, rgba(0, 0, 0, 0.06)) !important;
    }
}

.btn-outline-primary-cta:hover::before {
    left: 100%;
}

.btn-outline-primary-cta:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 20px var(--shadow-normal) !important;
}

.btn-light-cta {
    background: white !important;
    border: 2px solid transparent !important;
    color: var(--accent-color) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--button-border-radius) !important;
}

.btn-light-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.03), transparent);
    transition: left 0.6s ease;
}

.btn-light-cta:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.btn-light-cta:hover::before {
    left: 100%;
}

.btn-light-cta:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

/* ==========================================================================
   Card and Component Updates
   ========================================================================== */

.card {
    background-color: var(--white);
    border-color: var(--light-gray);
    color: var(--text-color);
}

.card-header {
    background-color: transparent !important;
    border-color: #e9ecef !important;
    color: var(--text-color);
    border-bottom: 1px solid #e9ecef !important;
}

.card-body {
    background-color: color-mix(in srgb, var(--primary-color) 30%, transparent) !important;
    border-radius: inherit !important;
}

.navbar-dark {
    background-color: var(--accent-color) !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .navbar-nav .nav-link {
    color: var(--text-on-accent) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--primary-color) !important;
}

.navbar-light {
    background-color: var(--white) !important;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-link {
    color: var(--text-color) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: var(--accent-color) !important;
}

/* ==========================================================================
   Demo Banner Updates
   ========================================================================== */

.demo-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    border-left: 5px solid #1580d1;
    color: var(--text-color);
}

.demo-icon-wrapper {
    background: rgba(0, 0, 0, 0.05);
}

.demo-banner:hover .demo-icon-wrapper {
    background: rgba(0, 0, 0, 0.075);
}

.demo-link {
    color: var(--accent-color) !important;
}

.demo-link:hover {
    border-bottom-color: var(--accent-color) !important;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--accent-color), var(--secondary-color)) 1;
}

/* ==========================================================================
   Animations
   ========================================================================== */

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

.btn-sm {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    transition: all 0.2s ease-in-out !important;
}

/* Tablet Styles (992px to 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-portrait-image {
        width: 55vw;
        margin-left: unset;
        max-width: 450px;
        margin-bottom: 4rem;
    }
    
    /* Ensure proper button sizing on tablets */
    .btn {
        padding: 0.375rem 0.75rem;
    }
    
    .btn-sm {
        padding: 0.35rem 0.85rem;
        font-size: 0.875rem;
        min-height: unset !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1.125rem;
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 992px) and (orientation: landscape) {
    .hero-portrait-image {
        width: 40vw;
        max-height: 70vh;
        min-height: 200px;
        margin-left: unset;
    }
    
    .hero-section .container .row {
        min-height: auto;
    }
}

.page-section {
    margin-top: 50px;
}

@media (max-width: 992px) {
    .hero-title, .hero-subtitle {
        margin: auto;
        min-width: 60vw;
    }

    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    /* Hero Portrait Mobile Styles */
    .hero-portrait-image {
        width: 80vw;
        margin-left: 0;
        margin: 0 auto;
        display: block;
        max-width: 400px;
        min-height: 30vh;
    }
    
    .hero-image {
        margin-bottom: 2rem;
    }
    
    /* Mobile hero section adjustments */
    .hero-section .container .row {
        min-height: auto;
    }
    
    .hero-section {
        padding: 1.5rem 0 3rem 0;
    }

    .hero-section .lead, .hero-section .hero-title-color-1, section h2, section .lead {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Text content spacing on mobile */
    .hero-section .col-lg-6:first-child {
        text-align: center;
    }
    
    /* Edit button positioning on mobile */
    .hero-image .btn-edit-mode.position-absolute {
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }

    /* Removed excessive top padding that was causing buttons to look unbalanced */

    /* Better button spacing on very small screens */
    .hero-section .d-flex.gap-3 {
        justify-content: center;
        align-items: center;
    }

    .page-section {
        margin-top: 10px;
    }
    
    /* Mobile button enhancements - reduce animations for better performance */
    .btn-primary,
    .btn-secondary,
    .btn-outline-primary,
    .btn-outline-secondary,
    .btn-primary-cta,
    .btn-outline-primary-cta,
    .btn-light-cta {
        transform: none !important;
        transition: all 0.2s ease !important;
    }
    
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline-primary:hover,
    .btn-outline-secondary:hover,
    .btn-primary-cta:hover,
    .btn-outline-primary-cta:hover,
    .btn-light-cta:hover {
        transform: translateY(-1px) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    }
    
    .btn-primary:active,
    .btn-secondary:active,
    .btn-outline-primary:active,
    .btn-outline-secondary:active,
    .btn-primary-cta:active,
    .btn-outline-primary-cta:active,
    .btn-light-cta:active {
        transform: translateY(0) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Disable shimmer effect on mobile for better performance */
    .btn-primary::before,
    .btn-secondary::before,
    .btn-outline-primary::before,
    .btn-outline-secondary::before,
    .btn-primary-cta::before,
    .btn-outline-primary-cta::before,
    .btn-light-cta::before {
        display: none;
    }
    
    /* Ensure balanced button padding on mobile */
    .btn {
        padding: 0.49rem 0.75rem !important;
    }
    
    .btn-sm {
        padding: 0.3rem .8rem !important;
        font-size: 0.875rem !important;
        min-height: unset !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem !important;
        font-size: 1.125rem !important;
    }

    .hero-section .btn-primary-cta,
    .hero-section .btn-outline-primary-cta {
        max-width: 300px;
        width: 300px !important;
    }

    .hero-section .btn {
        display: block;
        margin-bottom: 0.5rem;
    }
    
}

@media (max-width: 576px) {

    .hero-section .btn-primary-cta,
    .hero-section .btn-outline-primary-cta {
        max-width: 90vw;
        width: 90vw !important;
    }

    .container {
        padding: 0 1rem;
    }
    
    /* Extra Small Mobile Hero Portrait */
    .hero-portrait-image {
        width: 90vw;
        max-width: 400px;
        min-height: 30vh;
        margin: 0 auto 1.5rem auto;
    }
    
    /* Better button spacing on very small screens */
    .hero-section .d-flex.gap-3 {
        justify-content: center;
        align-items: center;
    }
    
    .hero-section .btn-lg {
        width: 100%;
        max-width: 280px;
    }
    
    
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
}

/* Very small mobile devices */
@media (max-width: 400px) {
    .hero-portrait-image {
        width: 85vw;
        min-height: 180px;
        max-width: 400px;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        border: 1px solid #e9ecef !important;
        box-shadow: none !important;
        background-color: transparent !important;
    }
}

/* ==========================================================================
   CTA Modal Styles
   ========================================================================== */

.cta-edit-modal .modal-dialog {
    max-width: 500px;
}

/* Very small mobile devices */
@media (max-width: 992px) {
    .cta-edit-modal .modal-dialog {
        max-width: 90vw;
    }
}

.cta-edit-modal .modal-header {
    background-color: var(--primary-color);
    border-bottom: 1.5px solid var(--card-border-color);
}

.cta-edit-modal .modal-title {
    color: var(--text-color);
    font-weight: 600;
}

.cta-edit-modal .modal-body {
    padding: 2rem;
}

.cta-edit-modal .form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.modal-footer {
    display: flex;
    gap: .5rem;
}

.form-label {
    color: var(--text-color) !important;
}

.form-text {
    opacity: .8 !important;
    color: var(--text-color) !important;
}

.cta-edit-modal .form-select {
    border-radius: var(--button-border-radius);
    border-color: color-mix(in srgb, var(--accent-color) 20%, white);
    border-width: 1.5px;
    min-height: 3rem;
    transition: all 0.2s ease;
}

.cta-edit-modal .form-select:focus {
    border-color: color-mix(in srgb, var(--accent-color) 70%, white);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

.cta-edit-modal .btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.2s ease;
}

.cta-edit-modal .btn:hover {
    transform: translateY(-1px);
}

/* CTA Preview Button Styling */
.cta-edit-modal .btn[disabled] {
    opacity: 1 !important;
    pointer-events: none;
}

.cta-edit-modal .bg-light {
    background-color: var(--light-color) !important;
    border: 1px solid var(--light-gray) !important;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

/* Fix padding issue when icon is hidden in preview */
.cta-edit-modal .cta-preview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 1.5rem;
    line-height: 1.5;
}

.cta-edit-modal .cta-preview-icon {
    transition: margin 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.cta-edit-modal .cta-preview-text {
    line-height: 1.5;
    vertical-align: middle;
}

/* Modal Animation */
.cta-edit-modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.9);
}

.cta-edit-modal.show .modal-dialog {
    transform: scale(1);
}

/* Loading State for Save Button */
.cta-edit-modal .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cta-edit-modal .btn-primary:disabled:hover {
    transform: none;
}

/* Custom Icon Dropdown Styling */
.cta-edit-modal .custom-icon-dropdown {
    position: relative;
}

.cta-edit-modal .custom-icon-dropdown .dropdown-menu {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
}

.cta-edit-modal .custom-icon-dropdown .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out;
}

.cta-edit-modal .custom-icon-dropdown .dropdown-item:hover {
    background-color: var(--accent-color) !important;
    color: white !important;
}

.cta-edit-modal .custom-icon-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

.cta-edit-modal .custom-icon-dropdown .dropdown-header {
    font-weight: 600;
    color: var(--bs-primary);
    font-size: 0.875rem;
}

/* Reset button styling in modal header */
.cta-edit-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-edit-modal .reset-cta-button {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.cta-edit-modal .reset-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-edit-modal .reset-cta-button.btn-success {
    animation: pulse-success 0.3s ease;
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Button styling for icon dropdown */
.cta-edit-modal .icon-dropdown-button {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.cta-edit-modal .icon-dropdown-button:hover {
    border-color: var(--bs-primary);
}

.cta-edit-modal .icon-dropdown-button:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.cta-edit-modal .modal-body {
    max-height: 50vh;
}

/* ==========================================================================
   Secondary CTA Modal Styles - Specific element targeting
   ========================================================================== */

/* Secondary CTA Preview Button Styling */
.cta-edit-modal .secondary-cta-preview {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 1.5rem;
    line-height: 1.5;
}

.cta-edit-modal .secondary-cta-preview-icon {
    transition: margin 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.cta-edit-modal .secondary-cta-preview-text {
    line-height: 1.5;
    vertical-align: middle;
}

/* Reset button styling for secondary modal */
.cta-edit-modal .reset-secondary-cta-button {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.cta-edit-modal .reset-secondary-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-edit-modal .reset-secondary-cta-button.btn-success {
    animation: pulse-success 0.3s ease;
}

/* Button styling for secondary icon dropdown */
.cta-edit-modal .secondary-icon-dropdown-button {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.cta-edit-modal .secondary-icon-dropdown-button:hover {
    border-color: var(--bs-primary);
}

.cta-edit-modal .secondary-icon-dropdown-button:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* ==========================================================================
   Final CTA Modal Styles - Specific element targeting
   ========================================================================== */

/* Final CTA Preview Button Styling */
.cta-edit-modal .final-cta-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 0.75rem 1.5rem;
}

.cta-edit-modal .final-cta-preview-icon {
    transition: all 0.3s ease;
}

.cta-edit-modal .final-cta-preview-text {
    font-weight: 500;
}

/* Reset button styling for final modal */
.cta-edit-modal .reset-final-cta-button {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.cta-edit-modal .reset-final-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-edit-modal .reset-final-cta-button.btn-success {
    animation: pulse-success 0.3s ease;
}

/* Button styling for final icon dropdown */
.cta-edit-modal .final-icon-dropdown-button {
    border: 1px solid var(--bs-border-color);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.cta-edit-modal .final-icon-dropdown-button:hover {
    border-color: var(--bs-primary);
}

.cta-edit-modal .final-icon-dropdown-button:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* ==========================================================================
   Lightbox Navigation Styles
   ========================================================================== */

/* Lightbox Navigation Controls */
.lightbox-nav {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
    color: #ffffff !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
    position: absolute !important;
    top: 50% !important;
    z-index: 1051 !important;
    cursor: pointer;
    pointer-events: auto !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    padding: 0 !important;
    font-size: 1rem !important;
    line-height: 1 !important;
}

.lightbox-prev {
    left: 20px !important;
    transform: translateY(-50%) !important;
}

.lightbox-next {
    right: 20px !important;
    transform: translateY(-50%) !important;
}

.lightbox-nav:hover,
.lightbox-nav:focus {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    opacity: 1 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
    outline: none !important;
}

.lightbox-prev:hover,
.lightbox-prev:focus {
    transform: translateY(-50%) scale(1.1) !important;
}

.lightbox-next:hover,
.lightbox-next:focus {
    transform: translateY(-50%) scale(1.1) !important;
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.lightbox-nav:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.lightbox-nav i {
    pointer-events: none !important;
}

/* Image counter styling */
#imageCounter {
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsive lightbox navigation */
@media (max-width: 992px) {
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}

/* ==========================================================================
   Drag and Drop Styles
   ========================================================================== */

/* Collapsible image section styling */
.chevron-icon {
    transition: transform 0.3s ease;
}

button[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg) !important;
}

button[data-bs-toggle="collapse"] {
    transition: all 0.2s ease;
}

button[data-bs-toggle="collapse"]:hover {
    background-color: var(--bs-secondary, #6c757d);
    color: var(--white);
}

.card-body.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Drag and Drop Styling */
.image-slot {
    transition: all 0.3s ease;
    cursor: move;
    position: relative;
}

.image-slot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.image-slot.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.image-slot-content {
    background: var(--white);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    transition: all 0.2s ease;
    position: relative;
}

.image-slot-content:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.drag-handle {
    cursor: grab;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    min-width: 32px;
    min-height: 32px;
    user-select: none;
}

.drag-handle:hover {
    background-color: #e9ecef;
    color: #0d6efd;
    border-color: #0d6efd;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.drag-handle:active {
    cursor: grabbing;
    transform: scale(0.95);
    background-color: #0d6efd;
    color: var(--white);
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* Additional visual feedback for better UX */
.image-slot:hover .drag-handle {
    opacity: 1;
    visibility: visible;
    animation: pulseGrip 1.5s ease-in-out infinite;
}

@keyframes pulseGrip {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced dragging state with more prominent visual feedback */
.image-slot.dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 2px solid #0d6efd;
    border-radius: 8px;
}

/* Make drop zones more obvious */
.image-slot.drag-over {
    border: 3px dashed #0d6efd !important;
    background: linear-gradient(45deg, rgba(13, 110, 253, 0.1) 25%, transparent 25%, transparent 75%, rgba(13, 110, 253, 0.1) 75%), 
                linear-gradient(45deg, rgba(13, 110, 253, 0.1) 25%, transparent 25%, transparent 75%, rgba(13, 110, 253, 0.1) 75%) !important;
    background-size: 20px 20px !important;
    background-position: 0 0, 10px 10px !important;
    transform: scale(1.02);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1), 0 4px 12px rgba(13, 110, 253, 0.2);
    animation: dragOverPulse 0.6s ease-in-out infinite alternate;
}

@keyframes dragOverPulse {
    from { transform: scale(1.02); }
    to { transform: scale(1.05); }
}

/* Auto-reorder button styling */
.btn-outline-success {
    border-color: #28a745;
    color: #28a745;
    transition: all 0.2s ease;
}

.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.btn-outline-success:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3);
}

/* Button group styling for image management */
.btn-group .btn-sm {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.btn-group .btn-sm i {
    margin-right: 0.25rem;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-chosen {
    background-color: rgba(13, 110, 253, 0.1);
}

/* ==========================================================================
   Empty State Standardization
   ========================================================================== */

/* Standardized empty state styling matching service_styles.css */
.empty-state {
    background: var(--primary-color-light) !important;
    border: 1.5px dashed var(--primary-color-dark) !important;
    border-radius: 15px !important;
    padding: 3rem 2rem !important;
    margin: 2rem 0 !important;
    text-align: center !important;
}

.empty-state h3,
.empty-state h4 {
    color: var(--font-color) !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    font-size: 1.5rem !important;
}

.empty-state .btn {
    margin-top: 1rem !important;
}

/* ==========================================================================
   Custom Font Color Styles
   ========================================================================== */

/* Apply custom font color to titles and major text elements */
h1 {
    color: var(--font-color) !important;
    font-weight: 400 !important;
}

/* Apply custom font color to navbar elements */
.navbar-brand,
.navbar-nav .nav-link,
.nav-text {
    color: var(--font-color) !important;
}

/* Apply custom font color to card titles */
.card-title,
.card-header h1, .card-header h2, .card-header h3, 
.card-header h4, .card-header h5, .card-header h6 {
    color: var(--font-color) !important;
}

/* Apply custom font color to section headings and important text */
.section-title,
.hero-section h1,
.project-title,
.skill-name,
.experience-title,
.education-title {
    color: var(--font-color) !important;
}

/* Apply custom font color to list item titles */
.list-group-item h1, .list-group-item h2, .list-group-item h3,
.list-group-item h4, .list-group-item h5, .list-group-item h6,
.list-group-item .fw-bold,
.list-group-item strong {
    color: var(--font-color) !important;
}

/* ==========================================================================
   Enhanced Animations and Keyframes (Landing.css inspired)
   ========================================================================== */

/* Smooth fade-in animation for scroll-triggered elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.875rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-0.3125rem); 
    }
}

/* Rotation animation */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pulse animation for interactive elements */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }
    50% {
        transform: scale(1.05);
        box-shadow: var(--shadow-lg);
    }
}

/* Gentle twinkle animation for gradient text */
@keyframes gentle-twinkle {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.85;
        filter: brightness(1.1);
    }
}

/* Scroll animation utility classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: all 0.6s ease;
}

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

/* Enhanced feature cards with smooth interactions */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Hover effects only for devices that support hover */
@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-0.5rem) scale(1.02);
        box-shadow: var(--shadow-lg);
    }
}

/* Active state for all devices */
.feature-card:active {
    transform: translateY(-0.25rem) scale(1.01);
    transition-duration: 0.1s;
}

/* Focus state for accessibility */
.feature-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Enhanced input animations */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(0, 162, 255, 0.1);
}

/* Username feedback styling */
.username-feedback {
    font-size: 0.875rem;
    display: none;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.username-feedback.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.username-feedback.success {
    color: #10b981;
}

.username-feedback.error {
    color: #ef4444;
}

/* Portfolio gallery styling with smooth scrolling animation */
.portfolio-gallery {
    overflow: hidden;
    padding: 2rem 0;
}

.portfolio-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 2rem;
}

.portfolio-item {
    min-width: 18.75rem;
    height: 12.5rem;
    background: #D9D9D9;
    border-radius: 0.625rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-18.75rem - 2rem));
    }
}

/* Additional utility classes for enhanced design */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

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

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

.rounded-custom-sm {
    border-radius: var(--border-radius-sm);
}

/* Info badges */
.info-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
}

.info-badge-blue {
    background: rgba(0, 162, 255, 0.1);
    color: var(--accent-color);
}

.info-badge-light {
    background: var(--light-gray);
    color: var(--gray-color);
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
    
    .portfolio-scroll {
        animation: none;
    }
}

/* ==========================================================================
   Enhanced Touch Device and Mobile Optimizations
   ========================================================================== */

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices for custom buttons */
    .btn-primary-custom:hover,
    .btn-primary-custom-white:hover,
    .btn-outline-custom:hover,
    .feature-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
        background: initial !important;
        color: initial !important;
        border-color: initial !important;
    }
    
    /* Reset specific hover effects */
    .btn-primary-custom:hover::before,
    .btn-primary-custom-white:hover::before,
    .btn-outline-custom:hover::before {
        left: -100% !important;
    }
    
    /* Larger touch targets for mobile */
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        min-height: 48px;
        min-width: 120px;
        padding: 1.25rem 2rem;
    }
    
    /* Enhanced touch targets for interactive elements */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-hero: 3rem;
        --font-size-section: 2rem;
        --font-size-card: 1.4rem;
        --font-size-body: 0.875rem;
        --line-height-hero: 4rem;
        --line-height-section: 1.875rem;
        --line-height-card: 2rem;
        --line-height-body: 1.375rem;
    }

    .hero-title {
        max-width: unset;
        margin-bottom: 1rem !important;
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-subtitle {
        max-width: unset;
        font-size: calc(var(--font-size-hero) * .4) !important;
        line-height: calc(var(--line-height-hero) * 0.55) !important;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Ultra-small screens (320px - 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-section {
        min-height: calc(100vh - 4rem);
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }

    .card-title {
        margin-top: .5rem !important;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Enhanced mobile experience (375px - 575px) */
@media (min-width: 375px) and (max-width: 575px) {

    .card-title {
        margin-top: .5rem !important;
    }
    
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        padding: 1.125rem 1.875rem;
    }
}

/* Orientation-specific optimizations */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: calc(100vh - 3rem);
        padding: 1.5rem 0;
    }
    
    .navbar {
        padding: 0.25rem 1rem;
    }
    
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: 100% 100%;
    }
    
    .card {
        border-width: 0.5px;
    }
    
    .btn-primary-custom,
    .btn-primary-custom-white,
    .btn-outline-custom {
        border-width: 1px;
    }
}

.top-margin-item {
    margin-top: 100px;
}

@media (max-width: 992px) {
    .top-margin-item {
        margin-top: 30px;
    }
    
    /* Fix white space at bottom on mobile */
    html, body {
        overflow-x: hidden;
        margin: 0;
        padding-bottom: 0;
    }
    
    main {
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    footer {
        margin-top: auto;
    }
}