:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --light-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'myFont';
    src: url('../fonts/roboto-black.ttf') format('truetype');
}
@font-face {
    font-family: 'codeFont';
    src: url('../fonts/spacemono-regular.ttf') format('truetype');
}


body {
    font-family: myFont;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Header Styles */
.header {
    padding: 15px 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .header .navbar-brand {
        font-weight: 700;
        font-size: 1.8rem;
    }

.logo-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.1) 0%, rgba(143, 148, 251, 0.1) 100%);
    padding-top: 100px;
}

.hello {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.job-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.intro {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
}

    .hero-buttons .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(78, 84, 200, 0.3);
    }

.hero-buttons .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

    .hero-buttons .btn-outline-primary:hover {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        color: var(--white);
        transform: translateY(-3px);
    }

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

    .social-icons a:hover {
        transform: translateY(-5px);
    }

.hero-image {
    position: relative;
}

.gradient-border {
    position: relative;
    width: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morphing 10s infinite ease-in-out;
}

    .gradient-border::before {
        content: '';
        position: absolute;
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        border-radius: inherit;
        z-index: -1;
        animation: rotating 3s infinite linear;
    }

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

@keyframes rotating {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

/* About Section */
.about-image {
    position: relative;
}

    .about-image::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 10px;
        top: 15px;
        left: 15px;
        z-index: -1;
    }

.about-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Skills Section */
.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .skill-header h4 {
        font-weight: 600;
    }

.progress {
    height: 10px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: visible;
}

.progress-bar {
    border-radius: 10px;
    position: relative;
    animation: animate-positive 2s;
}

@keyframes animate-positive {
    0% {
        width: 0;
    }
}

/* Portfolio Section */
.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .portfolio-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    }

.portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 84, 200, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 20px;
}

    .portfolio-content h4 {
        font-weight: 600;
        margin-bottom: 10px;
    }

    .portfolio-content p {
        color: var(--text-light);
        margin-bottom: 0;
    }

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 50px;
}

    .timeline::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 0;
        height: 100%;
        width: 2px;
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    }

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -50px;
        top: 0;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }

.timeline-period {
    margin-bottom: 10px;
}

    .timeline-period span {
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
        color: var(--white);
        padding: 5px 15px;
        border-radius: 20px;
        font-size: 0.9rem;
    }

.timeline-content h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-style: italic;
}

/* Contact Section */
.contact-info h3 {
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    width: 20px;
    color: var(--primary-color);
}

.form-control {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(78, 84, 200, 0.25);
    }

/* Footer */
.myFooter {
    background: var(--light-bg);
    padding: 30px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .name {
        font-size: 2.5rem;
    }

    .job-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -30px;
    }
}

/* Animation Classes */
[data-aos] {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.aos-animate {
    opacity: 1;
    transform: translate(0);
}

.gallery-container {
    position: relative;
    margin: 20px 0;
}

.gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 15px 0;
    gap: 15px;
}

    .gallery::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

.gallery-item {
    flex: 0 0 auto;
    width: 280px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
}

    .scroll-btn:hover {
        background-color: #3498db;
        color: white;
    }

    .scroll-btn.left {
        left: -25px;
    }

    .scroll-btn.right {
        right: -25px;
    }

.indicators {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 8px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .indicator.active {
        background-color: #3498db;
    }

@media (max-width: 768px) {
    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

        .scroll-btn.left {
            left: -20px;
        }

        .scroll-btn.right {
            right: -20px;
        }

    .gallery-item {
        width: 220px;
        height: 150px;
    }
}

.projectlist a
{
    text-decoration:none;
    color:black;
    text-align:center;
}


/* Project Section Styles */
.projects-section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--dark-color);
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            display: block;
            width: 70px;
            height: 4px;
            background: var(--primary-color);
            margin: 15px auto;
            border-radius: 2px;
        }

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 40px;
    text-align: center;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    margin: 0 8px 15px;
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .filter-btn:hover, .filter-btn.active {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
    }

/* Project Cards */
.project-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.project-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

