/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-sizing: border-box;
}

/* Root Variables */
:root {
    --primary-color: #007bff;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --gradient-primary: linear-gradient(135deg, #007bff 0%, #00bcd4 100%);
    --gradient-accent: linear-gradient(45deg, #ff5733, #ff8c33);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Dark Theme Variables */
[data-bs-theme="dark"] {
    --primary-color: #0d6efd;
    --text-color: #ffffff;
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --border-color: #404040;
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #00bcd4 100%);
    --gradient-accent: linear-gradient(45deg, #ff8c33, #ff5733);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Body Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Container Styles */
.container {
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Hero Section Styles */
.hero {
    background: transparent;
    color: var(--text-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: block;
}

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

@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 1;
    }

    .hero-image {
        order: 0;
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .profile-image {
        width: 250px;
        height: 250px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Ensure content sits above particles */
main,
section,
header,
nav {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background: linear-gradient(45deg, #ff5733, #ff8c33);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.3);
    transition: all 0.3s ease;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 87, 51, 0.4);
    background: linear-gradient(45deg, #ff8c33, #ff5733);
}

/* Dark theme adjustments */
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero p {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero p {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about {
    background: var(--bg-light);
    padding: 100px 0;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

#skills {
    background-color: var(--bg-color);
    padding: 100px 0;
}

#skills h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
}

#skills h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.skill-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-item:hover::after {
    transform: scaleX(1);
}

.skill-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-item:hover i {
    transform: scale(1.1);
    color: var(--accent-hover);
}

.skill-item p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Project Section */
.project {
    background: var(--bg-light);
    padding: 100px 0;
}

.project h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.project p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.project .btn {
    margin-top: 1.5rem;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
    padding: 100px 0;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(45deg, #ff5733, #ff8c33);
}

.contact form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact .form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact input,
.contact textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    color: var(--text-color);
}

.contact input:focus,
.contact textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.contact button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer Section */
footer {
    background: linear-gradient(135deg, #36454F 0%, #2c3e50 100%);
    color: white;
    text-align: center;
    padding: 30px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    /* Ensure footer is above other page elements */
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23ffffff10" x="0" y="0" width="100" height="100"/></svg>');
    opacity: 0.1;
    z-index: 0;
    /* Background pattern behind content */
}

footer .container {
    position: relative;
    z-index: 1;
    /* Content above background pattern */
}

footer p {
    color: white !important;
    margin-bottom: 0;
}

.projects-section {
    padding: 50px;
    text-align: center;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Project cards are now defined in projects.css to avoid conflicts */

/* Image Modal Styles moved to projects.css to avoid conflicts */

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

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

/* Main Header */
.main-header {
    background-color: #36454F;
    /* Dark background color */
    color: white;
    /* White text color */
    padding: 20px;
    /* Padding around the header */
    display: flex;
    justify-content: space-between;
    /* Align items to space out */
    align-items: center;
    /* Center items vertically */
    position: sticky;
    /* Make the header sticky when scrolling */
    top: 0;
    /* Position at the top of the page */
    z-index: 1000;
    /* Ensure it stays above other elements */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    /* Subtle shadow for depth */
}


/* Navigation Menu */
.main-header nav ul {
    list-style: none;
    /* Remove bullet points */
    display: flex;
    /* Arrange items horizontally */
    margin: 0;
    /* Reset default margin */
    padding: 0;
    /* Reset default padding */

}

.main-header nav ul li {
    display: inline;
    margin-right: 20px;
}

.main-header nav ul li a {
    color: white;
    /* White text for links */
    text-decoration: none;
    /* Remove underline */
    font-size: 18px;
    /* Adjust font size */
    font-weight: bold;
    /* Make the text bold */
    transition: color 0.3s ease;
    /* Smooth transition on hover */
}

.main-header nav ul li a:hover {
    color: #ff5733;
    /* Highlight color on hover */
}

/* Logo */
.main-header .logo {
    font-size: 24px;
    /* Larger font size for the logo */
    font-weight: bold;
    /* Bold font */
    color: #ff5733;
    /* Highlight color for the logo */
    text-decoration: none;
    /* Remove underline */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-top: 76px;
    }

    .hero {
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 10px;
        padding: 0 10px;
    }

    .skill-item {
        margin: 0;
        padding: 1rem;
    }

    .skill-item i {
        font-size: 2.5rem;
    }

    .skill-item p {
        font-size: 1rem;
    }

    .project,
    .contact,
    #skills,
    #skills-progress {
        padding: 30px 10px;
    }

    .contact form {
        padding: 1.5rem;
    }

    .contact input,
    .contact textarea {
        padding: 0.8rem;
    }

    .contact button {
        padding: 0.8rem;
    }

    .learn-more-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Fix for mobile menu spacing */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        padding: 1rem;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 0.8rem 1rem !important;
        margin: 0.3rem 0;
    }

    .theme-toggle {
        margin-left: 0;
        /* Remove left margin in mobile menu */
        margin-top: 10px;
        /* Add some space above the button */
        width: 100%;
        /* Full width for easier tapping */
        min-height: 44px;
        /* Minimum touch target size for mobile */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        pointer-events: auto;
        /* Ensure touch events work */
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1);
        /* Visual feedback on tap */
        touch-action: manipulation;
        /* Prevent double-tap zoom */
        position: relative;
        /* Ensure proper stacking */
        z-index: auto;
        /* Reset z-index to prevent interference */
    }
}

/* Fix for scroll spacing */
html {
    scroll-padding-top: 76px;
}

section {
    scroll-margin-top: 76px;
}

/* Ensure proper spacing for fixed navbar */
main {
    padding-top: 0;
}

/* Fix for mobile viewport height */
@media (max-width: 768px) {
    .hero {
        min-height: calc(100vh - 76px);
    }

    section {
        padding: 50px 0;
    }
}

/* Fix for iOS viewport height */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 4px;
}

/* Skills Progress Section */
#skills-progress {
    background-color: var(--bg-color);
    padding: 100px 0;
}

.skill-progress-item {
    margin-bottom: 2rem;
}

.skill-progress-item span {
    font-weight: 500;
    font-size: 1.1rem;
}

.progress {
    height: 18px;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 100%);
    border-radius: 14px;
    margin-top: 0.5rem;
    overflow: hidden;
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.3),
        0 5px 10px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 255, 255, 0.15);
    position: relative;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.25);
    transform-style: preserve-3d;
    perspective: 1000px;
    clip-path: polygon(0% 0%,
            100% 0%,
            98% 50%,
            100% 100%,
            0% 100%,
            2% 50%);
}

.progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg,
            transparent,
            rgba(0, 255, 255, 0.2),
            transparent),
        radial-gradient(circle at center,
            rgba(0, 255, 255, 0.15) 0%,
            transparent 70%);
    animation: borderShine 4s ease-in-out infinite;
    mix-blend-mode: screen;
}

.progress-bar {
    background: linear-gradient(90deg,
            #00FFFF 0%,
            #00BFFF 20%,
            #0080FF 40%,
            #0040FF 60%,
            #00BFFF 80%,
            #00FFFF 100%);
    background-size: 200% 100%;
    border-radius: 14px;
    transition: all 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: gradientMove 4s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.7),
        inset 0 0 30px rgba(0, 255, 255, 0.5),
        0 0 0 1px rgba(0, 255, 255, 0.4);
    transform: translateZ(0);
}

/* Enhanced Neural Network Pattern */
.progress-bar .neural-network {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, transparent 49%, rgba(0, 255, 255, 0.15) 50%, transparent 51%, transparent 100%),
        linear-gradient(0deg, transparent 0%, transparent 49%, rgba(0, 255, 255, 0.15) 50%, transparent 51%, transparent 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    animation: neuralPulse 4s ease-in-out infinite;
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* Enhanced Circuit Pattern */
.progress-bar .circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
        linear-gradient(45deg, transparent 0%, transparent 49%, rgba(0, 255, 255, 0.15) 50%, transparent 51%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, transparent 49%, rgba(0, 255, 255, 0.15) 50%, transparent 51%, transparent 100%);
    background-size: 30px 30px, 30px 30px, 30px 30px;
    animation: circuitFlow 6s linear infinite;
    opacity: 0.3;
    mix-blend-mode: screen;
}

/* Enhanced Data Flow Particles */
.progress-bar .data-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.progress-bar .data-particles::before,
.progress-bar .data-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 255, 255, 0.95);
    border-radius: 50%;
    animation: dataFlow 3s ease-in-out infinite;
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.9),
        0 0 50px rgba(0, 255, 255, 0.5);
}

