:root {
    --primary-color:#4a5fd4;
    --secondary-color:#9442ab;
    --dark-color: #1a202c;
    --light-color: #f8fafc;
    --success-color: #38c172;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa;
}

/* Header */
.hero-section {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom right, transparent 49%, white 50%);
}

/* Hero image styling */
.hero-img {
    border-radius: 2%;
    border: 5px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
.about-img {
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 300px; /* Adjust this value as needed */
    width: 100%;
    height: auto; /* Maintain aspect ratio */
}

/* Skills Section */
.skill-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

/* Experience Section */
.timeline {
    position: relative;
}

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

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

.timeline-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
}

/* Education Section */
.education-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

/* Portfolio/Gallery */
.gallery-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img img {
    transition: transform 0.3s ease;
}

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

/* Contact */
.contact-info {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    margin-bottom: 30px;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

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

.btn-primary:hover {
    background-color: #2779bd;
    border-color: #2779bd;
}

/* Footer */
footer {
    background-color: #010620;;
    color: white;
    padding: 40px 0;
}

footer a {
    color: white;
    margin: 0 10px;
}

footer a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 24px;
    color: var(--primary-color) !important;
}


/* Navbar logo styling */
.navbar-logo {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

/* Media Queries */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    .hero-section {
        padding: 60px 0;
    }
}

/* Portfolio Filter */
.btn-group .btn {
    transition: all 0.3s ease;
}

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

/* Portfolio Items */
.portfolio-item {
    display: block;
    transition: all 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 144, 220, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: 20px;
}

.portfolio-info h4 {
    margin-bottom: 5px;
}

.portfolio-info p {
    margin-bottom: 15px;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.carousel-caption {
    bottom: auto;
    padding-bottom: 3rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: #0d6efd;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.skills-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    font-weight: normal;
}

.card {
    transition: transform 0.3s ease;
}

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

.timeline {
    position: relative;
    padding-left: 50px;
}
.timeline-item {
    position: relative;
    padding-bottom: 30px;
}
.timeline-icon {
    position: absolute;
    left: -40px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.timeline-content {
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}
.certification-item {
    display: flex;
    margin-bottom: 25px;
}
.certification-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #ffc107;
}
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-card {
    transition: all 0.3s ease;
    height: 100%;
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.bg-light-hover {
    background-color: rgba(13, 110, 253, 0.05);
}
.bg-light-hover:hover {
    background-color: rgba(13, 110, 253, 0.1);
}
.skill-list {
    padding-left: 1.5rem;
}
.skill-list li {
    margin-bottom: 0.5rem;
    position: relative;
}
.skill-list li:before {
    content: "•";
    color: #0d6efd;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.bg-primary-light {
    background-color: rgba(13, 110, 253, 0.1);
}
.about-img {
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.about-img:hover {
    transform: scale(1.02);
}
.border-bottom {
    border-bottom: 2px solid #dee2e6 !important;
}

.gallery-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}
.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.gallery-caption {
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.gallery-img {
    height: 250px;
    overflow: hidden;
}
.gallery-img img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}
.gallery-img:hover img {
    transform: scale(1.05);
}

.portfolio-card {
    transition: all 0.3s ease;
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}
.portfolio-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
}
.btn-group-toggle .active {
    background-color: #0d6efd;
    color: white;
}

/* Text Justification */
.text-justify {
    text-align: justify;
    text-justify: auto;
}

