:root {
    --primary: #B35A30;
    --dark: #2d2d2d;
    --darker: #1a1a1a;
    --light: white
}

body {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
}

h1 {
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    display: block;
    width: 50%;
    height: 4px;
    background: var(--primary);
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

h1 { font-size: 2.8rem; }

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: var(--dark);
    border-bottom: 2px solid var(--primary);
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
}

/* Hero Section */
.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-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.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.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-danger{
    background-color:var(--primary);
    transition: 0.3s ease;
    border:none;
}

.btn-danger:hover{
    background-color:var(--primary);
    transform: translateY(-3px);
}

/*About Section*/
.about-section {
    padding: 50px 0;
    background-color: var(--darker);
}

.about-img{
    width:100%;
    object-fit:cover;
    aspect-ratio:1;
}

.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;
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Skills Section */
.skills-section {
    padding: 50px 0;
    background-color: var(--darker);
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.skills-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-header h4 {
    font-size: 1rem;
    margin: 0;
}

.progress {
    height: 8px;
    background-color: var(--dark);
}

.progress-bar {
    background-color: var(--primary);
    transition: width 1s ease;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-content {
        padding-left: 0;
        margin-top: 2rem;
        text-align: center;
    }
    
    .personal-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .info-item {
        margin-bottom: 0;
    }
}

@media (max-width: 767.98px) {
    .profile-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

/* Education & Experience Section */
.education-section {
    padding: 50px 0;
    background-color: var(--dark);
}

.timeline {
    padding: 30px;
    background: var(--darker);
    border-radius: 10px;
    height: 100%;
}

.timeline h3 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 2rem;
    border-left: 2px solid var(--primary);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .date {
    color: var(--primary);
    font-size: 0.9rem;
}

.timeline-item h4 {
    margin: 0.5rem 0;
}

.timeline-item .institution {
    color: #999;
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects-section {
    padding: 50px 0;
    background-color: var(--darker);
}

.project-card {
    background: var(--dark);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h4 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #999;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: 50px 0;
    background-color: var(--dark);
}

.contact-form {
    background: var(--darker);
    padding: 3rem;
    border-radius: 10px;
}

.form-control {
    background: var(--dark);
    border: none;
    padding: 12px;
    color: #fff;
}

.form-control:focus {
    background: var(--dark);
    color: #fff;
    box-shadow: none;
    border: 1px solid var(--primary);
}

.form-control::placeholder {
    color: #666;
}

@media (max-width: 767.98px) {
    .timeline {
        margin-bottom: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

.fade-container {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    height: 50px;
    overflow: hidden;
}

.fade-text {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    position: absolute;
    width: 100%;
}

.fade-text.heading-active {
    opacity: 1;
    transform: scale(1);
}

.services-section {
    padding: 50px 0;
    background-color: var(--dark);
}

.service-card {
	background: var(--darker);
	color:var(--light);
	padding: 2rem;
	border-radius: 30px 30px 150px 30px;
	border: 2px solid var(--primary);
	height: 100%;
	transition: transform 0.3s ease;
}

.service-card:hover {
	transform: translateY(-10px);
}

.icon-box {
	font-size: 2rem;
	margin-bottom: 1.5rem;
}

.icon-box i {
	color: var(--light);
}

.service-card h3 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

.service-card p {
	color: var(--light);
	line-height: 1.6;
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.service-card {
		border-radius: 20px 20px 100px 20px;
	}
}

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 */
    word-wrap: break-word;
}

footer{
    padding: 20px 0;
    background-color: var(--dark);
    border-top: 2px solid var(--primary);
}

.brand-link{
    color:var(--primary);
    text-decoration:none;
}

.blog-section{
    padding: 50px 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(--darker); /* Gray background */
}

.blog-container{
    padding: 50px 0px;
    overflow-x: hidden;
}

.blog-card{
    border:none;
    transition: 0.3s all ease;
    background: var(--dark);
}

.blog-card:hover{
    transform: translateY(-10px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .card-body{
    color:var(--light);
}
.post-detail{
    margin-top:20px;
    padding:10px;
    color: var(--light);

}

.blog-container pre{
    color: var(--light);
}

.blog-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-section{
    background: var(--darker);
}

.youtube-iframe{
    width:100%; 
    height:60vh
}

.post-detail span{
    padding:10px;
}
.swal-img{
    width:100%;
    height:60vh;
    object-fit:cover;
}
