:root {
    --bg-main: #fafafa;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

.navbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.brand:hover {
    opacity: 0.88;
}

.brand span {
    background: linear-gradient(110deg, #4f8ef7 0%, #7c3aed 48%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand .brand-icon {
    flex-shrink: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 6px rgba(124, 58, 237, 0.35));
}

.brand:hover .brand-icon {
    transform: translateY(-2px) rotate(-8deg) scale(1.08);
}

/* Footer brand variant – lighter for dark bg */
.footer-logo span {
    background: linear-gradient(110deg, #93c5fd 0%, #c4b5fd 48%, #f9a8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.footer-logo .brand-icon {
    filter: drop-shadow(0 2px 8px rgba(196, 181, 253, 0.5));
}


.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a { font-weight: 500; transition: color 0.2s;}
.nav-links a:hover { color: var(--primary); }

.btn-primary {
    background: var(--primary);
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: #f3f4f6;
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.btn-secondary:hover { background: #e5e7eb; }

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 160px);
}

.hero {
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border-radius: 24px;
    padding: 2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
    border: 1px solid #bfdbfe;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.05);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #1e3a8a;
}

.hero p {
    font-size: 1.25rem;
    color: #2563eb;
    margin-bottom: 2.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-visual img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    transform: rotate(2deg);
    transition: transform 0.3s;
}

.hero-visual img:hover {
    transform: rotate(0deg) scale(1.02);
}

.search-bar {
    display: flex;
    max-width: 100%;
    gap: 0.5rem;
}

.search-bar input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: border-color 0.2s;
}

.search-bar input:focus { border-color: var(--primary); }

.search-bar button {
    padding: 0 2.5rem;
    border-radius: 50px;
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background 0.2s;
}

.search-bar button:hover { background: var(--primary-hover); }

/* Grid */
.counselors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.counselor-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.counselor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-image {
    height: 220px;
    background: #e5e7eb;
    overflow: hidden;
}

.card-image img { width: 100%; height: 100%; object-fit: cover; }

.card-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-info h3 { margin: 0 0 0.4rem 0; font-size: 1.4rem; color: #111827;}
.card-info .title { color: var(--primary); font-weight: 500; font-size: 1rem; margin: 0 0 1rem 0; }
.card-info .rating { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.25rem; }
.star { color: #f59e0b; }
.card-info .location { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }
.about-preview { font-size: 1rem; color: var(--text-muted); margin: 1.2rem 0; line-height: 1.6; }

/* Profile Page */
.profile-header {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 4rem 3rem;
    border: 1px solid var(--border);
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #f3f4f6;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.profile-image img { width: 100%; height: 100%; object-fit: cover; }

.profile-details h1 { margin: 0 0 0.5rem 0; font-size: 3rem; letter-spacing: -1px; }
.profile-details .title { color: var(--primary); font-size: 1.4rem; font-weight: 500; margin: 0 0 1.2rem 0; }
.meta-info { display: flex; gap: 2rem; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem;}
.about-text { font-size: 1.15rem; line-height: 1.7; color: var(--text-main); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-header h3 { margin: 0; font-size: 1.5rem; color: #111827; }
.service-header .price { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.service-card .duration { color: var(--text-muted); font-weight: 500; font-size: 1rem; margin-bottom: 1.2rem; }
.service-card .desc { line-height: 1.6; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; flex: 1;}

.full-width { width: 100%; padding: 1rem; font-size: 1.1rem; }

.footer { text-align: center; color: var(--text-muted); padding: 2rem; border-top: 1px solid var(--border); font-size: 1rem; margin-top: 4rem; }

/* Flash Messages */
.flashes {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.flash-msg {
    background: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Forms */
.form-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.form-section h2 { margin: 0 0 1.5rem 0; font-size: 1.5rem; color: #111827; }

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Reviews Section */
.reviews-section {
    margin-top: 0;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #eff6ff, #e0f2fe);
    border: 1px solid #bfdbfe;
    border-radius: 24px;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    color: #0f172a;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.review-text {
    font-size: 1.05rem;
    color: #475569;
    font-style: italic;
    line-height: 1.6;
    margin: 1rem 0;
    flex: 1;
}

.reviewer {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    margin: 0;
}

/* AI Match Section */
.ai-match-section {
    margin: 2rem 0 1rem 0;
    padding: 0;
}

.ai-match-container {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 24px;
    padding: 4rem;
    border: 1px solid #bbf7d0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03), 0 5px 15px rgba(34, 197, 94, 0.05);
}

.ai-match-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ai-match-header h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    background: linear-gradient(90deg, #047857, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ai-match-header p {
    font-size: 1.15rem;
    color: #065f46;
    max-width: 600px;
    margin: 0 auto;
}

.ai-form .form-group label {
    color: #065f46;
}

.ai-form .form-row {
    display: flex;
    gap: 2rem;
}

.ai-form .form-row > .form-group {
    flex: 1;
}

.btn-ai {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.2rem;
    background: linear-gradient(90deg, #10b981, #059669);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.btn-ai:hover {
    box-shadow: 0 15px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(90deg, #059669, #047857);
}

.ai-form select {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.ai-form select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Value Prop Section */
.value-prop-section {
    padding: 1rem 0 1.5rem 0;
}

.value-prop-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.value-prop-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.value-prop-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-prop-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid #eff6ff;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.value-prop-card:hover {
    transform: translateY(-5px);
}

.vp-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 50%;
}

.value-prop-card h3 {
    font-size: 1.4rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.value-prop-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* How It Works Section */
.how-it-works-section {
    padding: 2rem 0;
    margin-top: 0.5rem;
    border-top: 1px dashed #e2e8f0;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 2rem;
}

.how-it-works-header h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.how-it-works-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    background: transparent;
    text-align: center;
    position: relative;
    padding: 1rem;
}

.step-card:hover .step-number {
    transform: scale(1.15);
}

.step-number {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #2563eb, #0284c7);
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    border: none;
    box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card h3 {
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.step-card p {
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Footer Section */
.footer {
    background: #4b5563;
    color: #f9fafb;
    padding: 5rem 2rem 2rem 2rem;
    margin-top: 4rem;
    border-top: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    border-bottom: 1px solid #6b7280;
    padding-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 300px;
}

.footer-brand h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-brand p {
    color: #d1d5db;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #d1d5db;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-title {
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
    color: var(--text-main);
}

.dropdown:hover .dropdown-title {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 101;
    border-radius: 8px;
    border: 1px solid var(--border);
    top: 100%;
    right: 0;
    padding: 0.5rem 0;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}
