/* ===== GLOBAL STYLES ===== */
:root {
    /* Primary & Secondary Colors: Earthy & Neutral */
    --primary-color: #5d6d7e;    /* Soft Slate Blue: Professional and grounding */
    --secondary-color: #aeb6bf;  /* Light Gray Mist: A gentle, versatile supporting color */

    /* Accent & Action Colors: Muted & Understated */
    --success-color: #588b5e;    /* Moss Green: A muted, nature-inspired green for positive actions */
    --warning-color: #e09f3e;    /* Marigold Yellow: A warm, earthy yellow for warnings */
    --danger-color: #b84050;     /* Dusty Rose: A sophisticated, subtle red for errors */
    --info-color: #4c8caf;      /* Muted Sky Blue: A calm, clear blue for information */

    /* Grayscale & Backgrounds: Soft & Clean */
    --light-color: #f7f9fc;      /* Off-White: A very light, clean background color */
    --dark-color: #2c3e50;       /* Charcoal Blue: A deep, rich charcoal for text and accents */

    /* General Styling */
    --font-family: 'Inter', 'Graphik Web', 'Helvetica Neue', Arial, sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Softer, more diffused shadow */
    --box-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12); /* Softer, larger shadow */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother, more elegant transition */
    --gradient-start: rgb(192, 229, 241);
}

* {
    box-sizing: border-box;
}



/* make sure navbar allows overflow (so image can overflow visibly) */
.navbar {
  overflow: visible; /* important so the oversized logo can stick out */
  position: relative; /* keep stacking context */
}

/* keep brand container same height as navbar (match your header height) */
.navbar .navbar-brand {
  height: 64px;             /* use your header height (example) */
  display: flex;
  align-items: center;
  position: relative;       /* so the absolute img is positioned relative to this */
  overflow: visible;        /* allow the img to overflow */
  padding: 0;               /* optional: control brand padding if needed */
}

/* the big logo is removed from normal flow and centered vertically */
.navbar .navbar-brand .logo {
  position: absolute;
  left: 0;                  /* align left inside brand — change to center/right if needed */
  top: 50%;
  height: 200px;            /* visual size you want */
  width: auto;
  transform: translateY(-50%); /* vertically center the oversized image */
  pointer-events: auto;     /* keep it clickable if inside a link */
  z-index: 10;              /* keep it above nav items if overlapping */
  display: block;
}

/* fallback for img-fluid behavior */
.navbar .navbar-brand .logo.img-fluid {
  max-width: none;         /* prevent bootstrap from shrinking it */
}

/* MOBILE: restore normal flow so mobile header isn't awkward */
@media (max-width: 768px) {
  .navbar .navbar-brand {
    height: 20px; /* keep the navbar height fixed */
  }

  .navbar .navbar-brand .logo {
    position: absolute;          /* same trick as desktop */
    top: 50%;
    left: 0;
    height: 120px;                /* mobile big size */
    width: auto;
    transform: translateY(-50%);  /* center vertically */
  }

  .navbar .navbar-brand {
    height: 20px !important;
  }
}

@media (max-width: 768px) {
  .col-lg-6:first-child {
    margin-bottom: 2rem; /* adjust as needed */
  }

  .nav-item{
    z-index: 10000;
}
}


.text-primary-custom{
    color: var(--primary-color) !important;
}
.bg-primary-custom{
    background-color: var(--primary-color) !important;

}
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

.main-content-area{
    margin-bottom: 2px;
}

.border-radius-curve-round{
    border-radius: 20px 20px 20px 20px;
}

.home-resume{
  font-family: 'Lato', sans-serif !important;
}

/* ===== UTILITY CLASSES ===== */
.min-vh-75 {
    min-height: 75vh;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8ba1b7 100%);
}


.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #ffb000 100%);
}

.text-purple {
    color: #6f42c1 !important;
}

/* ===== NAVIGATION ===== */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link.btn {
    border-radius: var(--border-radius);
    margin-left: 0.5rem;
}

