:root {
    --primary: rgb(58, 134, 204);
    --primary-hover: rgb(44, 107, 166);
    --primary-light: rgba(58, 134, 204, 0.1);
    --success: #10b981;
    --warning: #f59e0b;
    --bg-color: #f0f6fc;
    --surface: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: rgba(58, 134, 204, 0.15);
    --ring-bg: rgba(58, 134, 204, 0.1);
    --shadow-sm: 0 1px 3px rgba(58, 134, 204, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(58, 134, 204, 0.1), 0 2px 4px -1px rgba(58, 134, 204, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(58, 134, 204, 0.1), 0 4px 6px -2px rgba(58, 134, 204, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: rgba(58, 134, 204, 0.85); /* Glossy Blue */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}

.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 
    0 10px 15px -3px rgba(58, 134, 204, 0.3),
    0 4px 6px -4px rgba(58, 134, 204, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 3px 6px rgba(255, 255, 255, 1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.brand img:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 20px 25px -5px rgba(58, 134, 204, 0.4),
    0 8px 10px -6px rgba(58, 134, 204, 0.4),
    inset 0 -3px 6px rgba(0, 0, 0, 0.1),
    inset 0 3px 6px rgba(255, 255, 255, 1);
}

.brand span {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.025em;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.auth-buttons .btn-text {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  transition: all 0.3s ease;
  border-radius: 0.75rem;
}

.auth-buttons .btn-text:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.auth-buttons .btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #3a86cc;
  padding: 0.65rem 1.75rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-buttons .btn-auth:hover {
  background-color: #ffffff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  color: #1e40af;
}

.auth-buttons .btn-auth:active {
    transform: translateY(0);
}

/* Main Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 3rem 4vw 4rem;
    width: 100%;
    flex: 1;
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 3rem;
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.phase-tag {
    background: rgba(58, 134, 204, 0.1);
    color: #3a86cc;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(58, 134, 204, 0.2);
    white-space: nowrap;
}

.category-name {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3a86cc 0%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-title {
    display: none; /* Replaced by structure above */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 1rem 0;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card Design */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.card.locked::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    background: var(--bg-color);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    z-index: 10;
}

.card.locked {
    opacity: 0.95;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transition: background 0.4s ease;
}

.card:hover::before {
    background: var(--primary);
}

.card.completed::before {
    background: var(--success);
}

.card.completed:hover::before {
    background: var(--primary);
}

.card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 30px -5px rgba(58, 134, 204, 0.15), 0 15px 15px -5px rgba(58, 134, 204, 0.1);
    border-color: var(--primary);
}

.card-badge {
    align-self: flex-start;
    background: var(--ring-bg);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* SVG Circular Progress */
.progress-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.progress-bg {
    fill: none;
    stroke: var(--ring-bg);
    stroke-width: 8;
}

.progress-bar {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    /* 2 * pi * r (r=40) */
    stroke-dashoffset: 251.2;
    /* Start empty */
    /* Spring-like transition for smoother fill */
    transition: stroke-dashoffset 1.5s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.5s ease;
}

.progress-text {
    position: absolute;
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #3a86cc;
    transition: all 0.5s ease;
}

.progress-text .percent {
    font-size: 1.125rem;
    color: #3a86cc;
    opacity: 0.8;
    margin-left: 2px;
    font-weight: 600;
}

/* Loading State */
.progress-container.loading .progress-bar {
    stroke-dasharray: 80 251.2;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    stroke: var(--primary);
    opacity: 0.6;
}

.progress-container.loading .progress-bg {
    animation: pulse-bg 2s ease-in-out infinite;
}

.progress-container.loading .progress-text {
    opacity: 0;
    transform: scale(0.8);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
        transform-origin: center;
    }

    100% {
        transform: rotate(360deg);
        transform-origin: center;
    }
}

@keyframes pulse-bg {

    0%,
    100% {
        stroke: var(--ring-bg);
    }

    50% {
        stroke: #e2e8f0;
    }
}

/* Completed State */
.card.completed .progress-bar {
    stroke: var(--success);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.card.completed .progress-text {
    color: var(--success);
    animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.card.completed .card-badge {
    background: #d1fae5;
    color: #065f46;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Button */
.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #ffffff;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(58, 134, 204, 0.1);
}

.btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(58, 134, 204, 0.3);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(58, 134, 204, 0.2);
}

.card.completed .btn {
    border-color: var(--success);
    color: var(--success);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.card.completed .btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
    box-shadow: 0 8px 16px rgba(58, 134, 204, 0.25);
    transform: translateY(-2px);
}

/* Responsive Breakpoints Handled by dashboard.css */

/* Professional Status Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-content {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 2rem;
  width: 90%;
  max-width: 440px;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.modal-message {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-btn {
  background: #3a86cc;
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.modal-btn:hover {
  background: #2c6ba6;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(58, 134, 204, 0.4);
}

.modal-btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    box-shadow: none !important;
}

.modal-btn-secondary:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.hidden {
    display: none !important;
}


