/* Base Styles and Variables */
:root {
    --primary: #7928CA;
    --primary-light: #9644e0;
    --secondary: #00d9ff;
    --dark: #050508;
    --light: #e2e2e2;
    --gray: #777;
    --card-bg: rgba(30, 30, 40, 0.7);
    --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
    --glassmorphism: rgba(18, 18, 30, 0.7);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --transition: all 0.3s ease;
    --primary-color: #4e54c8;
    --primary-rgb: 78, 84, 200;
    --secondary-color: #8f94fb;
    --text-color: #e2e2e2;
    --text-light: #a0a0a0;
    --bg-color: #050508;
    --card-bg: #18181c;
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* For dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --text-light: #a0a0a0;
        --bg-color: #0a0a0a;
        --card-bg: #1a1a1a;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* --- Responsive Layout Improvements --- */

/* Container and Section Padding */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 5rem 0;
    position: relative;
    width: 100%;
}

/* Navbar Responsive */
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--light);
}

@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .about-container {
        flex-direction: column;
        gap: 2rem;
    }
    .about-img {
        max-width: 500px;
        margin: 0 auto;
    }
    .skill-item {
        width: calc(50% - 1rem);
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .timeline::after {
        left: 40px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hamburger {
        display: block;
        z-index: 1001;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 80px;
        z-index: 1000;
    }
    .nav-menu.active {
        right: 0;
    }
    .nav-item {
        margin: 2rem 0;
    }
    .skills-list {
        flex-direction: column;
        gap: 1rem;
    }
    .skill-item {
        width: 100%;
    }
    .projects-container,
    .blogs-container {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .education-container {
        grid-template-columns: 1fr;
    }
    .certifications-container {
        grid-template-columns: 1fr;
    }
    .tech-logos {
        gap: 1rem;
    }
    .timeline {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 0.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .btn,
    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    .footer-logo {
        font-size: 1.3rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-content {
        padding: 1rem;
    }
    .timeline-date {
        width: 90px;
        font-size: 0.8rem;
        right: 10px;
        top: -15px;
    }
    .timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        top: 10px;
    }
    .about-card,
    .education-card,
    .certification-card,
    .blog-card,
    .project-card {
        padding: 1rem;
    }
    .tech-logo {
        width: 60px;
        height: 60px;
    }
    .tech-logo i {
        font-size: 1.2rem !important;
    }
    .contact-form {
        padding: 1rem;
    }
    #form-success-message {
        min-width: 80px !important;
        padding: 0.7rem 1rem !important;
        font-size: 1rem !important;
    }
}

/* Touch-friendly controls */
input, textarea, button, select {
    font-size: 1rem;
    border-radius: 6px;
    min-height: 44px;
    touch-action: manipulation;
}

.btn, .btn-primary, .btn-outline {
    min-width: 120px;
    min-height: 44px;
    font-size: 1rem;
    border-radius: 8px;
}

.hamburger {
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 28px;
    height: 3px;
    margin: 3px 0;
}

/* Ensure grid/flex layouts wrap and space properly */
.projects-container,
.blogs-container,
.certifications-container,
.education-container,
.about-grid,
.about-stats,
.skills-list,
.tech-logos {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure scroll-down is visible and not clipped */
.scroll-down {
    bottom: 20px;
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

/* --- Existing Code --- */

/* Base Styles and Variables */
:root {
    --primary: #7928CA;
    --primary-light: #9644e0;
    --secondary: #00d9ff;
    --dark: #050508;
    --light: #e2e2e2;
    --gray: #777;
    --card-bg: rgba(30, 30, 40, 0.7);
    --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
    --glassmorphism: rgba(18, 18, 30, 0.7);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --transition: all 0.3s ease;
    --primary-color: #4e54c8;
    --primary-rgb: 78, 84, 200;
    --secondary-color: #8f94fb;
    --text-color: #e2e2e2;
    --text-light: #a0a0a0;
    --bg-color: #050508;
    --card-bg: #18181c;
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* For dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #ffffff;
        --text-light: #a0a0a0;
        --bg-color: #0a0a0a;
        --card-bg: #1a1a1a;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 5px;
}

.title-container {
    text-align: center;
    margin-bottom: 3rem;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.3;
    perspective: 1000px;
    pointer-events: none;
}

.bg-animation div {
    position: absolute;
    display: block;
    width: 40px;
    height: 40px;
    background: var(--primary);
    animation: float 25s linear infinite;
    bottom: -150px;
    border-radius: 8px;
    transform-style: preserve-3d;
    box-shadow: 0 0 20px rgba(121, 40, 202, 0.3);
}

/* Adding more animated boxes with different properties */
/* Professional speed-up of background animation */
.bg-animation div:nth-child(1) { left: 5%; width: 90px; height: 90px; animation-delay: 0s; animation-duration: 10s; }
.bg-animation div:nth-child(2) { left: 15%; width: 50px; height: 80px; animation-delay: 2s; animation-duration: 12s; }
.bg-animation div:nth-child(3) { left: 25%; width: 60px; height: 60px; animation-delay: 4s; animation-duration: 15s; }
.bg-animation div:nth-child(4) { left: 35%; width: 80px; height: 90px; animation-delay: 0s; animation-duration: 11s; }
.bg-animation div:nth-child(5) { left: 45%; width: 70px; height: 70px; animation-delay: 3s; animation-duration: 16s; }
.bg-animation div:nth-child(6) { left: 55%; width: 50px; height: 80px; animation-delay: 5s; animation-duration: 13s; }
.bg-animation div:nth-child(7) { left: 65%; width: 80px; height: 80px; animation-delay: 7s; animation-duration: 15s; }
.bg-animation div:nth-child(8) { left: 75%; width: 65px; height: 55px; animation-delay: 1s; animation-duration: 12s; }
.bg-animation div:nth-child(9) { left: 85%; width: 95px; height: 85px; animation-delay: 2s; animation-duration: 14s; }
.bg-animation div:nth-child(10) { left: 95%; width: 55px; height: 75px; animation-delay: 4s; animation-duration: 13s; }


@keyframes float {
    0% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-500px) rotateX(180deg) rotateY(360deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-1000px) rotateX(360deg) rotateY(720deg);
        opacity: 0;
    }
}

/* Ensure all content is above the background animation */
body > *:not(.bg-animation) {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.sticky {
    padding: 0.7rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
}

.navbar-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    color: var(--light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--light);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--gray);
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.hero-subtitle span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
}

.hero-cta {
    animation: fadeIn 1s ease-out 1s backwards;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--cards-radius, 0.2rem);
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    text-align: center;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(121, 40, 202, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    z-index: -1;
    border-radius: calc(var(--cards-radius, 0.2rem) + 2px);
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-down i {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Global Smooth Animations --- */

/* Fade-in for sections and elements */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition:
        opacity 0.7s cubic-bezier(.4,0,.2,1),
        transform 0.7s cubic-bezier(.4,0,.2,1);
    will-change: opacity, transform;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Button hover animation */
.btn, .btn-primary, .btn-outline {
    transition:
        background 0.3s cubic-bezier(.4,0,.2,1),
        color 0.3s cubic-bezier(.4,0,.2,1),
        box-shadow 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.2s cubic-bezier(.4,0,.2,1);
}
.btn:hover, .btn-primary:hover, .btn-outline:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 24px 0 rgba(121,40,202,0.18);
}

/* Card hover animation (already present, but ensure smoothness) */
.about-card,
.project-card,
.skill-item,
.education-card,
.certification-card,
.blog-card,
.stat-item,
.contact-form,
.timeline-item,
.timeline-item.highlight-item {
    transition:
        border 0.3s cubic-bezier(.4,0,.2,1),
        box-shadow 0.3s cubic-bezier(.4,0,.2,1),
        transform 0.3s cubic-bezier(.4,0,.2,1),
        background 0.3s cubic-bezier(.4,0,.2,1);
}

/* Navbar transition */
.navbar {
    transition: background 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), padding 0.3s cubic-bezier(.4,0,.2,1);
}

/* Section title underline animation */
.section-title {
    position: relative;
    overflow: hidden;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--gradient);
    border-radius: 5px;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.section-title.visible::after {
    transform: translateX(-50%) scaleX(1);
}

/* Social icon hover animation */
.social-link {
    transition: color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.2s cubic-bezier(.4,0,.2,1);
}
.social-link:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 4px 16px 0 rgba(121,40,202,0.18);
}

