body {
    background-color: #0f0e1a;
    color: #e5e5e5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

::selection {
    background: #3d208b;
    color: #fff;
}

::-moz-selection {
    background: #3d208b;
    color: #fff;
}

.navbar {
    background: rgba(12, 11, 20, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 0.5px;
}

.nav-link {
    color: #ccc !important;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #690dfd;
    transition: all 0.25s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

#home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('public/bg.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
    filter: brightness(0.5);
}

#home .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.btn-neon {
    background: #1a1b2c;
    color: #fff;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-neon:hover {
    box-shadow: 0 0 12px #690dfd;
    transform: translateY(-2px);
}

.section {
    padding: 80px 0;
}

.section#portfolio {
    scroll-margin-top: 25vh; 
    scroll-behavior: smooth;
}

.portfolio-card {
    background: #12121f;
    border-radius: 12px;
    padding: 20px;
    color: #e5e5e5;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.portfolio-card h5 {
    margin-bottom: 6px;
}

.portfolio-card p {
    font-size: 0.9rem;
    color: #b0b0c2;
}

.portfolio-card {
    position: relative;
    background: #12121f;
    border-radius: 12px;
    padding: 20px;
    color: #e5e5e5;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    background-color: rgb(16, 13, 26);
    border-radius: 12px;
    padding: 2px;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tech-tags span {
    background: #1c1a30;
    color: #d7d7dc;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
}
.proj-action-btn {
    display: inline-block;
    margin-top: 12px;
    background: #1a1b2c;
    color: #fff;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(105, 13, 253, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #690dfd;
}

.proj-action-btn:hover {
    background: #2b2a40;
    box-shadow: 0 6px 20px rgba(105, 13, 253, 0.6);
    transform: translateY(-2px);
    color: #fff;
}


#contact {
    background-color: #0c0b14;
}

.contact-form {
    background: #12121f;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.contact-form .form-label {
    font-size: 0.85rem;
    color: #9a9ab8;
}

.contact-form .form-control {
    background: #0c0b14;
    border: 1px solid #1c1a30;
    color: #e5e5e5;
    font-size: 0.85rem;
    padding: 10px 12px;
    border-radius: 8px;
}

.contact-form .form-control::placeholder {
    color: #5f5c7a;
}

.contact-form .form-control:focus {
    border-color: #690dfd;
    box-shadow: 0 0 0 2px rgba(105,13,253,0.15);
    background: #0c0b14;
}

.contact-btn {
    background: #690dfd;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.2s ease;
}

.contact-btn:hover {
    box-shadow: 0 0 15px #690dfd;
    transform: translateY(-2px);
}

footer {
    background: #0a0a0a;
    color: #4e5068;
    font-size: 0.78rem;
}

.text-muted {
    color: rgb(76 81 115 / 75%) !important;
}

.toast-container {
    position: fixed;
    bottom: 20px;      
    left: 20px;        
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notify {
    background: #0e0f1a;
    color: #fff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.toast-notify.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-notify.hide {
    transform: translateX(-120%);
    opacity: 0;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 11, 20, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #12121f;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    color: #e5e5e5;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.3rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #690dfd;
}

.modal-header {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-body {
    font-size: 0.9rem;
    line-height: 1.4rem;
}
