:root {
    --primary-color: #0f0c29; /* Light Lavender - Good contrast with dark backgrounds */
    --secondary-font-color: #b0a8b9; /* Soft Grayish Purple - Subtle accent for secondary text */
    --light-font-color: #ffffff; /* Pure White - Perfect for highlights and readability */
    --dark-font-color: #212529; /* Deep Gray - Matches dark theme but still visible */
    --muted-font-color: #a6a6a6; /* Muted Gray - Ideal for less important text */
    --theme-color: #0f0c29;
}


body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    font-variation-settings:
    "wdth" 100;
    color: var(--dark-color);
    scroll-behavior: smooth;
    /*background: #0f0c29;   fallback for old browsers 
    background: -webkit-linear-gradient(to right, #24243e, #302b63, #0f0c29);  /* Chrome 10-25, Safari 5.1-6 
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

.navbar {
    transition: all 0.3s ease;
}

.navbar .nav-link{
    color:var(--light-font-color);
}

.navbar .navbar-brand{
    font-family: "Train One", system-ui;
    font-weight: 400;
    font-style: normal;
    font-size:35px;
    color:var(--light-font-color);
}

.navbar-toggler{
    color:var(--light-font-color);
}
.nav-link .active{
    font-weight:bold;
    /*color:var(--light-font-color);*/
    text-decoration:underline;
    text-decoration-color:#0f0c29;
}

.navbar-scrolled {
    background: white;
    color: var(--dark-font-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.navbar-scrolled .nav-link,
.navbar-scrolled .navbar-brand,
.navbar-scrolled .navbar-toggler{
    color:var(--theme-color);
}

.navbar-toggler{
    border:none;
}

/*.hero-section {*/
/*    padding-top: 100px;*/
/*    padding-bottom: 100px;*/
    /*background-color: var(--light-color);*/
/*}*/

.section-padding {
    padding: 50px 0;
}

.section-title {
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
}

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

.profile-img-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-color);
    top: 20px;
    left: 20px;
    z-index: -1;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-info li {
    margin-bottom: 15px;
}

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

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

.skill-name {
    color: var(--light-font-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.skill-cat{
    color: var(--light-font-color);
}

.progress {
    height: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.5);
}

.progress-bar {
    background-color: var(--primary-color);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

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

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
    left: -20px;
    top: 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    left: -27px;
    top: 5px;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-location {
    font-style: italic;
    margin-bottom: 15px;
}

.parallax-section-project .row{
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.project-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures uniform height */
    background-color: #fff;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-info {
    flex-grow: 1; /* Fills remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures uniform spacing */
    padding: 20px;
    background-color: #fff;
}

.project-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.project-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

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

.contact-info-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    margin-right: 20px;
    font-size: 20px;
}

.contact-form .form-control {
    height: 50px;
    border-radius: 0;
    margin-bottom: 20px;
}

.contact-form textarea.form-control {
    height: 150px;
}

.btn {
    padding: 12px 30px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0;
    font-weight: 600;
    color:white;
}

.btn:hover {
    color:white;
    background-color: rgb(15, 12, 41, 0.7);
}

.btn-light-theme {
    padding: 12px 30px;
    color: var(--primary-color);
    border: none;
    border-radius: 0;
    font-weight: 600;
    background-color:white;
    text-decoration:none;
}

/*.btn:hover {*/
/*    color:white;*/
/*    background-color: rgb(15, 12, 41, 0.7);*/
/*}*/

footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 50px 0 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .profile-img-container::before {
        display: none;
    }
    
    .timeline {
        padding-left: 20px;
    }
}

.flip-container {
    font-size: 2rem;
    font-weight: bold;
    color: var(--light-font-color);
    height: 50px;
    overflow: hidden;
    position: relative;
}

.flip-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: rotateX(90deg);
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.flip-text.heading-active {
    opacity: 1;
    transform: rotateX(0deg);
}
.parallax-section {
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
}

.parallax-section .hero-title{
    font-family: "Train One", system-ui;
}
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    color: var(--light-font-color);
}

.parallax-section-skill {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
}

.parallax-section-skill .hero-title{
    font-family: "Train One", system-ui;
}
.parallax-overlay-skill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-section-skill .section-title {
    margin-bottom: 50px;
    position: relative;
}

.parallax-section-skill .section-title h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
    color: var(--light-font-color);
}

.parallax-section-skill .section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-font-color);
    bottom: 0;
    left: 0;
}

.parallax-section-skill .section-title p{
    color: var(--light-font-color);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Makes all cards equal height */
    text-align: center;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: var(--light-font-color);
}

.row.g-4 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.service-info {
    flex-grow: 1; /* Ensures content fills the card */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Keeps spacing uniform */
    padding: 20px;
    background-color: var(--card-bg);
}

.service-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    margin: 0 auto 15px; /* Centers the icon horizontally and adds spacing below */
}

.parallax-section-service {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
}

.parallax-section-service .hero-title{
    font-family: "Train One", system-ui;
}
.parallax-overlay-service {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-section-service .section-title {
    margin-bottom: 50px;
    position: relative;
}

.parallax-section-service .section-title h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
    color: var(--light-font-color);
}

.parallax-section-service .section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-font-color);
    bottom: 0;
    left: 0;
}

.parallax-section-service .section-title p{
    color: var(--light-font-color);
}

.parallax-section-project {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
}

.parallax-section-project .hero-title{
    font-family: "Train One", system-ui;
}
.parallax-overlay-project {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-section-project .section-title {
    margin-bottom: 50px;
    position: relative;
}

.parallax-section-project .section-title h2 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    padding-bottom: 15px;
    position: relative;
    color: var(--light-font-color);
}

.parallax-section-project .section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-font-color);
    bottom: 0;
    left: 0;
}

.parallax-section-service .section-title p{
    color: var(--light-font-color);
}

textarea{
    resize:none;
}
.swal-wide {
  width: 70% !important;
}

@media (max-width: 768px) {
  .swal-wide {
    width: 100% !important;
  }
}
pre {
    font-family: "Open Sans", sans-serif;
    color: var(--light-color); /* 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-icons-row {
    display: flex;
    gap: 15px; /* spacing between icons */
    justify-content: center; /* center them in container */
    align-items: center;
    flex-wrap: wrap; /* optional: wrap to next line on small screens */
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    margin: 0; /* removed bottom margin */
}
