/* 
 * High Dee Dev Portfolio - Main Stylesheet
 * Clean, professional, and accessible design
 */

/* CSS Variables for consistency */
:root {
    --primary-color: #1a365d;
    --primary-light: #2d4a7c;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gray-light: #e2e8f0;
    --gray-medium: #94a3b8;
    --gray-dark: #475569;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --section-spacing: 100px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

.text-highlight {
    color: var(--accent-color);
    position: relative;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(16, 185, 129, 0.2);
    z-index: -1;
}

/* Section Styles */
.section-padding {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

.section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.navbar {
    background-color: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: rgba(26, 54, 93, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text {
    color: white;
}

.brand-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-light);
    opacity: 0.8;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, 
.nav-link.active {
    color: white !important;
    background-color: rgba(59, 130, 246, 0.2);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233b82f6' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
}

.code-snippet {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.code-snippet pre {
    margin: 0;
    padding: 1.5rem;
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.5;
}

.code-snippet code {
    color: #7dd3fc;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
}

.scroll-down {
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: var(--transition);
    display: inline-block;
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    opacity: 1;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section */
.about-image {
    position: relative;
}

.image-frame {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.placeholder-image {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    color: var(--gray-medium);
}

.placeholder-image i {
    font-size: 8rem;
    color: var(--gray-light);
}

.about-details .detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.about-details .detail-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Skills Section */
.skills-category {
    color: var(--primary-color);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
    margin-bottom: 1.5rem;
}

.skills-list .skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--dark-color);
}

.skill-years {
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.skill-bar {
    height: 8px;
    background-color: var(--gray-light);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Progress Trail (Unique Feature) */
.progress-trail-container {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}

.progress-trail {
    position: relative;
    height: 100px;
}

.trail-start, .trail-end {
    position: absolute;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.trail-start {
    left: 0;
}

.trail-end {
    right: 0;
}

.trail-start i, .trail-end i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.trail-start small, .trail-end small {
    color: var(--gray-medium);
    font-size: 0.8rem;
    text-align: center;
}

.trail-line {
    position: absolute;
    top: 20px;
    left: 70px;
    right: 70px;
    height: 4px;
    background-color: var(--gray-light);
    border-radius: 2px;
    overflow: hidden;
}

.trail-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
    animation: fillTrail 2s ease-out forwards;
}

.trail-milestones {
    position: absolute;
    top: 10px;
    left: 70px;
    right: 70px;
    height: 30px;
}

.milestone {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.milestone-dot {
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid var(--gray-light);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.milestone:hover .milestone-dot {
    border-color: var(--secondary-color);
    transform: scale(1.2);
}

.milestone-label {
    font-size: 0.8rem;
    color: var(--gray-dark);
    white-space: nowrap;
    font-weight: 500;
}

@keyframes fillTrail {
    from { width: 0; }
    to { width: 100%; }
}

/* Process Section */
.process-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.process-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(26, 54, 93, 0.1);
    line-height: 1;
    margin-bottom: 1rem;
}

.process-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.process-description {
    color: var(--gray-dark);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gray-light);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-date {
    position: absolute;
    left: -20px;
    top: 0;
    width: 100px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary-color);
}

.timeline-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-light);
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--accent-color);
}

/* Projects */
.project-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background-color: var(--light-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-project {
    font-size: 4rem;
    color: var(--gray-medium);
}

.project-tech {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.tech-tag {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--secondary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.project-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.project-details .detail {
    display: flex;
    align-items: center;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

.project-details .detail i {
    margin-right: 6px;
    color: var(--secondary-color);
}

.project-full-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.project-full-details.active {
    max-height: 1000px;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-light);
}

.project-full-details h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.project-full-details p {
    font-size: 0.95rem;
    color: var(--gray-dark);
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--gray-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--gray-medium);
}

.author-info h6 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.author-info p {
    margin-bottom: 0;
    color: var(--gray-medium);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-container {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-light);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.contact-method {
    padding: 1.5rem;
}

.contact-method h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-method p {
    color: var(--gray-dark);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .copyright {
    margin-bottom: 0.5rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.8s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-spacing: 80px;
    }
    
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .section-title .title-number {
        position: static;
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-date {
        width: 80px;
        font-size: 0.9rem;
        text-align: right;
    }
    
    .timeline-item::before {
        left: 14px;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-spacing: 60px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .progress-trail-container {
        padding: 1.5rem;
    }
    
    .trail-start, .trail-end {
        width: 60px;
    }
    
    .trail-line {
        left: 50px;
        right: 50px;
    }
    
    .trail-milestones {
        left: 50px;
        right: 50px;
    }
    
    .milestone-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 575.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .code-snippet {
        display: none;
    }
    
    .project-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Additional styles for JSON-powered projects */

/* Project Image Styling */
.project-image-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image:hover .project-img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 54, 93, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .image-overlay {
    opacity: 1;
}

/* Project Filters */
.project-filters {
    margin-bottom: 2rem;
}

.project-filters .btn-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.project-filters .btn {
    border-radius: var(--radius-md);
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.project-filters .btn.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Image Loading States */
.project-img.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.project-img.loaded {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Keyboard Navigation Focus */
body.keyboard-navigation :focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Project Close Button */
.project-close {
    margin-top: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .project-filters .btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .image-overlay .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Enhanced Form Validation Styles */
.form-control.is-valid {
    border-color: var(--accent-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Form character counter */
.char-counter {
    font-size: 0.8rem;
    color: var(--gray-medium);
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
    font-weight: bold;
}

/* Form success message enhancements */
#formSuccess {
    animation: slideInUp 0.5s ease;
    border-left: 4px solid var(--accent-color);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form loading state */
.form-loading {
    position: relative;
    opacity: 0.7;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mail client instructions */
.mailto-instructions {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    font-size: 0.9rem;
}

.mailto-instructions h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.mailto-instructions ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.mailto-instructions li {
    margin-bottom: 0.25rem;

}

