/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* --- Base Variables & Styles --- */
:root {
    --primary-color-light: #007BFF; /* Vibrant Blue */
    --secondary-color-light: #343A40; /* Deep Charcoal */
    --accent-color-light: #FFA500; /* Bright Orange */
    --bg-color-light: #FFFFFF;
    --text-color-light: #333333;
    --card-bg-light: #F8F9FA;
    --border-color-light: #E0E0E0;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --gradient-light: linear-gradient(135deg, #007BFF, #0056b3);

    --primary-color-dark: #0ABFBC; /* Teal for dark mode */
    --secondary-color-dark: #E0E0E0; /* Light Gray for text */
    --accent-color-dark: #FF6B6B; /* Coral for dark mode accents */
    --bg-color-dark: #121212; /* Very Dark Gray/Black */
    --text-color-dark: #E0E0E0;
    --card-bg-dark: #1E1E1E;
    --border-color-dark: #333333;
    --shadow-dark: 0 4px 15px rgba(255, 255, 255, 0.05);
    --gradient-dark: linear-gradient(135deg, #0ABFBC, #078C8A);

    --font-family: 'Poppins', sans-serif;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding-top: 70px; /* Adjust if navbar height changes */
    line-height: 1.6;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

body.dark-mode {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color-light);
    transition: color var(--transition-speed) ease;
}
body.dark-mode a {
    color: var(--primary-color-dark);
}
a:hover {
    color: var(--accent-color-light);
}
body.dark-mode a:hover {
    color: var(--accent-color-dark);
}

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color-light);
    position: relative;
    padding-bottom: 10px;
}
body.dark-mode .section-title {
    color: var(--secondary-color-dark);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-light);
    border-radius: 2px;
}
body.dark-mode .section-title::after {
    background: var(--gradient-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
body.dark-mode .section-subtitle {
    color: #aaa;
}

.highlight {
    color: var(--accent-color-light);
    font-weight: 700;
}
body.dark-mode .highlight {
    color: var(--accent-color-dark);
}

/* --- Navigation Bar --- */
#navbar {
    background-color: var(--bg-color-light);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    padding: 15px 0;
}
body.dark-mode #navbar {
    background-color: var(--card-bg-dark); /* Slightly different for depth */
    box-shadow: var(--shadow-dark);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color-light);
}
body.dark-mode .nav-logo {
    color: var(--primary-color-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color-light);
    transition: width var(--transition-speed) ease;
}
body.dark-mode .nav-links a::after {
    background-color: var(--accent-color-dark);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

#darkModeToggle {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    margin-left: 20px;
    transition: color var(--transition-speed) ease, transform 0.2s ease;
}
body.dark-mode #darkModeToggle {
    color: var(--text-color-dark);
}
#darkModeToggle:hover {
    transform: scale(1.1);
    color: var(--accent-color-light);
}
body.dark-mode #darkModeToggle:hover {
    color: var(--accent-color-dark);
}

.mobile-nav-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-light);
    cursor: pointer;
}
body.dark-mode .mobile-nav-toggle {
    color: var(--text-color-dark);
}


/* --- Hero Section --- */
#hero {
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff; /* Text on hero is usually light */
    padding: 0 20px;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-light); /* Fallback if canvas fails */
}
body.dark-mode #hero-canvas {
    background: var(--gradient-dark);
}

.hero-content {
    position: relative; /* To be above canvas */
    z-index: 1;
    max-width: 800px;
    animation: fadeInFromBottom 1s ease-out forwards;
}

@keyframes fadeInFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--accent-color-light);
    color: #fff !important; /* Important to override general link color */
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
body.dark-mode .cta-button {
    background: var(--accent-color-dark);
    color: var(--bg-color-dark) !important; /* Dark text on light accent */
}
.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    background-color: color-mix(in srgb, var(--accent-color-light) 90%, black);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
body.dark-mode .cta-button:hover {
    background-color: color-mix(in srgb, var(--accent-color-dark) 90%, black);
}
.cta-button i {
    margin-left: 8px;
    transition: transform 0.2s ease-in-out;
}
.cta-button:hover i {
    transform: translateX(5px);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--card-bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    border: 1px solid var(--border-color-light);
}
body.dark-mode .service-card {
    background-color: var(--card-bg-dark);
    box-shadow: var(--shadow-dark);
    border-color: var(--border-color-dark);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
body.dark-mode .service-card:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color-light);
    margin-bottom: 20px;
    display: inline-block; /* For hover animation */
    transition: transform 0.3s ease-in-out;
}
body.dark-mode .service-icon {
    color: var(--primary-color-dark);
}
.service-card:hover .service-icon { /* Example animation: slight scale and color change */
    transform: scale(1.2) rotate(5deg);
    color: var(--accent-color-light);
}
body.dark-mode .service-card:hover .service-icon {
    color: var(--accent-color-dark);
}

