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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 50%, #f0ebe0 100%);
    overflow-x: hidden;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #8b4513;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* Logo Design */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-symbol {
    position: relative;
    width: 50px;
    height: 50px;
}

.mystical-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #8b4513, #d2691e, #cd853f);
    position: relative;
    animation: rotate 20s linear infinite;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.3);
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-points {
    position: absolute;
    width: 100%;
    height: 100%;
}

.point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.point-1 { top: 0; left: 50%; transform: translateX(-50%); }
.point-2 { top: 25%; right: 0; transform: translateY(-50%); }
.point-3 { bottom: 25%; right: 0; transform: translateY(50%); }
.point-4 { bottom: 0; left: 50%; transform: translateX(-50%); }
.point-5 { bottom: 25%; left: 0; transform: translateY(50%); }
.point-6 { top: 25%; left: 0; transform: translateY(-50%); }

.center-dot {
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.logo-text h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #8b4513;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 0.8rem;
    color: #d2691e;
    font-style: italic;
    display: block;
    margin-top: -2px;
}

/* Responsive logo */
@media (max-width: 768px) {
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-symbol {
        width: 40px;
        height: 40px;
    }
    
    .mystical-circle {
        width: 40px;
        height: 40px;
    }
    
    .inner-circle {
        width: 28px;
        height: 28px;
    }
    
    .logo-text h1 {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
}

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

.nav-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #8b4513;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b4513;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #8b4513;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 50%, #f0ebe0 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
    max-width: 500px;
}

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

.hero-portrait {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
    animation: float 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.hero-portrait:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(139, 69, 19, 0.4);
}

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

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Section Styles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #8b4513;
    margin-bottom: 1rem;
    font-style: italic;
}

.services-description {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

/* Story Section */
.story-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.7);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.story-section .container {
    position: relative;
    z-index: 2;
}

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

.story-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #444;
    line-height: 1.8;
}

.story-conclusion {
    font-style: italic;
    font-size: 1.2rem;
    color: #8b4513;
    font-weight: 600;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 100%);
}

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

/* Ensure proper layout for 5 service cards */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: rgba(255, 255, 255, 0.8);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b4513, #d2691e, #cd853f);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.2);
}

.service-image {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-icon {
    font-size: 3rem;
    color: #8b4513;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.7);
}

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

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #2c2c2c;
    margin-bottom: 2rem;
    font-weight: 600;
}

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

.about-conclusion {
    font-style: italic;
    color: #8b4513;
    font-weight: 600;
}

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

.about-portrait {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.about-portrait:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.4);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enchanted Section */
.enchanted-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(210, 105, 30, 0.9) 50%, rgba(205, 133, 63, 0.9) 100%);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.enchanted-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.8) 0%, rgba(210, 105, 30, 0.8) 50%, rgba(205, 133, 63, 0.8) 100%);
    z-index: 1;
}

.enchanted-section .container {
    position: relative;
    z-index: 2;
}

.enchanted-section .section-title,
.enchanted-section .section-subtitle {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.8);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 15px;
    border-left: 4px solid #8b4513;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 69, 19, 0.2);
}

.testimonial-card:hover .testimonial-content p {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.2);
    transform: scale(1.02);
}

.testimonial-content p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid #8b4513;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

