/*******************************/
/********* General CSS *********/
/*******************************/
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    color: var(--text-primary);
    background: var(--bg-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

a:hover,
a:active,
a:focus {
    color: var(--primary-dark);
    outline: none;
    text-decoration: none;
}

.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.container-fluid {
    max-width: 1400px;
}

.btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--bg-white);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 0;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    color: var(--bg-white);
}

#loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

#loader.show {
    visibility: visible;
    opacity: 1;
}

#loader .loader {
    position: relative;
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

.back-to-top {
    position: fixed;
    display: none;
    width: 50px;
    height: 50px;
    /* Removed padding: 12px 0; to let flexbox handle centering */
    /* Removed text-align: center; */
    /* Removed line-height: 1; */
    display: flex;
    /* Flexbox for perfect centering */
    justify-content: center;
    align-items: center;
    font-size: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 99;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.back-to-top i {
    color: var(--bg-white);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/**********************************/
/*********** Nav Bar CSS **********/
/**********************************/
.navbar {
    position: relative;
    transition: all 0.3s ease;
    z-index: 999;
    padding: 20px 0;
}

.navbar.nav-sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

.navbar .navbar-brand {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.navbar .navbar-brand .brand-text {
    color: var(--text-primary);
}

.navbar .navbar-brand .brand-accent {
    color: var(--primary-color);
}

.navbar .navbar-brand img {
    max-width: 100%;
    max-height: 40px;
}

.navbar .dropdown-menu {
    margin-top: 0;
    border: 0;
    border-radius: 12px;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 992px) {
    .navbar {
        position: absolute;
        width: 100%;
        padding: 30px 60px;
        background: transparent !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 9;
    }

    .navbar.nav-sticky {
        padding: 15px 60px;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
    }

    .navbar .navbar-brand {
        color: var(--bg-white);
    }

    .navbar.nav-sticky .navbar-brand {
        color: var(--text-primary);
    }

    .navbar-light .navbar-nav .nav-link,
    .navbar-light .navbar-nav .nav-link:focus {
        padding: 12px 20px;
        color: var(--bg-white);
        font-size: 15px;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }

    .navbar-light.nav-sticky .navbar-nav .nav-link,
    .navbar-light.nav-sticky .navbar-nav .nav-link:focus {
        color: var(--text-primary);
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.1);
    }

    .navbar-light.nav-sticky .navbar-nav .nav-link:hover,
    .navbar-light.nav-sticky .navbar-nav .nav-link.active {
        color: var(--primary-color);
        background: rgba(37, 99, 235, 0.1);
    }
}

@media (max-width: 991.98px) {
    .navbar {
        background: var(--bg-white) !important;
        box-shadow: var(--shadow-sm);
    }

    .navbar .navbar-brand {
        color: var(--text-primary);
    }

    .navbar .navbar-nav {
        margin-top: 15px;
    }

    .navbar a.nav-link {
        color: var(--text-primary) !important;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar .dropdown-menu {
        margin-top: 0;
        border: 0;
        border-radius: 0;
        background: var(--bg-light);
    }
}

/**********************************/
/*********** Hero CSS *************/
/**********************************/
.hero {
    position: relative;
    width: 100%;
    padding: 150px 0 100px 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.hero::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 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>');
    background-size: cover;
}

.hero .container-fluid {
    position: relative;
    z-index: 1;
}

.hero .hero-image {
    position: relative;
    text-align: center;
}

.hero .hero-image img {
    max-width: 100%;
    height: auto;
}

.hero .hero-content {
    position: relative;
    z-index: 1;
}

.hero .hero-text {
    margin-bottom: 40px;
}

.hero .hero-text .hero-greeting {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .hero-text .hero-name {
    font-size: 4rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 10px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero .hero-text .hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 20px;
    min-height: 60px;
}

.hero .hero-text .typed-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero .hero-text .typed-cursor {
    color: var(--accent-color);
    font-weight: 600;
}

.hero .hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero .hero-btn {
    margin-bottom: 40px;
}

.hero .hero-btn .btn {
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.hero .hero-btn .btn:first-child {
    background: var(--bg-white);
    color: var(--primary-color);
    border-color: var(--bg-white);
}

.hero .hero-btn .btn:first-child:hover {
    background: transparent;
    color: var(--bg-white);
    border-color: var(--bg-white);
}

.hero .hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero .stat-item {
    text-align: center;
    color: var(--bg-white);
}

.hero .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.hero .stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: attr(data-tech);
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
}

.tech-item:hover::before {
    opacity: 1;
}

.tech-item i {
    font-size: 3rem;
    color: var(--bg-white);
    margin-bottom: 10px;
}

@media (max-width: 991.98px) {
    .hero {
        padding: 120px 0 80px 0;
    }

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

    .hero .hero-text .hero-name {
        font-size: 3rem;
    }

    .hero .hero-text .hero-title {
        font-size: 1.5rem;
    }

    .hero .hero-btn .btn {
        margin-bottom: 15px;
    }

    .hero .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 100px 0 60px 0;
    }

    .hero .hero-text .hero-name {
        font-size: 2.5rem;
    }

    .hero .hero-text .hero-title {
        font-size: 1.2rem;
        min-height: 40px;
    }

    .hero .hero-btn .btn {
        width: 100%;
        margin-right: 0;
    }

    .hero .hero-stats {
        gap: 20px;
    }

    .hero .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero .hero-text .hero-name {
        font-size: 2rem;
    }

    .hero .hero-text .hero-title {
        font-size: 1rem;
    }

    .hero .hero-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/**********************************/
/*********** Section CSS **********/
/**********************************/
.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -30px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -30px;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: translateY(-50%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@media (max-width: 767.98px) {
    .section-title {
        font-size: 2rem;
    }
}

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

.about .col-lg-6 {
    margin-bottom: 30px;
}

.about .section-header {
    margin-bottom: 40px;
}

.about .about-img {
    position: relative;
    text-align: center;
}

.about .about-img img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    min-width: 120px;
}

.experience-badge .years {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.about .about-content {
    padding-left: 30px;
}

.about .about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.expertise-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

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

.expertise-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.expertise-item span {
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 991.98px) {
    .about .about-content {
        padding-left: 0;
        margin-top: 30px;
    }

    .expertise-areas {
        grid-template-columns: 1fr;
    }
}

/**********************************/
/*********** Skills CSS ***********/
/**********************************/
.skills-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-white);
}

.skill-category {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skills {
    margin-bottom: 20px;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-name p {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.skill-name p:last-child {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
}

.progress {
    height: 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress .progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: all 1.5s ease;
    position: relative;
}

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

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

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

/**********************************/
/*********** Service CSS **********/
/**********************************/
.service {
    position: relative;
    padding: 100px 0;
    background: var(--bg-light);
}

.service .service-item {
    position: relative;
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

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

.service .service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 25px auto;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service .service-icon i {
    font-size: 2rem;
    color: var(--bg-white);
    transition: all 0.3s ease;
}

.service .service-item:hover .service-icon {
    transform: scale(1.1);
    background: var(--gradient-secondary);
}

.service .service-text {
    position: relative;
}

.service .service-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.service .service-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.service .service-item:hover .service-text h3,
.service .service-item:hover .service-text p {
    color: var(--text-primary);
}

@media (max-width: 575.98px) {
    .service .service-text h3 {
        font-size: 1.3rem;
    }

    .service .service-text p {
        font-size: 0.9rem;
    }
}

/**********************************/
/******** Experience CSS **********/
/**********************************/
.experience {
    position: relative;
    padding: 100px 0;
    background: var(--bg-white);
}

.experience .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

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

.experience .timeline .timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease;
}

.experience .timeline .timeline-item.show {
    opacity: 1;
    transform: translateX(0);
}

.experience .timeline .timeline-item.left {
    left: 0;
}

.experience .timeline .timeline-item.right {
    left: 50%;
}

.experience .timeline .timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    top: 20px;
    right: -10px;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.experience .timeline .timeline-item.right::after {
    left: -10px;
}

.experience .timeline .timeline-item::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 15px;
    right: 30px;
    border: 10px solid transparent;
    border-left: 10px solid var(--bg-white);
    z-index: 1;
}

.experience .timeline .timeline-item.right::before {
    right: auto;
    left: 30px;
    border-left: none;
    border-right: 10px solid var(--bg-white);
}

.experience .timeline .timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience .timeline .timeline-item.left .timeline-date {
    text-align: right;
}

.experience .timeline .timeline-item.right .timeline-date {
    text-align: left;
}

.experience .timeline .timeline-text {
    padding: 30px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience .timeline .timeline-item.right .timeline-text {
    margin-left: 20px;
}

.experience .timeline .timeline-text:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.experience .timeline .timeline-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.experience .timeline .timeline-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.experience .timeline .timeline-text h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.experience .timeline .timeline-text h4 a:hover {
    color: var(--primary-dark);
}

.experience .timeline .timeline-text p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.experience .timeline .timeline-text ul {
    margin: 15px 0 0 0;
    padding-left: 20px;
}

.experience .timeline .timeline-text ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .experience .timeline::after {
        left: 31px;
    }

    .experience .timeline .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .experience .timeline .timeline-item.left {
        left: 0;
    }

    .experience .timeline .timeline-item.right {
        left: 0;
    }

    .experience .timeline .timeline-item.left::after,
    .experience .timeline .timeline-item.right::after {
        left: 21px;
    }

    .experience .timeline .timeline-item.left::before,
    .experience .timeline .timeline-item.right::before {
        left: 60px;
        border-right: none;
        border-left: 10px solid var(--bg-white);
    }

    .experience .timeline .timeline-item.left .timeline-date,
    .experience .timeline .timeline-item.right .timeline-date {
        text-align: left;
    }

    .experience .timeline .timeline-item.left .timeline-text,
    .experience .timeline .timeline-item.right .timeline-text {
        margin-left: 0;
    }
}

/**********************************/
/******** Portfolio CSS ***********/
/**********************************/
.portfolio {
    position: relative;
    padding: 100px 0;
    background: var(--bg-light);
}

.portfolio #portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio #portfolio-filter li {
    display: inline-block;
    margin: 0 5px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio #portfolio-filter li:hover,
.portfolio #portfolio-filter li.filter-active {
    color: var(--bg-white);
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.portfolio .portfolio-item {
    margin-bottom: 30px;
}

.portfolio .portfolio-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.portfolio .portfolio-wrap:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio .portfolio-img {
    position: relative;
    overflow: hidden;
}

.portfolio .portfolio-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.portfolio .portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio .portfolio-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.portfolio .portfolio-item:hover .portfolio-text {
    opacity: 1;
}

.portfolio .portfolio-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 10px;
}

.portfolio .portfolio-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    line-height: 1.4;
}

.portfolio-tech {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--bg-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.portfolio .portfolio-text a.btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio .portfolio-item:hover a.btn {
    background: var(--accent-color);
    color: var(--bg-white);
    transform: scale(1.1);
}

/**********************************/
/******** Contact CSS *************/
/**********************************/
.contact {
    position: relative;
    padding: 100px 0;
    background: var(--bg-white);
}

.contact-info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-secondary);
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

@media (max-width: 767.98px) {

    .contact-info,
    .contact-form {
        margin-bottom: 30px;
    }
}

/**********************************/
/******** Footer CSS **************/
/**********************************/
.footer {
    position: relative;
    padding: 50px 0 20px 0;
    background: var(--text-primary);
    color: var(--bg-white);
}

.footer .container-fluid {
    position: relative;
}

.footer .footer-info {
    text-align: center;
    margin-bottom: 30px;
}

.footer .footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border-radius: 50%;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

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

.footer .copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer .copyright p a {
    color: var(--primary-color);
    font-weight: 600;
}

.footer .copyright p a:hover {
    color: var(--accent-color);
}

@media (max-width: 575.98px) {
    .footer .footer-social {
        gap: 15px;
    }

    .footer .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}