/* ============================================================================
   INTERACTIVE FEATURES STYLES - DOM MANIPULATION ENHANCEMENTS
   ============================================================================ */

/* Theme Toggle Button */
#theme-toggle,
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 50px;
    height: 28px;
    margin-left: 15px;
}

#theme-toggle:hover,
.theme-toggle-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

#theme-toggle::before,
.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #00ff88;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
    z-index: 1;
}

#theme-toggle:hover::before,
.theme-toggle-btn:hover::before {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
}

/* Theme toggle icons */
.sun-icon, .moon-icon {
    font-size: 10px;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.sun-icon {
    color: #ffd700;
    opacity: 0.6;
}

.moon-icon {
    color: #87ceeb;
    opacity: 1;
}

/* Light theme adjustments */
.light-theme #theme-toggle::before {
    left: calc(100% - 22px);
    background: #3498db;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.light-theme .sun-icon {
    opacity: 1;
}

.light-theme .moon-icon {
    opacity: 0.6;
}

/* Mobile Menu Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #00ff88;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.mobile-active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
        opacity: 0;
        transform: translateX(50px);
        animation: slideInRight 0.5s ease forwards;
    }
    
    .nav-menu.mobile-active li {
        animation-delay: calc(var(--delay, 0) * 0.1s);
    }
    
    .nav-menu li:nth-child(1) { --delay: 1; }
    .nav-menu li:nth-child(2) { --delay: 2; }
    .nav-menu li:nth-child(3) { --delay: 3; }
    .nav-menu li:nth-child(4) { --delay: 4; }
    
    .nav-link {
        font-size: 24px;
        padding: 15px 30px;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Form Validation Styles */
.form-group input.error,
.form-group textarea.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    animation: shake 0.5s ease;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.error-message {
    position: absolute;
    bottom: -20px;
    left: 0;
    color: #ff4757;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background: rgba(46, 213, 115, 0.2);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
}

