/* Custom styles for portfolio website */

/* Skip to main content link - hidden by default, visible on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
    color: white;
    text-decoration: none;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #e2e8f0;
    --border-color: rgba(99, 102, 241, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --secondary-color: #a78bfa;
    --accent-color: #22d3ee;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --dark-color: #f1f5f9;
    --light-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: rgba(203, 213, 225, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #22d3ee 100%);
    --gradient-secondary: linear-gradient(135deg, #34d399 0%, #22d3ee 100%);
    --gradient-warm: linear-gradient(135deg, #fbbf24 0%, #f87171 100%);
}

body {
    padding-top: 90px;
    /* Account for fixed navbar */
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modern Navbar */
.modern-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.modern-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.modern-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary) !important;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

.brand-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.modern-brand:hover .brand-icon {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.modern-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.modern-toggler:focus {
    box-shadow: none;
}

.toggler-line {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.modern-toggler:hover .toggler-line {
    background: var(--secondary-color);
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(2) {
    opacity: 0;
}

.modern-toggler[aria-expanded="true"] .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.modern-nav {
    gap: 1rem;
}

.modern-nav-link {
    position: relative;
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.modern-nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.05);
}

.nav-text {
    position: relative;
    z-index: 2;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.modern-nav-link.active .nav-indicator,
.modern-nav-link:hover .nav-indicator {
    width: 80%;
}

.modern-nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.08);
}

.navbar-actions {
    margin-left: 1rem;
}

.btn-modern-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-modern-primary::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 0.5s ease;
}

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

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}

@media (max-width: 991px) {
    .modern-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(99, 102, 241, 0.1);
    }

    .navbar-actions {
        margin-left: 0;
        margin-top: 1rem;
        text-align: center;
    }

    .modern-nav-link {
        text-align: center;
        margin: 0.25rem 0;
    }
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-content {
    z-index: 2;
}

