/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero .hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero .tagline {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 123, 255, 0.9);
    padding: 1rem 2rem;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Blog Hero Specific Styles */
.blog .hero {
    min-height: 50vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog .hero .hero-title {
    font-size: 3rem;
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Blog Hero */
@media (max-width: 768px) {
    .blog .hero {
        min-height: 40vh;
        padding: 2rem 1rem;
    }
    
    .blog .hero .hero-title {
        font-size: 2.5rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 576px) {
    .blog .hero {
        min-height: 35vh;
        padding: 1.5rem 0.75rem;
    }
    
    .blog .hero .hero-title {
        font-size: 2rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Tagline Section */
.tagline {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.tagline h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
/* @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .background-visuals {
        background-image: url('../images/background-visual@2x.png');
    }
} */

.background-visuals {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8)); */
    background-image: url('../images/background-visual.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #333;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}
 
nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
}
 
main {
    padding: 2em;
}
 
footer {
    background-color: #007bff;
    text-align: center;
    padding: 1em;
    color: #fff;
    bottom: 0;
    width: 100%;
}

/* Navigation Bar */
.navbar {
    background-color: #007bff;
    padding: 10px 20px;
}

.navbar-brand, .nav-link {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

.nav-link:hover {
    text-decoration: underline;
}

/* Header */
h1, h2 {
    color: #fff;
    margin-bottom: 20px;
}

/* Accordion Styles */
.accordion {
    margin-top: 20px;
}

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion-header {
    background-color: #f8f9fa;
}

.accordion-button {
    font-weight: bold;
    color: #007bff;
}

.accordion-button:not(.collapsed) {
    background-color: #e9ecef;
}

.accordion-body {
    padding: 15px;
    background-color: #ffffff;
}

/* Buttons */
button, .btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-height: 44px; /* Touch target minimum */
    min-width: 44px; /* Touch target minimum */
}

button:hover, .btn:hover {
    background-color: #0056b3;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    min-height: 44px; /* Touch target minimum */
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
}

.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.table th {
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: left;
    background-color: #f2f2f2;
    color: black;
}

th, td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #e9ecef;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 15px;
    }
    
    .hero .hero-title {
        font-size: 3rem;
        padding: 1.25rem 2.5rem;
    }
    
    .hero .tagline {
        font-size: 2rem;
    }
    
    .tagline h2 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 15px;
    }
    
    .hero {
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }
    
    .hero .hero-title {
        font-size: 2.5rem;
        padding: 1rem 2rem;
    }
    
    .hero .tagline {
        font-size: 1.75rem;
        padding: 0.75rem 1.5rem;
    }
    
    .tagline {
        padding: 2rem 1.5rem;
    }
    
    .tagline h2 {
        font-size: 1.75rem;
    }
    
    main {
        padding: 1.5em;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 10px;
    }

    .navbar {
        flex-direction: column;
        padding: 15px 10px;
    }

    .nav-link {
        margin-bottom: 10px;
        padding: 10px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .accordion-item {
        margin-bottom: 10px;
    }
    
    .hero {
        min-height: 40vh;
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .hero .hero-title {
        font-size: 2rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .hero .tagline {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tagline {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .tagline h2 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1em;
    }
    
    .row.text-center .col-md-4 {
        margin-bottom: 2rem;
    }
    
    .carousel-inner {
        flex-direction: column;
    }
    
    /* Improve touch targets on mobile */
    button, .btn {
        padding: 12px 24px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .form-control {
        padding: 12px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Stack columns on mobile */
    .col {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    /* Adjust card spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 8px;
    }
    
    .hero {
        min-height: 35vh;
        padding: 1.5rem 0.75rem;
    }
    
    .hero .hero-title {
        font-size: 1.75rem;
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero .tagline {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .tagline {
        padding: 1rem 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .tagline h2 {
        font-size: 1.25rem;
    }
    
    main {
        padding: 0.75em;
    }
    
    /* Further improve touch targets */
    button, .btn {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%; /* Full width buttons on very small screens */
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        padding: 14px;
        font-size: 16px;
    }
    
    /* Adjust table for mobile */
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 8px 4px;
    }
    
    /* Stack table columns on very small screens */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Adjust spacing */
    h1, h2, h3 {
        margin-bottom: 15px;
    }
    
    p {
        margin-bottom: 12px;
    }
    
    /* Improve form layout */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Adjust modal for mobile */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero .hero-title {
        font-size: 1.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
    }
    
    .tagline h2 {
        font-size: 1.1rem;
    }
    
    /* Ensure minimum touch targets */
    .nav-link, .btn, button, .form-control, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve readability */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Adjust spacing for very small screens */
    .container {
        padding: 5px;
    }
    
    main {
        padding: 0.5em;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem;
    }
    
    .hero .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero .tagline {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .countdown-content {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-item {
        padding: 0.75rem 0.5rem;
        min-width: 60px;
    }
    
    .countdown-number {
        font-size: 1.25rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .background-visuals {
        background-image: url('../images/background-visual@2x.png');
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .scroll-to-top-container,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        background: white !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
        box-shadow: none;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .hero .hero-title,
    .hero .tagline {
        color: black !important;
        background: white !important;
        text-shadow: none;
    }
}

/* Additional Styles for Consistency */
h3 {
    color: #007bff;
    margin-top: 20px;
}

p {
    margin-bottom: 15px;
}

/* Table Styles */
.table-striped {
    margin-top: 20px;
    border-collapse: collapse;
    width: 100%;
}

.table-striped th, .table-striped td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table-striped th {
    background-color: #007bff;
    color: white;
}

.table-striped tr:nth-child(even) {
    background-color: #f2f2f2;
}

.table-striped tr:hover {
    background-color: #ddd;
}

/* Button Styles */
.btn-primary {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #386ca3;
}

/* Modal Styles */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: #007bff;
    color: white;
    border-bottom: none;
}

.modal-title {
    margin: 0;
}

.btn-close {
    color: white;
    opacity: 1;
}

.btn-close:hover {
    color: #ccc;
}

/* Form Styles */
.form-label {
    font-weight: bold;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

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

.mb-2 {
    margin-top: 5px;
}

/* Responsive Design for Features */
@media (max-width: 768px) {
    .row.text-center .col-md-4 {
        margin-bottom: 2rem;
    }
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .carousel-inner {
        flex-direction: column;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.blog-row {
    display: flex;
    flex-wrap: wrap;
    margin: 15px;
}

.col {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 15px;
    box-sizing: border-box;
}

.card {
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card-body {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    margin-bottom: 10px;
    z-index: 1;
    font-size: 1.25rem;
}

.card-text {
    margin-bottom: 15px;
    z-index: 1;
    font-size: 1rem;
}

.btn-color-1 {
    background-color: #d59a1a;
}

.btn-color-2 {
    background-color: #28a745;
}

.btn-color-3 {
    background-color: #dc3545;
}

.btn-color-4 {
    background-color: #ffc107;
}

.btn-color-5 {
    background-color: #17a2b8;
}

.btn-color-6 {
    background-color: #6c757d;
}

.btn-color-7 {
    background-color: #343a40;
}

.btn-color-8 {
    background-color: #20cbce; 
}

.btn-color-9 {
    background-color: #25ad35; 
}

.btn-color-10 {
    background-color: #977f2b; 
}

.btn-color-11 {
    background-color: #0e4323a8; 
}

.btn-color-12 {
    background-color: #0e4323a8; 
}

.btn-color-13 {
    background-color: #6c5ce7;
}

.btn-color-14 {
    background-color: #00b894;
}

.btn-color-15 {
    background-color: #e17055;
}

.btn-color-16 {
    background-color: #0984e3;
}

.btn-color-17 {
    background-color: #fdcb6e;
}

.btn-color-18 {
    background-color: #2d3436;
}

.btn-color-19 {
    background-color: #00cec9;
}

.btn-color-20 {
    background-color: #d63031;
}

.btn-color-21 {
    background-color: #6c5ce7;
}

.btn-color-22 {
    background-color: #00b894;
}

.btn-color-23 {
    background-color: #e17055;
}

.btn-color-24 {
    background-color: #0984e3;
}

.btn-color-25 {
    background-color: #fdcb6e;
}

.btn-color-26 {
    background-color: #2d3436;
}

.btn-color-27 {
    background-color: #00cec9;
}

.btn-color-28 {
    background-color: #d63031;
}

.btn-color-29 {
    background-color: #6c5ce7;
}

.btn-color-30 {
    background-color: #00b894; 
}

.btn-color-31 {
    background-color: #8ab800; 
}

.btn-color-32 {
    background-color: #00b894; 
}

.btn-color-33 {
    background-color: #00b894; 
}

/* Back to Top Button Styles */
.scroll-to-top-container {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-container.show {
    opacity: 1;
    visibility: visible;
}

.scroll-progress {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke: #007bff;
    stroke-width: 2;
    fill: transparent;
    r: 20;
    cx: 22.5;
    cy: 22.5;
    transition: stroke 0.3s ease;
}

.scroll-to-top-btn {
    width: 45px;
    height: 45px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50% 0 0 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0;
    padding-right: 5px;
    overflow: hidden;
}

.scroll-to-top-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top-btn:hover {
    background-color: #0056b3;
    transform: translateX(-5px);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top-btn:hover::before {
    transform: translateX(100%);
}

.scroll-to-top-btn i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.scroll-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* Progress ring color changes based on scroll position */
.scroll-to-top-container[data-progress="high"] .progress-ring__circle {
    stroke: #28a745;
}

.scroll-to-top-container[data-progress="medium"] .progress-ring__circle {
    stroke: #ffc107;
}

.scroll-to-top-container[data-progress="low"] .progress-ring__circle {
    stroke: #dc3545;
}

@media (max-width: 768px) {
    .scroll-to-top-container {
        transform: translateY(-50%) scale(0.9);
    }

    .scroll-to-top-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        padding-right: 3px;
    }

    .scroll-progress {
        width: 40px;
        height: 40px;
    }

    .progress-ring {
        width: 40px;
        height: 40px;
    }

    .progress-ring__circle {
        r: 18;
        cx: 20;
        cy: 20;
    }
}

/* Add smooth fade-in animation for the container */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.scroll-to-top-container.show {
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Custom Project Request Form Styles */
.custom-project-section {
    padding: 3rem 0;
}

.form-section-title {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-control.is-invalid, .form-select.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-linecap='round' d='M6 3.75v1.5m0 3h1.5m-1.5 1.5h1.5'/%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);
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Card Styles */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-5px);
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-project-section {
        padding: 2rem 0;
    }
    
    .form-section-title {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Flash Message Styles */
.alert {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-dismissible {
    padding-right: 3rem;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1.25rem;
}

.alert-dismissible .btn-close:hover {
    opacity: 0.75;
}

/* Animation for flash messages */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert {
    animation: slideIn 0.3s ease-out;
}

/* CSRF Token Visibility */
.csrf-token {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.csrf-token.visible {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* FAQ Page Styles */
.faq-folder-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.faq-folder-container h1 {
    text-align: center;
    color: #007bff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.faq-folder-container h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #007bff;
    margin: 1rem auto;
    border-radius: 2px;
}

.faq-folder-container .lead {
    text-align: center;
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.folder-accordion {
    margin-bottom: 3rem;
}

.folder-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.folder-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.folder-tab {
    padding: 1.5rem;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
}

.folder-tab:hover {
    background: #f8f9fa;
    border-left-color: #0a58ca;
    border-color: #ced4da;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
}

.folder-item.active .folder-tab {
    background: #f8f9fa;
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #adb5bd;
}

.folder-tab i {
    color: #007bff;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.folder-tab:hover i {
    transform: rotate(-5deg);
}

.folder-tab h2 {
    margin: 0;
    color: #343a40;
    font-size: 1.25rem;
    font-weight: 600;
}

.folder-content {
    background: #ffffff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.folder-content.show {
    padding: 1.5rem;
    max-height: 2000px;
    border: 1px solid #adb5bd;
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-top: -1px;
}

.folder-body {
    color: #6c757d;
}

.folder-body h3 {
    color: #007bff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.folder-body ul, .folder-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.folder-body li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.faq-contact {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

.faq-contact h2 {
    color: #ffffff;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.faq-contact h2 i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.faq-contact p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.faq-contact .list-unstyled {
    display: inline-block;
    text-align: left;
    margin: 0;
    padding: 0;
}

.faq-contact .list-unstyled li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.faq-contact .list-unstyled li:hover {
    transform: translateX(5px);
}

.faq-contact .list-unstyled li i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-folder-container {
        padding: 1rem;
    }

    .faq-folder-container h1 {
        font-size: 2rem;
    }

    .faq-folder-container .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .folder-tab {
        padding: 1.25rem;
    }

    .folder-tab h2 {
        font-size: 1.1rem;
    }

    .folder-content.show {
        padding: 1.25rem;
    }

    .faq-contact {
        padding: 2rem 1.5rem;
    }

    .faq-contact h2 {
        font-size: 1.5rem;
    }

    .faq-contact .list-unstyled li {
        font-size: 1rem;
    }
}

/* Animation for folder content */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.folder-content.show .folder-body {
    animation: slideDown 0.3s ease-out forwards;
}

/* Portfolio Card Styles */
.project-card .card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.project-card .card-img-top {
    transition: transform 0.3s ease;
}

.project-card .card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 20px;
    font-weight: 500;
}

.project-card .badge.bg-secondary {
    background-color: #6c757d !important;
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
    margin-right: 0.3rem;
    margin-bottom: 0.3rem;
    display: inline-block;
}

.project-card .card-body {
    padding: 1.5rem;
}

.project-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

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

.project-card .btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: all 0.3s ease;
}

.project-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Technology Tags Container */
.project-card .mb-3 {
    min-height: 2rem;
}

/* Feedback Form Styles */
.feedback-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.feedback-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.feedback-form .form-control,
.feedback-form .form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feedback-form .form-control:focus,
.feedback-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Filter Controls */
#search, #categoryFilter, #sort {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search:focus, #categoryFilter:focus, #sort:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#clearFilter {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#clearFilter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Responsive Portfolio Grid */
@media (max-width: 768px) {
    .project-card .card-body {
        padding: 1rem;
    }
    
    .project-card .card-title {
        font-size: 1.1rem;
    }
    
    .project-card .badge {
        font-size: 0.7rem;
        padding: 0.3em 0.6em;
    }
    
    .project-card .badge.bg-secondary {
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }
    
    .feedback-form {
        padding: 0.75rem;
    }
}

/* Loading Animation for Cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Error Page Styles */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-page h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.error-page p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
}

.error-page .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Improved Form Validation Styles */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' 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);
}

.was-validated .form-control:invalid,
.was-validated .form-select: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-linecap='round' d='M6 3.75v1.5m0 3h1.5m-1.5 1.5h1.5'/%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);
}

/* Enhanced Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Improved Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Better Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .scroll-to-top-container,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #000;
    }
    
    .form-control,
    .form-select {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .scroll-to-top-btn:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .card {
        background-color: #2d2d2d;
        border-color: #404040;
    }
    
    .form-control,
    .form-select {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
    }
    
    .navbar {
        background-color: #2d2d2d !important;
    }
    
    .footer {
        background-color: #2d2d2d !important;
    }
}

