/* Reset and Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; /* Switched to Poppins for a modern, clean look */
}

body {
    background-color: #0a0a0a; /* Darker, more elegant background */
    color: #e0e0e0; /* Softer white for better readability */
    line-height: 1.6;
}

/* Smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

a:hover {
    color: #00d4ff; /* Bright cyan for hover effect, IT-themed */
}

/* Header Styles */
header {
    position: fixed; /* Fixed header for a sleek experience */
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f); /* Subtle gradient */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.navbar {
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 600;
    color: #00d4ff !important; /* Cyan logo for tech vibe */
    letter-spacing: 1px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #00d4ff;
}

.github_btn {
    background: linear-gradient(45deg, #00d4ff, #007bff); /* Gradient button */
    color: #fff;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github_btn:hover {
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
    color: #fff;
    text-decoration: none;
}

.github_btn:active {
    transform: translateY(1px);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding: 80px 20px;
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.8); /* Slightly dimmed for text contrast */
}

/* Content Overlay Styles */
.content-overlay {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
    border-radius: 15px;
    width: 100%;
    max-width: 100%;
}

.content-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 2px 2px 10px rgba(0, 212, 255, 0.5);
}

.content-overlay p.lead {
    font-size: 1.4rem;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #00d4ff);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00d4ff, #007bff);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.5);
}

/* Section-Specific Backgrounds */
#hero2, #hero3, #hero4, #hero5 {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f); /* Unified gradient for consistency */
}

/* Card Styles (Portfolio Section) */
.card {
    background: #1f1f1f;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.card-img-top {
    height: 200px;       
    object-fit: contain;
    width: 100%;    
    padding-top: 20px;     
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    color: #00d4ff;
}

.card-text {
    font-size: 1rem;
    color: #b0b0b0;
}

/* Text Overlay Background */
.text-overlay-bg {
    background: rgba(0, 0, 0, 0.85);
    padding: 1.5rem 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
    color: #b0b0b0;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Additional Beautification */
ul.list-unstyled li {
    margin: 0.5rem 0;
    padding-left: 1rem;
    position: relative;
}

ul.list-unstyled li:before {
    content: "▹";
    color: #00d4ff;
    position: absolute;
    left: 0;
}

.profile-img {
    border: 3px solid #fefefeaf;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    -webkit-box-reflect: below 0px linear-gradient(transparent, transparent 50%, rgba(0, 0, 0, 0.2));
    margin: 0 auto 20px;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .content-overlay h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 991.98px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .content-overlay h1 {
        font-size: 2.2rem;
    }
    
    .content-overlay p.lead {
        font-size: 1.2rem;
    }
    
    .text-overlay-bg {
        padding: 1.2rem 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 70px 15px;
    }
    
    .content-overlay {
        padding: 1.5rem;
    }
    
    .content-overlay h1 {
        font-size: 1.8rem;
    }
    
    .content-overlay p.lead {
        font-size: 1.1rem;
    }
    
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    .text-overlay-bg {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .content-overlay h1 {
        font-size: 1.5rem;
    }
    
    .content-overlay p.lead {
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    ul.list-unstyled li {
        font-size: 0.9rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
}

/* Carousel Styles */
.carousel {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.carousel-item {
    padding: 20px 10px;
}

.carousel-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 0 auto;
}

.carousel-item .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.carousel-control-prev, 
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -10px;
}

.carousel-control-next {
    right: -10px;
}

.carousel-control-prev:hover, 
.carousel-control-next:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-indicators {
    bottom: -40px;
}

.carousel-indicators button {
    background-color: #00d4ff;
    opacity: 0.5;
    width: 30px;
    height: 3px;
    margin: 0 4px;
}

.carousel-indicators button.active {
    opacity: 1;
}

/* Media queries for carousel on different devices */
@media (max-width: 991.98px) {
    .carousel-item .col-md-4 {
        margin-bottom: 20px;
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        width: 8%;
    }
}

@media (max-width: 767.98px) {
    .carousel-item .card {
        max-width: 90%;
        margin: 0 auto 15px;
    }
    
    .carousel-control-prev, 
    .carousel-control-next {
        width: 10%;
        background: none;
    }
    
    .carousel-control-prev {
        left: 0;
    }
    
    .carousel-control-next {
        right: 0;
    }
}