body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* FIXED NAVBAR STYLES */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1400; /* Higher than default */
    background:transparent;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
}


.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.584);
    backdrop-filter: blur(6px);
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}


/* SCROLL MARGINS FOR SECTIONS */
section {
    scroll-margin-top: 100px; /* Prevent anchor links from hiding behind navbar */
}

.section-title {
    position: relative;
    display: inline-block;
    color: #111;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 60px;
    height: 3px;
    background: #8B3A3A;
    border-radius: 2px;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: white !important;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.7);
    transition: width 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white !important;
    font-weight: 700;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
}

.hero {
    background: url("hero1.2a21ebef9f92.png") no-repeat center 35%;
    background-size: cover;
    color: #fff;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.85) 100%);
    z-index: 0;
}

.hero > .container {
    position: relative;
    z-index: 2; /* Make sure text is above the overlay */
}

.hero-panel {
    max-width: 460px;
    padding: 40px 38px 42px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 32px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22);
    position: relative;
    backdrop-filter: blur(16px);
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    width: 60px;
    height: 3px;
    background: #8B3A3A;
    border-radius: 2px;
    opacity: 0.9;
}

.hero h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.04;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0;
    animation: fadeInDown 1s ease;
}

.hero-subtitle {
    max-width: 420px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.05rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.82);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    text-shadow: none;
}

.hero p {
    text-shadow: none;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.75);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-primary {
    background: #8B3A3A;
    border-color: #8B3A3A;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #6B2A2A;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline-light {
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
}
/* Add these at the bottom of your CSS file */

/* Section padding for non-hero sections */
#about, #projects, #contact {
    padding: 120px 0;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Adjust section padding for mobile */
@media (max-width: 768px) {
    #about, #projects, #contact {
        padding: 100px 0;
        min-height: auto;
    }
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: #8B3A3A;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8B3A3A;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #8B3A3A;
}

/* About profile image */
#about .about-image-col {
    display: flex;
    justify-content: flex-end;
    margin-top: -2rem;
}

#about .about-profile-img {
    width: 100%;
    max-width: none;
    height: min(63vw, 675px);
    min-height: 590px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@media (max-width: 991px) {
    #about .about-image-col {
        margin-top: 0;
        justify-content: center;
    }

    #about .about-profile-img {
        min-height: auto;
    }
}

/* Skill badges */
.skill-badge {
    display: inline-block;
    background: rgba(139, 58, 58, 0.1);
    color: #8B3A3A;
    padding: 5px 15px;
    border-radius: 30px;
    margin: 0 5px 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Project card styles */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

.project-content {
    padding: 20px;
}

.project-tag {
    display: inline-block;
    background: rgba(139, 58, 58, 0.1);
    color: #8B3A3A;
    padding: 3px 10px;
    border-radius: 30px;
    margin: 0 5px 5px 0;
    font-size: 0.8rem;
}

/* Contact info styles */
.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 58, 58, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #8B3A3A;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    margin-top: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(139, 58, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #8B3A3A;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #8B3A3A;
    color: white;
    transform: translateY(-3px);
}
.text-accent {
    color: #8B3A3A !important;
}
.btn-outline-accent {
    border: 2px solid #8B3A3A;
    color: #8B3A3A;
    background: transparent;
    border-radius: 999px;
    padding: 0.9rem 1.7rem;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background: rgba(139, 58, 58, 0.95);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.8rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem auto;
        max-width: 300px;
    }
    
    section {
        scroll-margin-top: 70px;
    }

}

/* Work Section Styles */
.work-content {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-showcase {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-card:hover .product-overlay {
    transform: translateY(0);
}

/* Services Section Styles */
.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(139, 58, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-features .badge {
    margin: 0 5px 5px 0;
    font-weight: 500;
}
/* Blog Section Styles */
.blogs {
    background-color: #101010;
    color: #f7f7f7;
    overflow: hidden;
    padding: 120px 0;
}

#blogs .container {
    max-width: 1400px;
    width: 100%;
}

.blogs .section-title {
    color: #fff;
}

.blog-slider-container {
    padding: 0 24px;
    margin: 0 auto;
    max-width: 1400px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.blog-slider-container::-webkit-scrollbar {
    height: 10px;
}

.blog-slider-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.blog-slider-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.blog-slider {
    display: flex;
    gap: 28px;
    will-change: transform;
}

.blog-slide {
    flex: 0 0 calc((100% - 56px) / 3);
    min-width: 360px;
    scroll-snap-align: start;
}

@media (max-width: 1400px) {
    .blog-slide {
        flex: 0 0 calc((100% - 48px) / 3);
    }
}

@media (max-width: 1199px) {
    .blog-slide {
        flex: 0 0 calc((100% - 32px) / 2);
        min-width: 320px;
    }
}

@media (max-width: 991px) {
    .blog-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

.blog-slider-arrow {
    background: #1f1f1f;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.blog-slider-arrow:hover {
    background: #8B3A3A;
    transform: scale(1.05);
}

.blog-slider-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.blog-card {
    background: #121212;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.blog-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 22px 20px;
}

.blog-content h5,
.blog-content p,
.blog-content a {
    color: #f7f7f7;
}

.blog-content h5 {
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.blog-content p {
    color: #cfd0d4;
    margin-bottom: 1.25rem;
}

.blog-content a.btn {
    border-color: #8B3A3A;
    color: #8B3A3A;
}

.blog-content a.btn:hover {
    background: #8B3A3A;
    color: #fff;
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff; /* optional */
}

.product-img {
    max-width: 75%;
    max-height: 100%;
    object-fit: contain; /* show full image */
    display: block;
}
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
    font-size: 0.9rem;
    color: #6c757d;
}
@media (max-width: 768px) {
    .navbar {
        background-color: #000 !important;
        backdrop-filter: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .navbar.scrolled {
        background-color: #000 !important;
        backdrop-filter: none !important;
    }
}
@media (max-width: 768px) {
    .blog-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .blog-slider-container {
        padding: 0 15px;
    }
}
.blog-spacer {
    flex: 0 0 32px;
    min-width: 32px;
    max-width: 32px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .blog-spacer {
        flex: 0 0 20px;
        min-width: 20px;
        max-width: 20px;
    }
}
.project-card img {
    height: 300px;
    width: 100%;
}
.hero.d-flex.align-items-center {
  padding-top: 100px !important;
}