.testimonial-content p::before {
    content: '"';
    font-size: 4rem;
    color: rgba(139, 69, 19, 0.3);
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-content p::after {
    content: '"';
    font-size: 4rem;
    color: rgba(139, 69, 19, 0.3);
    position: absolute;
    bottom: -20px;
    right: 10px;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.testimonial-author strong {
    color: #8b4513;
    font-weight: 600;
}

.testimonial-author span {
    color: #666;
    display: block;
    margin-top: 0.5rem;
}

/* Emotional testimonial styling */
.testimonial-content p {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(248, 246, 240, 0.2) 100%);
}

.testimonial-card:nth-child(1) .testimonial-content p {
    border-left-color: #ff6b6b;
}

.testimonial-card:nth-child(2) .testimonial-content p {
    border-left-color: #4ecdc4;
}

.testimonial-card:nth-child(3) .testimonial-content p {
    border-left-color: #8e44ad;
}

.testimonial-card:nth-child(4) .testimonial-content p {
    border-left-color: #96ceb4;
}

.testimonial-card:nth-child(5) .testimonial-content p {
    border-left-color: #f39c12;
}

.testimonial-card:nth-child(6) .testimonial-content p {
    border-left-color: #e74c3c;
}

.testimonial-card:nth-child(1) .testimonial-content p::before,
.testimonial-card:nth-child(1) .testimonial-content p::after {
    color: rgba(255, 107, 107, 0.3);
}

.testimonial-card:nth-child(2) .testimonial-content p::before,
.testimonial-card:nth-child(2) .testimonial-content p::after {
    color: rgba(78, 205, 196, 0.3);
}

.testimonial-card:nth-child(3) .testimonial-content p::before,
.testimonial-card:nth-child(3) .testimonial-content p::after {
    color: rgba(142, 68, 173, 0.3);
}

.testimonial-card:nth-child(4) .testimonial-content p::before,
.testimonial-card:nth-child(4) .testimonial-content p::after {
    color: rgba(150, 206, 180, 0.3);
}

.testimonial-card:nth-child(5) .testimonial-content p::before,
.testimonial-card:nth-child(5) .testimonial-content p::after {
    color: rgba(243, 156, 18, 0.3);
}

.testimonial-card:nth-child(6) .testimonial-content p::before,
.testimonial-card:nth-child(6) .testimonial-content p::after {
    color: rgba(231, 76, 60, 0.3);
}

.testimonials-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Testimonials Page Styles */
.testimonials-hero {
    padding: 8rem 0 5rem 0;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 100%);
    text-align: center;
}

.testimonials-hero .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #2c2c2c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.testimonials-hero .hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 2rem;
    font-weight: 600;
}

.testimonials-hero .hero-description {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.all-testimonials-section {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.8);
}

.testimonials-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #8b4513 0%, #d2691e 50%, #cd853f 100%);
    color: white;
    text-align: center;
}

.testimonials-cta-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.testimonials-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8e2d4 100%);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border-left: 4px solid #8b4513;
}

.contact-item i {
    font-size: 1.5rem;
    color: #8b4513;
    width: 30px;
}

.contact-item h3 {
    font-family: 'Cinzel', serif;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

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

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.submit-btn {
    background: linear-gradient(45deg, #8b4513, #d2691e);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.3);
}

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

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Form Messages */
.form-success,
.form-error {
    margin-top: 1rem;
    animation: slideIn 0.5s ease-out;
}

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

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: white;
    padding: 2rem 0;
}

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

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

.footer-nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #d2691e;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(248, 246, 240, 0.95);
        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;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-portrait {
        width: 200px;
        height: 200px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-portrait {
        width: 150px;
        height: 150px;
    }
    
    .about-portrait {
        width: 200px;
        height: 200px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Telegram Widget Styles */
.telegram-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    border: 2px solid #3498db;
}

.telegram-widget.active {
    display: flex;
}

.telegram-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
}

.telegram-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.telegram-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.telegram-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.telegram-status {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.telegram-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.telegram-close:hover {
    opacity: 1;
}

.telegram-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #ecf0f1;
}

.telegram-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.telegram-message.received {
    align-items: flex-start;
}

.telegram-message.sent {
    align-items: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.telegram-message.received .message-content {
    background: white;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.telegram-message.sent .message-content {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.message-time {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 5px;
    padding: 0 5px;
}

.telegram-input {
    padding: 15px;
    background: white;
    display: flex;
    align-items: center;
    border-top: 1px solid #bdc3c7;
}

.telegram-input input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    border-radius: 25px;
    background: #ecf0f1;
    font-size: 14px;
    margin-right: 10px;
}

.telegram-send-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.telegram-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.telegram-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    font-weight: 500;
    border: none;
    outline: none;
}

.telegram-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.telegram-toggle:active {
    transform: scale(0.95);
    box-shadow: 0 3px 15px rgba(52, 152, 219, 0.4);
}

.telegram-toggle i {
    font-size: 20px;
}

/* Responsive Telegram Widget */
@media (max-width: 768px) {
    .telegram-widget {
        width: calc(100vw - 40px);
        height: 400px;
        right: 20px;
        left: 20px;
    }
    
    .telegram-toggle {
        right: 20px;
        bottom: 20px;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .telegram-toggle span {
        display: none;
    }
}

/* Telegram Link Styling */
.telegram-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

