/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #8b5cf6;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --error-color: #ef4444;
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
    animation: slideInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav.nav-visible {
    transform: translateY(0);
}

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

.nav-brand h2 {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* Floating Cards Animation */
.hero-visual {
    position: relative;
    height: 500px;
    opacity: 0;
    transform: translateX(50px);
    animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
    transition: var(--transition);
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: floatDelay1 4s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 20%;
    animation: floatDelay2 4s ease-in-out infinite;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation: floatDelay3 4s ease-in-out infinite;
}

.card-icon {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 12px;
    color: white;
}

.card-text {
    font-weight: 600;
    color: var(--text-primary);
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.25);
}

.service-card:hover .icon-wrapper {
    animation: bounce 1s ease-in-out;
}

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

.service-card:active {
    transform: translateY(-8px) scale(0.98);
}

.service-icon {
    margin-bottom: 24px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.feature-tag {
    background: var(--bg-accent);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.service-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 18px;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
    animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.contact-feature {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.contact-feature:nth-child(1) { animation-delay: 0.5s; }
.contact-feature:nth-child(2) { animation-delay: 0.6s; }
.contact-feature:nth-child(3) { animation-delay: 0.7s; }

.contact-feature:hover {
    transform: translateX(5px);
}

.contact-feature:hover .feature-icon {
    animation: pulse 1s infinite;
    transform: scale(1.1);
}

.contact-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.7;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-content p {
    color: var(--text-secondary);
}

/* Form Styles */
.form-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s forwards;
}

.form-container.submitted {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-input,
.form-textarea {
    padding: 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: var(--font-family);
    transition: var(--transition);
    background: var(--bg-primary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-group {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-group:nth-child(1) { animation-delay: 0.9s; }
.form-group:nth-child(2) { animation-delay: 1.0s; }
.form-group:nth-child(3) { animation-delay: 1.1s; }
.form-group:nth-child(4) { animation-delay: 1.2s; }
.form-group:nth-child(5) { animation-delay: 1.3s; }

.form-group.error .form-input,
.form-group.error .form-textarea {
    border-color: var(--error-color);
    animation: shake 0.5s ease-in-out;
}

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

.input-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.input-error.show {
    display: block;
}

/* Service Options */
.service-options {
    display: grid;
    gap: 16px;
}

.service-option {
    position: relative;
}

.service-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.service-option-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.service-option-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.3s ease;
}

.service-option-label:hover::before {
    left: 100%;
}

.service-option-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -5px rgba(99, 102, 241, 0.2);
}

.service-option-label:hover .option-icon {
    transform: scale(1.1);
    animation: bounce 0.6s ease-in-out;
}

.service-option input[type="checkbox"]:checked + .service-option-label {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    position: relative;
    transform: scale(1.02);
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-option input[type="checkbox"]:checked + .service-option-label .option-icon {
    background: var(--gradient-primary);
    color: white;
    animation: bounce 0.6s ease-in-out;
}

.service-option input[type="checkbox"]:checked + .service-option-label::after {
    content: '✓';
    position: absolute;
    right: 20px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.option-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: var(--bg-accent);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-content {
    flex: 1;
}

.option-content strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.option-content small {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Submit Button */
.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: var(--border-radius);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn.loading {
    animation: pulse 2s infinite;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover .btn-text {
    animation: bounce 0.6s ease-in-out;
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-note {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: -16px;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.success-message .success-icon {
    animation: bounce 1s ease-in-out;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.success-message h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--success-color);
}

.success-message p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    color: #9ca3af;
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Enhanced Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(99, 102, 241, 0);
    }
}

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

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -6px, 0);
    }
    70% {
        transform: translate3d(0, -3px, 0);
    }
    90% {
        transform: translate3d(0, -1px, 0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes floatDelay1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@keyframes floatDelay2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(-3deg); }
    66% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes floatDelay3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(-25px) rotate(-2deg); }
}

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

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

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 400px;
    min-width: 320px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    transition: var(--transition);
}

.toast-success::before {
    background: var(--success-color);
}

.toast-error::before {
    background: var(--error-color);
}

.toast-warning::before {
    background: var(--accent-color);
}

.toast-info::before {
    background: var(--secondary-color);
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-accent);
    color: var(--text-secondary);
}

.toast-close:active {
    transform: scale(0.95);
}

/* Toast animations for different types */
.toast-success {
    animation: toastSuccessSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-error {
    animation: toastErrorShake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSuccessSlide {
    0% {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }
    50% {
        transform: translateX(-10px) scale(1.02);
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes toastErrorShake {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(3px);
    }
}

/* Enhanced form validation states */
.form-group.has-success .form-input,
.form-group.has-success .form-textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group.has-success .form-label {
    color: var(--success-color);
}

.form-group.has-warning .form-input,
.form-group.has-warning .form-textarea {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.form-group.has-warning .form-label {
    color: var(--accent-color);
}

/* Progress indicator for form completion */
.form-progress {
    position: relative;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    margin-bottom: 32px;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0;
}

/* Enhanced button states */
.submit-btn.success {
    background: var(--gradient-secondary);
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Improved error message styling */
.input-error.show {
    display: block;
    animation: errorSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 50px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .services,
    .contact {
        padding: 80px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .service-card {
        padding: 32px;
    }
    
    .form-container {
        padding: 32px;
    }
    
    .contact-features {
        gap: 24px;
    }
    
    .floating-card {
        padding: 16px;
        min-width: 160px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .card-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-title {
        font-size: 32px;
    }
    
    .form-container {
        padding: 24px;
    }
    
    .service-options {
        gap: 12px;
    }
    
    .service-option-label {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    /* Toast responsive design */
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        align-items: stretch;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
        margin: 0;
    }
    
    .toast-message {
        font-size: 13px;
    }
}

/* Additional responsive toast adjustments */
@media (max-width: 768px) {
    .toast-container {
        right: 16px;
        left: 16px;
        top: 16px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}