/* ===== HERO SECTION ===== */



/* ===== FEATURE CARDS ===== */
.feature-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* ===== STEP CARDS ===== */
.step-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.step-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-3px);
}

.step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ===== PROGRESS STEPS ===== */
.progress-container {
    position: relative;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.step {
    font-size: 0.875rem;
    color: var(--secondary-color);
    position: relative;
}

.step.active {
    color: var(--primary-color);
    font-weight: 600;
}

.step.completed {
    color: var(--success-color);
    font-weight: 600;
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-body {
    background-color: var(--light-color);
}

.sidebar {
    min-height: calc(100vh - 56px);
    background-color: white;
    box-shadow: var(--box-shadow);
}

.sidebar-link {
    color: var(--dark-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 0.25rem;
    transition: var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: var(--primary-color);
    color: white;
}

.content-section {
    padding: 1rem 0;
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

/* ===== CV CARDS ===== */
.cv-card {
    transition: var(--transition);
    height: 100%;
}

.cv-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-3px);
}

/* ===== UPLOAD STYLES ===== */
.upload-option-card {
    border: 2px solid #dee2e6;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    height: 100%;
}

.upload-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.upload-option-card.active {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.1);
}

.drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--light-color);
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.work-experience-item {
    background-color: white;
    transition: var(--transition);
}

.work-experience-item:hover {
    box-shadow: var(--box-shadow);
}

/* ===== AI REWRITE STYLES ===== */
.ai-suggestion-card {
    margin-bottom: 1.5rem;
}

.ai-enhanced-content textarea {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: var(--success-color);
}

.keyword-tags .badge {
    margin: 0.25rem;
}

/* ===== TEMPLATE STYLES ===== */
.template-item {
    margin-bottom: 2rem;
}

