:root {
    --primary: #7b68ee;
    --dark: #0a0a1a;
    --light: #f8f9fa;
}

body {
    font-family: "Source Code Pro", monospace;
    background-color: var(--dark);
    color: var(--light);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(10, 10, 26, 0.95);
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
}

.btn-theme-toggle {
    background: transparent;
    border: none;
    color: var(--light);
}

.navbar-nav .nav-link.active {
    color: var(--light) !important;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    position: relative;
    transition: text-shadow 0.3s ease-in-out;
}

.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0; /* Align the underline to the left */
    bottom: -5px;
    width: 100%; /* Full width under the text */
    height: 2px;
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary), 0 0 15px var(--primary);
    transition: box-shadow 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--light) !important;
    text-shadow: 0 0 15px var(--primary), 0 0 30px var(--primary);
}

.navbar-brand{
    font-family: 'Orbitron', sans-serif;
    color: var(--light);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    position: relative;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    animation: glow 1.5s infinite alternate;
}
/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    text-align: center; /* Ensures text is centered */
    /*height: 100vh;  Takes full viewport height */
    padding: 100px 0; /* Default for large screens */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    align-items:center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 104, 238, 0.1);
    color: var(--primary);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: var(--light);
}

.hero-image {
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    z-index: -1;
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    text-align: center; /* Ensures text is centered */
    height: 100vh;
    background: rgba(123, 104, 238, 0.05);
}

.about-image {
    position: relative;
    height: 30%;
}

.about-image img{
    height:30%;
    width: 100%;
    object-fit:cover;
    aspect-ratio:1;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    z-index: -1;
}

/* Services Section */
.service-card {
    padding: 2rem;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 20px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
	    margin-bottom: 1.5rem;
    color: var(--light);
    font-size: 1.5rem;
}

/* Skills Section */
.skills-section {
    background: rgba(123, 104, 238, 0.05);
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress {
    height: 8px;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 4px;
}

.progress-bar {
    background: var(--primary);
}

/* Portfolio Section */
.portfolio-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers content horizontally */
    justify-content: center; /* Centers content vertically */
    text-align: center; /* Ensures text is centered */
    background: rgba(123, 104, 238, 0.05);
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* Experience Section */
.company-name{
    color:var(--primary);
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

.timeline:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40px;
    width: 2px;
    margin-left: -1.5px;
    content: '';
    background-color: var(--primary);
}

.timeline > li {
    position: relative;
    min-height: 50px;
    margin-bottom: 50px;
}

.timeline > li:after, .timeline > li:before {
    display: table;
    content: ' ';
}

.timeline > li:after {
    clear: both;
}

.timeline > li .timeline-panel {
    position: relative;
    float: right;
    width: calc(100% - 90px);
    padding: 20px;
    border-radius: 8px;
    /*box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);*/
}

.timeline > li .timeline-image {
    position: absolute;
    z-index: 100;
    left: 0;
    width: 80px;
    height: 80px;
    margin-left: 0;
    text-align: center;
    color: white;
    border-radius: 100%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline > li .timeline-image i {
    font-size: 30px;
}

/* Testimonial Section */
.testimonial-section {
    background: rgba(123, 104, 238, 0.05);
}

.testimonial-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 20px;
}

.client-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-btn:hover {
    opacity: 0.8;
}

/* Contact Section */
.contact-form {
    padding: 3rem;
    background: rgba(123, 104, 238, 0.1);
    border-radius: 20px;
}

.form-control {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(123, 104, 238, 0.2);
    color: var(--light);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--light);
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
    padding: 30px 0;
    background: rgba(123, 104, 238, 0.1);
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image::after {
        display: none;
    }
    
    /*.about-image::before {*/
    /*    display: none;*/
    /*}*/
}

@media (max-width: 767.98px) {
    .hero-section {
        text-align: center;
        padding: 120px 0 60px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 3rem;
    }
    
    .about-content {
        text-align: center;
        margin-top: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

textarea{
    resize:none;
}
.swal-wide {
  width: 70% !important;
}

@media (max-width: 768px) {
  .swal-wide {
    width: 100% !important;
  }
}
pre {
    font-family: "Source Code Pro", monospace;
    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 */
}

.footer-link{
    color:var(--primary);
    text-decoration:none;
}

.btn-primary{
    background-color: var(--primary);
    border:none;
    transition: all 0.3s ease;
}

.btn-primary:hover{
    background-color: var(--primary);
    transform: translateY(-5px);
}

.custom-heading {
    font-family: 'Orbitron', sans-serif;
    color: var(--light);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    animation: glow 1.5s infinite alternate;
}
@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary);
    }
    to {
        text-shadow: 0 0 20px var(--primary), 0 0 40px var(--primary);
    }
}

.section-title{
    margin-bottom: 20px;
}

.section-padding {
    padding: 100px 0; /* Default for large screens */
}

.blog-section{
    padding: 100px 0;
}

.blog-icon{
    color: var(--primary);
}

/* Navbar Dropdown Styling */
.navbar .dropdown-menu {
    background-color: var(--dark); /* Dark background */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Dropdown menu items */
.navbar .dropdown-menu .dropdown-item {
    color: var(--light); /* Light text */
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Dropdown item hover & focus effect */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background-color: var(--primary);
    color: var(--light);
}

.blog-container{
    padding: 100px 0px;
    overflow-x: hidden;
}

.blog-container pre{
    color: var(--light);
}

.blog-card {
    background: rgba(123, 104, 238, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    font-size: 15px;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.post-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--light);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
}

.post-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.post-date .month {
    font-size: 0.9rem;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--light);
}

.card-content p {
    color: var(--light);
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .card-image {
        height: 200px;
    }
    
    .card-content {
        padding: 20px;
    }
}

.blog-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}


.youtube-iframe{
    width:100%; 
    height:60vh
}

.post-detail span{
    padding:10px;
}
.swal-img{
    width:100%;
    height:60vh;
    object-fit:cover;
}
.contact-section{
    background: rgba(123, 104, 238, 0.05);
}