/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: #007bff;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    outline: none;
}

.nav-link:hover,
.nav-link:focus {
    color: #007bff;
    outline: none;
}

.nav-link:active {
    color: #0056b3;
}

.nav-link.active {
    color: #007bff;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border-color: #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-accent i {
    margin-right: 8px;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: 2px solid transparent;
    font-weight: 500;
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
}

/* Quick Links Section */
.quick-links {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quick-links .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 3rem;
    position: relative;
}

.quick-links .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.quick-link-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.quick-link-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.quick-link-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.quick-link-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* Legal Documents Styles */
.legal-document {
    max-width: 900px;
    margin: 100px auto 0;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.legal-document h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
}

.legal-document h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.legal-document h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-document h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.legal-section:last-child {
    border-bottom: none;
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
}

.important-notice {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.important-notice h3 {
    color: #856404;
    margin-top: 0;
    font-size: 1.3rem;
}

.major-disclaimer {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.major-disclaimer h3 {
    color: #721c24;
    margin-top: 0;
}

.fine-print {
    font-size: 0.9rem;
    color: #666;
    background: #f8f9fa;
    padding: 1rem;
    border-left: 3px solid #dc3545;
    margin: 1rem 0;
    font-weight: 500;
}

.fine-print strong {
    color: #dc3545;
}

.fine-print-section {
    background: #f1f3f4;
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.fine-print-section h4 {
    color: #495057;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.fine-print-section h4:first-child {
    margin-top: 0;
}

.data-handling, .payment-terms, .dispute-resolution {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.liability-limitation {
    background: #fff5f5;
    border: 2px solid #feb2b2;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.acknowledgment-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    text-align: center;
}

.acknowledgment-box h3 {
    color: white;
    margin-top: 0;
    font-size: 1.4rem;
}

.acknowledgment-box .fine-print {
    background: rgba(255,255,255,0.1);
    border-left: 3px solid #ffd700;
    color: white;
}

.acknowledgment-box .fine-print strong {
    color: #ffd700;
}

.contact-info {
    background: #e7f3ff;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
}

.legal-document ul, .legal-document ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-document li {
    margin: 0.5rem 0;
    line-height: 1.5;
}

.legal-document a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-document a:hover {
    text-decoration: underline;
}

.terms-required-note {
    color: #dc3545;
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}

.terms-notice-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.terms-notice-box h4 {
    color: #856404;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.terms-warning {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 6px 6px 0;
}

.terms-warning strong {
    color: #dc3545;
}

.terms-requirements {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.terms-requirements h5 {
    color: #495057;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.terms-requirements ul {
    margin: 0;
    padding-left: 1rem;
}

.terms-requirements li {
    margin: 0.3rem 0;
    color: #495057;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    border: 2px solid #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-container:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.checkbox-container input[type="checkbox"] {
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    transform: scale(1.2);
}

.checkbox-container strong {
    color: #495057;
    font-weight: 600;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 20px 10px rgba(255, 193, 7, 0.3);
    }
}

.terms-acceptance {
    transition: all 0.3s ease;
}

/* Disabled form elements styling */
input:disabled, textarea:disabled, button:disabled {
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

input:disabled:hover, textarea:disabled:hover, button:disabled:hover {
    cursor: not-allowed !important;
}

/* AI Features Styling */
.ai-features-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border: 2px solid #dee2e6;
}

.ai-feature-box {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.ai-feature-box h4 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ai-feature-box p {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.ai-options {
    margin-bottom: 1rem;
}

.ai-options label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.ai-options select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.ai-options select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-results-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.ai-results-box h4 {
    color: #155724;
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.ai-result-item {
    margin-bottom: 1.5rem;
}

.ai-result-item label {
    display: block;
    font-weight: 600;
    color: #155724;
    margin-bottom: 0.5rem;
}

.ai-result-item textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #28a745;
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    resize: vertical;
}

.download-warning {
    margin-top: 1.5rem;
}

.warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.warning-box i {
    color: #856404;
    font-size: 1.2rem;
}

.warning-box strong {
    color: #856404;
}

.download-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px solid #dee2e6;
}

.download-section h4 {
    color: #495057;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.download-buttons button {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.download-buttons button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-buttons .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.download-buttons .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    border: none;
}

/* Free and Premium Options */
.free-options, .premium-options {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid;
}

.free-options {
    background: #f8f9fa;
    border-color: #e9ecef;
}

.premium-options {
    background: linear-gradient(135deg, #fff5e6 0%, #fff8f0 100%);
    border-color: #ffc107;
}

.free-options h5, .premium-options h5 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.free-options h5 {
    color: #6c757d;
}

.premium-options h5 {
    color: #ff8c00;
}

.premium-options h5 i {
    color: #ffc107;
}

.free-note, .terms-required-note {
    display: block;
    margin-top: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
    font-style: italic;
}

.terms-required-note {
    color: #dc3545;
}

/* Payment Modal Styles */
.payment-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.payment-modal-content {
    background-color: white;
    margin: 2% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.3s ease-out;
}

.payment-modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.payment-modal-body {
    padding: 2rem;
}

/* Service Selection */
.payment-service-selection {
    margin-bottom: 2rem;
}

.payment-service-selection h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-option {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.service-option:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
}

.service-option.selected {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

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

.service-header h4 {
    color: #333;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #28a745;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 0.3rem 0;
    color: #555;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: #28a745;
}

/* Order Summary */
.order-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-summary h3 {
    color: #333;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

/* Payment Form */
.payment-form h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.security-notice {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 6px 6px 0;
    color: #004085;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.payment-method-option {
    flex: 1;
    min-width: 150px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: white;
}

.payment-method-option:hover {
    border-color: #007bff;
}

.payment-method-option input[type="radio"] {
    margin-right: 0.5rem;
}

.payment-method-option input[type="radio"]:checked + .payment-method-label {
    color: #007bff;
    font-weight: 600;
}

.card-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-details .field-group {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 10px;
    top: 35px;
    display: flex;
    gap: 5px;
}

.card-icons i {
    font-size: 1.2rem;
    opacity: 0.6;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-group {
    flex: 1;
}

.field-group.half-width {
    flex: 0.5;
}

.field-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.field-group input, .field-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.field-group input:focus, .field-group select:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.field-group small {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.billing-address {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.terms-agreement {
    margin-bottom: 2rem;
}

.payment-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.payment-buttons button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Payment Processing */
.payment-processing {
    text-align: center;
    padding: 3rem 2rem;
}

.processing-animation i {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.processing-steps {
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #666;
    transition: all 0.3s ease;
}

.step.active {
    background: #e7f3ff;
    color: #007bff;
    font-weight: 600;
}

.step.completed {
    background: #d4edda;
    color: #28a745;
}

/* Payment Success */
.payment-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-animation i {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

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

.detail-item .label {
    color: #666;
}

.detail-item .value {
    font-weight: 600;
    color: #333;
}

/* Guarantee Notice */
.guarantee-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.guarantee-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guarantee-content i {
    font-size: 2rem;
    color: #856404;
}

.guarantee-text strong {
    color: #856404;
    display: block;
    margin-bottom: 0.5rem;
}

.guarantee-text p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .payment-modal-body {
        padding: 1rem;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .payment-buttons {
        flex-direction: column;
    }
}

.legal-section h3 {
    color: #555;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 500;
}

.legal-section p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.legal-section ul {
    color: #555;
    line-height: 1.7;
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.legal-section a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.legal-section a:hover {
    text-decoration: underline;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Terms Notice and Pricing Styles */
.terms-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-tiers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-tier {
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid;
}

.service-tier.free {
    background: #d4edda;
    border-color: #28a745;
}

.service-tier.premium {
    background: #fff3cd;
    border-color: #ffc107;
}

.service-tier h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-tier.free h4 {
    color: #28a745;
}

.service-tier.premium h4 {
    color: #856404;
}

.service-tier p {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 0.95rem;
}

.service-tier small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.terms-acceptance {
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #667eea;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    left: 3px;
    top: -1px;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-container a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.terms-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    font-style: italic;
}

.terms-note i {
    color: #28a745;
}

/* Premium Button Styles */
.btn-premium {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #333;
    border: 2px solid #ffc107;
    font-weight: 600;
    position: relative;
}

.btn-premium:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff8c00 0%, #ffc107 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-premium:disabled {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}

.premium-note {
    display: block;
    margin-top: 0.5rem;
    color: #856404;
    font-size: 0.85rem;
    font-style: italic;
}

.premium-note i {
    color: #ffc107;
    margin-right: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #f8f9fa;
    color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Social links below hero content */
.hero .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

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

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
}

/* Section Styles */
section {
    padding: 80px 0;
}

/* Ensure non-hero sections have proper spacing from fixed navbar */
section:not(.hero) {
    padding-top: 120px;
    position: relative;
    z-index: 1;
}

/* Prevent any backdrop effects on page content */
main, section, .container, .container-full {
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.7;
}

/* Full Width Education Styles */
.education-full-width {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.container-full {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 40px;
}

.education-content-full {
    width: 100%;
}

.education-text {
    max-width: 1400px;
    margin: 0 auto;
}

.education-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.7;
    text-align: justify;
}

.education-timeline {
    margin-top: 3rem;
}

.education-timeline h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

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

.education-item-full {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.education-item-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.education-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-content {
    flex: 1;
}

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

.education-content h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.education-content .education-year {
    color: #007bff;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    white-space: nowrap;
}

.education-content p {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.education-content p strong {
    color: #333;
    font-weight: 600;
}

.education {
    margin-top: 2rem;
}

.education h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-3px);
}

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

.education-header h4 {
    color: #333;
    font-size: 1.1rem;
}

.education-year {
    color: #007bff;
    font-weight: 500;
    font-size: 0.9rem;
}

.skills h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skill-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-3px);
}

.skill-item i {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.skill-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.skill-item p {
    color: #666;
    font-size: 0.9rem;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.experience-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.experience-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #e7f3ff;
    color: #007bff;
}

.experience-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Reuse tag styling for experience tags */
.experience-tags .tag {
    padding: 0.3rem 0.8rem;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Experience Tabs */
.experience-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.tab-button {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tab-button:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.tab-button.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.research-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.research-header h3 {
    color: #333;
    font-size: 1.2rem;
}

.research-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #e7f3ff;
    color: #007bff;
}

.research-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background-color: #f8f9fa;
    color: #666;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.research-links {
    display: flex;
    gap: 1rem;
}

.research-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.research-link:hover {
    color: #0056b3;
}

/* Research Tools Section */
.research-tools-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.lbm-overview {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f3ff 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 5px solid #007bff;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.1);
}

.lbm-overview h4 {
    color: #007bff;
    font-size: 1.3em;
    margin-bottom: 15px;
    font-weight: 600;
}

.lbm-overview p {
    line-height: 1.7;
    color: #444;
    margin: 0;
    text-align: justify;
}

.lbm-overview strong {
    color: #0056b3;
    font-weight: 600;
}

.section-subtitle {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.research-tool {
    border: 2px solid #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.research-tool:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2);
    border-color: #0056b3;
}

.research-badge {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.tool-actions {
    margin-top: 1.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #003d82);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

/* Coming Soon Section */
.coming-soon-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.coming-soon-card {
    background: white;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.coming-soon-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 1.5rem;
}

.coming-soon-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.coming-soon-card > p {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.2rem;
    color: #007bff;
    min-width: 20px;
}

.feature-item span {
    font-weight: 500;
    color: #2c3e50;
}

.contact-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.contact-info p {
    font-size: 1rem;
    color: #6c757d;
}

.contact-info a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Publications Section */
.publications {
    background-color: #f8f9fa;
}

.publications-list {
    max-width: 800px;
    margin: 0 auto;
}

.publication-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/*
 * Pages that need their footer anchored to the bottom of the viewport can
 * apply the `page-container` class to the `<body>` element. The page
 * content will fill the available space, and the footer will stick to
 * the bottom when the content is shorter than the viewport.
 */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-container .footer {
    margin-top: auto;
}

.publication-item:hover {
    transform: translateY(-3px);
}

.publication-year {
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    min-width: 60px;
}

.publication-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.publication-authors {
    margin-bottom: 0.5rem;
    color: #666;
}

.publication-venue {
    margin-bottom: 1rem;
    color: #666;
    font-style: italic;
}

.publication-links {
    display: flex;
    gap: 1rem;
}

.pub-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.pub-link:hover {
    color: #0056b3;
}

/* Resume Section */
.Resume-content {
    max-width: 800px;
    margin: 0 auto;
}

.Resume-download {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#build-resume-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    transition: all 0.3s ease;
}

#build-resume-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.Resume-section {
    margin-bottom: 3rem;
}

.Resume-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.Resume-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.Resume-item:hover {
    transform: translateY(-2px);
}

.Resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.Resume-item-header h4 {
    color: #333;
    font-size: 1.1rem;
}

.Resume-year {
    color: #007bff;
    font-weight: 500;
}

.Resume-item p {
    color: #666;
    margin-bottom: 0.3rem;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: #007bff;
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
    line-height: 1.5;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Formspree specific styles */
input[name="_gotcha"],
.honeypot {
    display: none !important;
}

.btn-spinner {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-spinner {
    display: inline-block;
}

/* Thank you page styles */
.thank-you-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1.5rem;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.thank-you-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.thank-you-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.thank-you-info {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.thank-you-info p {
    color: #666;
    margin-bottom: 0.5rem;
}

.thank-you-info a {
    color: #007bff;
    text-decoration: none;
}

.thank-you-info a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 1rem 0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.footer-social-link:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 120px;
    right: 30px;
    z-index: 1001;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.chatbot-badge {
    position: absolute;
    top: -35px;
    right: -10px;
    background: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.chatbot-toggle:hover .chatbot-badge {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 123, 255, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3); }
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.chatbot-window.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.chatbot-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.chatbot-info {
    flex: 1;
}

.chatbot-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.9;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

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

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message .message-content {
    background: #f8f9fa;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: #007bff;
    color: white;
    border-bottom-right-radius: 5px;
}

.quick-responses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-response {
    background: #e9ecef;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.quick-response:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 0.5rem;
}

#chatbot-input-field {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#chatbot-input-field:focus {
    border-color: #007bff;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    background: #007bff;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-send:hover {
    background: #0056b3;
    transform: scale(1.1);
}

/* Chatbot responsive styles */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 80px;
        right: 20px;
    }
    
    .chatbot-window {
        width: 300px;
        height: 400px;
        bottom: 70px;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 70px;
        right: 15px;
    }
    
    .chatbot-window {
        width: 280px;
        height: 350px;
        bottom: 60px;
        right: -15px;
    }
    
    .chatbot-badge {
        display: none;
    }
}

/* Responsive Design */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .container-full {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .education-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablets (iPad Portrait and smaller desktops) */
@media (max-width: 768px) and (min-width: 481px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .container-full {
        padding: 0 20px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-item-full {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .education-content .education-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .profile-photo {
        width: 300px;
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form {
        max-width: none;
    }
    
    .thank-you-content {
        padding: 2.5rem;
        margin: 0 20px;
    }
    
    .thank-you-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .research-grid,
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile phones */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lbm-overview {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .lbm-overview h4 {
        font-size: 1.2em;
    }
    
    .lbm-overview p {
        text-align: left;
        font-size: 0.95em;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }
    
    /* Coming Soon Section Tablet */
    .coming-soon-card {
        padding: 2.5rem 1.5rem;
        margin: 0 1rem;
    }
    
    .coming-soon-icon {
        font-size: 3.5rem;
    }
    
    .coming-soon-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }
    
    .hero .social-links {
        margin-top: 1.5rem;
        gap: 0.8rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .container-full {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .education-timeline h3 {
        font-size: 1.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .education-item-full {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .education-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    .education-content h4 {
        font-size: 1.1rem;
    }
    
    .education-content .education-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .research-card,
    .experience-card,
    .publication-item,
    .Resume-item {
        padding: 1.5rem;
    }
    
    /* Coming Soon Section Mobile */
    .coming-soon-card {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .coming-soon-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .coming-soon-card h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .coming-soon-card > p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .coming-soon-features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .feature-item {
        padding: 0.75rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .feature-item:hover {
        transform: translateY(-2px);
    }
    
    .experience-tabs {
        max-width: 350px;
        margin-bottom: 1.5rem;
    }
    
    .tab-button {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .thank-you-content {
        padding: 2rem;
        margin: 0 15px;
    }
    
    .thank-you-title {
        font-size: 2rem;
    }
    
    .thank-you-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .thank-you-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        text-align: center;
        min-height: 44px; /* Better touch targets */
    }
    
    .form-group input,
    .form-group textarea {
        min-height: 44px; /* Better touch targets */
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .social-link {
        width: 50px;
        height: 50px; /* Larger touch targets */
    }
    
    .nav-link {
        padding: 10px 0; /* Better touch targets in mobile menu */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
        gap: 0.35rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social-link {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .footer {
        font-size: 0.85rem;
    }
}

/* Additional responsive and accessibility enhancements */

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .profile-photo img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .social-link:hover,
    .nav-link:hover {
        transform: none; /* Disable hover transforms on touch devices */
    }
    
    .research-card:hover,
    .experience-card:hover,
    .publication-item:hover {
        transform: none;
    }
    
    .btn:active,
    .social-link:active {
        transform: scale(0.95); /* Add touch feedback */
    }
}

/* Landscape orientation on mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

/* iPad Pro specific optimizations */
@media (min-width: 1024px) and (max-width: 1366px) and (-webkit-min-device-pixel-ratio: 2) {
    .container {
        max-width: 1100px;
    }
    
    .hero-content {
        gap: 3.5rem;
    }
    
    .research-grid,
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hamburger,
    .back-to-top,
    .social-links,
    .btn {
        display: none !important;
    }
    
    .hero {
        min-height: 200px;
        padding-top: 0;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Chatbot Welcome Notification */
.chatbot-welcome-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    animation: slideInFromRight 0.5s ease-out, fadeOut 0.5s ease-in 7.5s forwards;
    max-width: 300px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    position: relative;
}

.welcome-content i.fa-hand-paper {
    font-size: 20px;
    color: #ffd700;
    animation: wave 1s ease-in-out infinite;
}

.welcome-content span {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}

.welcome-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.welcome-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Pulse animation for chatbot toggle */
.chatbot-toggle.pulse-animation {
    animation: chatbotPulse 2s ease-in-out;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes chatbotPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    }
}

/* Mobile responsiveness for welcome notification */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 100px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .chatbot-welcome-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .welcome-content {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .welcome-content span {
        font-size: 13px;
    }
}

/* Resume Builder Modal Styles */
.resume-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.resume-modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.resume-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resume-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.resume-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.resume-modal-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.field-group {
    margin-bottom: 1.5rem;
}

.field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.9rem;
}

.field-group input,
.field-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.field-group input:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-group textarea {
    resize: vertical;
    min-height: 80px;
}

#modal-summary {
    background-color: #f8f9fa;
    min-height: 120px;
}

/* Resume Builder Enhanced Styles */
.resume-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.resume-section-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.resume-section-header i {
    margin-right: 0.5rem;
    color: #667eea;
}

.add-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.education-entry,
.experience-entry {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.education-entry:hover,
.experience-entry:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

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

.entry-title {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 1rem;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.entry-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.entry-form-row.full-width {
    grid-template-columns: 1fr;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Mobile responsiveness for new elements */
@media (max-width: 768px) {
    .form-row,
    .entry-form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .resume-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .education-entry,
    .experience-entry {
        padding: 1rem;
    }
    
    .entry-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .resume-modal-content {
        width: 95%;
        margin: 1% auto;
        max-height: 95vh;
    }
    
    .resume-modal-header {
        padding: 1rem;
    }
    
    .resume-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .resume-modal-body {
        padding: 1rem;
    }
    
    /* Quick Links Mobile Styles */
    .quick-links {
        padding: 60px 0;
    }
    
    .quick-links .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .quick-link-card {
        padding: 1.5rem;
    }
    
    .quick-link-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .quick-link-card h3 {
        font-size: 1.3rem;
    }
    
    /* Legal Documents Mobile */
    .legal-document {
        margin-top: 80px;
        padding: 1rem;
    }
    
    .legal-document h1 {
        font-size: 2rem;
    }
    
    .service-tiers {
        grid-template-columns: 1fr;
    }
    
    .terms-notice {
        padding: 1rem;
    }
}

/* Dynamic List Styles for Tasks and Projects */
.dynamic-list-container {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    overflow: hidden;
}

.dynamic-list {
    min-height: 120px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: white;
}

.list-placeholder {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.dynamic-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 6px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.2s ease;
}

.dynamic-list-item:hover {
    background-color: #e9ecef;
    transform: translateX(2px);
}

.dynamic-list-item:last-child {
    margin-bottom: 0;
}

.item-text {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    word-break: break-word;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.remove-item-btn:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.add-item-input {
    display: flex;
    padding: 12px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.dynamic-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.dynamic-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.add-item-btn {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-left: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
}

.add-item-btn:hover {
    background-color: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.add-item-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments for dynamic lists */
@media (max-width: 768px) {
    .dynamic-list {
        min-height: 100px;
        max-height: 150px;
    }
    
    .dynamic-list-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .add-item-input {
        padding: 10px;
    }
    
    .dynamic-input {
        font-size: 13px;
    }
}

/* Hidden Elements */
.hidden {
    display: none !important;
}

/* Visible Elements */
.visible {
    display: block !important;
}

/* AI Results Box Initial State */
.ai-results-box {
    display: none;
}

/* Payment Processing Initial State */
.payment-processing {
    display: none;
}

/* Payment Success Initial State */
.payment-success {
    display: none;
}

/* Resume Tab Styles */
.resume-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    gap: 0;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: #667eea;
    background-color: #f8f9ff;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background-color: #f8f9ff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Resume Builder Intro Styles */
.resume-builder-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.builder-header h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.builder-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.builder-features {
    margin: 2rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-item {
    background: #f8f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}

.feature-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.builder-action {
    margin: 2rem 0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.builder-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.builder-note i {
    color: #667eea;
}

/* Mobile Responsive for Tabs */
@media (max-width: 768px) {
    .resume-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        justify-content: center;
        border-bottom: 1px solid #e1e8ed;
    }
    
    .tab-btn.active {
        border-bottom: 1px solid #667eea;
        border-left: 3px solid #667eea;
    }
    
    .builder-header h3 {
        font-size: 1.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
