/* Global Reset & Base Styles */
:root {
    --primary-color: #0066ff;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f4f6f8;
    --card-bg: #ffffff;
    --border-radius: 20px;
    --btn-radius: 50px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Layout */
header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    min-height: 80vh;
}

section {
    margin-bottom: 60px;
    max-width: none;
}

/* Navigation */
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

header nav {
    background: var(--bg-secondary);
    padding: 5px;
    border-radius: var(--btn-radius);
    display: flex;
    gap: 5px;
}

header nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: var(--btn-radius);
}

header nav a:hover {
    color: var(--primary-color);
    background: #eef2f5;
}

/* Custom button style for CTA in nav */
header nav .btn-nav-primary {
    background-color: var(--primary-color);
    color: white !important;
}

header nav .btn-nav-primary:hover {
    opacity: 0.9;
    color: white !important;
    background-color: var(--primary-color);
}

/* Typography */
h1, h2, h3 {
    color: var(--text-color);
    line-height: 1.2;
}

h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; }
h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; }
h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; }
p { color: var(--text-secondary); margin-bottom: 15px; }

/* Buttons & Inputs */
button, .btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 35px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    text-decoration: none;
}

button:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
    background-color: var(--primary-color);
    color: white;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

input, textarea {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background-color: var(--bg-secondary);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: white;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

/* Page: Index / Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    background: transparent;
    color: var(--text-color);
    text-align: left;
    gap: 40px;
    max-width: none;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* 3D Illustration Placeholder */
.illustration-3d {
    width: 100%;
    max-width: 450px;
    height: 350px;
    background: linear-gradient(135deg, #eef2f5 0%, #ffffff 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
    position: relative;
}

.illustration-3d::before {
    content: '💙';
    font-size: 8rem;
    animation: float 6s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 1;
}

/* Page: Benefits */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 0;
    max-width: none;
}

.benefit-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: left;
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #eee;
}

.benefit-card .icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: inline-block;
    background: var(--bg-secondary);
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 20px; /* Squircle */
}

/* Forms (Login/Register/Profile) */
section.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

section.form-container h2 {
    text-align: center;
}

/* Interviews */
.interview-list {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    border: none;
}

.recorder-controls {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.1);
    margin-bottom: 40px;
    border: 2px solid #eef2f5;
    text-align: center;
}

.interview-item {
    border-bottom: 1px solid #f4f6f8;
    padding: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

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

.interview-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    background: white; /* Changed from bg-secondary for better contrast if desired, or keep bg-secondary */
    background: var(--bg-secondary);
    border-top: 1px solid #e1e4e8;
    padding: 80px 0 30px;
    margin-top: 80px;
}

.modern-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    margin-top: 15px;
    font-size: 0.95rem;
    max-width: 250px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 30px 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .modern-footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand {
        margin-bottom: 30px;
    }
    .footer-brand p {
        margin: 15px auto;
    }
}


/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.4); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 40px;
    border: none;
    width: 80%; 
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-color);
}

.star-rating {
    color: #ffd700;
    font-size: 32px;
    margin-bottom: 10px;
}

.highlight-text {
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--primary-color);
    opacity: 0.2; /* Light highlighter effect */
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 4px;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: 450px;
    border-radius: 20px;
    box-shadow: 20px 20px 60px #d1d9e6, -20px -20px 60px #ffffff;
    object-fit: cover;
    object-position: 0 85%;
}

/* Profile Layout Redesign */
.profile-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-sidebar {
    flex: 1;
    max-width: 350px;
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    position: sticky;
    top: 20px;
}

.profile-main {
    flex: 2;
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
}

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

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFEDEA; /* Light Red/Orange for primary action */
    color: #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.primary-btn-block {
    background: #20C997; /* Teal for action */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}


.expert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.tag-pill {
    background: white;
    border: 1px solid #eee;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.section-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #f4f6f8;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.tab-link {
    font-weight: 600;
    color: var(--text-secondary);
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
    border-bottom: 2px solid transparent; /* Reserve space */
    transition: color 0.2s;
    margin-bottom: -12px; /* Pull down to overlap border */
}

.tab-link.active {
    color: #20C997; /* Teal active color */
    border-bottom: 2px solid #20C997;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
}

/* Override existing form styles specifically for this layout if needed */
.profile-main .form-group {
    margin-bottom: 25px;
}

.profile-main label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.profile-main input, .profile-main textarea, .profile-main select {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 15px;
    width: 100%;
    font-size: 0.95rem;
}

.profile-main input:focus, .profile-main textarea:focus {
    background: white;
    border-color: #20C997;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.availability-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.day-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
   display: block;
}

.date-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.time-pill {
    background: #FCE8E8;
    color: #E55039;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    font-weight: 600;
}

@media (max-width: 900px) {
    .profile-layout {
        flex-direction: column;
    }
    .profile-sidebar {
        max-width: 100%;
        position: static;
    }
}

/* High Contrast Benefits Section Overrides */
.benefits {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); /* Deep rich gradient */
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin: 50px 0;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent; /* Prepare for hover */
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: translateY(0);
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #fff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.benefit-card h3 {
    color: #1a1a1a;
    font-weight: 800;
    font-size: 1.5rem;
}

.benefit-card p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.6;
}

.benefit-card .icon {
    font-size: 3.5rem;
    background: transparent;
    margin-bottom: 15px;
}

/* Force 3-column layout for Benefits */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; /* Match padding in overrides */
}

@media (max-width: 960px) {
    .benefits {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}