.progress-bar .data-particles::after {
    animation-delay: 1.5s;
    width: 3px;
    height: 3px;
}

/* Binary Code Effect */
.progress-bar .binary-code {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg,
            rgba(0, 255, 255, 0.1) 0%,
            transparent 20%,
            rgba(0, 255, 255, 0.1) 40%,
            transparent 60%,
            rgba(0, 255, 255, 0.1) 80%,
            transparent 100%);
    background-size: 200% 100%;
    animation: binaryFlow 4s linear infinite;
    opacity: 0.2;
    mix-blend-mode: screen;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(1.5);
    }

    50% {
        background-position: 100% 50%;
        filter: hue-rotate(30deg) saturate(1.7);
    }

    100% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) saturate(1.5);
    }
}

@keyframes neuralPulse {
    0% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1) rotate(180deg);
    }

    100% {
        opacity: 0.3;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes circuitFlow {
    0% {
        background-position: 0 0;
        opacity: 0.2;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        background-position: 30px 30px;
        opacity: 0.2;
    }
}

@keyframes dataFlow {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    25% {
        opacity: 1;
        transform: translateY(-25px) translateX(5px) scale(1.2);
    }

    50% {
        transform: translateY(-50px) translateX(10px) scale(1);
    }

    75% {
        opacity: 1;
        transform: translateY(-75px) translateX(15px) scale(0.8);
    }

    100% {
        transform: translateY(-100px) translateX(20px) scale(1);
        opacity: 0;
    }
}

@keyframes binaryFlow {
    0% {
        background-position: 0% 0%;
    }

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

/* Enhanced Dark Theme */
[data-theme="dark"] .progress {
    background: linear-gradient(180deg,
            rgba(0, 255, 255, 0.15) 0%,
            rgba(0, 255, 255, 0.08) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow:
        inset 0 4px 8px rgba(0, 0, 0, 0.5),
        0 5px 10px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 255, 255, 0.2);
}

[data-theme="dark"] .progress-bar {
    background: linear-gradient(90deg,
            #00FFFF 0%,
            #00BFFF 20%,
            #0080FF 40%,
            #0040FF 60%,
            #00BFFF 80%,
            #00FFFF 100%);
    box-shadow:
        0 0 35px rgba(0, 255, 255, 0.8),
        inset 0 0 35px rgba(0, 255, 255, 0.5),
        0 0 0 1px rgba(0, 255, 255, 0.3);
}

/* Enhanced Hover Effect */
.progress:hover .progress-bar {
    filter: brightness(1.5) contrast(1.4);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.9),
        inset 0 0 35px rgba(0, 255, 255, 0.7),
        0 0 0 1px rgba(0, 255, 255, 0.5);
    transform: translateZ(15px);
}

/* Enhanced Active State */
.progress-bar.active {
    animation:
        aiPulse 3s ease-in-out infinite,
        gradientMove 4s ease-in-out infinite;
}

@keyframes aiPulse {
    0% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.7),
            inset 0 0 30px rgba(0, 255, 255, 0.5),
            0 0 0 1px rgba(0, 255, 255, 0.4);
    }

    50% {
        box-shadow:
            0 0 40px rgba(0, 255, 255, 0.9),
            inset 0 0 35px rgba(0, 255, 255, 0.7),
            0 0 0 1px rgba(0, 255, 255, 0.5);
    }

    100% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.7),
            inset 0 0 30px rgba(0, 255, 255, 0.5),
            0 0 0 1px rgba(0, 255, 255, 0.4);
    }
}

/* Enhanced Success State */
.progress.success .progress-bar {
    animation: aiSuccess 3s ease-in-out infinite;
}

@keyframes aiSuccess {
    0% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.7),
            inset 0 0 30px rgba(0, 255, 255, 0.5),
            0 0 0 1px rgba(0, 255, 255, 0.4);
    }

    50% {
        box-shadow:
            0 0 40px rgba(0, 255, 255, 0.9),
            inset 0 0 35px rgba(0, 255, 255, 0.7),
            0 0 0 1px rgba(0, 255, 255, 0.5);
    }

    100% {
        box-shadow:
            0 0 30px rgba(0, 255, 255, 0.7),
            inset 0 0 30px rgba(0, 255, 255, 0.5),
            0 0 0 1px rgba(0, 255, 255, 0.4);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .progress {
        height: 16px;
    }

    .progress-bar {
        box-shadow:
            0 0 25px rgba(0, 255, 255, 0.7),
            inset 0 0 25px rgba(0, 255, 255, 0.5),
            0 0 0 1px rgba(0, 255, 255, 0.4);
    }
}