/* Input focus animation */
.form-control {
    transition: border-color 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(121,40,202,0.18);
}

/* About Section */

.about, .projects, .skills, .tech-stack, .experience, .blogs, .contact {
    background-color: transparent !important; /* semi-transparent */
}


.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.highlight-text {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1rem 0;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.about-card {
    background: rgba(30, 30, 40, 0.5);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(121, 40, 202, 0.03));
    z-index: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(121, 40, 202, 0.2);
}

.about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.about-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light);
    font-family: 'Poppins', sans-serif;
}

.about-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 30, 40, 0.3);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.5);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    color: var(--gray);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Section */
.projects {
    background-color: var(--dark);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-desc {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background: rgba(121, 40, 202, 0.2);
    color: var(--primary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light);
}

.project-link i {
    font-size: 1rem;
}

/* Skills Section */


.skills-container {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-group {
    margin-bottom: 3rem;
}

.skills-group-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.skills-group-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.skill-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: calc(33.333% - 1rem);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 1.2rem;
}

.skill-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.skill-progress {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.skill-progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1.5s ease-out;
}

.skill-level {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Tech Stack Section */
.tech-stack {
    background-color: var(--dark);
    text-align: center;
}

.tech-stack-container {
    max-width: 1000px;
    margin: 0 auto;
}

.tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-logo {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
}

.tech-logo:hover {
    transform: translateY(-10px);
}

.tech-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tech-logo::after {
    content: attr(data-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--gray);
    opacity: 0;
    transition: var(--transition);
}

.tech-logo:hover::after {
    opacity: 1;
}

/* Experience Section */
.experience {
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--gradient);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item.animate {
    opacity: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even).animate {
    transform: translateX(50px);
}

.timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
}

.timeline-date {
    position: absolute;
    width: 120px;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    border-radius: 5px;
    top: -20px;
    right: 20px;
    box-shadow: 0 5px 15px rgba(121, 40, 202, 0.3);
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    border-radius: 50%;
    position: absolute;
    top: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px var(--dark), inset 0 2px 0 rgba(0,0,0,0.08), 0 3px 0 4px rgba(0,0,0,0.05);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-role {
    color: var(--primary-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--gray);
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

/* Timeline Highlight Items */
.highlight-item {
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.timeline-achievements {
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.achievement-item i {
    color: var(--accent-color);
}

.certification-badge {
    max-width: 150px;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: var(--gradient);
    border-radius: 20px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.highlight-link:hover {
    transform: translateY(-2px);
}

.highlight-tag {
    background: var(--gradient);
    color: white;
}

/* Blog Section */
.blogs {
    background-color: var(--dark);
}

.blogs-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* Contact Section */


.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-text {
    color: var(--gray);
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-details p {
    color: var(--gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.social-link {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--bg-secondary);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light);
    font-family: inherit;
    resize: none;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(121, 40, 202, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Education Section */
.education {
    
    position: relative;
}

.education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.education-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.education-card:hover {
    transform: translateY(-10px);
}

.education-card:hover::before {
    opacity: 0.05;
}

.education-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(121, 40, 202, 0.3);
}

.education-content {
    position: relative;
    z-index: 1;
}

.education-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.education-content h4 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.education-date {
    display: inline-block;
    background: rgba(121, 40, 202, 0.2);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.education-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.education-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.education-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    font-size: 0.9rem;
}

.education-info span i {
    color: var(--secondary);
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.education-tag {
    background: rgba(0, 217, 255, 0.1);
    color: var(--secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.education-tag:hover {
    background: var(--secondary);
    
}

@media (max-width: 768px) {
    .education-container {
        grid-template-columns: 1fr;
    }
    
    .education-card {
        padding: 1.5rem;
    }
}

/* Certifications Section */
.certifications {
    padding: 80px 0;
    background: var(--bg-color);
    position: relative;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.certification-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.certification-card:nth-child(1) { animation-delay: 0.2s; }
.certification-card:nth-child(2) { animation-delay: 0.4s; }
.certification-card:nth-child(3) { animation-delay: 0.6s; }
.certification-card:nth-child(4) { animation-delay: 0.8s; }
.certification-card:nth-child(5) { animation-delay: 1s; }
.certification-card:nth-child(6) { animation-delay: 1.2s; }

.certification-logo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.certification-card:hover .certification-logo {
    transform: scale(1.1);
}

.certification-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.certification-issuer {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-date::before {
    content: '\f133';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
}

.certification-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.certification-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background: rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.certification-link:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateX(5px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-container {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        padding: 2rem;
    }
    
    .certification-logo {
        font-size: 2.5rem;
    }
    
    .certification-content h3 {
        font-size: 1.25rem;
    }
}



/* Remove/override any light backgrounds */
.certifications {
    /* Remove background: var(--bg-color); */
    background-color: var(--dark) !important;
}

/* Footer */
.footer {
    
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 1rem;
}

.footer-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--light);
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }

.about-container {
flex-direction: column;
gap: 2rem;
}

.about-img {
max-width: 500px;
margin: 0 auto;
}

.skill-item {
width: calc(50% - 1rem);
}

.contact-container {
grid-template-columns: 1fr;
gap: 3rem;
}

.timeline::after {
left: 40px;
}

.timeline-item {
width: 100%;
padding-left: 80px;
padding-right: 0;
}

.timeline{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(121, 40, 202, 0.3);
}

.timeline-item:nth-child(even) {
left: 0;
}

.timeline-item:nth-child(odd) .timeline-icon,
.timeline-item:nth-child(even) .timeline-icon {
left: 20px;
}
}

@media (max-width: 768px) {
.hero-title {
font-size: 2.5rem;
}

.hero-subtitle {
font-size: 1.2rem;
}

.hamburger {
display: block;
z-index: 1001;
}

.hamburger.active .bar:nth-child(2) {
opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
position: fixed;
top: 0;
right: -100%;
flex-direction: column;
background-color: var(--dark);
width: 100%;
height: 100vh;
text-align: center;
transition: 0.3s;
padding-top: 80px;
z-index: 1000;
}

.nav-menu.active {
right: 0;
}

.nav-item {
margin: 2rem 0;
}

.skill-item {
width: 100%;
}

.projects-container,
.blogs-container {
grid-template-columns: 1fr;
}
}

@media (max-width: 576px) {
.container {
padding: 0 1.5rem;
}

.hero-title {
font-size: 2rem;
}

.section-title {
font-size: 1.8rem;
}
}

/* Glowing purple border and shadow on hover for all container boxes */
.about-card:hover,
.project-card:hover,
.skill-item:hover,
.education-card:hover,
.certification-card:hover,
.blog-card:hover,
.stat-item:hover,
.contact-form:hover {
    border: 2px solid #7928CA !important;
    box-shadow: 0 0 24px 0 #7928CA, 0 8px 32px 0 rgba(0,0,0,0.36);
    transition: border 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}

/* Ensure smooth transition on all container boxes */
.about-card,
.project-card,
.skill-item,
.education-card,
.certification-card,
.blog-card,
.stat-item,
.contact-form {
    transition: border 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}

/* Glowing purple border and shadow on hover for all container boxes and timeline items */
.about-card:hover,
.project-card:hover,
.skill-item:hover,
.education-card:hover,
.certification-card:hover,
.blog-card:hover,
.stat-item:hover,
.contact-form:hover,
.timeline-item:hover,
.timeline-item.highlight-item:hover {
    border: 2px solid #7928CA !important;
    box-shadow: 0 0 24px 0 #7928CA, 0 8px 32px 0 rgba(0,0,0,0.36);
    transition: border 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1);
}

/* Ensure smooth transition on all container boxes and timeline items */
.about-card,
.project-card,
.skill-item,
.education-card,
.certification-card,
.blog-card,
.stat-item,
.contact-form,
.timeline-item,
.timeline-item.highlight-item {
    transition: border 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s cubic-bezier(.4,0,.2,1), transform 0.3s cubic-bezier(.4,0,.2,1);
}

/* Timeline Animation: Staggered Fade, Slide, Scale, Shadow */
.timeline-item {
    opacity: 0;
    transform: scale(0.96) translateX(0);
    transition:
        opacity 0.7s cubic-bezier(.4,0,.2,1),
        transform 0.7s cubic-bezier(.4,0,.2,1),
        box-shadow 0.4s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 2px 16px 0 rgba(121,40,202,0.08);
    will-change: opacity, transform, box-shadow;
    /* For staggered animation */
    transition-delay: 0s;
}

.timeline-item.visible {
    opacity: 1;
    transform: scale(1) translateX(0);
    box-shadow: 0 8px 32px 0 rgba(121,40,202,0.18), 0 2px 8px 0 rgba(0,0,0,0.10);
}

.timeline-item:nth-child(odd) {
    transform: scale(0.96) translateX(-60px);
}
.timeline-item:nth-child(even) {
    transform: scale(0.96) translateX(60px);
}
.timeline-item.visible:nth-child(odd) {
    transform: scale(1) translateX(0);
}
.timeline-item.visible:nth-child(even) {
    transform: scale(1) translateX(0);
}

/* Staggered animation delays for timeline items */
.timeline-item {
    transition-property: opacity, transform, box-shadow;
}
.timeline-item.visible {
    /* transition-delay will be set via JS for stagger effect */
}

/* Responsive: Reduce slide distance on mobile */
@media (max-width: 768px) {
    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        transform: scale(0.96) translateY(40px) !important;
    }
    .timeline-item.visible,
    .timeline-item.visible:nth-child(odd),
    .timeline-item.visible:nth-child(even) {
        transform: scale(1) translateY(0) !important;
    }
}
