/* ==========================================================================
   Custom Styles for Manjinder Singh Portfolio
   ========================================================================== */

/* Root Variables */
:root {
    /* Light Theme */
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* Light Theme Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-card: #ffffff;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-success: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-card: #1f2937;
    --border-color: #374151;
    --border-light: #4b5563;
    
    /* Dark theme shadows */
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

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

/* Morphing Loader */
.morph-loader {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: morph 2s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { 
        border-radius: 50%; 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; 
        transform: scale(1.1) rotate(90deg); 
    }
    50% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; 
        transform: scale(0.9) rotate(180deg); 
    }
    75% { 
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; 
        transform: scale(1.1) rotate(270deg); 
    }
}

/* Scroll Progress */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: transparent;
}

.scroll-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}

/* Navigation */
.navbar-custom {
    /* background-color: rgba(255, 255, 255, 0.95); */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

[data-theme="dark"] .navbar-custom {
    background-color: rgba(17, 24, 39, 0.95);
}

.navbar-scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

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

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

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    width: 50px;
    height: 30px;
    position: relative;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle i {
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .theme-toggle i:before {
    content: "\f186"; /* fa-moon */
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    z-index: -1;
}

[data-theme="dark"] .hero-bg {
    opacity: 0.1;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-secondary);
    opacity: 0.1;
    animation: blob 7s ease-in-out infinite;
    z-index: -1;
}

.hero-blob:nth-child(2) {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation-delay: 0s;
}

.hero-blob:nth-child(3) {
    top: 60%;
    right: 10%;
    width: 200px;
    height: 200px;
    animation-delay: 2s;
}

.hero-blob:nth-child(4) {
    bottom: 10%;
    left: 50%;
    width: 250px;
    height: 250px;
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% { 
        border-radius: 50%;
        transform: scale(1) rotate(0deg);
    }
    33% { 
        border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
        transform: scale(1.1) rotate(120deg);
    }
    66% { 
        border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%;
        transform: scale(0.9) rotate(240deg);
    }
}

.hero-avatar {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin: 0 auto 0.5rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-avatar:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.hero-avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-slow);
}

.hero-avatar:hover::before {
    left: 100%;
}

/* Background Utilities */
.bg-light-custom {
    background-color: var(--bg-secondary) !important;
}

.bg-secondary-custom {
    background-color: var(--bg-tertiary) !important;
}

/* Text Utilities */
.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Cards */
.card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

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

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 12px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all var(--transition-normal);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Form Controls */
.form-control-custom {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all var(--transition-normal);
    color: var(--text-primary);
    font-size: 1rem;
}

.form-control-custom:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    display: block;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Skills Progress */
.skill-progress {
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient-tertiary);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.skill-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

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

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
}

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

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

.project-overlay .btn {
    margin: 0 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.project-overlay .btn:hover {
    transform: scale(1.1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary);
    transition: all var(--transition-normal);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px var(--bg-primary);
}

/* Social Links */
.social-link {
    transition: all var(--transition-normal);
    padding: 0.5rem;
    border-radius: 8px;
}

.social-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    background: var(--bg-secondary);
}

/* Bounce Animation */
.bounce-animation {
    animation: bounce 2s infinite;
}

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

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Badge Styles */
.badge {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

.bg-secondary {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-avatar {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .hero-blob {
        display: none;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -17px;
        width: 12px;
        height: 12px;
    }
    
    .navbar-custom {
        padding: 0.5rem 0;
    }
    
    .project-image-container {
        height: 200px;
    }
}

@media (max-width: 576px) {
    /* .hero-section {
        padding: 1rem 0;
    } */
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .card-custom {
        margin-bottom: 1rem;
    }
    
    .btn-primary-custom,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar-custom,
    .loading-screen,
    .scroll-indicator,
    .hero-blob,
    .bounce-animation {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .card-custom {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-secondary: #ffffff;
    }
}


#hero-avatar{
    background: url(../img/profile-pic.png) no-repeat center /cover;
}




















/* Video Background Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Hero Video Styling */
.hero-video {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Video Overlay for Better Text Readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Dark mode video overlay */
[data-theme="dark"] .video-overlay {
    background: #040609bd;
}
[data-theme="dark"] .text-shd {
    color: #0d6efd;
    
    text-shadow:none;
}

/* Alternative overlay options - choose one */
.video-overlay-dark {
    background: rgba(0, 0, 0, 0.5);
}

.video-overlay-gradient {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.text-shd{
    /* text-shadow: 0px 2px 2px rgba(255, 0, 249, 0.4); */
    text-shadow: 0 1px 0 #ccc,
               0 2px 0 #c9c9c9,
               0 3px 0 #bbb,
               0 4px 0 #b9b9b9,
               0 5px 0 #aaa,
               0 6px 1px rgba(0,0,0,.1),
               0 0 5px rgba(0,0,0,.1),
               0 1px 3px rgba(0,0,0,.3),
               0 3px 5px rgba(0,0,0,.2),
               0 5px 10px rgba(0,0,0,.25),
               0 10px 10px rgba(0,0,0,.2),
               0 20px 20px rgba(0,0,0,.15);
    color: white;
}


.btn-secure-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    color: white;
    transition: all 0.3s ease;
}
.btn-secure-whatsapp:hover {
    background: linear-gradient(45deg, #128C7E, #25D366);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}











/* Fade-in reverse - goes back to invisible */
.fade-in-reverse {
    opacity: 0 !important;
    transform: translateY(50px) !important;
    transition: all 0.6s ease !important;
}

/* Slide-in-left reverse - goes back to the left */
.slide-in-left-reverse {
    opacity: 0 !important;
    transform: translateX(-100px) !important;
    transition: all 0.6s ease !important;
}

/* Slide-in-right reverse - goes back to the right */
.slide-in-right-reverse {
    opacity: 0 !important;
    transform: translateX(100px) !important;
    transition: all 0.6s ease !important;
}

/* Scale-in reverse - goes back to small */
.scale-in-reverse {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: all 0.6s ease !important;
}

/* Active states (these are your normal "in view" states) */
.fade-in-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease !important;
}

.slide-in-left-active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: all 0.6s ease !important;
}

.slide-in-right-active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: all 0.6s ease !important;
}

.scale-in-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.6s ease !important;
}




















.wrapper {
    display: inline-flex;
    list-style: none;
    height: 120px;
    width: 100%;
    padding-top: 40px;
    font-family: "Poppins", sans-serif;
    justify-content: center;
  }
  
  .wrapper .icon {
    position: relative;
    background: #fff;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  
  .wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .wrapper .icon:hover span,
  .wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
  }
  
  .wrapper .github:hover,
  .wrapper .github:hover .tooltip,
  .wrapper .github:hover .tooltip::before {
    background: #1877f2;
    color: #fff;
  }
  
  .wrapper .whatsapp:hover,
  .wrapper .whatsapp:hover .tooltip,
  .wrapper .whatsapp:hover .tooltip::before {
    background: #1da1f2;
    color: #fff;
  }
  
  .wrapper .email:hover,
  .wrapper .email:hover .tooltip,
  .wrapper .email:hover .tooltip::before {
    background: #e4405f;
    color: #fff;
  }