
.profile-photo { border: none !important; border-radius: 0 !important; display: block; margin: 0 auto 20px auto; float: none; }
/* =============================================
   PREMIUM CSS THEME – CV Maker Pro
   Dark Glassmorphism + High Contrast Text
   ============================================= */

:root {
    --primary: #6C5CE7;
    --primary-light: #8b7cf0;
    --primary-dark: #5a4bd1;
    --secondary: #00CEC9;
    --secondary-light: #40e0db;
    --accent: #ff6b6b;
    --glass-bg: rgba(20, 20, 40, 0.65);
    --glass-border: rgba(108, 92, 231, 0.35);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --text-light: #f0f3fa;
    --text-muted: #b9c3db;
    --card-bg: rgba(25, 25, 45, 0.7);
    --input-bg: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0c0c1d 0%, #1a1a2e 50%, #0c0c1d 100%);
    color: var(--text-light);
    font-family: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background overlay */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 40%, rgba(108, 92, 231, 0.2), transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(0, 206, 201, 0.15), transparent 50%);
    z-index: -2;
    animation: rotate 40s linear infinite;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.03"><path fill="none" stroke="white" stroke-width="2" d="M0,0 L1000,1000 M1000,0 L0,1000"/></svg>');
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-light); /* fallback */
}

h1.display-3, h2, .navbar-brand {
    background: linear-gradient(135deg, #ffffff, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lead {
    color: var(--text-muted);
    font-weight: 400;
}

/* Glassmorphism Core */
.glass, .card, .glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass:hover, .card:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 92, 231, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* Cards inside dashboard / forms */
.card {
    background: var(--card-bg) !important;
    border-radius: 28px;
    overflow: hidden;
}

.card-header {
    background: rgba(108, 92, 231, 0.25) !important;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Form Controls */
.form-control, .form-select {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-light);
    padding: 0.75rem 1.2rem;
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    background: rgba(108, 92, 231, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
    color: white;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    border-radius: 40px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.5);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-light);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 20, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.4);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6C5CE7, #00CEC9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    margin: 0 4px;
    transition: var(--transition);
    border-radius: 30px;
    padding: 0.5rem 1rem;
}

.nav-link:hover, .nav-link.active {
    color: white !important;
    background: rgba(108, 92, 231, 0.3);
}

/* Dynamic entries (CV sections) */
.dynamic-entry {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    transition: var(--transition);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

.dynamic-entry:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: var(--primary);
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 15px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0.8;
}

.remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #ff4757;
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 40px;
    margin: 4px 6px 4px 0;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.skill-tag:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* QR Code Container */
.qr-code-container {
    background: white;
    padding: 15px;
    border-radius: 20px;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Alerts */
.alert {
    border-radius: 20px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    border: none;
    color: white;
}

.alert-success {
    background: rgba(0, 200, 150, 0.2);
    border-left: 4px solid #00CEC9;
}

.alert-danger {
    background: rgba(255, 80, 80, 0.2);
    border-left: 4px solid #ff6b6b;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f0f1a, #13132a) !important;
    border-top: 1px solid rgba(108, 92, 231, 0.3);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .display-3 {
        font-size: 2.2rem;
    }
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    .glass.card {
        padding: 1.2rem;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    .navbar, .btn, footer, .share-buttons, .qr-code-container {
        display: none !important;
    }
    .glass, .card {
        background: white !important;
        color: black !important;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    h1, h2, h3 {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black;
    }
}