/* Custom Styles */
:root {
    --primary: #ffc107;
    --dark: #212529;
}

body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 24px;
}

.nav-link {
    font-weight: 500;
    padding: 8px 20px !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(to right, #fff 60%, var(--primary) 40%);
    display:flex;
    justify-content:center;
    align-items:center;
    padding-top:120px;
}

.subtitle {
    display: block;
    font-size: 18px;
    margin-bottom: 20px;
    color: #666;
}

.hero-section h1 {
    font-family: "Volkhov", serif;
    font-style: normal;
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-section p {
    font-size: 20px;
    color: #666;
}

.hero-image img {
    border-radius: 20px;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.section-title h2 {
    font-family: "Volkhov", serif;
    font-weight: 700;
    font-style: normal;
    font-size: 50px;
    margin-bottom: 10px;
}

.about-image img {
    border-radius: 20px;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-item h4 {
    margin-bottom: 10px;
    font-size: 18px;
}

.progress {
    height: 8px;
    border-radius: 4px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    margin: 0;
    color: #333;
}

/* Resume Section */
.resume-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.resume-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.resume-item .date {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.resume-item h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-content{
        padding-top:20px;
    }
 
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section {
        background: #fff;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 48px;
    }
    
    .hero-image {
        margin-top: 40px;
    }
}

/* Portfolio Section */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.tech-badge {
    margin-right: 5px;
    margin-bottom: 5px;
}
.card-footer {
    background-color: transparent;
    border-top: none;
}
/* Testimonial Section */
.testimonial-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Section */
.blog-card {
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-content {
    padding: 15px 0;
}

.blog-content h5 {
    margin-bottom: 10px;
}

.blog-content .btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.blog-content .btn-link:hover {
    color: var(--dark);
}

/* CTA Section */
.cta-section h2 {
    font-weight: 700;
}

.bg-box {
    position: relative;
}

.bg-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75%; /* 75% height */
    background-color: yellow;
    z-index: -1;
}

/* education section */
.education-section {
    padding: 60px 0;
}

.education-card {
    height: auto !important; /* Fixed height */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: white;

}
.education-card i{
    font-size:30px;
}
.education-card:hover {
    transform: translateY(-10px);
}

.education-card .card-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.owl-carousel .owl-item {
    display: flex;
    justify-content: center;
}

.owl-carousel .item {
    display: flex;
}

.about-content p{
    font-size:18px;
}
/* Ensure the parent container does not affect window scrolling */
.nav-tabs-container {
    width: 100%;
    overflow: hidden; /* Hides any extra overflow */
}

/* Ensure the parent container does not affect window scrolling */
.nav-tabs-container {
    width: 100%;
    overflow: hidden; /* Hides any extra overflow */
}

/* Make the tabs scrollable without affecting window scroll */
.nav-tabs-wrapper {
    overflow-x: auto; /* Enables horizontal scrolling */
    white-space: nowrap; /* Prevents wrapping of tabs */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
    scrollbar-width: thin; /* Makes scrollbar thin for Firefox */
    scrollbar-color: rgba(0, 0, 0, 0.7) #f1f1f1; /* Custom scrollbar colors */
}

/* Scrollbar for WebKit browsers (Chrome, Safari) */
.nav-tabs-wrapper::-webkit-scrollbar {
    height: 8px; /* Increased height for better mobile visibility */
    display: block !important; /* Forces scrollbar to appear */
}

/* Scrollbar track */
.nav-tabs-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1; /* Light gray track */
    border-radius: 10px; /* Rounded corners */
}

/* Scrollbar thumb */
.nav-tabs-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.7); /* Dark thumb */
    border-radius: 10px; /* Rounded scrollbar */
}

/* On hover */
.nav-tabs-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Force scrollbar visibility on mobile */
@media screen and (max-width: 768px) {
    .nav-tabs-wrapper {
        -webkit-overflow-scrolling: auto; /* Disables iOS auto-hide */
        overflow-x: scroll !important; /* Ensures visibility */
    }

    .nav-tabs-wrapper::-webkit-scrollbar {
        height: 8px; /* Slightly larger for mobile */
        display: block !important; /* Ensures visibility */
    }
}


/* Prevent flex-wrap and ensure horizontal alignment */
.nav-tabs {
    flex-wrap: nowrap !important; /* Keeps tabs in a single row */
    display: flex; /* Aligns items properly */
    /*justify-content: center;  Centers the tabs */
    border-bottom: 2px solid #ddd; /* Adds a subtle bottom border */
}

/* Individual tab items */
.cat-skill-item {
    margin-right: 10px; /* Adds spacing between tabs */
}

/* Default tab link styling */
.cat-skill-item .nav-link {
    color: #333; /* Dark text color for readability */
    font-weight: 500; /* Slightly bold text */
    /*padding: 12px 20px;  Adds comfortable padding */
    border-radius: 8px; /* Soft rounded edges */
    transition: all 0.3s ease-in-out; /* Smooth hover effects */
}

/* Active tab styling */
.cat-skill-item .nav-link.active {
    background-color: black; /* Primary blue background */
    color: white !important; /* White text for contrast */
    font-weight: 600; /* Slightly bolder font */
    border-radius: 8px; /* Matches tab styling */
}

/* Hover effect for tabs */
.cat-skill-item .nav-link:hover {
    background: rgba(0, 0, 0, 0.7); /* Light blue background */
    color: white; /* Blue text */
    border-radius: 8px;
}

textarea{
    resize:none;
}
.swal-wide {
  width: 70% !important;
}

@media (max-width: 768px) {
  .swal-wide {
    width: 100% !important;
  }
}
pre {
    font-family: "Montserrat", sans-serif; /* Your desired font */
    color: #333; /* Dark text for better contrast */
    overflow-x: auto; /* Horizontal scrolling for long content */
    white-space: pre-wrap; /* Wrap text while preserving formatting */
    line-height: 1.5; /* Improved line spacing */
    font-size: 16px; /* Comfortable font size */
    margin-bottom: 20px; /* Spacing from other elements */
}
.social-links {
    list-style: none;
    display: flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    padding: 0;
}

.social-links li {
    display: inline-block;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f4f4f4;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid black;
}

.social-links a:hover {
    background-color: black; /* Change to brand color */
    color: #fff;
}

.social-icon {
    font-size: 20px;
}

/*contact form*/
.contact-form, .contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.contact-form h3, .contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Contact Info */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info-icon {
    margin-right: 15px;
}

.contact-info-icon i {
    font-size: 1.5rem;
    color: #333;
}

.contact-info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-info-text p {
    color: #555;
}