/* Animated icon on scroll/hover can be more complex via JS or CSS keyframes if needed */
.animated-icon.animate {
    animation: iconPulse 1s ease-in-out;
}
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color-light);
}
body.dark-mode .service-card h3 {
    color: var(--secondary-color-dark);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.smm-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.smm-buttons .btn {
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, transform var(--transition-speed) ease;
    font-size: 0.9rem;
}
.btn-signup {
    background-color: var(--primary-color-light);
    color: #fff;
    border: 1px solid var(--primary-color-light);
}
body.dark-mode .btn-signup {
    background-color: var(--primary-color-dark);
    color: var(--bg-color-dark);
    border-color: var(--primary-color-dark);
}
.btn-signup:hover {
    background-color: color-mix(in srgb, var(--primary-color-light) 85%, black);
    transform: translateY(-2px);
}
body.dark-mode .btn-signup:hover {
    background-color: color-mix(in srgb, var(--primary-color-dark) 85%, black);
}

.btn-signin {
    background-color: transparent;
    color: var(--primary-color-light);
    border: 1px solid var(--primary-color-light);
}
body.dark-mode .btn-signin {
    color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}
.btn-signin:hover {
    background-color: var(--primary-color-light);
    color: #fff;
    transform: translateY(-2px);
}
body.dark-mode .btn-signin:hover {
    background-color: var(--primary-color-dark);
    color: var(--bg-color-dark);
}

/* --- CTA Section --- */
#cta-section {
    background: var(--gradient-light);
    color: #fff;
    text-align: center;
}
body.dark-mode #cta-section {
    background: var(--gradient-dark);
}
#cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff; /* Override section title color */
}
#cta-section h2::after { /* Override for dark background */
    background: #fff;
}
#cta-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.main-cta {
    background-color: #fff;
    color: var(--primary-color-light) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
body.dark-mode .main-cta {
    color: var(--primary-color-dark) !important;
}
.main-cta:hover {
    background-color: #f0f0f0;
    color: color-mix(in srgb, var(--primary-color-light) 80%, black) !important;
}
body.dark-mode .main-cta:hover {
    color: color-mix(in srgb, var(--primary-color-dark) 80%, black) !important;
}


/* --- Testimonials Section --- */
.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* Important for slider */
    padding: 20px;
    background-color: var(--card-bg-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
body.dark-mode .testimonial-slider {
    background-color: var(--card-bg-dark);
    box-shadow: var(--shadow-dark);
}

.testimonial-item {
    display: none; /* Hidden by default */
    text-align: center;
    padding: 20px;
    animation: fadeEffect 1s ease-in-out;
}
.testimonial-item.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0.3; }
    to { opacity: 1; }
}
/* For slide animation (alternative, more JS needed)
.testimonial-track { display: flex; transition: transform 0.5s ease-in-out; }
.testimonial-item { flex: 0 0 100%; }
*/

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--accent-color-light);
}
body.dark-mode .testimonial-img {
    border-color: var(--accent-color-dark);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #555;
}
body.dark-mode .testimonial-text {
    color: #bbb;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color-light);
}
body.dark-mode .testimonial-author {
    color: var(--primary-color-dark);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
    z-index: 10;
}
.slider-btn:hover {
    background-color: rgba(0,0,0,0.6);
}
.prev-btn { left: 15px; }
.next-btn { right: 15px; }
body.dark-mode .slider-btn {
    background-color: rgba(255,255,255,0.1);
}
body.dark-mode .slider-btn:hover {
    background-color: rgba(255,255,255,0.3);
}

