
/* =======================
   Theme Variables
======================= */
:root {
    --primary-color: #001f4d; 
    --secondary-color: #000f29; 
    --text-color-light: #001f4d;
    --text-color-dark: #ffffff;
    --bg-light: #ffffff;
    --bg-dark-gradient: linear-gradient(135deg, #001f4d 0%, #004c99 50%, #000f29 100%);
    --card-bg-light: #f8f9fa;
    --hover-blue: #004c99;
}

/* =======================
   Global Styles
======================= */
body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color-light);
    transition: background 0.3s, color 0.3s;
    margin: 0;
}

body.bg-dark {
    background: var(--bg-dark-gradient) !important;
    color: var(--text-color-dark) !important;
}

.plain-text{
    color: var(--text-color-light) !important;
}

body.bg-dark .plain-text{
    color: var(--text-color-dark) !important;
}

/* =======================
   Icons
======================= */
.icon, .icons {
    font-size: 1.5rem;
    transition: color 0.3s;
    margin-left: 1rem;
}

body:not(.dark-mode) .icon {
    color: var(--primary-color);
}

/* Dark mode icons */
body.bg-dark .icon {
    color: var(--text-color-dark);
}

/* Hover for all icons */
.icon:hover {
    font-size: 2rem;
}

/* =======================
   Buttons
======================= */
.primary-btn {
    border: 2px solid #001f4d; /* navy blue border */
    color: #001f4d; /* navy blue text */
    border-radius: 50px;
    padding: 10px 25px;
    transition: all 0.3s;
}

.primary-btn:hover {
    background-color: #001f4d;
    color: #fff;
}

body.bg-dark .primary-btn {
    color: #fff;
    border-color: #fff;
}

body.bg-dark .primary-btn:hover {
    background-color: #fff;
    color: #001f4d;
}

/* =======================
   Navbar
======================= */
.navbar {
    background-color: var(--bg-light) !important;
    transition: background 0.3s;
}

.navbar .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    transition: color 0.3s;
}

/* Hover + Active link style */
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #0059b3 !important;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

body.bg-dark .navbar { 
    background: var(--bg-dark-gradient) !important; 
}

body.bg-dark .navbar .nav-link { 
    color: var(--text-color-dark) !important; 
}

body.bg-dark .navbar .nav-link:hover { 
    color: #66b2ff !important; 
}

/* Default line style */
#navbarLine {
    position: fixed;
    top: 85px; /* Adjust depending on your navbar height */
    left: 0;
    width: 100%;
    z-index: 999;
    height: 5px;
    background: linear-gradient(90deg, #ccc, #ccc);
}

/* Light mode toggle button style */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark mode toggle button style */
body.bg-dark .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* =======================
   Profile Details Section
======================= */
.profile-details {
    color: var(--text-color-light);
    text-align: center;
    padding: 100px 20px;
}

body.bg-dark .profile-details {
    color: var(--text-color-dark);
}

.profile-details h1 { font-size: 3rem; font-weight: 700; }
.profile-details p { font-size: 1.2rem; margin-bottom: 20px; }

/* =======================
   Projects and Blogs Section
======================= */
body.bg-dark .project-card, body.bg-dark .blog-card { 
    background-color: #001f4d; 
    color: #fff; 
    border: none; 
}

/* =======================
   Model Section
======================= */
/* Dark mode for Bootstrap modals */
body.bg-dark .modal-content {
    background-color: #001f4d !important; /* Dark blue background */
    color: #ffffff !important;           /* White text */
    border: 2px solid #ffffff;
}

body.bg-dark .btn-close {
    filter: invert(1); /* Make close button visible on dark background */
}


/* =======================
   Contact Me Section
======================= */

#contact{
    color: #001f4d;
}

body.bg-dark #contact{
    color: #fff;
}

#contact .contact-details{
    margin: 10px;
    border: 2px solid #001f4d;
}

body.bg-dark #contact .contact-details{
    border: 2px solid #fff;
}

body.bg-dark #contact .contact-details .form-control{
   background-color: var(--bg-dark-gradient);
   color: #fff;
}

body.bg-dark #contact .contact-details .form-control::placeholder {
    color: #ffffff !important;
    opacity: 1; /* ensures full white on all browsers */
}

#contact .contact-details .send-message{
    border: 2px solid #001f4d;
    color: #001f4d;
}

#contact .contact-details .send-message:hover{
    background-color: #001f4d;
    color: #fff;
}

body.bg-dark #contact .contact-details .send-message{
    border: 2px solid #fff;
    color: #fff;
}

body.bg-dark #contact .contact-details .send-message:hover{
    background-color: #fff;
    color: #001f4d;
}

/* =======================
   Footer Section
======================= */
footer {
    padding: 20px 0;
    text-align: center;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #ccc, #ccc) 1;
}