:root {
    --bg-main: #0b0b0f;
    --card-bg: #15171c;
    --primary-color: #4f7cff;
    --secondary-color: #7b61ff;
    --accent-glow: #00d4ff;
    --text-main: #ffffff;
    --text-muted: #a5a5a5;
    --border-glass: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: "Plus Jakarta Sans", "Inter", "Poppins", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Safe Custom Cursor for Desktop Only (Prevents Mobile Glitches) */
@media (min-width: 992px) {
    body,
    a,
    button,
    .btn,
    .glass-card {
        cursor: none;
    }
}

/* Glassmorphism Utility */
.glass-card {
    background-color: #15171c;
    background: var(--card-bg);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Card Description Text Visibility Fix */
.glass-card p,
.glass-card span {
    color: #cfd3d6 !important;
    opacity: 1 !important;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 124, 255, 0.3);
    box-shadow: 0 20px 40px rgba(79, 124, 255, 0.15);
}

.glass-card:hover img {
    transform: scale(1.08);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(
        135deg,
        var(--text-main) 30%,
        var(--primary-color) 70%,
        var(--accent-glow) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating Animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}
.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Premium Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(79, 124, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Footer Styling */
footer p,
footer ul li a,
footer .text-muted {
    color: #b0b3b8 !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

footer a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

footer .d-flex.gap-3 a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

footer h5 {
    letter-spacing: 0.5px;
}

/* Contact Form Styling */
#contact .form-control {
    background-color: #15171c !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

#contact .form-control:focus {
    background-color: #15171c !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(79, 124, 255, 0.25) !important;
    color: #ffffff !important;
}

#contact .form-control::placeholder {
    color: #a5a5a5 !important;
    opacity: 0.7;
}

/* Navbar Links Color & Hover Fixes */
.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-main) !important;
}

/* =========================================
   Mobile Responsiveness Fine-tuning & Fixes
========================================= */
@media (max-width: 768px) {
    .display-3, .display-4, .display-5 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
    }
    
    .glass-card {
        padding: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .glass-card p,
    .glass-card span {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }

    .glass-card h3, 
    .glass-card h4, 
    .glass-card h5 {
        font-size: 1.25rem !important;
    }
}