@import 'admin.css';
@import 'chat-widget.css';
/* Core Styles */
:root {
    --primary-color: #2196F3;
    --secondary-color: #1976D2;
    --accent-color: #FFC107;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --spacing: 2rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing);
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-bg);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing);
    padding: var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: var(--spacing);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* About Section */
.about {
    padding: var(--spacing);
    background: var(--light-bg);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: var(--spacing);
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Team Section */
.team-member {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing);
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
}

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

.social-links a {
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

/* Expertise Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing);
    padding: var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    background: white;
    padding: var(--spacing);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tech-category ul {
    list-style: none;
    margin-top: 1rem;
}

.tech-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

/* Pricing Section */
.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing);
    padding: var(--spacing);
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: white;
    padding: var(--spacing);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
}

.price-card.featured {
    border: 2px solid var(--primary-color);
}

.featured-tag {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 100px;
    left: 20px; /* Changed from right to left */
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
}

.chat-input {
    border-top: 1px solid #eee;
    padding: 15px;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px; /* Changed from right to left */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.message {
    position: relative;
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.message.sent {
    background: #007bff;
    color: white;
    margin-left: auto;
}

.message.received {
    background: #f1f1f1;
    margin-right: auto;
}

.message.system {
    background: #f8f9fa;
    font-style: italic;
    text-align: center;
    max-width: 100%;
}

.timestamp {
    font-size: 0.7em;
    opacity: 0.7;
    position: absolute;
    bottom: -15px;
    right: 5px;
}

.chat-user-form {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-user-form input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-user-form button {
    padding: 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}/* Contact Form */
#contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing);
}

#contact input,
#contact textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        display: none;
    }
}

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

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


/* Horizontal Timeline Styles */
.timeline {
    width: 100%;
    max-width: 80%;
    margin: 60px auto;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    top: 50%;
    left: 0;
    z-index: 1;
}

.milestone {
    position: relative;
    width: 100%;
}

.milestone::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.milestone:nth-child(odd)::before {
    top: -30px;
}

.milestone:nth-child(even)::before {
    bottom: -30px;
}

.milestone-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.milestone:nth-child(odd) .milestone-content {
    margin-top: -140px;
}

.milestone:nth-child(even) .milestone-content {
    margin-top: 40px;
}

.year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Smooth scrolling */
.timeline {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Animation classes */
.milestone {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.milestone.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar for timeline */
.timeline::-webkit-scrollbar {
    height: 8px;
}

.timeline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.timeline::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .timeline::before {
        height: 100%;
        width: 4px;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .milestone::before {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .milestone-content {
        margin: 0 !important;
    }
}

.admin-header {
    background: #2c3e50;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.admin-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    padding: 20px;
}

.stats-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.messages-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    background: #f8f9fa;
}

.admin-message.sent {
    background: #e3f2fd;
}

.admin-message.received {
    background: #f1f8e9;
}

.admin-message.flagged {
    border: 2px solid #ff9800;
}

.message-actions {
    display: flex;
    gap: 5px;
}

.message-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.danger {
    background: #dc3545;
    color: white;
}

#adminLogin {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#adminLogin input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#adminLogin button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