.form-message.error {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.form-message.info {
    background: rgba(0, 153, 255, 0.2);
    border: 1px solid rgba(0, 153, 255, 0.3);
    color: #0099ff;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Project Filtering Styles */
.project-filters {
    margin-bottom: 40px;
    text-align: center;
}

.project-filters h3 {
    color: #00ff88;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.filter-btn.active {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

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

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

/* Animation Classes */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.skill-bar,
.project-card,
.form-group {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

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

/* Light Theme Styles */
.light-theme {
    background: #f8f9fa;
    color: #2c3e50;
}

.light-theme body::before {
    opacity: 0.05;
}

.light-theme .matrix-container {
    opacity: 0.3;
}

.light-theme .navbar {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(20px);
}

.light-theme .nav-link {
    color: #2c3e50;
}

.light-theme .nav-link:hover {
    color: #3498db;
}

.light-theme .nav-link.active {
    color: #3498db;
}

.light-theme .section {
    background: rgba(248, 249, 250, 0.8);
}

.light-theme .project-card {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(52, 152, 219, 0.2);
}

.light-theme .form-group input,
.light-theme .form-group textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

.light-theme .theme-toggle-btn,
.light-theme .filter-btn {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.light-theme .filter-btn.active {
    background: rgba(52, 152, 219, 0.3);
    border-color: #3498db;
    color: #2c3e50;
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .theme-toggle-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .theme-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-filters {
        margin-bottom: 30px;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .filter-btn {
        width: 200px;
        max-width: 90%;
    }
}

/* Enhanced Focus States for Accessibility */
.theme-toggle-btn:focus,
.hamburger-btn:focus,
.filter-btn:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

.light-theme .theme-toggle-btn:focus,
.light-theme .filter-btn:focus,
.light-theme .form-group input:focus,
.light-theme .form-group textarea:focus {
    outline-color: #3498db;
}

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

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

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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

.light-theme ::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.3);
}

.light-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.5);
}

/* ============================================================================
   ENHANCED FEATURES STYLES
   ============================================================================ */

/* Project Carousel Styles */
.project-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.project-carousel .project-card {
    flex: 0 0 100%;
    margin: 0 10px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.carousel-btn:hover {
    background: rgba(0, 255, 136, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: -25px;
}

.carousel-next {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.scroll-indicator .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #0099ff);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: -35px;
    right: 0;
    font-size: 12px;
    color: #00ff88;
    transition: color 0.3s ease;
}

/* Success Notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(46, 213, 115, 0.95);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(46, 213, 115, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1002;
    max-width: 350px;
}

.success-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.notification-content i {
    font-size: 24px;
    margin-top: 5px;
}

.notification-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.notification-content p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Keyboard Shortcuts */
.keyboard-shortcuts {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.shortcuts-toggle {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00ff88;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.shortcuts-toggle:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
}

.shortcuts-menu {
    position: absolute;
    bottom: 60px;
    left: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 20px;
    min-width: 200px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.shortcuts-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.shortcuts-menu h4 {
    color: #00ff88;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.shortcuts-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.shortcuts-menu li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    color: #ffffff;
    font-size: 14px;
}

.shortcuts-menu kbd {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Fira Code', monospace;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .carousel-prev {
        left: -15px;
    }
    
    .carousel-next {
        right: -15px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .keyboard-shortcuts {
        bottom: 10px;
        left: 10px;
    }
    
    .shortcuts-toggle span {
        display: none;
    }
}

@media (max-width: 480px) {
    .project-carousel .project-card {
        margin: 0 5px;
    }
    
    .carousel-indicators {
        margin-top: 15px;
    }
    
    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Light Theme Enhancements */
.light-theme .carousel-btn {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.light-theme .carousel-btn:hover {
    background: rgba(52, 152, 219, 0.3);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.light-theme .carousel-indicator {
    border-color: rgba(52, 152, 219, 0.3);
}

.light-theme .carousel-indicator.active {
    background: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.light-theme .scroll-indicator .progress-bar {
    background: linear-gradient(90deg, #3498db, #2980b9);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.light-theme .shortcuts-toggle {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.light-theme .shortcuts-menu {
    background: rgba(248, 249, 250, 0.95);
    border-color: rgba(52, 152, 219, 0.3);
}

.light-theme .shortcuts-menu h4 {
    color: #3498db;
}

.light-theme .shortcuts-menu li {
    color: #2c3e50;
}

.light-theme .shortcuts-menu kbd {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .carousel-wrapper,
    .carousel-btn,
    .success-notification,
    .shortcuts-menu {
        transition: none;
    }
    
    .scroll-indicator .progress-bar {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .carousel-btn {
        border-width: 2px;
    }
    
    .carousel-indicator {
        border-width: 3px;
    }
    
    .shortcuts-toggle {
        border-width: 2px;
    }
}

/* Focus Indicators for Better Accessibility */
.carousel-btn:focus,
.carousel-indicator:focus,
.shortcuts-toggle:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

.light-theme .carousel-btn:focus,
.light-theme .carousel-indicator:focus,
.light-theme .shortcuts-toggle:focus {
    outline-color: #3498db;
}

/* ============================================================================
   ADVANCED INTERACTIVE FEATURES
   ============================================================================ */

/* Particle Background Effect */
.particle-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -5;
}

.particle {
    position: absolute;
    background: rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Section Indicators */
.section-indicators {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.3);
    border: 2px solid rgba(0, 255, 136, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.section-indicator:hover {
    background: rgba(0, 255, 136, 0.6);
    transform: scale(1.2);
}

.section-indicator.active {
    background: #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.7);
    transform: scale(1.3);
}

.section-indicator::before {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.section-indicator:hover::before {
    opacity: 1;
}

/* ============================================================================
   CONTACT FORM FIXES - Override conflicting styles
   ============================================================================ */

/* Reset and fix form styles */
.contact-form .form-group {
    position: relative !important;
    margin-bottom: 30px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-form .form-group label {
    position: static !important;
    display: block !important;
    margin-bottom: 8px !important;
    color: #00ff88 !important;
    font-family: 'Fira Code', monospace !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    background: none !important;
    padding: 0 !important;
    transform: none !important;
    transition: color 0.3s ease !important;
    pointer-events: auto !important;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100% !important;
    padding: 15px 20px !important;
    background: rgba(0, 255, 136, 0.05) !important;
    border: 2px solid rgba(0, 255, 136, 0.2) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-family: 'Arial', sans-serif !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic !important;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: #00ff88 !important;
    background: rgba(0, 255, 136, 0.1) !important;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3) !important;
    transform: translateY(-2px) !important;
}

.contact-form .form-group input:focus + label,
.contact-form .form-group textarea:focus + label {
    color: #00ff88 !important;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5) !important;
}

.contact-form .form-group textarea {
    min-height: 120px !important;
    resize: vertical !important;
    font-family: 'Arial', sans-serif !important;
}

/* Input border animation */
.contact-form .input-border {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #00ff88, transparent) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
    border-radius: 1px !important;
}

.contact-form .form-group input:focus ~ .input-border,
.contact-form .form-group textarea:focus ~ .input-border {
    transform: scaleX(1) !important;
}

/* Submit button enhancement */
.contact-form .cta-btn {
    width: 100% !important;
    padding: 18px 30px !important;
    background: linear-gradient(45deg, #00ff88, #00cc70) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #0a0e1a !important;
    font-family: 'Fira Code', monospace !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.contact-form .cta-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4) !important;
    background: linear-gradient(45deg, #00cc70, #00ff88) !important;
}

.contact-form .cta-btn:active {
    transform: translateY(-1px) !important;
}

.contact-form .btn-text {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
}

/* Light theme adjustments */
.light-theme .contact-form .form-group label {
    color: #3498db !important;
}

.light-theme .contact-form .form-group input,
.light-theme .contact-form .form-group textarea {
    background: rgba(52, 152, 219, 0.05) !important;
    border-color: rgba(52, 152, 219, 0.3) !important;
    color: #2c3e50 !important;
}

.light-theme .contact-form .form-group input:focus,
.light-theme .contact-form .form-group textarea:focus {
    border-color: #3498db !important;
    background: rgba(52, 152, 219, 0.1) !important;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.3) !important;
}

.light-theme .contact-form .input-border {
    background: linear-gradient(90deg, transparent, #3498db, transparent) !important;
}

.light-theme .contact-form .cta-btn {
    background: linear-gradient(45deg, #3498db, #2980b9) !important;
    color: #ffffff !important;
}

.light-theme .contact-form .cta-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db) !important;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-form .form-group {
        margin-bottom: 25px !important;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 12px 16px !important;
        font-size: 16px !important;
    }
    
    .contact-form .cta-btn {
        padding: 15px 25px !important;
        font-size: 14px !important;
    }
}

/* Theme Transition Effect */
.theme-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #00ff88;
    color: #0a0e1a;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Keyboard Navigation Enhancements */
.keyboard-nav *:focus {
    outline: 2px solid #00ff88 !important;
    outline-offset: 2px !important;
}

.light-theme .keyboard-nav *:focus {
    outline-color: #3498db !important;
}

/* Enhanced Hover Effects for Projects */
.project-card {
    transition: all 0.3s ease;
    transform-origin: center;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.2);
}

.project-card:hover .tech-tag {
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

.tech-tag {
    transition: all 0.3s ease;
}

/* Skill Bar Enhancements */
.skill-bar {
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-bar:hover .progress-fill {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    transform: scaleY(1.2);
}

.progress-fill {
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    border-top-color: #00ff88;
    animation: spin 1s ease-in-out infinite;
}

/* Contact Form Enhancements */
#message {
    transition: border-color 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .section-indicators {
        right: 10px;
        gap: 10px;
    }
    
    .section-indicator {
        width: 10px;
        height: 10px;
    }
    
    .section-indicator::before {
        display: none;
    }
    
    .particle-background {
        display: none; /* Disable particles on mobile for performance */
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-indicator {
        border-width: 3px;
    }
    
    .section-indicator.active {
        background: #ffffff;
        border-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .particle,
    .section-indicator,
    .project-card,
    .skill-bar,
    .progress-fill,
    .tech-tag {
        animation: none !important;
        transition: none !important;
    }
    
    .project-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .section-indicators,
    .theme-toggle-btn,
    .hamburger-btn,
    .particle-background,
    .theme-transition {
        display: none !important;
    }
}

/* Light Theme Enhancements */
.light-theme .section-indicator {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.light-theme .section-indicator.active {
    background: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.7);
}

.light-theme .particle {
    background: rgba(52, 152, 219, 0.3);
}

.light-theme .theme-transition {
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
}

.light-theme .skip-link {
    background: #3498db;
    color: #ffffff;
}

.light-theme .project-card:hover {
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
}

.light-theme .project-card:hover .tech-tag {
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.light-theme .skill-bar:hover .progress-fill {
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.8);
}

.light-theme .loading-spinner {
    border-color: rgba(52, 152, 219, 0.3);
    border-top-color: #3498db;
}

/* Form Label Enhancements for Light Theme */
.light-theme .form-group label {
    color: rgba(44, 62, 80, 0.7);
}

.light-theme .form-group input:focus + label,
.light-theme .form-group textarea:focus + label {
    color: #3498db;
    background: rgba(248, 249, 250, 0.9);
}

/* ============================================================================
   ENHANCED CONTACT SECTION STYLES
   ============================================================================ */

/* Contact details section */
.contact-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.contact-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    animation: scanLine 3s infinite;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.2);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #00ff88;
    width: 30px;
    text-align: center;
    animation: pulse 2s infinite;
}

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

.contact-text h4 {
    color: #00ff88;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-text p {
    color: #ffffff;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.contact-link {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.contact-link:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ff88;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* Professional summary styling */
.professional-summary {
    margin: 30px 0;
    padding: 25px;
    background: rgba(0, 255, 136, 0.03);
    border-left: 3px solid #00ff88;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.professional-summary::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 3rem;
    color: #00ff88;
    opacity: 0.3;
    font-family: 'EB Garamond', serif;
}

.professional-summary p {
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
}

.professional-summary p:last-child {
    margin-bottom: 0;
}

/* Enhanced social links with tooltips */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.social-link i {
    font-size: 1.2rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.social-link:hover i {
    color: #ffffff;
    transform: scale(1.2);
}

/* Social tooltips */
.social-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #00ff88;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.9);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Specific social link colors */
.email-link:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.linkedin-link:hover {
    border-color: #0077b5;
    background: rgba(0, 119, 181, 0.2);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.3);
}

.github-link:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.2);
    box-shadow: 0 10px 25px rgba(51, 51, 51, 0.3);
}

.twitter-link:hover {
    border-color: #1da1f2;
    background: rgba(29, 161, 242, 0.2);
    box-shadow: 0 10px 25px rgba(29, 161, 242, 0.3);
}

.discord-link:hover {
    border-color: #7289da;
    background: rgba(114, 137, 218, 0.2);
    box-shadow: 0 10px 25px rgba(114, 137, 218, 0.3);
}

.phone-link:hover {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.2);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

/* Light theme adjustments */
.light-theme .contact-details {
    background: rgba(52, 152, 219, 0.05);
    border-color: rgba(52, 152, 219, 0.1);
}

.light-theme .contact-item {
    background: rgba(52, 152, 219, 0.03);
}

.light-theme .contact-item:hover {
    background: rgba(52, 152, 219, 0.08);
    border-color: rgba(52, 152, 219, 0.2);
}

.light-theme .contact-item i {
    color: #3498db;
}

.light-theme .contact-text h4 {
    color: #3498db;
}

.light-theme .contact-text p {
    color: #2c3e50;
}

.light-theme .contact-link {
    color: #3498db;
}

.light-theme .contact-link:hover {
    color: #2c3e50;
    text-shadow: 0 0 10px #3498db;
}

.light-theme .professional-summary {
    background: rgba(52, 152, 219, 0.03);
    border-left-color: #3498db;
}

.light-theme .professional-summary::before {
    color: #3498db;
}

.light-theme .professional-summary p {
    color: #2c3e50;
}

.light-theme .social-link {
    background: rgba(52, 152, 219, 0.1);
    border-color: rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.light-theme .social-link:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.light-theme .social-tooltip {
    color: #3498db;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .contact-details {
        padding: 20px;
        gap: 15px;
    }
    
    .contact-item {
        padding: 12px;
        gap: 12px;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    .professional-summary {
        padding: 20px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-link i {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   ABOUT SECTION VISIBILITY FIXES
   ============================================================================ */

/* Ensure About Section is Visible - Override any conflicts */
#about {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 2 !important;
    min-height: 600px !important;
}

#about .container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 3 !important;
}

#about .section-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 4 !important;
}

.about-grid {
    display: grid !important;
    grid-template-columns: 1fr 2fr !important;
    gap: 40px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 4 !important;
    position: relative !important;
}

.profile-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
    position: relative !important;
    background: rgba(0, 255, 136, 0.05) !important;
    border: 1px solid rgba(0, 255, 136, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px !important;
    overflow: visible !important;
}

.profile-card h3 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #00ff88 !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
}

.profile-card p {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    font-size: 1rem !important;
}

.skills-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
    position: relative !important;
}

.skills-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 6 !important;
}

.skill-category {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 7 !important;
    background: rgba(0, 255, 136, 0.05) !important;
    border: 1px solid rgba(0, 255, 136, 0.1) !important;
    border-radius: 10px !important;
    padding: 25px !important;
    position: relative !important;
    overflow: visible !important;
}

.skill-category h4 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #00ff88 !important;
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
}

.skill-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-bottom: 20px !important;
    z-index: 8 !important;
    position: relative !important;
}

.skill-name {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.skill-name span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
}

.skill-percentage {
    color: #00ff88 !important;
    font-weight: bold !important;
}

.progress-bar {
    display: block !important;
    width: 100% !important;
    height: 8px !important;
    background: rgba(0, 255, 136, 0.1) !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.progress-fill {
    display: block !important;
    height: 100% !important;
    background: linear-gradient(90deg, #00ff88, #00cc70) !important;
    border-radius: 4px !important;
    width: 0% !important;
    transition: width 2s ease-out !important;
    position: relative !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.progress-glow {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    animation: progressShine 2s infinite !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Light Theme About Section */
.light-theme .profile-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(52, 152, 219, 0.2) !important;
}

.light-theme .skill-category {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(52, 152, 219, 0.1) !important;
}

.light-theme .skill-name,
.light-theme .skill-name span {
    color: #2c3e50 !important;
}

.light-theme .profile-card h3 {
    color: #3498db !important;
}

.light-theme .profile-card p {
    color: #2c3e50 !important;
}

.light-theme .skill-category h4 {
    color: #3498db !important;
}

.light-theme .skill-percentage {
    color: #3498db !important;
}

.light-theme .progress-bar {
    background: rgba(52, 152, 219, 0.1) !important;
}

.light-theme .progress-fill {
    background: linear-gradient(90deg, #3498db, #2980b9) !important;
}

/* Mobile Responsive About Section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .profile-card,
    .skill-category {
        padding: 20px !important;
    }
}

/* Debug visibility helper */
.debug-visible {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}
