/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333;
    --transition: all 0.3s ease;
}

/* Dark Mode Variables (Default) */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(26, 26, 26, 0.7);
    --bg-card-hover: rgba(26, 26, 26, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(255, 255, 255, 0.1);
}

/* Light Mode Variables */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-display: swap;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    background-color: rgba(33, 37, 41, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, padding 0.3s ease-in-out, background-color 0.3s ease;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

[data-theme="light"] .navbar {
    background-color: rgba(248, 249, 250, 0.95) !important;
}

[data-theme="light"] .navbar.navbar-dark {
    background-color: rgba(248, 249, 250, 0.95) !important;
}

[data-theme="light"] .navbar.navbar-dark .navbar-brand,
[data-theme="light"] .navbar.navbar-dark .navbar-toggler-icon {
    color: rgba(33, 37, 41, 0.9) !important;
}

[data-theme="light"] .navbar-toggler {
    border-color: rgba(33, 37, 41, 0.3) !important;
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: color 0.3s ease;
}

[data-theme="light"] .navbar-brand {
    color: rgba(33, 37, 41, 0.9) !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition), color 0.3s ease;
    position: relative;
}

[data-theme="light"] .navbar-nav .nav-link {
    color: rgba(33, 37, 41, 0.9) !important;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content .text-primary {
    color: #ffd700 !important;
}

.hero-content .lead {
    font-size: 1.5rem;
    font-weight: 400;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-links {
    margin-top: 2rem;
}

.social-icon {
    display: inline-block;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
    will-change: transform;
    transform: translateZ(0);
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) translateZ(0);
    color: white;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.profile-image-wrapper img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 5px solid white;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down a {
    color: white;
    font-size: 2rem;
    text-decoration: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s both;
}

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

/* Theme Toggle Button */
.theme-toggle {
    border: none;
    background: transparent;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.theme-toggle:hover {
    background: var(--bg-card);
    transform: rotate(15deg) scale(1.1);
}

.theme-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Section Styles */
section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

section.bg-light {
    background-color: var(--bg-secondary) !important;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* About Section */
.about-content h3 {
    color: var(--primary-color);
    font-weight: 600;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tech-stack {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tech-category h5 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.tech-badges-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-badge-large {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    transition: var(--transition);
}

.tech-badge-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.tech-badge-large strong {
    color: white;
    font-weight: 600;
}

/* Typewriter Effect */
.typewriter-text {
    color: #ffffff;
}

[data-theme="light"] .typewriter-text {
    color: var(--text-primary);
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Technology Icons */
.tech-icon-wrapper {
    transition: var(--transition);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.tech-icon-wrapper:hover {
    transform: translateY(-5px) translateZ(0);
    background: rgba(13, 110, 253, 0.1);
}

.tech-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.tech-icon-wrapper:hover .tech-icon {
    color: #ffffff;
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tech-icon-wrapper p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.2;
}

.skills {
    margin-top: 2rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #333;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), #764ba2);
    border-radius: 10px;
    transition: width 1s ease;
}

.info-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    will-change: transform;
    transform: translateZ(0);
}

.info-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info-card h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-card i {
    font-size: 1.2rem;
}

/* Services Section */
.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
    will-change: transform;
    transform: translateZ(0);
}

.service-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(10deg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card h4 {
    color: var(--text-primary);
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.portfolio-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.portfolio-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px) translateZ(0);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.portfolio-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tech-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9), rgba(118, 75, 162, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.portfolio-content p {
    margin-bottom: 1.5rem;
}

.portfolio-links .btn {
    margin: 0 0.5rem;
}

/* Contact Section */
.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: var(--transition), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form .form-control::placeholder {
    color: #999 !important;
    opacity: 1;
}

.contact-form .form-control::-webkit-input-placeholder {
    color: #999 !important;
}

.contact-form .form-control::-moz-placeholder {
    color: #999 !important;
    opacity: 1;
}

.contact-form .form-control:-ms-input-placeholder {
    color: #999 !important;
}

.contact-info {
    padding: 2rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-info h3 {
    color: var(--text-primary);
}

.contact-info a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-info a:hover,
.contact-info a:focus {
    color: var(--primary-color) !important;
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
    transition: background-color 0.3s ease;
}

[data-theme="light"] footer {
    background-color: var(--bg-secondary) !important;
}

[data-theme="light"] footer .text-white,
[data-theme="light"] .text-white,
[data-theme="light"] .navbar .text-white,
[data-theme="light"] .modal-content .text-white,
[data-theme="light"] .modal-title.text-white,
[data-theme="light"] .modal-body.text-white {
    color: var(--text-primary) !important;
}

[data-theme="light"] .modal-content.bg-dark {
    background-color: var(--bg-card) !important;
}

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

[data-theme="light"] .btn-close-white {
    filter: invert(1);
}

[data-theme="light"] .btn-close-white {
    opacity: 0.5;
}

[data-theme="light"] .btn-close-white:hover {
    opacity: 1;
}

/* Navbar toggler for light mode */
[data-theme="light"] .navbar-toggler {
    color: rgba(33, 37, 41, 0.9) !important;
}

/* Button fixes for light mode */
[data-theme="light"] .btn-outline-light {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="light"] .btn-outline-light:hover {
    background-color: var(--bg-secondary) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
    background: linear-gradient(135deg, #0b5ed7, #6a42a0);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }
    
    .profile-image-wrapper img {
        width: 300px;
        height: 300px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .profile-image-wrapper img {
        width: 250px;
        height: 250px;
    }
}

/* Modal Image Styling */
.modal-body img {
    width: 100%;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.modal-body img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.matrix-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#matrixCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #00ff41;
    font-family: 'Courier New', monospace;
}

.loading-text {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    letter-spacing: 0.5rem;
}

.loading-letter {
    display: inline-block;
    animation: letterGlow 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    will-change: transform, opacity;
    transform: translateZ(0);
}

.loading-letter:nth-child(1) { --i: 0; }
.loading-letter:nth-child(2) { --i: 1; }
.loading-letter:nth-child(3) { --i: 2; }
.loading-letter:nth-child(4) { --i: 3; }
.loading-letter:nth-child(5) { --i: 4; }
.loading-letter:nth-child(6) { --i: 5; }
.loading-letter:nth-child(7) { --i: 6; }

.loading-dots {
    display: inline-block;
    margin-left: 0.5rem;
}

.loading-dots .dot {
    display: inline-block;
    animation: dotPulse 1.4s ease-in-out infinite;
    animation-delay: calc(var(--dot-i) * 0.2s);
}

.loading-dots .dot:nth-child(1) { --dot-i: 0; }
.loading-dots .dot:nth-child(2) { --dot-i: 1; }
.loading-dots .dot:nth-child(3) { --dot-i: 2; }

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes letterGlow {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    }
    50% {
        opacity: 0.5;
        transform: translateY(-10px);
        text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41, 0 0 15px #00ff41;
    }
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 255, 65, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00cc33);
    width: 0%;
    animation: progressLoad 2s ease-in-out forwards;
    box-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41;
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .loading-text {
        font-size: 2rem;
        letter-spacing: 0.3rem;
    }
    
    .loading-progress {
        width: 250px;
    }
}

/* Modal Form Styles */
.modal-content .form-control,
.modal-content .form-select {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25) !important;
}

.modal-content .form-control::placeholder {
    color: var(--text-secondary) !important;
    opacity: 0.7;
}

.modal-content .form-label {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-content .form-check-label {
    color: var(--text-primary);
}

.modal-content .form-check-input {
    background-color: var(--bg-card);
    border-color: var(--border-color);
}

.modal-content .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
