* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#particles-js {
    position: absolute;
    top: 0 !important; /* Force to top */
    left: 0;
    width: 100%;
    height: 100%;
}
        
 /* CSS root Styles */
:root {
     --primary-color: #3498db;
     --secondary-color: #2c3e50;
     --accent-color: #1abc9c;
    --text-color: #333;
    --light-bg: #f8f9fa;
     --dark-bg: #343a40;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-dark: #212529;
    --text-light: #f8f9fa;
}

[data-theme="dark"] {
    --primary-color: #1abc9c;
    --secondary-color: #121212;
    --accent-color: #3498db;
    --text-color: #e0e0e0;
    --light-bg: #121212;
    --dark-bg: #1e1e1e;
    --card-bg: rgba(30, 30, 30, 0.9);
    --text-dark: #f8f9fa;
    --text-light: #212529;
}


/*temporaly added*/
/* Dark mode card styling */
[data-theme="dark"] .card {
    background-color: var(--card-bg);
    color: var(--text-color);
}

[data-theme="dark"] .card-title {
    color: #fff;
}

[data-theme="dark"] .card-text {
    color: #e9ecef;
}

[data-theme="dark"] .blog-date {
    color: #adb5bd;
}


/* About section dark mode adjustments */

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: background-color 0.5s ease, color 0.5s ease;
    scroll-behavior: smooth;
}

.highlight {
    color: var(--primary-color);
}

/* Glassmorphism Effect */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

/* Navigation s*/
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

header.scrolled {
     background: rgba(0, 0, 0, 0.9);
}

/* Hero Section */
#home {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: white;
    padding-top: 10px;
    position: relative;
    overflow: hidden;
}

/* Animated Background using js particles*/
.particles-js {
    position: absolute;
    width: 100%;
    height: 50%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Sections */
section {
    padding: 100px 0;
     position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-weight: 700;
    color: var(--text-dark);
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.profile-img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

/* Skills Section */
.skill-item {
    margin-bottom: 20px;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background-color: var(--primary-color);
    transition: width 1.5s ease;
}

/* Projects Section */
.project-card {
    height: 100%;
    transition: transform 0.3s ease;
    border: none;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-img img {
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
     padding: 30px;
    margin: 15px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* Contact Form */
.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
}

/* Download Counter */
.download-counter {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
     section {
        padding: 60px 0;
     }
            
    .hero-content {
        text-align: center;
    }
}




/* making the links navigation bar hoverable */
/* making the links navigation bar hoverable */
/* making the links navigation bar hoverable */
.navbar-nav .nav-link {
    color: white; 
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s ease; 
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #1a73e8; 
}

/* underline effect when button is hovered */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1a73e8;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}



/* this is for View All Posts button*/
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}