/* ============================================
   CUSTOM STYLES FOR FUTURISTIC PORTFOLIO
   ============================================ */

:root {
    --primary-color: #00d4ff;
    --secondary-color: #ff00ff;
    --dark-color: #0a0e27;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --border-glow: rgba(0, 212, 255, 0.3);
    
    /* Dark mode colors */
    --bg-dark: #0a0e27;
    --bg-dark-secondary: #1a1f3a;
    --text-on-dark: #e0e0e0;
}

/* Dark Mode */
html.dark-mode {
    --text-dark: #e0e0e0;
    --light-color: #1a1f3a;
    --bg-dark: #0a0e27;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'Courier New', monospace;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
    color: var(--text-dark);
    overflow-x: hidden;
}

html.dark-mode body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1f3a 100%);
    color: var(--text-on-dark);
}

/* ============================================
   NAVBAR - FUTURISTIC GLOW EFFECT
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1030;
}

html.dark-mode .navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-link {
    position: relative;
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

html.dark-mode .nav-link {
    color: var(--text-on-dark) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}

html.dark-mode .dark-mode-toggle {
    color: var(--text-on-dark);
}

.dark-mode-toggle:hover {
    transform: rotate(20deg) scale(1.2);
}

/* ============================================
   HERO SECTION - GLOWING ANIMATION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

html.dark-mode .hero-section {
    background-color: var(--bg-dark) !important;
    background-image: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(255, 0, 255, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

html.dark-mode .hero-section.bg-light {
    background-color: var(--bg-dark) !important;
    background-image: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(255, 0, 255, 0.15) 100%) !important;
}

.hero-section h1 {
    color: var(--text-dark);
    font-weight: 800;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #000000, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    animation: glow 3s ease-in-out infinite;
}

html.dark-mode .hero-section h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.2rem;
    color: #333;
}

html.dark-mode .hero-section p {
    color: #e0e0e0 !important;
}

.hero-section .lead {
    color: #333 !important;
}

html.dark-mode .hero-section .lead {
    color: #e0e0e0 !important;
}

.placeholder-img {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 0, 255, 0.3)) !important;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), inset 0 0 40px rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 15px;
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   TIMELINE - NEON DESIGN
   ============================================ */
.timeline-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.02) 0%, rgba(255, 0, 255, 0.02) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 4rem 0;
}

html.dark-mode .timeline-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 0, 255, 0.05) 100%);
}

.timeline-item::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px var(--primary-color);
    animation: pulse-glow 2s ease-in-out infinite;
}

.timeline-content {
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), inset 0 0 10px rgba(0, 212, 255, 0.05);
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    padding-left: 1.5rem !important;
    position: relative;
    overflow: hidden;
}

html.dark-mode .timeline-content {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

html.dark-mode .timeline-content.bg-light {
    background-color: rgba(0, 212, 255, 0.1) !important;
    background-image: none !important;
}

html.dark-mode .timeline-content h5 {
    color: #e0e0e0 !important;
}

html.dark-mode .timeline-content p {
    color: #e0e0e0 !important;
}

html.dark-mode .timeline-content strong {
    color: #e0e0e0 !important;
}

html.dark-mode .text-muted {
    color: #b0b0b0 !important;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* ============================================
   CARDS - GLASSMORPHISM + GLOW
   ============================================ */
.card {
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

html.dark-mode .card {
    background: rgba(26, 31, 58, 0.9);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.6);
}

html.dark-mode .card:hover {
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4), 0 0 40px rgba(0, 212, 255, 0.3);
}

.card-img-top {
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    position: relative;
}

.card-body {
    position: relative;
    z-index: 1;
}

/* ============================================
   BUTTONS - FUTURISTIC GLOWING
   ============================================ */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0099cc);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), inset 0 0 10px rgba(0, 212, 255, 0.2);
    color: var(--dark-color) !important;
    border: 1px solid rgba(0, 212, 255, 0.6);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.6), inset 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.btn-outline-secondary {
    color: var(--text-dark) !important;
    border: 2px solid var(--text-dark);
}

html.dark-mode .btn-outline-secondary {
    color: var(--text-on-dark) !important;
    border: 2px solid var(--text-on-dark);
}

/* ============================================
   BADGES - NEON COLORS
   ============================================ */
.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 255, 0.2)) !important;
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--text-dark) !important;
}

html.dark-mode .badge {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 0, 255, 0.3)) !important;
    border: 1px solid rgba(0, 212, 255, 0.6);
    color: var(--text-on-dark) !important;
}

.badge-job {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.3), rgba(40, 167, 69, 0.1)) !important;
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #1a5030 !important;
}

html.dark-mode .badge-job {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.4), rgba(40, 167, 69, 0.2)) !important;
    color: #52ff52 !important;
}

.badge-education {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.1)) !important;
    border: 1px solid rgba(0, 123, 255, 0.5);
    color: #003d99 !important;
}

html.dark-mode .badge-education {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.4), rgba(0, 123, 255, 0.2)) !important;
    color: #7cd9ff !important;
}

.badge-achievement {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.1)) !important;
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #b38600 !important;
}

html.dark-mode .badge-achievement {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(255, 193, 7, 0.2)) !important;
    color: #ffeb99 !important;
}

.badge-secondary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 255, 0.2)) !important;
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: var(--text-dark) !important;
}

html.dark-mode .badge-secondary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(255, 0, 255, 0.3)) !important;
    color: var(--text-on-dark) !important;
}

/* ============================================
   CTA SECTION - GRADIENT NEON
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.4);
    border-top: 1px solid rgba(0, 212, 255, 0.4);
    border-bottom: 1px solid rgba(255, 0, 255, 0.4);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
}

.cta-section h2 {
    color: white;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(135deg, #f8f9fa, #f0f0f0);
    color: #333;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 3rem;
}

html.dark-mode footer {
    background: linear-gradient(135deg, #0a0e27, #1a1f3a);
    color: #e0e0e0;
}

footer p {
    color: #333;
    font-weight: 500;
}

html.dark-mode footer p {
    color: #e0e0e0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--primary-color);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8), 0 0 30px rgba(0, 212, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px var(--primary-color), inset 0 0 10px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), inset 0 0 20px var(--primary-color);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shine {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .timeline-content, .hero-section {
    animation: fadeIn 0.6s ease;
}

/* ============================================
   TEXT ELEMENTS - DARK MODE FIX
   ============================================ */
p {
    color: var(--text-dark);
}

html.dark-mode p {
    color: var(--text-on-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

html.dark-mode h1,
html.dark-mode h2,
html.dark-mode h3,
html.dark-mode h4,
html.dark-mode h5,
html.dark-mode h6 {
    color: var(--text-on-dark);
}

strong, b {
    color: var(--text-dark);
}

html.dark-mode strong,
html.dark-mode b {
    color: var(--text-on-dark);
}

small {
    color: var(--text-dark);
}

html.dark-mode small {
    color: #c0c0c0;
}

.card-body {
    color: var(--text-dark);
}

html.dark-mode .card-body {
    color: var(--text-on-dark);
}

footer {
    color: #ffffff;
}

html.dark-mode footer {
    color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .placeholder-img {
        margin-top: 2rem;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

