  *{
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        
        font-family: 'Montserrat', sans-serif;
       
    }
        /* Custom Header Additions */
.track-wide {
    letter-spacing: 0.5px;
}

/* Enhancing dropdown interactions */
.custom-dropdown {
    border-radius: 12px;
    padding: 0.75rem 0;
    margin-top: 10px !important;
}

.custom-dropdown .dropdown-item {
    transition: all 0.2s ease-in-out;
}


.custom-dropdown .dropdown-item:hover {
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: #fff !important;
}

@media (min-width: 992px) {
    /* Smooth hover trigger adjustments for large desktop viewports */
    .navbar-nav .nav-item .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        transform: translateY(10px);
    }
    
    .navbar-nav .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}


/* Custom Typography Adjustments */
.fw-black {
    font-weight: 900;
}

.extra-small {
    font-size: 0.7rem;
}

/* Subtle continuous floating micro-interaction */
.animate-float {
    animation: floatEngine 6s ease-in-out infinite;
}

@keyframes floatEngine {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}


/* Card Interactive Modifications */
.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #ffffff;
}

.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08) !important;
    background-color: #ffffff;
}

.style-icon-box {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
}

.card-hover-effect:hover .style-icon-box {
    transform: scale(1.1);
}


 /* Icon Presentation Box */
    .icon-wrapper {
        width: 65px;
        height: 65px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, background-color 0.3s ease;
    }

    /* Professional Card Transformations */
    .project-card {
        background-color: #ffffff;
        transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
        border: 1px solid rgba(0, 0, 0, 0.02) !important;
    }

    /* Hover Elevation Metrics */
    .project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07) !important;
        background: linear-gradient(180deg, #ffffff 0%, #fdfdfd 100%);
    }

    .project-card:hover .icon-wrapper {
        transform: scale(1.08) rotate(3deg);
    }

    /* Typography Adjustments */
    .project-card p {
        line-height: 1.6;
        font-size: 0.88rem;
    }

    /* Micro Breakpoint Fix for 320px screens */
    @media (max-width: 360px) {
        #featured-projects .card {
            padding: 1.5rem !important;
        }
        #featured-projects h2 {
            font-size: 1.5rem;
        }
    }

    .text-violet { color: #7f00ff; }
    .bg-violet { background-color: #7f00ff; }

/* Design tokens + accessibility improvements */
:root{
    --primary: #0d6efd;
    --muted-dark: rgba(255,255,255,0.75);
    --muted-dark-2: rgba(255,255,255,0.62);
    --card-border-dark: rgba(255,255,255,0.06);
    --card-bg-dark: rgba(255,255,255,0.02);
}

body{
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    font-size: 16px;
}

/* Improve contrast for text on dark backgrounds */
.bg-dark, .bg-dark * {
    color: inherit;
}
.bg-dark .text-muted,
.bg-dark .small,
.bg-dark .lead,
.bg-dark .extra-small {
    color: var(--muted-dark) !important;
}
.bg-dark .text-muted { color: var(--muted-dark-2) !important; }

/* Cards on dark backgrounds */
.bg-dark .card,
.bg-dark .p-3,
.bg-dark .p-4 {
    background-color: var(--card-bg-dark) !important;
    border-color: var(--card-border-dark) !important;
}

/* Progress bars and small graf elements */
.bg-dark .progress { background-color: rgba(255,255,255,0.06) !important; }
.bg-dark .progress .progress-bar { box-shadow: none; }

/* Outline / focus for accessibility */
a:focus, button:focus, .btn:focus, .nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.12);
}

/* Subtle improved dropdown surface */
.custom-dropdown.dropdown-menu-dark {
    background-color: #0b0f13;
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: 0 8px 30px rgba(2,6,23,0.55);
}

/* Button refinements on dark backgrounds */
.bg-dark .btn-outline-light {
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.bg-dark .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.04);
    color: #fff;
}

/* Slightly stronger card shadows for a pro feel */
.card, .project-card { box-shadow: 0 8px 28px rgba(15,23,42,0.06); }

/* Ensure icons using .text-violet read as the purple accent */
.text-violet{ font-weight:700; }

/* Polished buttons and navbar */
.btn-primary {
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 10px 30px rgba(13,110,253,0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(13,110,253,0.14);
}

.btn-outline-light {
    border-radius: 999px;
    padding: 0.82rem 1.15rem;
}

.navbar {
    background: linear-gradient(180deg, rgba(11,12,14,0.9), rgba(11,12,14,0.78));
    backdrop-filter: blur(4px);
}

.projects-pro {

 background: linear-gradient(180deg, rgb(231, 240, 246), rgba(92, 97, 105, 0.78));
    backdrop-filter: blur(4px);
}

.navbar-brand { font-weight: 800; letter-spacing: 0.6px; }

/* refined headings */
h1, h2, h3, h4, h5 { letter-spacing: -0.2px; }

/* slightly larger lead on desktop for presence */
@media (min-width: 992px) {
    .lead { font-size: 1.125rem; }
}

/* Responsive refinements */
@media (max-width: 991.98px) {
    /* Reduce container paddings for tablets and below */
    .container { padding-left: 1rem; padding-right: 1rem; }
    .navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .card, .project-card { padding: 1rem; }
}

@media (max-width: 767.98px) {
    /* Tighter hero for mobile */
    section#home { min-height: 62vh !important; }
    .display-4 { font-size: 2rem; line-height: 1.08; }
    .lead { font-size: 1rem; }
    .navbar-brand { font-size: 1.05rem; }
    .card-hover-effect { padding: 1rem; }
    .style-icon-box, .icon-wrapper { width: 52px; height: 52px; }
    .project-card p { font-size: 0.82rem; }
    .d-flex.flex-wrap.gap-3 { gap: 0.5rem; }
    .btn { padding-top: 0.55rem; padding-bottom: 0.55rem; }
}

@media (max-width: 479.98px) {
    /* Small phones */
    .display-4 { font-size: 1.5rem; }
    .lead { font-size: 0.95rem; }
    .navbar .nav-link { font-size: 0.95rem; }
    .card { padding: 0.85rem; }
    .project-card { padding: 0.85rem; }
    .icon-wrapper { width: 48px; height: 48px; }
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
}

/* Ensure images/icons scale nicely */
img, svg { max-width: 100%; height: auto; }

    /* Custom Stat Card Scaling */
.stat-card {
    transition: transform 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
}

/* Premium Form Focus Borders */
.text-field-focus {
    transition: all 0.2s ease-in-out;
}
.text-field-focus:focus {
    background-color: #feffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 0 10px rgba(13, 110, 253, 0.2) !important;
    outline: none;
    color: #000000 !important;
}

/* Footer Navigation Interactions */
.footer-link {
    transition: color 0.2s ease-in-out;
}
.footer-link:hover {
    color: #0d6efd !important; /* Changes text to theme primary on hover */
}

.chat-wrapper {
    right: 25px;
    left: auto;
}

#chat-box {
    width: calc(100vw - 40px);
    max-width: 360px;
    border-radius: 28px;
    overflow: hidden;
}

/* Optional: Subtle animation when appearing */
.d-none {
    display: none !important;
}

/* Animation for sections switching */
.animate-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

#chat-box {
    animation: slideUp 0.3s ease-out;
    /* Ensure it always floats above everything */
    z-index: 10000; 
}

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

/* Scrollbar Style */
#chat-content::-webkit-scrollbar {
    width: 4px;
}
#chat-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

#cookie-banner {
    z-index: 9999;
    border-top: 3px solid #0d6efd; /* Adds a nice primary-color accent */
}