:root {
    --bg-dark: #0f0c29;
    --bg-gradient: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-color: #bb86fc;
    --accent-glow: 0 0 10px #bb86fc, 0 0 20px #bb86fc;
    --font-main: 'Outfit', sans-serif;
}

body {
    background: var(--bg-dark);
    background: var(--bg-gradient);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-gradient {
    background: linear-gradient(to right, #fff, #bb86fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-btn {
    background: rgba(187, 134, 252, 0.1);
    border: 1px solid rgba(187, 134, 252, 0.3);
    color: var(--accent-color);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.glass-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: var(--accent-glow);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 1s;
}

.delay-2 {
    animation-delay: 2s;
}

.delay-3 {
    animation-delay: 3s;
}

/* Navbar Overrides */
.navbar {
    background: rgba(15, 12, 41, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Logo - Show Light, Hide Dark */
.navbar .logo-dark {
    display: none !important;
}

.navbar .logo-light {
    display: inline-block !important;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

/* Footer */
footer,
footer.footer,
.footer {
    background: rgba(15, 12, 41, 0.6) !important;
    background-color: rgba(15, 12, 41, 0.6) !important;
    border-top: 1px solid var(--glass-border) !important;
}

footer h6,
footer p,
footer a,
footer li {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a:hover {
    color: var(--accent-color) !important;
}

/* Button Overrides */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #a370f7;
    border-color: #a370f7;
    color: #000;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.5);
}

/* Filter Button Styles */
.filter-options .btn {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.3s ease;
}

.filter-options .btn:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.filter-options .btn.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Resume Section Overrides */
#resume {
    background: transparent !important;
}

/* Accordion Styles */
.accordion-item {
    background: transparent !important;
    border: none !important;
}

.accordion-button {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 10px !important;
    margin-bottom: 0;
}

.accordion-button:not(.collapsed) {
    background: rgba(187, 134, 252, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(187, 134, 252, 0.3) !important;
}

.accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.accordion-body {
    color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(0, 0, 0, 0.2) !important;
    /* Darker background for contrast */
    border-radius: 0 0 10px 10px;
    padding: 1rem;
    margin-top: -5px;
}

/* Icon Visibility */
#resume .fa {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(187, 134, 252, 0.5);
}

/* Footer Alt Override - Match Dark Glassmorphism Theme */
.footer-alt {
    background-color: rgba(15, 12, 41, 0.6) !important;
    border-top: 1px solid var(--glass-border) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-alt li a {
    color: var(--accent-color) !important;
}

.footer-alt li:hover a {
    color: #ffffff !important;
}

/* Section Background Override - Remove White/Blue Backgrounds */
.section {
    background: transparent !important;
}

.bg-footer {
    background-color: transparent !important;
}

.bg-light {
    background-color: transparent !important;
}

/* Shape Divider Override - Match Dark Theme */
.text-light {
    color: rgba(15, 12, 41, 0.8) !important;
}

/* Border Color Overrides - Remove Light Blue Borders */
.border-top,
section.border-top,
div.border-top {
    border-top-color: var(--glass-border) !important;
}

.shape,
.shape svg,
.shape path {
    color: rgba(15, 12, 41, 0.8) !important;
    fill: rgba(15, 12, 41, 0.8) !important;
}

/* Project Cards - Fix Black Text and Icons */
#projects .text-dark,
#projects h5.text-dark,
#projects .fs-18 {
    color: #ffffff !important;
}

#projects .btn-social,
#projects .btn-github {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 4px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    margin-right: 8px !important;
    margin-bottom: 8px !important;
}

#projects .btn-social:hover,
#projects .btn-github:hover {
    color: #ffffff !important;
    background: rgba(187, 134, 252, 0.2) !important;
    border-color: var(--accent-color) !important;
}

#projects .btn-social span,
#projects .btn-github span {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Spacing between title and buttons */
#projects .media-body>div {
    margin-top: 12px !important;
}

/* Read More Button */
.learn-more .button-text,
.learn-more .button-text a {
    color: #ffffff !important;
}

.learn-more {
    background: transparent !important;
    border: none !important;
}

.learn-more:hover {
    border-color: var(--accent-color) !important;
}

.learn-more .circle {
    background: var(--accent-color) !important;
}

/* Project Description Text */
#projects ul li,
#projects p {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Project Detail Pages - Dark Glassmorphism Theme */
.container-fluid[style*="background-color: black"] {
    background-color: transparent !important;
    background: transparent !important;
}

.container-fluid .card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid var(--glass-border) !important;
    color: #ffffff !important;
}

.container-fluid .card h1,
.container-fluid .card h2,
.container-fluid .card h3,
.container-fluid .card h4,
.container-fluid .card h5,
.container-fluid .card h6 {
    color: #ffffff !important;
}

.container-fluid .card p,
.container-fluid .card li,
.container-fluid .card span,
.container-fluid .card div {
    color: rgba(255, 255, 255, 0.9) !important;
}

.container-fluid .card a {
    color: var(--accent-color) !important;
}

.container-fluid .card a:hover {
    color: #ffffff !important;
}

/* Code blocks in project detail */
.container-fluid .card pre,
.container-fluid .card code {
    background: rgba(0, 0, 0, 0.3) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Images in project detail - constrain size for content images only */
.container-fluid .card img:not([src*="shields.io"]):not([src*="badge"]):not([src*="img.shields"]) {
    max-width: 800px !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin: 20px auto !important;
    display: block !important;
}

/* Keep badge images inline and small */
.container-fluid .card img[src*="shields.io"],
.container-fluid .card img[src*="badge"],
.container-fluid .card img[src*="img.shields"] {
    display: inline-block !important;
    max-width: none !important;
    width: auto !important;
    margin: 4px 2px !important;
    border-radius: 3px !important;
    vertical-align: middle !important;
}

/* Paragraphs containing badges should allow wrapping */
.container-fluid .card p img[src*="shields.io"],
.container-fluid .card p img[src*="badge"],
.container-fluid .card p img[src*="img.shields"] {
    display: inline-block !important;
}

/* Make paragraph tags containing only badges display inline */
.container-fluid .card p:has(img[src*="shields.io"]),
.container-fluid .card p:has(img[src*="badge"]),
.container-fluid .card p:has(img[src*="img.shields"]) {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}