/* Button States */
.btn-primary {
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary.disabled {
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

/* Learn More Button Container */
.learn-more-container {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.learn-more-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    background-color: #ffffff;
    color: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.learn-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 87, 51, 0.3);
}

.learn-more-btn.disabled {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

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

/* Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

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

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

/* Theme Toggle */
.theme-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: #404040;
}

[data-theme="dark"] body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

/* Skills Visualization */
.skills-details {
    padding: 20px;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h4 {
    margin-bottom: 15px;
    color: var(--text-color);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.skill-item i {
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.skill-item span {
    min-width: 100px;
}

.progress {
    flex-grow: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, #007bff, #00bcd4);
    transition: width 1s ease-in-out;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

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

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    right: -8px;
    top: 15px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding: 10px 25px 10px 70px;
        /* Adjusted padding for single column */
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 23px;
        right: auto;
        /* Ensure dot is on the left */
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Apply theme variables */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

.card,
.timeline-content,
.skill-item {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

/* Theme Toggle Button is now handled in common.css */
/* Navbar styles are handled in common.css to avoid conflicts */

/* Project Filter Buttons */
.filter-btn {
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: var(--border-color);
    color: var(--text-color);
}

/* Code Window Styles */
.code-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e1e1e;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.3),
        0 0 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.code-window.active {
    opacity: 1;
    visibility: visible;
}

.code-window-header {
    background: #2d2d2d;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    flex-shrink: 0;
}

.code-window-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.code-window-title i {
    color: #00ffff;
}

.code-window-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: all 0.3s ease;
}

.code-window-close:hover {
    color: #00ffff;
    transform: rotate(90deg);
}

.code-window-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.code-block {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d4d4d4;
    position: relative;
    overflow-x: auto;
    white-space: pre;
    word-wrap: normal;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.code-block .keyword {
    color: #569cd6;
}

.code-block .string {
    color: #ce9178;
}

.code-block .comment {
    color: #6a9955;
}

.code-block .function {
    color: #dcdcaa;
}

.code-block .class {
    color: #4ec9b0;
}

.code-block .number {
    color: #b5cea8;
}

.code-block .operator {
    color: #d4d4d4;
}

.code-block .line-numbers {
    color: #858585;
    margin-right: 15px;
    -webkit-user-select: none;
    user-select: none;
}

/* Overlay */
.code-window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.code-window-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Make skill items clickable */
.skill-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Animation for code window */
@keyframes codeWindowAppear {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .code-window {
        width: 95%;
        max-height: 90vh;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        position: fixed;
        z-index: 9999;
    }

    .code-window.active {
        opacity: 1;
        visibility: visible;
    }

    .code-window-content {
        padding: 15px;
        overflow-y: auto;
    }

    .code-block {
        font-size: 0.8rem;
        padding: 15px;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    .code-window-header {
        padding: 12px 15px;
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
    .code-window {
        max-height: 85vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
    }

    .code-window-content {
        overflow-y: auto;
    }

    .code-window.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    color: white;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Featured Projects Section */
.featured-projects {
    padding: 4rem 0;
    background: var(--bg-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-content {
    transform: translateY(0);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: var(--card-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-content {
    position: relative;
    padding: 1rem 0;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
}

.testimonial-content p {
    color: var(--text-color);
    font-style: italic;
    margin: 0;
    padding-left: 2.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-color);
    opacity: 0.8;
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
}

/* Blog Preview Section */
.blog-preview {
    padding: 4rem 0;
    background: var(--bg-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.blog-excerpt {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    text-decoration: underline;
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 0;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Responsive Adjustments */
@media (max-width: 768px) {

    .stats-grid,
    .featured-grid,
    .testimonial-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-button {
        width: 100%;
    }

    .featured-content {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
    }
}

/* Contact Section */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    font-size: 1.2rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.8rem;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Project card responsive styles are now in projects.css */

    .contact-form {
        margin-top: 2rem;
    }

    .tech-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Call to Action Section */
#cta {
    padding: 4rem 0;
    background: var(--bg-color);
}

#cta h2 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

#cta .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 12px;
}

#cta .btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

#cta .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

#cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

#cta .btn i {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    #cta {
        padding: 3rem 0;
    }

    #cta .btn {
        margin-bottom: 1rem;
    }
}

/* Core Competencies Section */
.competency-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.competency-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

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

.competency-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.competency-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.competency-list li {
    color: var(--text-color);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.competency-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Achievements Section */
.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.achievement-content {
    flex-grow: 1;
}

.achievement-content h3 {
    color: var(--text-color);
    margin: 0 0 0.5rem;
    font-size: 1.3rem;
}

.achievement-content p {
    color: var(--text-color);
    opacity: 0.9;
    margin: 0 0 0.5rem;
}

.achievement-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .competency-card,
    .testimonial-card,
    .achievement-card {
        padding: 1.5rem;
    }

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

    .testimonial-content i {
        font-size: 1.5rem;
    }

    .achievement-card {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .competency-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .achievement-card {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animation for Cards */
.competency-card,
.testimonial-card,
.achievement-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

/* Enhanced Reviews Section Styles */
.top-comment-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.top-comment-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;
}

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

.top-comment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

/* Enhanced Rating Stars */
.rating-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.rating-stars i {
    font-size: 1.5rem;
    color: #ffc107;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: starPulse 2s infinite;
}

.rating-stars i:hover {
    transform: scale(1.2) rotate(15deg);
    color: #ff8c00;
}

.rating-stars i:nth-child(1) {
    animation-delay: 0s;
}

.rating-stars i:nth-child(2) {
    animation-delay: 0.2s;
}

.rating-stars i:nth-child(3) {
    animation-delay: 0.4s;
}

.rating-stars i:nth-child(4) {
    animation-delay: 0.6s;
}

.rating-stars i:nth-child(5) {
    animation-delay: 0.8s;
}

/* Enhanced Comment Content */
.comment-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.comment-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    position: relative;
    padding: 1rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.comment-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    opacity: 0.3;
}

.comment-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    bottom: -1.5rem;
    right: 0.5rem;
    opacity: 0.3;
}

/* Enhanced Author Info */
.comment-author {
    text-align: center;
    margin-bottom: 1.5rem;
}

.author-info {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.author-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.author-info h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.author-info small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Enhanced View All Comments Button */
.view-all-comments {
    text-align: center;
}

.view-all-comments .btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.view-all-comments .btn::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;
}

.view-all-comments .btn:hover::before {
    left: 100%;
}

.view-all-comments .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Reviews Navigation */
.reviews-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.review-counter {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: var(--text-color);
    font-weight: 600;
}

/* Hide navigation by default */
#reviewsNavigation {
    display: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Review Animation Classes */
.review-slide-in {
    animation: slideInReview 0.6s ease-out forwards;
}

.review-slide-out {
    animation: slideOutReview 0.4s ease-in forwards;
}

.review-fade-in {
    animation: fadeInReview 0.8s ease-out forwards;
}

.review-scale-in {
    animation: scaleInReview 0.5s ease-out forwards;
}

.review-bounce-in {
    animation: bounceInReview 0.7s ease-out forwards;
}

/* Review Stats Animations */
.stat-item {
    animation: statItemAppear 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-item:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Review Navigation Animations */
.nav-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Review Counter Animation */
.review-counter {
    animation: counterPulse 0.5s ease-out;
}

/* Share Button Animation */
.share-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.4);
}

.share-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Add Review Button Animation */
.add-review-btn {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.add-review-btn::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;
}

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

.add-review-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 87, 51, 0.4);
}

.add-review-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.nav-btn {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Reviews Stats */
.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Share Button */
.share-btn {
    background: var(--gradient-accent);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Share Dropdown Styles */
.share-dropdown {
    background: rgba(94, 94, 94, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-hover);
    padding: 0.5rem;
    min-width: 200px;
    animation: fadeInUp 0.3s ease-out;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #333333;
}

[data-theme="dark"] .share-dropdown {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--border-color);
    color: #ffffff;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-weight: 500;
    border: 1px solid transparent;
}

.share-option:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.share-option i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.share-option span {
    font-size: 0.9rem;
}

/* Social Media Specific Colors */
.share-option[data-action="twitter"]:hover {
    background: #000000;
    color: white;
}

.share-option[data-action="facebook"]:hover {
    background: #1877F2;
    color: white;
}

.share-option[data-action="linkedin"]:hover {
    background: #0A66C2;
    color: white;
}

.share-option[data-action="whatsapp"]:hover {
    background: #25D366;
    color: white;
}

.share-option[data-action="telegram"]:hover {
    background: #0088CC;
    color: white;
}

.share-option[data-action="copy"]:hover {
    background: #6C757D;
    color: white;
}

.share-option[data-action="email"]:hover {
    background: #EA4335;
    color: white;
}

/* Add Review Button */
.add-review-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Dark Theme Enhancements */
[data-theme="dark"] .top-comment-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .comment-text {
    background: rgba(13, 110, 253, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .top-comment-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .rating-stars i {
        font-size: 1.2rem;
    }

    .comment-text {
        font-size: 1rem;
        padding: 0.75rem;
    }

    .author-info {
        padding: 0.75rem 1.5rem;
    }

    .reviews-stats {
        gap: 1rem;
    }

    .stat-item {
        padding: 0.75rem;
        min-width: 120px;
    }

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

    .reviews-navigation {
        gap: 0.5rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Mobile Share Dropdown */
    .share-dropdown {
        min-width: 180px;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin-top: 0;
        width: 90vw;
        max-width: 300px;
        position: fixed !important;
        top: 50% !important;
        z-index: 10000;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);

    }

    .share-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .share-option i {
        font-size: 1rem;
    }

    /* Mobile Notifications */
    .notification {
        right: 10px !important;
        left: 10px !important;
        max-width: calc(100% - 20px) !important;
        top: 10px !important;
    }
}

/* Enhanced Animations */
@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

/* Loading Animation */
.reviews-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Review Animation Keyframes */
@keyframes slideInReview {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }

    50% {
        opacity: 0.7;
        transform: translateX(20px) scale(0.95);
    }

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

@keyframes slideOutReview {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(-100px) scale(0.9);
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

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

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

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

@keyframes fadeInReview {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: translateY(15px) scale(0.9);
    }

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

@keyframes scaleInReview {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.8) rotate(-2deg);
    }

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

@keyframes bounceInReview {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05) translateY(10px);
    }

    70% {
        opacity: 0.9;
        transform: scale(0.9) translateY(-5px);
    }

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

@keyframes statItemAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }

    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.9);
    }

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

@keyframes counterPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

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

.counter-pulse {
    animation: counterPulse 0.5s ease-out;
}

/* =========================================
   New Enhancements Styles
   ========================================= */

/* Typing Effect */
.typing-text {
    color: var(--primary-color);
    font-weight: bold;
}

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Social Links in Hero */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.8rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }
}

/* Services Cards */
.service-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

/* Social Links in Footer */
footer {
    position: relative;
    z-index: 10;
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon-footer {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-icon-footer:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
}

/* Fix for Typing Effect Layout Shift */
.hero-text h1 {
    min-height: 3.6rem;
    line-height: 1.2;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-accent);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Glassmorphism Cards */
.card,
.service-card,
.project-card,
.skill-item,
.testimonial-card {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .service-card,
[data-bs-theme="dark"] .project-card,
[data-bs-theme="dark"] .skill-item,
[data-bs-theme="dark"] .testimonial-card {
    background: rgba(45, 45, 45, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Page Transition */
body {
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

body.fade-out {
    opacity: 0;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 70px;
        right: 20px;
    }
}

/* =========================================
   1. Cinematic Preloader
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--gradient-accent);
    animation: loadProgress 2s ease-in-out forwards;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

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

/* =========================================
   2. Advanced Glass Navbar
   ========================================= */
.navbar {
    transition: all 0.3s ease;
    background: transparent !important;
    /* Force transparent initially */
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar.scrolled {
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nav Item Hover Effect (Glowing Underline) */
.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    position: relative;
    padding: 5px 0 !important;
    margin: 0 15px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* =========================================
   3. Scroll to Top Button
   ========================================= */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 90px;
    /* Left of WhatsApp button */
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================================
   4. Scroll Reveal Animations
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for multiple items */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Override Navbar Link Color to Orange */
.navbar-nav .nav-link {
    color: #ff5733 !important;
    /* Orange accent */
    font-weight: 600;
}

/* =========================================
   Mobile Optimization Logic
   ========================================= */
@media (max-width: 768px) {

    /* Navbar text adjustment */
    .navbar-brand {
        font-size: 1.2rem;
    }

    /* Reduce spacing around section headers */
    section h2 {
        font-size: 2rem;
        margin-bottom: 30px !important;
    }

    /* Fix Skill Chart Height Gap */
    .chart-container {
        height: 250px !important;
        /* Force shorter container on mobile */
        margin-bottom: 20px;
    }

    /* Technical Expertise Spacing */
    .skills-details h3 {
        margin-top: 0;
        font-size: 1.5rem;
    }

    /* Reduce margins globally for sections */
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

/* =========================================
   Fix Constraints for WhatsApp & Icons
   ========================================= */
.whatsapp-float {
    text-decoration: none !important;
    z-index: 100000 !important;
    /* Ensure on top of everything */
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.whatsapp-float i {
    line-height: 0;
    /* Reset line height for icon centering */
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 30px !important;
        /* Align with scroll button */
        right: 20px !important;
    }

    #scrollTopBtn {
        right: 80px !important;
        /* Move next to WhatsApp */
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* =========================================
   Fix Typing Effect Color
   ========================================= */
.typing-text {
    color: var(--primary-color) !important;
}

.cursor {
    color: var(--primary-color) !important;
}

/* Ensure mobile overrides don't break it */
@media (max-width: 768px) {

    .typing-text,
    .cursor {
        color: var(--primary-color) !important;
    }
}

/* =========================================
   Mobile Gap Fixes (High Priority)
   ========================================= */
@media (max-width: 768px) {

    /* Hide chart on mobile to save space - chart takes too much space */
    #skills-visualization .col-md-6:first-child {
        display: none !important;
    }

    /* Make skills details full width on mobile */
    #skills-visualization .col-md-6:last-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Force reduce gap below "Skills Overview" title */
    #skills-visualization h2.mb-5,
    #skills-visualization h2 {
        margin-bottom: 15px !important;
        padding-bottom: 0 !important;
        font-size: 1.75rem !important;
    }

    /* Ensure no extra padding on the row */
    #skills-visualization .row {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Reduce chart container height dramatically */
    .chart-container {
        height: 0px !important;
        margin: 0 !important;
        padding: 0 !important;
        display: none !important;
    }

    /* Reduce section padding */
    #skills-visualization {
        padding: 30px 10px !important;
    }

    /* Reduce skills-details spacing */
    .skills-details {
        padding: 10px !important;
        margin: 0 !important;
    }

    .skills-details h3 {
        font-size: 1.3rem !important;
        margin-bottom: 10px !important;
        margin-top: 0 !important;
    }

    .skill-category {
        margin-bottom: 15px !important;
    }

    .skill-category h4 {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }

    .skill-items {
        gap: 10px !important;
    }
}

/* =========================================
   Fix Scroll Top Button Visibility
   ========================================= */
#scrollTopBtn {
    display: flex !important;
    /* Ensure it's not hidden by reset */
    z-index: 100002 !important;
    /* Higher than WhatsApp */
    align-items: center;
    justify-content: center;
}

#scrollTopBtn i {
    line-height: 0;
}

/* =========================================
   Reposition Scroll Top Button (User Request)
   ========================================= */
#scrollTopBtn {
    left: 30px !important;
    right: auto !important;
    /* Unset right */
    bottom: 30px !important;
    z-index: 100002 !important;
}

@media (max-width: 768px) {
    #scrollTopBtn {
        left: 20px !important;
        right: auto !important;
        bottom: 30px !important;
    }
}

/* =========================================
   Final Scroll Button Fix (Left & Higher)
   ========================================= */
@media (max-width: 768px) {
    #scrollTopBtn {
        left: 20px !important;
        right: auto !important;
        bottom: 90px !important;
        /* Higher to avoid browser bars */
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        z-index: 200000 !important;
    }
}

/* =========================================
   Chart Container Base Styles
   ========================================= */
.chart-container {
    position: relative;
    width: 100%;
    height: 400px;
    /* Default Desktop Height */
}