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

:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Navbar */
.navbar {
    background-color: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
    animation: slideInFromLeft 0.5s ease-out;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Form Page */
.form-page {
    flex: 1;
    padding: 3rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.form-container h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.info-box {
    background-color: #f0f9ff;
    border: 1px solid #0284c7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.info-box p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #075985;
}

.info-box code {
    background-color: #e0f2fe;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Admin Panel */
.admin-header {
    background-color: var(--surface);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-size: 1.75rem;
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-buttons .btn {
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.admin-content {
    padding: 0 0 3rem;
}

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

.stat-card {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.clients-section {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.clients-section h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.section-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    min-width: 200px;
}

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

.clients-table-container {
    overflow-x: auto;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table th,
.clients-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.clients-table th {
    background-color: var(--background);
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.clients-table tr:hover {
    background-color: var(--background);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background-color: #dbeafe;
    color: #1e40af;
}

.client-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.no-data {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Ratings Section in Admin */
.ratings-section {
    background-color: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out;
    overflow: hidden;
}

.ratings-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
}

.rating-stat {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    animation: scaleIn 0.8s ease-out;
    transition: all 0.3s ease;
    overflow: hidden;
}

.rating-stat:nth-child(1) {
    animation-delay: 0.2s;
}

.rating-stat:nth-child(2) {
    animation-delay: 0.3s;
}

.rating-stat:nth-child(3) {
    animation-delay: 0.4s;
}

.rating-stat:nth-child(4) {
    animation-delay: 0.5s;
}

.rating-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rating-stat h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    word-wrap: break-word;
}

.rating-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    word-wrap: break-word;
}

.ratings-container {
    overflow: visible;
    margin-top: 2rem;
    width: 100%;
}

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

.rating-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rating-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.rating-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    gap: 1rem;
    min-width: 0;
}

.rating-card-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.rating-card-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.rating-card-stars {
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: #ffc107;
    white-space: nowrap;
    flex-shrink: 0;
}

.rating-card-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    word-wrap: break-word;
}

.rating-card-review {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.rating-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.rating-card-actions button {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem;
    font-size: 0.85rem;
}

/* Rating Breakdown */
.rating-breakdown {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    animation: slideInUp 0.8s ease-out;
    overflow: hidden;
}

.rating-breakdown h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.rating-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.rating-breakdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.rating-breakdown-item span:first-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background-color: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0 0.5rem;
}

.rating-breakdown-item span:last-child {
    text-align: right;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: var(--surface);
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
    box-shadow: 0 -1px 3px 0 rgb(0 0 0 / 0.1);
}

/* Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

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

/* Homepage Animations */
.hero h1 {
    animation: slideInFromLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
    font-size: 3rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    animation: slideInFromRight 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
    font-size: 1.5rem;
}

.hero-description {
    animation: slideInFromLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s both;
    font-size: 1.1rem;
}

.hero-features {
    animation: fadeIn 1s ease-out 1.2s both;
}

.feature {
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature:nth-child(1) {
    animation-delay: 1.4s;
}

.feature:nth-child(2) {
    animation-delay: 1.6s;
}

.feature:nth-child(3) {
    animation-delay: 1.8s;
}

.feature:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.3);
}

.feature-icon {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

.feature h3 {
    animation: slideInFromLeft 0.8s ease-out;
}

.feature p {
    animation: slideInFromRight 0.8s ease-out;
}

.btn-large {
    animation: slideInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 2s both;
    position: relative;
    overflow: hidden;
}

.btn-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.5s ease;
}

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



.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

.form-container {
    animation: slideInUp 0.6s ease-out;
}

.form-group {
    animation: slideInLeft 0.6s ease-out;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

.message {
    animation: slideInDown 0.5s ease-out;
}

.stat-card {
    animation: scaleIn 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.clients-table tr {
    animation: fadeIn 0.5s ease-out;
    transition: background-color 0.3s ease;
}

.clients-table tr:hover {
    animation: none;
}

.clients-table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.clients-table tbody tr:nth-child(2) {
    animation-delay: 0.2s;
}

.clients-table tbody tr:nth-child(3) {
    animation-delay: 0.3s;
}

.clients-table tbody tr:nth-child(n+4) {
    animation-delay: 0.4s;
}

button {
    transition: all 0.3s ease;
}

button:active {
    transform: scale(0.98);
}

input:focus,
select:focus,
textarea:focus {
    animation: pulse 0.4s ease-out;
}

.nav-links a::after {
    transition: width 0.3s ease;
}

footer {
    animation: slideInUp 0.6s ease-out;
}

/* Professional Section */
.professional-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.professional-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.professional-card {
    background-color: var(--surface);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
    animation: scaleIn 0.8s ease-out;
    border: 2px solid #e0e7ff;
}

.professional-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.professional-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.professional-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideInUp 0.8s ease-out;
}

.info-item:nth-child(1) {
    animation-delay: 0.4s;
}

.info-item:nth-child(2) {
    animation-delay: 0.5s;
}

.info-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item p {
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.info-item a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    transform: translateX(5px);
}

.skills-section {
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.skills-section h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    animation: bounceIn 0.8s ease-out;
    transition: all 0.3s ease;
}

.skill-badge:nth-child(1) {
    animation-delay: 0.7s;
}

.skill-badge:nth-child(2) {
    animation-delay: 0.8s;
}

.skill-badge:nth-child(3) {
    animation-delay: 0.9s;
}

.skill-badge:nth-child(4) {
    animation-delay: 1s;
}

.skill-badge:nth-child(5) {
    animation-delay: 1.1s;
}

.skill-badge:nth-child(6) {
    animation-delay: 1.2s;
}

.skill-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px -5px rgb(79 70 229 / 0.4);
}

.achievements-section {
    margin-top: 2rem;
    animation: slideInUp 0.8s ease-out 0.7s both;
}

.achievements-section h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.achievements-list {
    list-style: none;
    padding: 0;
}

.achievements-list li {
    padding: 0.8rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.6s ease-out;
    transition: all 0.3s ease;
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list li:nth-child(1) {
    animation-delay: 0.8s;
}

.achievements-list li:nth-child(2) {
    animation-delay: 0.9s;
}

.achievements-list li:nth-child(3) {
    animation-delay: 1s;
}

.achievements-list li:nth-child(4) {
    animation-delay: 1.1s;
}

.achievements-list li:nth-child(5) {
    animation-delay: 1.2s;
}

.achievements-list li:hover {
    transform: translateX(10px);
    color: var(--primary-color);
}

.achievements-list li::before {
    content: '';
    display: inline-block;
    font-weight: bold;
    color: var(--success-color);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: var(--surface);
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.service-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    animation: slideInUp 0.8s ease-out;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:nth-child(1) {
    animation-delay: 0.2s;
}

.service-card:nth-child(2) {
    animation-delay: 0.4s;
}

.service-card:nth-child(3) {
    animation-delay: 0.6s;
}

.service-card:nth-child(4) {
    animation-delay: 0.8s;
}

.service-card:nth-child(5) {
    animation-delay: 1s;
}

.service-card:nth-child(6) {
    animation-delay: 1.2s;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.testimonials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

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

.testimonial-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: scaleIn 0.8s ease-out;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s ease;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.3s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.5s;
}

.testimonial-card:nth-child(5) {
    animation-delay: 0.6s;
}

.testimonial-card:nth-child(6) {
    animation-delay: 0.7s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: slideInFromLeft 0.6s ease-out;
}

.testimonial-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.7;
    animation: fadeIn 0.6s ease-out;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    animation: slideInFromRight 0.6s ease-out;
}

/* Enhanced Footer */
.main-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 3rem 0 0;
}

.footer-content {
    padding: 3rem 0;
}

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

.footer-section {
    animation: slideInUp 0.8s ease-out;
}

.footer-section:nth-child(1) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.3s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.4s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.5s;
}

.footer-section h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.contact-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.contact-list strong {
    color: #e2e8f0;
}

.contact-list a {
    color: var(--primary-light);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.footer-divider {
    height: 1px;
    background-color: #334155;
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Rating Section */
.rating-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.rating-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    animation: slideInFromLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rating-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    animation: slideInFromRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.rating-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.rating-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 12px;
    animation: scaleIn 0.8s ease-out;
    transition: all 0.3s ease;
}

.stat:nth-child(1) {
    animation-delay: 0.3s;
}

.stat:nth-child(2) {
    animation-delay: 0.4s;
}

.stat:nth-child(3) {
    animation-delay: 0.5s;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgb(79 70 229 / 0.4);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.rating-form {
    animation: slideInUp 0.8s ease-out 0.3s both;
}

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

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
    font-size: 2.5rem;
}

.star-rating input {
    display: none;
}

.star-rating .star {
    cursor: pointer;
    color: #ddd;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star,
.star-rating input:checked ~ .star {
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    transform: scale(1.1);
}

.rating-text {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

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

#ratingMessage {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .nav-links {
        gap: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-actions {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .clients-table {
        font-size: 0.9rem;
    }

    .clients-table th,
    .clients-table td {
        padding: 0.75rem 0.5rem;
    }

    .admin-header .container {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .rating-container {
        grid-template-columns: 1fr;
    }

    .star-rating {
        font-size: 2rem;
        gap: 0.25rem;
    }

    .rating-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .ratings-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .rating-stat {
        padding: 1rem;
    }

    .rating-stat h4 {
        font-size: 0.8rem;
    }

    .rating-value {
        font-size: 1.5rem;
    }

    .rating-breakdown {
        padding: 1.5rem 1rem;
    }

    .rating-breakdown h4 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .rating-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .rating-breakdown-item {
        display: grid;
        grid-template-columns: 40px 1fr 50px;
        align-items: center;
        gap: 0.75rem;
    }

    .rating-breakdown-item span:first-child {
        font-size: 0.85rem;
        text-align: center;
    }

    .progress-bar {
        height: 25px;
    }

    .progress-fill {
        font-size: 0.65rem;
    }

    .rating-breakdown-item span:last-child {
        font-size: 0.8rem;
    }

    .ratings-grid {
        grid-template-columns: 1fr;
    }

    .rating-card {
        padding: 1rem;
    }

    .rating-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rating-card-stars {
        margin-top: 0.5rem;
        font-size: 1rem;
    }

    .admin-buttons {
        flex-direction: column;
        width: 100%;
    }

    .admin-buttons .btn {
        width: 100%;
    }

    .section-actions {
        flex-direction: column;
    }

    .section-actions .search-input {
        width: 100%;
    }

    .section-actions button {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-card h3 {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 1rem;
        margin: 0;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .ratings-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1rem 0;
    }

    .rating-stat {
        padding: 0.75rem;
        overflow: hidden;
    }

    .rating-stat h4 {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        word-wrap: break-word;
    }

    .rating-value {
        font-size: 1.25rem;
        word-wrap: break-word;
    }

    .rating-breakdown {
        padding: 1rem;
        margin-top: 1rem;
        overflow: hidden;
    }

    .rating-breakdown h4 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .rating-breakdown-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
    }

    .rating-breakdown-item {
        display: grid;
        grid-template-columns: 35px 1fr 45px;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        min-width: 0;
    }

    .rating-breakdown-item span:first-child {
        font-size: 0.75rem;
        text-align: center;
        min-width: 35px;
    }

    .progress-bar {
        height: 20px;
        min-width: 0;
    }

    .progress-fill {
        font-size: 0.65rem;
        min-width: 0;
    }

    .rating-breakdown-item span:last-child {
        font-size: 0.75rem;
        min-width: 45px;
        text-align: right;
    }

    .ratings-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        width: 100%;
    }

    .rating-card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        overflow: hidden;
        word-wrap: break-word;
    }

    .rating-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
    }

    .rating-card-name {
        font-size: 0.9rem;
        word-wrap: break-word;
    }

    .rating-card-email {
        font-size: 0.75rem;
        word-wrap: break-word;
    }

    .rating-card-stars {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .rating-card-review {
        font-size: 0.85rem;
        padding: 0.75rem 0;
        margin: 0.75rem 0;
        word-wrap: break-word;
    }

    .clients-table {
        font-size: 0.75rem;
        width: 100%;
    }

    .clients-table th,
    .clients-table td {
        padding: 0.5rem 0.25rem;
        word-wrap: break-word;
    }

    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0;
    }

    .section-header h2 {
        font-size: 1.25rem;
        margin: 0;
    }

    .section-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .section-actions .search-input {
        width: 100%;
        padding: 0.6rem;
        font-size: 16px;
    }

    .section-actions button {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }

    .admin-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .admin-buttons .btn {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .professional-card {
        padding: 1.5rem 1rem;
        overflow: hidden;
    }

    .professional-content h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }

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

    .skill-badge {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        word-wrap: break-word;
    }

    .ratings-section {
        padding: 1rem;
        margin-top: 1rem;
        overflow: hidden;
    }

    .container {
        padding: 0 1rem;
    }
}