.template-card {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.template-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.template-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.template-preview {
    height: 300px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.template-mockup {
    width: 200px;
    height: 280px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
}

.template-header {
    padding: 8px;
    font-size: 8px;
}

.template-content {
    font-size: 6px;
}

.template-name {
    font-weight: bold;
    font-size: 10px;
}

.template-title {
    font-size: 8px;
    margin-bottom: 4px;
}

.template-section-title {
    font-weight: bold;
    font-size: 7px;
    margin-bottom: 2px;
}

.template-text-line {
    height: 3px;
    background-color: #ddd;
    margin-bottom: 1px;
    border-radius: 1px;
}

.template-text-line:nth-child(odd) {
    width: 90%;
}

.template-text-line:nth-child(even) {
    width: 75%;
}

/* Template specific styles */
.modern-green .template-mockup {
    display: flex;
}

.template-sidebar {
    width: 35%;
    padding: 4px;
}

.template-main {
    width: 65%;
    padding: 4px;
}

.template-photo {
    width: 100%;
    height: 25px;
    border-radius: 2px;
}

.template-contact .template-text-line {
    height: 2px;
    margin-bottom: 1px;
}

.template-two-column {
    display: flex;
    gap: 4px;
}

.template-column {
    flex: 1;
}

.template-skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.template-skill-bar {
    height: 2px;
    background-color: var(--warning-color);
    border-radius: 1px;
}

.template-skill-bar:nth-child(1) { width: 90%; }
.template-skill-bar:nth-child(2) { width: 75%; }
.template-skill-bar:nth-child(3) { width: 85%; }

.template-preview-card {
    text-align: center;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    height: 100%;
    transition: var(--transition);
}

.template-preview-card:hover {
    box-shadow: var(--box-shadow);
    transform: translateY(-3px);
}

.template-preview {
    width: 80px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
}

/* ===== EDITOR STYLES ===== */
.editor-panel {
    height: 100vh;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.preview-panel {
    height: 100vh;
    overflow-y: auto;
    background-color: #f5f5f5;
}

/* .editor-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
} */

.section-content {
    padding: 1rem;
}

.toggle-section {
    background: none;
    border: none;
    color: var(--primary-color);
}

.cv-preview-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1rem;
    min-height: 600px;
}

.cv-preview {
    transform-origin: top left;
    transition: transform 0.3s ease;
}

.cv-template {
    background: white;
    min-height: 842px; /* A4 height */
    width: 595px; /* A4 width */
    margin: 0 auto;
    box-shadow: var(--box-shadow-lg);
    font-family: 'Times New Roman', serif;
}

.cv-header {
    padding: 2rem;
}

.cv-body {
    padding: 0 2rem 2rem;
}

.cv-section {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.experience-item,
.education-item,
.certification-item {
    margin-bottom: 1.5rem;
}

.contact-info {
    font-size: 0.9rem;
}

.cv-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

/* ===== LINKEDIN STYLES ===== */
.linkedin-container {
    background-color: var(--light-color);
    min-height: 100vh;
}

.linkedin-header {
    position: relative;
    background: white;
    margin-bottom: 2rem;
}

.header-background {
    height: 200px;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
    position: relative;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.profile-header {
    position: relative;
    padding: 0 0 1rem 0;
    margin-top: -100px;
}

.profile-photo {
    position: relative;
    width: 150px;
    height: 150px;
}

.profile-photo img {
    width: 150px;
    height: 150px;
    border: 4px solid white;
    object-fit: cover;
}

.photo-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.photo-upload-btn:hover {
    background: #0056b3;
}

.profile-info {
    padding-left: 2rem;
    color: white;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.profile-headline {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.profile-location {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0 1rem 0;
}

.profile-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.linkedin-btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.linkedin-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: between;
    align-items: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem 1.5rem 1.5rem;
}

.edit-btn,
.add-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.edit-btn:hover,
.add-btn:hover {
    background: rgba(13, 110, 253, 0.1);
}

.experience-item,
.education-item {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.experience-item:last-child,
.education-item:last-child {
    border-bottom: none;
}

.experience-header,
.education-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.company-logo,
.school-logo {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.experience-details,
.education-details {
    flex: 1;
}

.experience-details h4,
.education-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.company-name,
.degree {
    color: var(--secondary-color);
    margin: 0;
    font-size: 0.95rem;
}

.experience-duration,
.education-duration {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.duration-length {
    font-style: italic;
}

.experience-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin: 0;
}

.experience-description {
    margin-top: 0.75rem;
    padding-left: 66px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

.skill-name {
    font-weight: 600;
}

.endorsements {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.editable-field {
    transition: var(--transition);
    min-height: 1.2em;
}

.editable-field:focus {
    outline: 2px solid var(--primary-color);
    background: rgba(13, 110, 253, 0.05);
    border-radius: 3px;
}

.name-section,
.headline-section,
.location-section {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.edit-btn {
    position: absolute;
    top: 0;
    right: -30px;
    opacity: 0;
    transition: var(--transition);
}

.name-section:hover .edit-btn,
.headline-section:hover .edit-btn,
.location-section:hover .edit-btn {
    opacity: 1;
}

/* AI Optimization Panel */
.ai-optimization-panel .card-header {
    background: var(--primary-color) !important;
    color: white !important;
}

.optimization-score {
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0deg 280deg, #eee 280deg 360deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
}

.score-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--success-color);
    z-index: 1;
}

.score-label {
    font-size: 0.7rem;
    color: var(--secondary-color);
    z-index: 1;
}

.score-circle.score-low {
    background: conic-gradient(var(--danger-color) 0deg 180deg, #eee 180deg 360deg);
}

.score-circle.score-low .score-number {
    color: var(--danger-color);
}

.score-circle.score-medium {
    background: conic-gradient(var(--warning-color) 0deg 240deg, #eee 240deg 360deg);
}

.score-circle.score-medium .score-number {
    color: var(--warning-color);
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.suggestion-icon {
    width: 24px;
    text-align: center;
    margin-top: 0.25rem;
}

.suggestion-content p {
    margin: 0;
}

.suggestion-content .text-muted {
    font-size: 0.85rem;
}

.analytics-item {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.analytics-item:last-child {
    border-bottom: none;
}

.analytics-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.analytics-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.analytics-change {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== GEEKSTURF STYLES ===== */
.geeksturf-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.crown-animation {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.membership-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.membership-card {
    width: 100%;
    max-width: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.premium-card .card-header {
    background: linear-gradient(135deg, var(--dark-color) 0%, #495057 100%);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.member-avatar {
    color: var(--secondary-color);
}

.member-level {
    margin-top: 0.5rem;
}

.perks-preview {
    font-size: 0.9rem;
}

.perk-item {
    margin-bottom: 0.5rem;
}

.benefit-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
}

.feature-highlight {
    position: absolute;
    top: 10px;
    right: 10px;
}

.benefit-list-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
}

.benefit-list-card h4 {
    margin-bottom: 1.5rem;
}

.benefit-list-card li {
    margin-bottom: 0.75rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.stars {
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.pricing-card.featured {
    box-shadow: 0 0 0 2px var(--warning-color);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.pricing-header {
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.pricing-header h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

.price {
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.2rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    color: var(--secondary-color);
}

.savings {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
}

.pricing-body {
    padding: 1rem 2rem 2rem;
}

.pricing-body ul li {
    margin-bottom: 0.75rem;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.celebration-animation {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.member-benefits {
    text-align: left;
}

.benefit-item {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* ===== MODAL STYLES ===== */
.modal-lg .modal-body {
    padding: 2rem;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* ===== FORM STYLES ===== */
/* .form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
} */

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}



.templatesSection{
    background-color: white !important;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {

    .profile-header {
        flex-direction: column;
        text-align: center;
        margin-top: -50px;
    }

    .profile-info {
        padding-left: 0;
        margin-top: 1rem;
    }

    .profile-name {
        font-size: 2rem;
    }

    .editor-panel,
    .preview-panel {
        height: auto;
    }

    .cv-template {
        width: 100%;
        transform: scale(0.8);
    }

    .progress-steps {
        font-size: 0.75rem;
    }

    .pricing-card.featured {
        transform: none;
        margin-top: 1rem;
    }

    .cta-benefits {
        gap: 1rem;
    }

    .benefit-tag {
        font-size: 0.8rem;
    }

    .profile-location {
        color: var(--primary-color);
    }

    .profile-headline {
        color: var(--secondary-color);
    }
}

@media (max-width: 576px) {
    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .profile-headline {
        font-size: 1rem;
    }

    .linkedin-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-description {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .cv-template {
        transform: scale(0.6);
    }
}

/* ===== ANIMATION CLASSES ===== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
/* .btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
} */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card,
    .linkedin-card,
    .template-card {
        border: 2px solid var(--dark-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .editor-panel,
    .sidebar {
        display: none !important;
    }

    .cv-template {
        width: 100% !important;
        transform: none !important;
        box-shadow: none !important;
    }
}


.btn-gradient-glow {
    background: linear-gradient(135deg, #5e72e4, #825ee4);
    color: white;
    position: relative;
    overflow: hidden;
    animation: shimmer 2s infinite;
    border: none;
}

@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }
    100% {
        background-position: 400px 0;
    }
}

.btn-template {
    background-color: #f4f5f7;
    border: 1px solid #d1d1d1;
    color: #333;
}




/* drawer start */
/* Overlay */
/* Overlay */
#drawer-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Drawer */
#resume-drawer {
    position: fixed;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

/* Desktop - Right Drawer */
@media (min-width: 768px) {
    #resume-drawer {
        top: 0;
        right: 0;
        width: 400px;
        height: 100%;
        transform: translateX(100%);
    }

    #resume-drawer.active {
        transform: translateX(0);
    }
}

/* Mobile - Bottom Drawer with Full Width */
@media (max-width: 767px) {
    #resume-drawer {
        bottom: 0;
        left: 0;
        width: 100%;         /* Full width on mobile */
        height: 400px;       /* Fixed height */
        transform: translateY(100%);
    }

    #resume-drawer.active {
        transform: translateY(0);
    }
}

.drawer-body {
    padding: 1rem;
}

.drawer-body input[type="file"] {
    width: 100%;
    margin-bottom: 1rem;
}

.drawer-body button {
    background-color: #4a4e69;
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


/* Form Field Wrapper */
.form-group {
    margin-bottom: 1.5rem;
}

/* Hide original file input */
.custom-file-wrapper input[type="file"] {
    display: none;
}

/* Stylized label acting as file picker */
.custom-file-wrapper label {
    display: block;
    width: 100%;
    background-color: #f4f4f4;
    color: #333;
    padding: 0.75rem 1rem;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.custom-file-wrapper label:hover {
    background-color: #eaeaea;
    border-color: #4a4e69;
}

/* File name text */
.custom-file-wrapper label.selected {
    color: #4a4e69;
    font-style: italic;
}


.submit-btn {
    display: block;
    width: 93%;
    background-color: #4a4e69;
    color: #fff;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.submit-btn:hover {
    background-color: #3c3f58;
}

 /* drawer end */



 /* full screen loader */
 #full-screen-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#full-screen-loader .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* full screen loader */


.drag-handle {
    font-size: 1.2rem;
    color: #888;
    user-select: none;
}
.entry-index {
    font-size: 0.8rem;
}

.drag-handle {
    cursor: grab;
    font-size: 2rem;
    color: #444;
    background: #e9ecef;
    padding: 10px 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}



.drawer-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

/* Drawer Base */
.template-drawer {
    position: fixed;
    background-color: #fff;
    z-index: 1050;
    width: 100%;
    max-width: 50%;
    height: 100%;
    top: 0;
    left: -100%;
    transition: left 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 0;
    overflow-y: auto;
    padding-bottom: 2rem;
}



.drawer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.drawer-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Mobile specific */
@media (max-width: 767.98px) {
    .template-drawer {
        left: 0;
        bottom: -100%;
        top: auto;
        height: 50%;
        max-width: 100%;
        transition: bottom 0.3s ease;
    }

    .template-drawer.open {
        bottom: 0;
    }

    .drawer-overlay.show {
        display: block;
    }

    .template-scroll {
        scroll-snap-type: x mandatory;
    }

    .template-card {
        flex: 0 0 85vw;
        scroll-snap-align: start;
    }

    .template-card img {
        height: 200px;
        object-fit: cover;
        width: 100%;
    }
}

/* Desktop open */
@media (min-width: 768px) {
    .template-drawer.open {
        left: 0;
    }

    .drawer-overlay.show {
        display: block;
    }
}


/* photo uploader */
/* .profile-photo-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    position: relative;
} */

/* .profile-photo {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    /* border: 4px solid var(--primary-color);
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
    display: block;
} */

/* .edit-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--primary-color);
    color: white;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 10px;
    border: 2px solid white;
}

.edit-icon:hover {
    background: #0056b3;
} */



/* photo uploader */



/* bars loader */
#loadingOverlay {
    display: none;                 /* show via JS */
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,20,30,0.85), rgba(10,20,30,0.95));
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* center contents */
#loadingOverlay .loading-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    transform: translateY(0);
}

/* text */
#loadingOverlay .loading-text strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
#loadingOverlay .loading-text .sub {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* animated building bars */
#loadingOverlay svg rect {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linejoin: round;
    opacity: 0.9;
    transform-origin: center;
    animation: barPulse 1.2s ease-in-out infinite;
}
#loadingOverlay svg rect:nth-child(4) { animation-delay: 0.15s; }
#loadingOverlay svg rect:nth-child(5) { animation-delay: 0.28s; }
#loadingOverlay svg rect:nth-child(6) { animation-delay: 0.42s; }
#loadingOverlay svg .gear { transform-origin: center; animation: gearSpin 1.8s linear infinite; }

/* animations */
@keyframes barPulse {
    0%   { transform: translateY(0) scaleY(1); opacity: 0.6; }
    50%  { transform: translateY(-6px) scaleY(1.05); opacity: 1; }
    100% { transform: translateY(0) scaleY(1); opacity: 0.6; }
}
@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* clickable cursor */
.template-link { cursor: pointer; display: block; }

/* Make overlay visible flex container when active */
#loadingOverlay.active {
    display: flex;
}
/* bars loader */


.modern-flash-btn,
.modern-flash-btn-alt {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    border: none;
}

.modern-flash-btn {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.modern-flash-btn-alt {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.modern-flash-btn:hover,
.modern-flash-btn-alt:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.modern-flash-btn:active,
.modern-flash-btn-alt:active {
    transform: scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.drawer-header-left {
    background: linear-gradient(135deg, #141e30, #243b55); /* Deep gradient */
    padding: 1rem 1.5rem;
    border-top-right-radius: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100000000;
}
.drawer-header-right {
    background: linear-gradient(135deg, #141e30, #243b55); /* Deep gradient */
    padding: 1rem 1.5rem;
    border-top-left-radius: 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100000000;
}


.drawer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.drawer-close {
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #ffffffcc;
}

.drawer-close:hover {
    transform: scale(1.2) rotate(90deg);
    color: #ff6b6b;
}




.modern-template-btn {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    font-weight: 600;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-template-btn:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #0072ff, #00c6ff);
    box-shadow: 0 10px 20px rgba(0, 114, 255, 0.4);
}

.modern-template-btn:active {
    transform: scale(0.97);
    box-shadow: 0 3px 8px rgba(0, 114, 255, 0.2);
}



.zoom-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.zoom-btn:hover {
    transform: scale(1.07);
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.5);
}

.zoom-btn:active {
    transform: scale(0.95);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.modern-btn-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}



.editor-section {
        background: #fff;
        border-radius: 20px;
        padding: 2rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
        margin-bottom: 2rem;
    }

    .section-header h6 {
        font-weight: 600;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .form-control {
        border: none;
        border-radius: 12px;
        background-color: #f1f3f5;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        transition: box-shadow 0.3s ease-in-out;
    }

    .form-control:focus {
        box-shadow: 0 0 0 2px #6c63ff33;
        background-color: #fff;
        outline: none;
    }

    .form-label {
        font-weight: 500;
        margin-bottom: 0.4rem;
        color: #444;
    }

    textarea.form-control {
        resize: vertical;
    }

    .profile-photo-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 2rem;
        position: relative;
    }

    .profile-photo {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 50%;
        border: 3px solid #6c63ff;
    }

    .edit-icon {
        background: #6c63ff;
        color: #fff;
        border-radius: 50%;
        padding: 0.4rem;
        position: absolute;
        bottom: -10px;
        right: calc(50% - 50px);
        cursor: pointer;
        transition: background 0.3s;
    }

    .edit-icon:hover {
        background: #594bd2;
    }

    .toggle-section, .add-entry {
        border-radius: 12px;
    }

    .section-content .border {
        border: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.03);
        background: #fafafa;
    }

    .section-content .btn-danger {
        border-radius: 12px;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .btn-outline-primary, .btn-success {
        font-weight: 500;
        border-radius: 12px;
    }

    .btn-outline-primary:hover {
        background-color: #6c63ff;
        border-color: #6c63ff;
        color: white;
    }

    .btn-success:hover {
        background-color: #28a745cc;
    }


    /* download spinner */
    .download-loader-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9999;
    }

    .download-loader-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .download-loader-spinner {
        border: 6px solid #f3f3f3;
        border-top: 6px solid #007bff;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .download-loader-message {
        margin-top: 15px;
        font-size: 18px;
        color: #333;
        font-weight: 500;
    }


