/* Custom CSS for Veracyn AI */

:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --purple-color: #8b5cf6;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Purple Color */
.text-purple {
    color: var(--purple-color) !important;
}

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

/* Hover Effects */
.hover-elevate {
    transition: all 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-background {
    z-index: 1;
}

.hero-background img {
    object-fit: cover;
    opacity: 0.2;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 2;
}

/* Glassmorphic Metal Gradient Overlay */
.hero-gradient-overlay {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%,
            rgba(255, 255, 255, 0.1) 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.08) 25%,
            rgba(0, 0, 0, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 75%,
            rgba(255, 255, 255, 0.15) 100%);
    }
}

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

.hero-section .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section .card .text-primary,
.hero-section .card .text-success {
    color: #3b82f6 !important;
}

.hero-section .card .text-success {
    color: #10b981 !important;
}

.hero-section .card .progress {
    background-color: rgba(59, 130, 246, 0.2);
}

.hero-section .card .progress-bar {
    background-color: #3b82f6;
}

.hero-section .card .bg-success {
    background-color: #10b981 !important;
}

.hero-section .card .bg-primary {
    background-color: #3b82f6 !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #059669);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(31, 41, 55, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: white !important;
}

/* Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    border-radius: 4px;
}

/* Team Cards */
.team-card {
    overflow: hidden;
    position: relative;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.team-card .position-relative {
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

[data-theme="dark"] .team-card .position-relative {
    background-color: #1e293b;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.team-member-image {
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    background-color: #f8f9fa;
    border: none;
    border-radius: 12px 12px 0 0;
}

.team-card:hover .team-member-image {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(16, 185, 129, 0.9));
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-overlay .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.team-overlay .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Department badge positioning */
.team-card .badge {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.025em;
}

/* Card body improvements */
.team-card .card-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="dark"] .team-card .card-body {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .team-member-image {
    background-color: #1e293b;
    border: none;
}

/* Expertise badge styling */
.team-card .badge {
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.7rem;
}

/* LinkedIn button styling */
.team-card .btn-outline-primary {
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.team-card .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Team section overall improvements */
#team-page .row.g-4 {
    margin-top: 2rem;
}

.team-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.team-card .text-muted {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Enhanced department cards */
[data-dept] {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

[data-dept]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

[data-dept].active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    transform: translateY(-3px);
}

/* Department Cards - duplicate removed, styles above */

/* Forms */
.form-control {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Badges */
.badge {
    border-radius: 6px;
    font-weight: 500;
}

/* Tables */
.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

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

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

/* Dark Theme */
[data-theme="dark"] {
    --bs-body-bg: #0f172a;
    --bs-body-color: #f1f5f9;
    --bs-card-bg: #1e293b;
    --bs-border-color: #334155;
}

[data-theme="dark"] .navbar {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .card {
    background-color: var(--bs-card-bg);
    border-color: var(--bs-border-color);
}

[data-theme="dark"] .bg-light {
    background-color: #1e293b !important;
}

[data-theme="dark"] .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-primary {
    color: #60a5fa !important;
}

[data-theme="dark"] .text-success {
    color: #34d399 !important;
}

[data-theme="dark"] .text-warning {
    color: #fbbf24 !important;
}

[data-theme="dark"] .text-purple {
    color: #a78bfa !important;
}

[data-theme="dark"] .bg-primary {
    background-color: #3b82f6 !important;
}

[data-theme="dark"] .bg-success {
    background-color: #10b981 !important;
}

[data-theme="dark"] .bg-warning {
    background-color: #f59e0b !important;
}

[data-theme="dark"] .bg-purple {
    background-color: #8b5cf6 !important;
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border: none;
    color: white;
}

[data-theme="dark"] .btn-outline-primary {
    border-color: #60a5fa;
    color: #60a5fa;
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

[data-theme="dark"] .form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f5;
}

[data-theme="dark"] .form-control:focus {
    background-color: #1e293b;
    border-color: #60a5fa;
    color: #f1f5f5;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .progress {
    background-color: rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .badge {
    color: white !important;
}

[data-theme="dark"] .badge.bg-secondary {
    background-color: #6b7280 !important;
}

[data-theme="dark"] .modal-content {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #334155;
}

[data-theme="dark"] .modal-footer {
    border-top-color: #334155;
}

[data-theme="dark"] .toast {
    background-color: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .toast-header {
    background-color: #334155;
    border-bottom-color: #475569;
    color: #f1f5f9;
}

/* Footer text visibility fixes */
footer .text-muted {
    color: #6c757d !important;
}

footer .text-muted:hover {
    color: #ffffff !important;
}

[data-theme="dark"] footer .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] footer .text-muted:hover {
    color: #ffffff !important;
}

/* Table visibility fixes for dark mode */
[data-theme="dark"] .table {
    color: #f1f5f9;
}

[data-theme="dark"] .table th {
    background-color: #334155;
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .table td {
    border-color: #475569;
    color: #f1f5f9;
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(51, 65, 85, 0.3);
}

[data-theme="dark"] .card-header {
    background-color: #334155;
    border-bottom-color: #475569;
    color: #f1f5f9;
}

/* Additional table improvements */
[data-theme="dark"] .table-hover tbody tr:hover td {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .table tbody tr {
    border-color: #475569;
}

[data-theme="dark"] .table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Ensure check icons are visible in dark mode */
[data-theme="dark"] .table .bi-check {
    color: #34d399 !important;
}

[data-theme="dark"] .table .text-muted {
    color: #94a3b8 !important;
}

/* Dark theme icon visibility fixes */
[data-theme="dark"] .bi {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .bi-check-circle,
[data-theme="dark"] .bi-check {
    color: #34d399 !important;
}

[data-theme="dark"] .bi-x-circle,
[data-theme="dark"] .bi-x {
    color: #ef4444 !important;
}

[data-theme="dark"] .bi-envelope,
[data-theme="dark"] .bi-geo-alt,
[data-theme="dark"] .bi-clock,
[data-theme="dark"] .bi-share {
    color: #60a5fa !important;
}

[data-theme="dark"] .bi-linkedin {
    color: #0077b5 !important;
}

[data-theme="dark"] .bi-instagram {
    color: #e4405f !important;
}

[data-theme="dark"] .bi-facebook {
    color: #1877f2 !important;
}

/* Dark theme text visibility improvements */
[data-theme="dark"] .lead {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .small {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .fw-medium {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .fw-semibold {
    color: #ffffff !important;
}

[data-theme="dark"] .fw-bold {
    color: #ffffff !important;
}

/* Dark theme card text improvements */
[data-theme="dark"] .card-body .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .card-body .lead {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .card-body .small {
    color: #cbd5e1 !important;
}

/* Dark theme button text improvements */
[data-theme="dark"] .btn-outline-primary {
    color: #60a5fa !important;
    border-color: #60a5fa !important;
}

[data-theme="dark"] .btn-outline-primary:hover {
    color: #ffffff !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Dark theme form label improvements */
[data-theme="dark"] .form-label {
    color: #f1f5f9 !important;
    font-weight: 500;
}

/* Dark theme navbar improvements */
[data-theme="dark"] .navbar-nav .nav-link {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: #ffffff !important;
}

[data-theme="dark"] .navbar-brand {
    color: #ffffff !important;
}

/* Dark theme modal improvements */
[data-theme="dark"] .modal-title {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-body {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .modal-body .text-muted {
    color: #94a3b8 !important;
}

/* Dark theme alert improvements */
[data-theme="dark"] .alert {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .alert .text-muted {
    color: #cbd5e1 !important;
}

/* Dark theme list improvements */
[data-theme="dark"] .list-group-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .list-group-item .text-muted {
    color: #94a3b8 !important;
}

/* Dark theme progress improvements */
[data-theme="dark"] .progress-bar {
    color: #ffffff !important;
}

/* Dark theme dropdown improvements */
[data-theme="dark"] .dropdown-menu {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .dropdown-item {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

/* Dark theme tooltip improvements */
[data-theme="dark"] .tooltip .tooltip-inner {
    background-color: #1e293b !important;
    color: #f1f5f9 !important;
}

/* Dark theme popover improvements */
[data-theme="dark"] .popover {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .popover-header {
    background-color: #334155 !important;
    border-bottom-color: #475569 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .popover-body {
    color: #e2e8f0 !important;
}

/* Coming Soon Modal Alert Theme Support */
[data-theme="dark"] .modal .alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #e2e8f0 !important;
}

[data-theme="dark"] .modal .alert-info .bi-info-circle {
    color: #60a5fa !important;
}

[data-theme="dark"] .modal .alert-info strong {
    color: #ffffff !important;
}

/* Light theme modal alert improvements */
.modal .alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    border-color: rgba(13, 202, 240, 0.3);
    color: #0c5460;
}

.modal .alert-info .bi-info-circle {
    color: #0dcaf0;
}

.modal .alert-info strong {
    color: #055160;
}

/* Modal theme improvements */
[data-theme="dark"] .modal-content {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: #334155 !important;
}

[data-theme="dark"] .modal-body {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .modal-body h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-body h6 {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-body p {
    color: #cbd5e1 !important;
}

/* Dark theme social media button improvements */
[data-theme="dark"] .btn-outline-primary.btn-sm {
    color: #60a5fa !important;
    border-color: #60a5fa !important;
    background-color: transparent !important;
}

[data-theme="dark"] .btn-outline-primary.btn-sm:hover {
    color: #ffffff !important;
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

[data-theme="dark"] .btn-outline-primary.btn-sm .bi {
    color: inherit !important;
}

/* Dark theme contact page improvements */
[data-theme="dark"] .card-header h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .card-body h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .card-body .fw-semibold {
    color: #ffffff !important;
}

/* Dark theme team page improvements */
[data-theme="dark"] .team-card .card-body h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .team-card .card-body .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] .team-card .card-body .badge {
    color: #ffffff !important;
}

/* Dark theme mission page improvements */
[data-theme="dark"] .display-4,
[data-theme="dark"] .display-6 {
    color: #ffffff !important;
}

[data-theme="dark"] .display-2 {
    color: #ffffff !important;
}

/* Dark theme hero section improvements */
[data-theme="dark"] .hero-section h1 {
    color: #ffffff !important;
}

[data-theme="dark"] .hero-section .lead {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .hero-section .text-gradient {
    background: linear-gradient(135deg, #60a5fa, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark theme footer improvements */
[data-theme="dark"] footer h6 {
    color: #ffffff !important;
}

[data-theme="dark"] footer .text-muted {
    color: #94a3b8 !important;
}

[data-theme="dark"] footer .text-muted:hover {
    color: #ffffff !important;
}

/* Dark theme coming soon modal improvements */
[data-theme="dark"] .modal-body h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-body p {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .modal-body .text-muted {
    color: #94a3b8 !important;
}

/* Dark theme privacy and terms page improvements */
[data-theme="dark"] .h4 {
    color: #ffffff !important;
}

[data-theme="dark"] .h5 {
    color: #ffffff !important;
}

[data-theme="dark"] .h6 {
    color: #ffffff !important;
}

/* Dark theme table improvements */
[data-theme="dark"] .table .fw-medium {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .table .fw-semibold {
    color: #ffffff !important;
}

/* Dark theme badge improvements */
[data-theme="dark"] .badge.bg-primary {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge.bg-success {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .badge.bg-warning {
    background-color: #f59e0b !important;
    color: #000000 !important;
}

[data-theme="dark"] .badge.bg-purple {
    background-color: #8b5cf6 !important;
    color: #ffffff !important;
}

/* Dark theme text color overrides for better contrast */
[data-theme="dark"] .text-dark {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .text-secondary {
    color: #94a3b8 !important;
}

[data-theme="dark"] .text-info {
    color: #60a5fa !important;
}

[data-theme="dark"] .text-danger {
    color: #ef4444 !important;
}

[data-theme="dark"] .text-light {
    color: #e2e8f0 !important;
}

/* Dark theme background improvements */
[data-theme="dark"] .bg-white {
    background-color: #1e293b !important;
}

[data-theme="dark"] .bg-light {
    background-color: #334155 !important;
}

[data-theme="dark"] .bg-secondary {
    background-color: #6b7280 !important;
}

/* Page Spacing */
#services-page .container,
#team-page .container,
#mission-page .container,
#contact-page .container,
#privacy-page .container,
#terms-page .container {
    padding-top: 6rem;
}

#services-page .text-center:first-child,
#team-page .text-center:first-child,
#mission-page .text-center:first-child,
#contact-page .text-center:first-child,
#privacy-page .text-center:first-child,
#terms-page .text-center:first-child {
    margin-top: 2rem;
}

/* Ensure proper text visibility on hero section */
.hero-section h1,
.hero-section p,
.hero-section .btn {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .text-gradient {
    text-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    #team-page .container,
    #mission-page .container,
    #contact-page .container,
    #privacy-page .container,
    #terms-page .container {
        padding-top: 4rem;
    }
}

@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Utility Classes */
.min-vh-100 {
    min-height: 100vh;
}

.object-cover {
    object-fit: cover;
}

.opacity-25 {
    opacity: 0.25;
}

.opacity-10 {
    opacity: 0.1;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

/* Scroll to Top Button */
#scroll-to-top {
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

#scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb, #059669);
}

#scroll-to-top:active {
    transform: translateY(-1px);
}

/* Gradient Showcase Box */
.gradient-showcase-box {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(16, 185, 129, 0.1) 25%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(59, 130, 246, 0.1) 75%, 
        rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.gradient-showcase-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        #3b82f6 0%, 
        #10b981 25%, 
        #8b5cf6 50%, 
        #3b82f6 75%, 
        #10b981 100%);
    border-radius: inherit;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    z-index: -1;
}

.gradient-showcase-box img {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.gradient-showcase-box:hover img {
    transform: scale(1.02);
}

/* Dark mode support for gradient showcase box */
[data-theme="dark"] .gradient-showcase-box {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(16, 185, 129, 0.15) 25%, 
        rgba(139, 92, 246, 0.15) 50%, 
        rgba(59, 130, 246, 0.15) 75%, 
        rgba(16, 185, 129, 0.15) 100%);
}

/* Three.js Animation - Blended Background */
#deepfake-animation {
    opacity: 0.6;
    pointer-events: none;
}

#deepfake-animation canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Dark mode support for animation */
[data-theme="dark"] #deepfake-animation {
    opacity: 0.8;
}

/* Animated GIF with Transparency Styles */
#animation-container {
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gif-container {
    position: relative;
    width: 400px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    background: transparent;
}

.animated-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 20px;
    /* Remove black background and make transparent */
    mix-blend-mode: screen;
    /* Create all-edges gradient fade effect for blending */
    mask: 
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%);
    -webkit-mask: 
        linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 1) 8%, rgba(0, 0, 0, 1) 92%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    /* Enhance visibility and remove black background */
    filter: 
        brightness(1.2) 
        contrast(1.1) 
        saturate(1.2)
        drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    /* Smooth scaling */
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* Enhanced Mobile Design for GIF */
@media (max-width: 768px) {
    .gif-container {
        width: 100%;
        max-width: 350px;
        height: 400px;
        margin: 0 auto;
        border-radius: 16px;
    }
    
    .animated-gif {
        filter: 
            brightness(1.15) 
            contrast(1.1) 
            saturate(1.2)
            drop-shadow(0 0 20px rgba(0, 255, 255, 0.3));
    }
    
    /* Improve mobile hero section */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .gif-container {
        width: 100%;
        max-width: 280px;
        height: 350px;
        margin: 1rem auto;
        border-radius: 12px;
    }
    
    .animated-gif {
        filter: 
            brightness(1.1) 
            contrast(1.05) 
            saturate(1.1)
            drop-shadow(0 0 15px rgba(0, 255, 255, 0.25));
    }
    
    /* Enhanced mobile hero section */
    .hero-section {
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .hero-section .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        margin: 0.3rem;
        display: block;
        width: 100%;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .gif-container {
        width: 100%;
        max-width: 250px;
        height: 300px;
        margin: 0.5rem auto;
        border-radius: 10px;
    }
    
    .animated-gif {
        filter: 
            brightness(1.05) 
            contrast(1.0) 
            saturate(1.05)
            drop-shadow(0 0 12px rgba(0, 255, 255, 0.2));
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.4;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .hero-section .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

/* Enhanced Mobile Navigation and Layout */
@media (max-width: 768px) {
    #animation-container {
        height: 400px !important;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    /* Mobile navigation improvements */
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Mobile hero layout */
    .hero-section .row {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    #animation-container {
        height: 350px !important;
        margin-top: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Mobile navigation */
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 10px;
    }
    
    /* Mobile hero layout */
    .hero-section .row {
        margin: 0;
    }
    
    .hero-section .col-lg-6 {
        padding: 0 1rem;
    }
    
    .hero-section .col-lg-6:first-child {
        margin-top: 1.5rem;
        order: 2;
    }
    
    .hero-section .col-lg-6:last-child {
        order: 1;
    }
}

@media (max-width: 480px) {
    #animation-container {
        height: 300px !important;
        margin-top: 0.5rem;
        padding: 0 0.25rem;
    }
    
    /* Extra small mobile navigation */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Extra small mobile hero */
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-section .container {
        padding: 0 0.5rem;
    }
}

/* Release Section Styles */
.release-section {
    background: radial-gradient(circle at top right, rgba(20, 184, 166, 0.15), transparent 45%), 
        radial-gradient(circle at center left, rgba(59, 130, 246, 0.2), transparent 50%), 
        #0f172a;
    position: relative;
    overflow: hidden;
}

.release-section::before,
.release-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.release-section::before {
    width: 320px;
    height: 320px;
    background: rgba(59, 130, 246, 0.35);
    top: -120px;
    right: -80px;
}

.release-section::after {
    width: 280px;
    height: 280px;
    background: rgba(16, 185, 129, 0.4);
    bottom: -100px;
    left: -60px;
}

.release-section .container {
    position: relative;
    z-index: 2;
}

.release-highlights .icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.release-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .release-card {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
}

.release-card .display-4 {
    color: #0f172a;
}

[data-theme="dark"] .release-card .display-4 {
    color: #e0f2fe;
}

.release-card .badge.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
}

[data-theme="dark"] .release-card .badge.bg-success-subtle {
    background-color: rgba(16, 185, 129, 0.25) !important;
    color: #34d399 !important;
}

.release-card a {
    text-decoration: none;
}

.release-card .bg-light {
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

[data-theme="dark"] .release-card .bg-light {
    background-color: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(148, 163, 184, 0.35);
}

.release-section .btn-light {
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.release-section .btn-light:hover {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.release-section .btn-outline-light {
    border-width: 2px;
}

.release-section .badge.bg-dark {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(248, 250, 252, 0.12);
}

@media (max-width: 992px) {
    .release-card {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .release-highlights .icon-circle {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
    
    .release-card .display-4 {
        font-size: 2.5rem;
    }
}

/* Additional Mobile Enhancements */
@media (max-width: 768px) {
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Improved spacing */
    .hero-section .container {
        padding: 0 1rem;
    }
    
    /* Better text readability */
    .hero-section h1 {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Mobile-specific animations */
    .gif-container {
        transition: transform 0.3s ease;
    }
    
    .gif-container:hover {
        transform: scale(1.02);
    }
}

@media (max-width: 576px) {
    /* Enhanced mobile touch targets */
    .btn {
        min-height: 48px;
        font-weight: 600;
    }
    
    /* Better mobile typography */
    .hero-section h1 {
        font-weight: 700;
        letter-spacing: -0.02em;
    }
    
    .hero-section .lead {
        line-height: 1.6;
        font-weight: 400;
    }
    
    /* Mobile-specific spacing */
    .hero-section .d-flex {
        margin-top: 1.5rem;
    }
    
    /* Mobile GIF container enhancements */
    .gif-container {
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.2),
            0 0 40px rgba(0, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile optimizations */
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Compact mobile layout */
    .hero-section .d-flex {
        margin-top: 1rem;
        gap: 0.25rem;
    }
    
    .btn {
        min-height: 44px;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal,
    #scroll-to-top,
    #deepfake-animation {
        display: none !important;
    }
    
    .page {
        display: block !important;
    }
}