.project-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .project-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-actions {
    display: flex;
    gap: 15px;
}

.project-action-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.project-card:hover .project-action-btn {
    transform: translateY(0);
}

.project-action-btn:hover {
    background: var(--dark-color);
    color: white;
    transform: translateY(-3px);
}

.project-info {
    padding: 25px;
}

.project-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.project-desc {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.project-date {
    color: #888;
    font-size: 0.9rem;
}

.project-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .project-link i {
        margin-right: 5px;
        transition: transform 0.3s ease;
    }

    .project-link:hover {
        color: var(--secondary-color);
    }

        .project-link:hover i {
            transform: translateX(5px);
        }

/* Animation for filtering */
.animate-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .project-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin: 0 5px 10px;
    }

    .project-info {
        padding: 20px;
    }

    .project-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .projects-section {
        padding: 60px 0;
    }

    .project-actions {
        gap: 10px;
    }

    .project-action-btn {
        width: 40px;
        height: 40px;
    }
}


/* Blog Section Styles */
.blog-section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}

    .section-title h2 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--dark-color);
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            display: block;
            width: 70px;
            height: 4px;
            background: var(--primary-color);
            margin: 15px auto;
            border-radius: 2px;
        }

/* Blog Cards */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

    .blog-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

.blog-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}

    .blog-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.blog-card:hover .blog-img img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

    .blog-date i {
        margin-right: 8px;
        color: var(--primary-color);
    }

.blog-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

    .blog-title:hover {
        color: var(--primary-color);
    }

.blog-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.blog-author {
    display: flex;
    align-items: center;
}

.author-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.blog-read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

    .blog-read-more i {
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .blog-read-more:hover {
        color: var(--secondary-color);
    }

        .blog-read-more:hover i {
            transform: translateX(5px);
        }

/* Blog Sidebar */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: var(--dark-color);
    position: relative;
}

    .widget-title::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 50px;
        height: 2px;
        background: var(--primary-color);
    }

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .categories-list li {
        margin-bottom: 12px;
        display: flex;
        justify-content: space-between;
    }

    .categories-list a {
        color: #555;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

        .categories-list a i {
            margin-right: 10px;
            color: var(--primary-color);
            font-size: 0.8rem;
        }

        .categories-list a:hover {
            color: var(--primary-color);
            transform: translateX(5px);
        }

    .categories-list span {
        background: #f5f5f5;
        padding: 2px 10px;
        border-radius: 20px;
        font-size: 0.8rem;
    }

.recent-post {
    display: flex;
    margin-bottom: 15px;
}

.recent-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.recent-post-content h5 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.recent-post-content span {
    font-size: 0.8rem;
    color: #888;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f5f5f5;
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .tag:hover {
        background: var(--primary-color);
        color: white;
        transform: translateY(-3px);
    }

/* Newsletter Widget */
.newsletter-form {
    position: relative;
}

    .newsletter-form input {
        width: 100%;
        padding: 12px 20px;
        border: 1px solid #eee;
        border-radius: 50px;
        font-size: 0.9rem;
    }

    .newsletter-form button {
        position: absolute;
        top: 5px;
        right: 5px;
        background: var(--primary-color);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

        .newsletter-form button:hover {
            background: var(--secondary-color);
            transform: rotate(20deg);
        }

/* Animation for elements on scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .animate-on-scroll.animated {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .blog-content {
        padding: 20px;
    }

    .blog-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .blog-section {
        padding: 60px 0;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-read-more {
        margin-top: 10px;
    }
}

.myTruncate 
{
     display: -webkit-box;
  -webkit-line-clamp: 2;     /* Number of lines to show */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my1Truncate {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.code
{
    padding:10px;
    margin:10px;
    font-family:codeFont;
    border-bottom-left-radius:10px;
    border-top-left-radius:10px;
    border-left: 5px solid var(--primary-color);
}

.myBlogs
{
    padding:10px;
}


.code .comment {
    color: green;
}

.code .keywords 
{
    color:blue;
}

.code .strings
{
    color:saddlebrown;
}