/* --- Contact Section --- */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-item {
    text-align: center;
    flex-basis: 250px;
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color-light);
    margin-bottom: 15px;
}
body.dark-mode .contact-item i {
    color: var(--primary-color-dark);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.social-media-share {
    text-align: center;
    margin-top: 30px;
}
.social-media-share h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.social-icon {
    font-size: 1.8rem;
    margin: 0 12px;
    color: var(--secondary-color-light);
    transition: transform var(--transition-speed) ease, color var(--transition-speed) ease;
}
body.dark-mode .social-icon {
    color: var(--secondary-color-dark);
}
.social-icon:hover {
    transform: scale(1.3);
    color: var(--accent-color-light);
}
body.dark-mode .social-icon:hover {
    color: var(--accent-color-dark);
}


/* --- Floating Telegram Link --- */
.floating-telegram {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-light); /* Using gradient for consistency */
    color: #fff !important;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform var(--transition-speed) ease, background var(--transition-speed) ease;
}
body.dark-mode .floating-telegram {
    background: var(--gradient-dark);
}
.floating-telegram:hover {
    transform: scale(1.1) rotate(10deg);
    background: color-mix(in srgb, var(--accent-color-light) 80%, black); /* Darker on hover */
}
body.dark-mode .floating-telegram:hover {
    background: color-mix(in srgb, var(--accent-color-dark) 80%, black);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color-light);
    color: #f0f0f0;
    text-align: center;
    padding: 25px 0;
    margin-top: 40px; /* Give some space */
}
body.dark-mode footer {
    background-color: #101010; /* Even darker for footer */
    color: #ccc;
}
footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* --- Scroll to Top Button --- */
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 90px; /* Above Telegram button */
    right: 20px;
    background-color: var(--primary-color-light);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-light);
    z-index: 998;
    transition: background-color var(--transition-speed) ease, opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
    opacity: 0.8;
}
body.dark-mode #scrollToTopBtn {
    background-color: var(--primary-color-dark);
    box-shadow: var(--shadow-dark);
}
#scrollToTopBtn:hover {
    opacity: 1;
    transform: translateY(-3px);
    background-color: var(--accent-color-light);
}
body.dark-mode #scrollToTopBtn:hover {
    background-color: var(--accent-color-dark);
}

/* --- AOS Animation Customization (Optional) --- */
[data-aos="fade-up"] {
    transition-property: transform, opacity;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; } /* Adjust for smaller navbar */
    #navbar .container {
        flex-wrap: wrap; /* Allow wrapping for mobile toggle */
        position: relative;
    }
    .nav-logo { flex-grow: 1; } /* Takes available space */

    .nav-links {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        background-color: var(--card-bg-light);
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        box-shadow: var(--shadow-light);
        padding: 15px 0;
        border-top: 1px solid var(--border-color-light);
    }
    body.dark-mode .nav-links {
        background-color: var(--card-bg-dark);
        box-shadow: var(--shadow-dark);
        border-top-color: var(--border-color-dark);
    }
    .nav-links.active {
        display: flex; /* Show when active */
        animation: slideDownNav 0.3s ease-out;
    }
    @keyframes slideDownNav {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
    .nav-links a {
        display: block;
        padding: 10px;
    }
    .nav-links a::after { display: none; /* Simpler mobile nav indication */ }
    .nav-links a:hover { background-color: var(--border-color-light); }
    body.dark-mode .nav-links a:hover { background-color: var(--border-color-dark); }


    .mobile-nav-toggle {
        display: block; /* Show on mobile */
        order: 3; /* Place after dark mode toggle if actions div is complex */
    }
    .nav-actions {
        order: 2; /* Ensure dark mode toggle is to the right of logo but before hamburger */
        margin-left: 0; /* Remove desktop margin */
    }


    #hero { height: auto; min-height: 80vh; padding: 80px 20px 40px; }
    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }

    .services-grid { grid-template-columns: 1fr; }
    .contact-info { flex-direction: column; align-items: center; }
    .contact-item { flex-basis: auto; width: 100%; max-width: 350px; }

    .slider-btn { padding: 8px 12px; font-size: 1rem; }
    .prev-btn { left: 5px; }
    .next-btn { right: 5px; }

    .floating-telegram { width: 50px; height: 50px; font-size: 1.6rem; bottom: 15px; right: 15px;}
    #scrollToTopBtn { width: 40px; height: 40px; font-size: 1rem; bottom: 75px; right: 15px;}
}

@media (max-width: 480px) {
    #hero h1 { font-size: 1.8rem; }
    #hero p { font-size: 0.9rem; }
    .cta-button { padding: 10px 20px; font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }
    .service-card { padding: 20px; }

    /* --- Updated SMM Buttons --- */
    .smm-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;              /* Space between stacked buttons */
        align-items: center;    /* Center the buttons horizontally */
    }
    .smm-buttons .btn {
        width: auto;            /* Allow button width to be based on content and padding */
        /* Optional: Add a minimum width if desired */
        /* min-width: 150px; */
        /* Optional: Add a maximum width if desired, e.g., if card could be very wide */
        /* max-width: 280px; */
    }
    /* --- End of Updated SMM Buttons --- */

    #darkModeToggle { font-size: 1.2rem; }
}

/* Accessibility: Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent-color-light);
    outline-offset: 2px;
}
body.dark-mode *:focus-visible {
    outline-color: var(--accent-color-dark);
}