.hero-text-animation {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.typing-text {
    position: relative;
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3s steps(20) 1s both, blink 1s infinite 4s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    50% {
        border-color: var(--accent-color);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-btn-primary {
    background: var(--gradient-warm);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
    background: var(--gradient-warm);
}

.hero-btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 13px 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Image Section */
.hero-image-container {
    animation: fadeInRight 1s ease-out 0.5s both;
}

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

.profile-image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    backdrop-filter: blur(20px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.profile-image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: floatIcon 4s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-icon-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.floating-icon-2 {
    bottom: 20%;
    left: 5%;
    animation-delay: 1s;
}

.floating-icon-3 {
    top: 30%;
    left: -10%;
    animation-delay: 2s;
}

.floating-icon-4 {
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(90deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }

    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-down {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    text-decoration: none;
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
}

.scroll-down:hover {
    color: var(--accent-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* About Image */
.about-image-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: fadeInScale 1s ease-out;
}

/* Image fallback styles */
img {
    max-width: 100%;
    height: auto;
}

img[src*=".svg"] {
    display: block;
}

/* Fallback for broken images */
img:not([src]),
img[src=""] {
    display: none;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Skills Section */
.skills-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 2rem auto;
    border-radius: 2px;
}

.skill-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.skill-card-inner {
    text-align: center;
}

.skill-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.skill-icon {
    font-size: 2rem;
    color: white;
}

.skill-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.skill-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-image-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder::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 0.5s ease;
}

.project-card:hover .project-image-placeholder::before {
    left: 100%;
}

.ecommerce-bg {
    background: var(--gradient-primary);
}

.api-bg {
    background: var(--gradient-warm);
}

.dashboard-bg {
    background: var(--gradient-secondary);
}

/* Project Tech Badges */
.project-tech-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.2rem;
    transition: all 0.3s ease;
}

.project-tech-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Project Cards */
.project-card {
    overflow: hidden;
}

.project-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

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

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Skills */
.skill-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

/* Footer */
.footer {
    margin-top: auto;
}

.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        margin-bottom: 2rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline-marker {
        left: -27px;
    }
}

/* Form styling */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Navbar brand */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Active navigation link */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

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

/* Section spacing for single page */
section {
    scroll-margin-top: 80px;
}

/* Badge styling */
.badge {
    font-size: 0.75em;
    padding: 0.5em 0.75em;
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 8px;
}

/* Loading animation for contact form */
.btn[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

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

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

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

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

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

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

/* Dark Mode Animation Fixes */
[data-theme="dark"] .fade-in-up:not(.animate) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

[data-theme="dark"] .fade-in-left:not(.animate) {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

[data-theme="dark"] .fade-in-right:not(.animate) {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

[data-theme="dark"] .fade-in-scale:not(.animate) {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .profile-image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .skill-icon {
        font-size: 1.5rem;
    }
}

/* Achievements Section */
.achievement-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

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

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.achievement-icon i {
    font-size: 2rem;
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 0.2);
}

/* Technical Expertise Section */
.tech-category-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.tech-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.tech-category-card .card-header {
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

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

.skill-info {
    font-weight: 500;
    color: var(--text-primary);
}

.skill-percentage {
    font-weight: 600;
    color: var(--primary-color);
}

.skill-progress {
    height: 8px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.skill-progress .progress-bar {
    border-radius: 10px;
    transition: width 2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.skill-progress .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

/* Typing Animation */
.typing-text {
    display: inline-block;
    min-height: 1.2em;
}

.typing-text .cursor {
    display: inline-block;
    background-color: var(--primary-color);
    margin-left: 3px;
    width: 3px;
    animation: blink 1s infinite;
}

.typing-text .txt {
    border-right: none;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.dark-mode-toggle:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Dark Mode Styles */
[data-theme="dark"] .modern-navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

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

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

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

/* Section Headings and Text */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .display-1,
[data-theme="dark"] .display-2,
[data-theme="dark"] .display-3,
[data-theme="dark"] .display-4,
[data-theme="dark"] .display-5,
[data-theme="dark"] .display-6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .lead {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] p {
    color: var(--text-secondary);
}

[data-theme="dark"] .card-title {
    color: var(--text-primary) !important;
}

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

[data-theme="dark"] .project-image-placeholder {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .achievement-icon {
    background: rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .achievement-card:hover .achievement-icon {
    background: rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .tech-category-card .card-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .skill-progress {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .form-control {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.25);
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Individual social media colors */
.social-link.linkedin {
    color: #e9ecef;
    border: 2px solid #0077b5;
}

.social-link.linkedin::before {
    background-color: #0077b5;
}

.social-link.github {
    color: #e9ecef;
    border: 2px solid #333;
}

.social-link.github::before {
    background-color: #333;
}

.social-link.twitter {
    color: #e9ecef;
    border: 2px solid #1da1f2;
}

.social-link.twitter::before {
    background-color: #1da1f2;
}

.social-link.email {
    color: #e9ecef;
    border: 2px solid #ea4335;
}

.social-link.email::before {
    background-color: #ea4335;
}

.social-link.whatsapp {
    color: #25d366;
    border: 2px solid #25d366;
}

.social-link.whatsapp::before {
    background-color: #25d366;
}

/* Dark mode social links */
[data-theme="dark"] .social-link.github {
    color: #f1f5f9;
    border-color: #f1f5f9;
}

[data-theme="dark"] .social-link.github::before {
    background-color: #f1f5f9;
}

/* Resume download button */
.resume-download .btn {
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.resume-download .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Animation Fix for animate-on-scroll */
[data-theme="dark"] .animate-on-scroll:not(.animate-in) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered animation delays */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.6s;
}

/* Enhanced hover effects */
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.tech-category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.1) !important;
}

/* Improved mobile responsiveness */
@media (max-width: 768px) {
    .social-links {
        gap: 0.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center !important;
    }

    .navbar-actions {
        gap: 1rem !important;
    }

    .dark-mode-toggle {
        width: 35px;
        height: 35px;
    }
}

/* Testimonials Section */
.testimonial-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

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

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar img {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

.testimonial-stars {
    font-size: 1.1rem;
}

.testimonial-quote {
    font-style: italic;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
    padding: 0 1rem;
}

.testimonial-quote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-quote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -30px;
    right: -10px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-author h6 {
    color: var(--text-primary);
    font-weight: 600;
}

/* Dark mode testimonials */
[data-theme="dark"] .testimonial-quote {
    color: var(--text-secondary);
}

/* Certifications Section */
.certification-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.certification-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
}

.certification-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.certification-badge i {
    font-size: 2.5rem;
}

.certification-card:hover .certification-badge {
    transform: scale(1.1) rotate(5deg);
    background: rgba(99, 102, 241, 0.2);
}

.certification-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.certification-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.certification-year {
    font-weight: 600;
}

.certification-skills .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

/* Custom badge colors */
.bg-purple {
    background-color: #8b5cf6 !important;
}

/* Dark mode certifications */
[data-theme="dark"] .certification-badge {
    background: rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .certification-card:hover .certification-badge {
    background: rgba(129, 140, 248, 0.2);
}

/* Project Filters */
.project-filters {
    margin-bottom: 2rem;
}

.filter-btn {
    margin: 0.25rem;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.project-item {
    transition: all 0.3s ease;
}

.project-item.filter-hide {
    opacity: 0;
    transform: scale(0.8);
}

.project-item.filter-show {
    opacity: 1;
    transform: scale(1);
}

/* Dark mode filters */
[data-theme="dark"] .filter-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Technology Timeline */
.tech-timeline {
    position: relative;
    padding: 2rem 0;
}

.tech-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 auto;
    z-index: 2;
    position: relative;
}

.year-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    position: relative;
}

.year-badge::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-item:nth-child(odd) .year-badge::before {
    right: -30px;
}

.timeline-item:nth-child(even) .year-badge::before {
    left: -30px;
}

.timeline-content {
    flex: 1;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-title {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.timeline-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    transform: scale(1.05);
}

/* Technology-specific colors */
.tech-badge.react {
    background: #61dafb;
    color: #000;
}

.tech-badge.dotnet {
    background: #512bd4;
}

.tech-badge.azure {
    background: #0078d4;
}

.tech-badge.signalr {
    background: #ff6b6b;
}

.tech-badge.typescript {
    background: #3178c6;
}

.tech-badge.docker {
    background: #2496ed;
}

.tech-badge.git {
    background: #f05032;
}

.tech-badge.nopcommerce {
    background: #28a745;
}

.tech-badge.javascript {
    background: #f7df1e;
    color: #000;
}

.tech-badge.bootstrap {
    background: #7952b3;
}

.tech-badge.ef {
    background: #512bd4;
}

.tech-badge.sql {
    background: #cc2927;
}

.tech-badge.html {
    background: #e34f26;
}

.tech-badge.csharp {
    background: #239120;
}

.tech-badge.jquery {
    background: #0769ad;
}

.tech-badge.iis {
    background: #005a9f;
}

.tech-badge.vb {
    background: #945db7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .tech-timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-year {
        position: absolute;
        left: 0;
    }

    .year-badge::before {
        left: -30px !important;
        right: auto !important;
    }

    .timeline-content {
        margin: 0;
        margin-left: 1rem;
    }
}

/* Multi-Step Form */
.form-progress {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-bar-container {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

.step-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-navigation {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.form-navigation .btn {
    min-width: 120px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-navigation .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form validation styles */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2310b981' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.66 9.12z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23ef4444'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode form styles */
[data-theme="dark"] .step-number {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .step.active .step-number {
    background-color: var(--primary-color);
    color: white;
}

[data-theme="dark"] .progress-bar-container {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .form-navigation {
    border-top-color: var(--border-color);
}

/* Mobile responsiveness for form */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .progress-steps::before {
        display: none;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }

    .step-number {
        margin-bottom: 0;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
    }
}

/* GitHub Integration */
.github-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
}

.github-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.github-avatar img {
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.github-card:hover .github-avatar img {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.github-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.repos-list {
    max-height: 400px;
    overflow-y: auto;
}

.repo-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color) !important;
}

.repo-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.05);
}

.repo-name a {
    color: var(--text-primary);
    font-weight: 600;
}

.repo-name a:hover {
    color: var(--primary-color);
}

.repo-description {
    font-size: 0.9rem;
    line-height: 1.4;
}

.repo-meta {
    font-size: 0.8rem;
}

.contribution-stats {
    margin-bottom: 2rem;
}

.contribution-stat {
    padding: 1rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.contribution-stat:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.contribution-stat .stat-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.contribution-stat .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Dark mode GitHub styles */
[data-theme="dark"] .repo-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .repo-item:hover {
    background-color: rgba(129, 140, 248, 0.1);
    border-color: var(--primary-color) !important;
}

[data-theme="dark"] .contribution-stat {
    background: rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .contribution-stat:hover {
    background: rgba(129, 140, 248, 0.2);
}

/* Mobile responsiveness for GitHub section */
@media (max-width: 768px) {
    .github-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .repos-list {
        max-height: 300px;
    }

    .contribution-stat .stat-number {
        font-size: 1.5rem;
    }
}

/* Blog Section */
.blog-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

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

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.blog-card .card-title {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.blog-card .card-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.blog-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.blog-card .btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Dark mode blog styles */
[data-theme="dark"] .blog-meta {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .blog-card .card-title {
    color: var(--text-primary);
}

[data-theme="dark"] .blog-card .card-text {
    color: var(--text-secondary);
}

/* Case Studies Section */
.case-study-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

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

.case-study-card .card-header {
    border: none;
    padding: 1.5rem;
    font-weight: 600;
}

.case-study-overview p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.case-study-metrics {
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
}

.metric-item {
    padding: 0.5rem;
}

.metric-number {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.solution-list {
    list-style: none;
    padding-left: 0;
}

.solution-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack .badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Dark mode case studies */
[data-theme="dark"] .case-study-metrics {
    background: rgba(129, 140, 248, 0.1);
}

[data-theme="dark"] .solution-list li {
    color: var(--text-secondary);
}

/* Enhanced Dark Mode Styles for Better Readability */

/* Skills and Technical Expertise Section */
[data-theme="dark"] .skill-item h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-item p {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .skill-info {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-percentage {
    color: var(--primary-color) !important;
}

/* Timeline Section */
[data-theme="dark"] .timeline-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .timeline-description {
    color: var(--text-secondary) !important;
}

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

/* Hero Section */
[data-theme="dark"] .hero-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .hero-description {
    color: var(--text-secondary) !important;
}

/* About Section */
[data-theme="dark"] .about-section h3,
[data-theme="dark"] .about-section h4 {
    color: var(--text-primary) !important;
}

/* Certification Section */
[data-theme="dark"] .certification-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .certification-subtitle {
    color: var(--text-secondary) !important;
}

/* Achievement Section */
[data-theme="dark"] .achievement-card .card-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .achievement-card .card-text {
    color: var(--text-secondary) !important;
}

/* Testimonials Section */
[data-theme="dark"] .testimonial-author h6 {
    color: var(--text-primary) !important;
}

/* GitHub Section */
[data-theme="dark"] .github-card .card-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .stat-number {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .stat-label {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .repo-name a {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .repo-description {
    color: var(--text-secondary) !important;
}

/* Case Studies Section */
[data-theme="dark"] .case-study-overview h6,
[data-theme="dark"] .case-study-solution h6,
[data-theme="dark"] .case-study-tech h6 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .metric-number {
    color: inherit !important;
}

[data-theme="dark"] .metric-label {
    color: var(--text-secondary) !important;
}

/* Form Labels and Text */
[data-theme="dark"] .form-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .step-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .step-label {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .step.active .step-label {
    color: var(--primary-color) !important;
}

/* Navigation and Links */
[data-theme="dark"] .nav-text {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .brand-text {
    color: var(--text-primary) !important;
}

/* General Text Elements */
[data-theme="dark"] small {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-primary {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

/* Button Text */
[data-theme="dark"] .btn {
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* List Items */
[data-theme="dark"] li {
    color: var(--text-secondary);
}

/* Table Elements */
[data-theme="dark"] table {
    color: var(--text-primary);
}

[data-theme="dark"] th,
[data-theme="dark"] td {
    border-color: var(--border-color);
    color: var(--text-primary);
}

/* Additional Dark Mode Fixes for Specific Elements */

/* Ensure all section titles are visible */
[data-theme="dark"] section h1,
[data-theme="dark"] section h2,
[data-theme="dark"] section h3,
[data-theme="dark"] section h4,
[data-theme="dark"] section h5,
[data-theme="dark"] section h6 {
    color: var(--text-primary) !important;
}

/* Fix for any remaining text elements */
[data-theme="dark"] .container h1,
[data-theme="dark"] .container h2,
[data-theme="dark"] .container h3,
[data-theme="dark"] .container h4,
[data-theme="dark"] .container h5,
[data-theme="dark"] .container h6 {
    color: var(--text-primary) !important;
}

/* Ensure card headers are visible */
[data-theme="dark"] .card-header {
    background-color: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Fix for any Bootstrap text utilities */
[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

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

/* Ensure badges are readable */
[data-theme="dark"] .badge {
    color: white !important;
}

/* Fix for any remaining paragraph text */
[data-theme="dark"] .card-body p,
[data-theme="dark"] .container p,
[data-theme="dark"] section p {
    color: var(--text-secondary) !important;
}

/* Ensure all links are visible */
[data-theme="dark"] a {
    color: var(--primary-color);
}

[data-theme="dark"] a:hover {
    color: var(--accent-color);
}

/* Fix for any remaining list items */
[data-theme="dark"] ul li,
[data-theme="dark"] ol li {
    color: var(--text-secondary) !important;
}

/* Ensure form elements are properly styled */
[data-theme="dark"] .form-select {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.25);
}

/* Fix for any remaining text in specific sections */
[data-theme="dark"] #technical-expertise h2,
[data-theme="dark"] #technical-expertise h3,
[data-theme="dark"] #technical-expertise h4,
[data-theme="dark"] #technical-expertise h5,
[data-theme="dark"] #technical-expertise h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] #certifications h2,
[data-theme="dark"] #certifications h3,
[data-theme="dark"] #certifications h4,
[data-theme="dark"] #certifications h5,
[data-theme="dark"] #certifications h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] #achievements h2,
[data-theme="dark"] #achievements h3,
[data-theme="dark"] #achievements h4,
[data-theme="dark"] #achievements h5,
[data-theme="dark"] #achievements h6 {
    color: var(--text-primary) !important;
}

/* Ensure all text in cards is readable */
[data-theme="dark"] .card * {
    color: inherit;
}

[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6 {
    color: var(--text-primary) !important;
}

/* Final Dark Mode Enhancements for Maximum Readability */

/* Override any Bootstrap default colors that might interfere */
[data-theme="dark"] .text-body {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .fw-bold,
[data-theme="dark"] .font-weight-bold {
    color: var(--text-primary) !important;
}

/* Ensure all display headings are visible */
[data-theme="dark"] .display-1,
[data-theme="dark"] .display-2,
[data-theme="dark"] .display-3,
[data-theme="dark"] .display-4,
[data-theme="dark"] .display-5,
[data-theme="dark"] .display-6 {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

/* Make sure all section content is readable */
[data-theme="dark"] .section-content,
[data-theme="dark"] .section-text {
    color: var(--text-secondary) !important;
}

/* Ensure proper contrast for all interactive elements */
[data-theme="dark"] .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
}

/* Fix any remaining visibility issues */
[data-theme="dark"] * {
    border-color: var(--border-color);
}

/* Ensure proper text color inheritance */
[data-theme="dark"] .container,
[data-theme="dark"] .row,
[data-theme="dark"] .col,
[data-theme="dark"] .col-1,
[data-theme="dark"] .col-2,
[data-theme="dark"] .col-3,
[data-theme="dark"] .col-4,
[data-theme="dark"] .col-5,
[data-theme="dark"] .col-6,
[data-theme="dark"] .col-7,
[data-theme="dark"] .col-8,
[data-theme="dark"] .col-9,
[data-theme="dark"] .col-10,
[data-theme="dark"] .col-11,
[data-theme="dark"] .col-12,
[data-theme="dark"] .col-sm,
[data-theme="dark"] .col-md,
[data-theme="dark"] .col-lg,
[data-theme="dark"] .col-xl {
    color: inherit;
}

/* Specific fixes for common Bootstrap classes */
[data-theme="dark"] .mb-3,
[data-theme="dark"] .mb-4,
[data-theme="dark"] .mb-5,
[data-theme="dark"] .mt-3,
[data-theme="dark"] .mt-4,
[data-theme="dark"] .mt-5 {
    color: inherit;
}

/* Ensure all headings in sections are properly colored */
[data-theme="dark"] section .display-5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] section .lead {
    color: var(--text-secondary) !important;
}

/* Specific Fixes for Core Competencies and Technical Expertise Sections */

/* Core Competencies Section - Fix skill-item text visibility */
[data-theme="dark"] .skill-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-item h5 {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .skill-item p {
    color: var(--text-secondary) !important;
    opacity: 0.9 !important;
}

/* Technical Expertise Section - Fix tech-category-card content */
[data-theme="dark"] .tech-category-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .tech-category-card .card-body {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-meter {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-info {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-info .skill-name {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
}

[data-theme="dark"] .skill-percentage {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

/* Fix skill progress bars background */
[data-theme="dark"] .skill-progress {
    background-color: rgba(203, 213, 225, 0.2) !important;
}

[data-theme="dark"] .skill-progress .progress-bar {
    background: var(--gradient-primary) !important;
}

/* About Me section text fixes */
[data-theme="dark"] .about-section {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .about-section h2,
[data-theme="dark"] .about-section h3,
[data-theme="dark"] .about-section h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .about-section p {
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

/* Experience Highlights section */
[data-theme="dark"] .experience-item {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .experience-item h4,
[data-theme="dark"] .experience-item h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .experience-item p,
[data-theme="dark"] .experience-item small {
    color: var(--text-secondary) !important;
}

/* Section headers and titles */
[data-theme="dark"] .section-title {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-secondary) !important;
}

/* Fix any remaining white text on white background issues */
[data-theme="dark"] .text-white {
    color: var(--text-primary) !important;
}

/* Ensure proper contrast for all card elements */
[data-theme="dark"] .card .card-body * {
    color: inherit !important;
}

[data-theme="dark"] .card .card-body h1,
[data-theme="dark"] .card .card-body h2,
[data-theme="dark"] .card .card-body h3,
[data-theme="dark"] .card .card-body h4,
[data-theme="dark"] .card .card-body h5,
[data-theme="dark"] .card .card-body h6 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .card .card-body p,
[data-theme="dark"] .card .card-body span,
[data-theme="dark"] .card .card-body div {
    color: var(--text-secondary) !important;
}

/* Additional Specific Fixes for Screenshot Issues */

/* Fix the light gray text that's barely visible */
[data-theme="dark"] .text-light {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Ensure all skill descriptions are visible */
[data-theme="dark"] .skill-item h5 i {
    opacity: 1 !important;
}

/* Fix any remaining faded text */
[data-theme="dark"] * {
    opacity: 1 !important;
}

[data-theme="dark"] .fade {
    opacity: 1 !important;
}

/* Override any Bootstrap fading classes */
[data-theme="dark"] .fade-in,
[data-theme="dark"] .fade-in-up,
[data-theme="dark"] .fade-out {
    opacity: 1 !important;
}

/* Ensure proper visibility for all text elements */
[data-theme="dark"] .container * {
    color: inherit;
}

[data-theme="dark"] .container h1,
[data-theme="dark"] .container h2,
[data-theme="dark"] .container h3,
[data-theme="dark"] .container h4,
[data-theme="dark"] .container h5,
[data-theme="dark"] .container h6 {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .container p,
[data-theme="dark"] .container span,
[data-theme="dark"] .container div {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Force visibility for skill items specifically */
[data-theme="dark"] .skill-item * {
    opacity: 1 !important;
}

/* Fix for any remaining invisible text */
[data-theme="dark"] .col-md-6 .skill-item h5,
[data-theme="dark"] .col-md-6 .skill-item p {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .col-md-6 .skill-item p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Ensure icons are visible */
[data-theme="dark"] .skill-item i {
    opacity: 1 !important;
}

/* Fix for the About Me section background and text */
[data-theme="dark"] #about {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] #about * {
    color: inherit !important;
}

[data-theme="dark"] #about h2,
[data-theme="dark"] #about h3,
[data-theme="dark"] #about h4 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] #about p {
    color: var(--text-secondary) !important;
}

/* Fix for Core Competencies section specifically */
[data-theme="dark"] #skills .skill-item h5 {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}

[data-theme="dark"] #skills .skill-item p {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Fix for Technical Expertise section specifically */
[data-theme="dark"] #technical-expertise .skill-info {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

[data-theme="dark"] #technical-expertise .skill-name {
    color: var(--text-primary) !important;
    opacity: 1 !important;
}

/* Remove any transparency that might be causing issues */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
    opacity: 1 !important;
}

/* Ultimate Dark Mode Text Visibility Fix */
[data-theme="dark"] .section-header,
[data-theme="dark"] .section-header *,
[data-theme="dark"] .section-title,
[data-theme="dark"] .section-subtitle {
    opacity: 1 !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-secondary) !important;
}

/* Force all text elements to be visible */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] .card-title,
[data-theme="dark"] .card-text {
    opacity: 1 !important;
}

/* Specific fix for skill items that are still invisible */
[data-theme="dark"] .row .col-md-6 .skill-item,
[data-theme="dark"] .row .col-md-6 .skill-item *,
[data-theme="dark"] .skill-item,
[data-theme="dark"] .skill-item * {
    opacity: 1 !important;
    color: inherit !important;
}

[data-theme="dark"] .skill-item h5 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .skill-item p {
    color: var(--text-secondary) !important;
}

/* Override any remaining animation opacity */
[data-theme="dark"] [class*="fade"],
[data-theme="dark"] [class*="animate"] {
    opacity: 1 !important;
}

/* Ensure all Bootstrap text utilities work in dark mode */
[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

[data-theme="dark"] .lead {
    color: var(--text-secondary) !important;
    opacity: 1 !important;
}

/* Final catch-all for any remaining invisible text */
[data-theme="dark"] * {
    opacity: 1 !important;
}

/* But preserve intentional transparency for decorative elements */
[data-theme="dark"] .testimonial-quote::before,
[data-theme="dark"] .testimonial-quote::after {
    opacity: 0.3 !important;
}

[data-theme="dark"] .hero-background::before {
    opacity: 0.3 !important;
}

[data-theme="dark"] .btn[type="submit"]:disabled {
    opacity: 0.6 !important;
}

[data-theme="dark"] .project-item.filter-hide {
    opacity: 0 !important;
}