/*
 * Premium Portfolio Theme
 * Dark Mode + Glassmorphism + Gradients
 */

:root {
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-card: rgba(30, 41, 59, 0.7);
    /* Slate 800 with opacity */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #cbd5e1;
    /* Slate 300 (Lighter than before) */
    --accent-primary: #8b5cf6;
    /* Violet 500 */
    --accent-secondary: #38bdf8;
    /* Sky 400 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    /* Animated Gradient Background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.15), transparent 25%);
    background-attachment: fixed;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-justify {
    text-align: justify;
}

/* Override Bootstrap Text Colors for Dark Mode */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

.text-dark {
    /* Keep black text for badges with light background */
    color: #212529 !important;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 0 20px rgba(139, 92, 246, 0.15);
}

/* Navbar Styling */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
}

.btn-primary-custom {
    background-color: var(--accent-primary);
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

.btn-primary-custom:hover {
    background-color: #7c3aed;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.23);
}

.btn-outline-custom {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
    color: white;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #334155;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

/* Skills Chips */
.skill-chip {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.skill-chip:hover {
    border-color: var(--accent-primary);
    color: white;
    background: rgba(139, 92, 246, 0.1);
}

.progress-thin {
    height: 4px;
    background-color: #334155;
    border-radius: 2px;
    width: 50px;
}

.progress-bar-custom {
    background-color: var(--accent-primary);
    height: 100%;
    border-radius: 2px;
}

/* Form Styles */
.form-control {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
}

.form-control:focus {
    background-color: rgba(30, 41, 59, 0.8);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.form-control::placeholder {
    color: #64748b;
}

/* Footer */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    background: #020617;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
    border: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #7c3aed;
    transform: translateY(-5px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

/* Certification Cards */
.cert-card {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cert-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
    background: rgba(56, 189, 248, 0.1);
    padding: 15px;
    border-radius: 12px;
}