/* Theme Variables */
:root[data-theme="light"] {
    --bg-color: #f5f5f5;
    --text-color: #333;
    --heading-color: #2c3e50;
    --subheading-color: #7f8c8d;
    --card-bg: white;
    --card-border: #e1e1e1;
    --accent-color: #3498db;
    --hover-bg: #f8f9fa;
}

:root[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e1e1e1;
    --heading-color: #ffffff;
    --subheading-color: #cccccc;
    --card-bg: #2c2c2c;
    --card-border: #404040;
    --accent-color: #3498db;
    --hover-bg: #363636;
}

/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

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

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
}

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

h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--subheading-color);
    font-weight: 400;
}

.company-name {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-weight: 500;
}

section {
    background: var(--card-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

h3 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 0.2rem;
}

.contact-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-text p {
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    color: #2c3e50;
    font-size: 1.8rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.faq-question {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: var(--text-color);
}

.faq-question:hover {
    background-color: var(--hover-bg);
    transform: scale(1.01);
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--heading-color);
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background-color: var(--card-bg);
    opacity: 0;
    padding: 0 1rem;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    opacity: 1;
    padding: 1rem;
    border-top: 1px solid var(--card-border);
}

.faq-answer p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Theme Toggle Wrapper and Switches */
.theme-toggle-wrapper {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switch,
.admin-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch input,
.admin-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    transition: 0.4s;
    border-radius: 30px;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.slider i {
    font-size: 14px;
    color: var(--accent-color);
    transition: opacity 0.3s ease;
    z-index: 2;
    position: relative;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: var(--accent-color);
    transition: 0.4s;
    border-radius: 50%;
    z-index: 1;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

/* Theme switch specific styles */
.theme-switch .slider .fa-sun,
.theme-switch .slider .fa-moon {
    transition: opacity 0.3s ease;
}

.theme-switch input:checked + .slider .fa-sun {
    opacity: 0.3;
}

.theme-switch input:checked + .slider .fa-moon {
    opacity: 1;
}

.theme-switch input:not(:checked) + .slider .fa-sun {
    opacity: 1;
}

.theme-switch input:not(:checked) + .slider .fa-moon {
    opacity: 0.3;
}

/* Admin switch specific styles */
.admin-switch .slider {
    flex-direction: row;
}

.admin-switch .slider .fa-lock-open {
    order: 1;
}

.admin-switch .slider .fa-lock {
    order: 2;
}

.admin-switch .slider .fa-lock,
.admin-switch .slider .fa-lock-open {
    transition: opacity 0.3s ease;
}

.admin-switch input:checked + .slider .fa-lock-open {
    opacity: 1;
}

.admin-switch input:checked + .slider .fa-lock {
    opacity: 0.3;
}

.admin-switch input:not(:checked) + .slider .fa-lock-open {
    opacity: 0.3;
}

.admin-switch input:not(:checked) + .slider .fa-lock {
    opacity: 1;
}

/* Hover effects for all switches */
.theme-switch:hover .slider,
.admin-switch:hover .slider {
    box-shadow: 0 0 5px var(--accent-color);
}

/* Responsive adjustments for switches */
@media (max-width: 600px) {
    .theme-toggle-wrapper {
        flex-direction: column;
        gap: 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    section {
        padding: 1.5rem;
    }
}

.contact-note {
    color: var(--subheading-color);
    font-style: italic;
}

.contact-note i {
    font-size: 1rem;
    margin-right: 0.3rem;
}

/* Reviews Section */
.review-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-form h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

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

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--card-border);
    border-radius: 5px;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
}

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

.rating-input {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.rating-input i {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.rating-input i:hover {
    color: #ffd700;
}

.submit-review {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.submit-review:hover {
    opacity: 0.9;
}

.reviews-container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.review-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.review-stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-text {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--subheading-color);
}

.review-author {
    font-weight: 500;
    margin: 0;
}

.review-date {
    font-size: 0.9rem;
    margin: 0;
}

.no-reviews {
    text-align: center;
    color: var(--subheading-color);
    font-style: italic;
    grid-column: 1 / -1;
    padding: 2rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .form-group input[type="text"],
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}

/* Admin Controls */
.admin-controls,
.admin-button,
.admin-button:hover,
.admin-button.active,
.admin-button i {
    display: none;
}

.delete-review {
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 1rem;
    width: 100%;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.delete-review:hover {
    opacity: 0.9;
}

/* Analytics Section */
.analytics-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.analytics-section h4 {
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.analytics-card {
    background: var(--bg-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
}

.analytics-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.analytics-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    background: var(--card-bg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.analytics-content {
    flex: 1;
}

.analytics-content h5 {
    color: var(--subheading-color);
    font-size: 0.9rem;
    margin: 0;
    margin-bottom: 0.3rem;
}

.analytics-content p {
    color: var(--heading-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive adjustments for analytics */
@media (max-width: 600px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-card {
        padding: 0.8rem;
    }
}

/* Clean up other elements */
button,
.theme-switch,
.admin-switch,
.rating-input i,
.faq-question {
    transition: transform 0.2s ease;
}

.contact-item p,
a {
    position: relative;
    transition: color 0.3s ease;
}

/* Remove ripple effects */
.submit-review,
.delete-review {
    position: relative;
}

/* Clean up focus styles */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Clean up disabled state */
button:disabled {
    opacity: 0.6;
}

/* Parallax Effects */
.profile-image,
section,
.review-card,
.analytics-card,
.faq-item,
.contact-item,
.review-form {
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateZ(0);
    position: relative;
    z-index: 1;
}

/* Ensure content stays above the parallax effect */
.profile-image *,
section *,
.review-card *,
.analytics-card *,
.faq-item *,
.contact-item *,
.review-form * {
    position: relative;
    z-index: 2;
}

/* Special handling for profile image */
.profile-image {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Disable parallax on mobile devices */
@media (max-width: 768px) {
    .profile-image,
    section,
    .review-card,
    .analytics-card,
    .faq-item,
    .contact-item,
    .review-form {
        transform: none !important;
        transition: none !important;
    }
} 