/* Global Styles */
:root {
    --primary-color: #1e88e5;
    --primary-dark: #1565c0;
    --secondary-color: #26a69a;
    --secondary-dark: #00897b;
    --dark-color: #263238;
    --light-color: #f5f5f5;
    --grey-color: #90a4ae;
    --danger-color: #e53935;
    --success-color: #43a047;
    --warning-color: #ffb300;
    --text-color: #37474f;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.1);
    --nav-bg: #ffffff;
    --code-bg: #263238;
    --code-color: #f5f5f5;
}

/* Dark mode variables */
html.dark-mode, .dark-mode {
    --primary-color: #42a5f5;
    --primary-dark: #2196f3;
    --secondary-color: #4db6ac;
    --secondary-dark: #26a69a;
    --dark-color: #eceff1;
    --light-color: #263238;
    --grey-color: #b0bec5;
    --text-color: #eceff1;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --card-border: rgba(255,255,255,0.1);
    --nav-bg: #1a1a1a;
    --code-bg: #1a1a1a;
    --code-color: #e0e0e0;
    --box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    --btn-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    --hover-bg: #2c2c2c;
}

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

html, body {
    font-family: 'Roboto', 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;
    min-height: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
}

.btn i {
    margin-right: 8px;
}

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

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

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

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

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    position: relative;
}

.navbar {
    padding: 1.5rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
}

.github-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px;
    background-color: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-10px);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: white;
}

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

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(30, 136, 229, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

.feature-card p {
    color: #546e7a;
}

/* Benefits Section */
.benefits {
    padding: 5rem 0;
    background-color: --card-bg;
}

.benefits .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.benefits-content {
    flex: 1;
}

.benefits-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.benefits-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.benefits-list {
    list-style: none;
    margin-bottom: 2rem;
}

.benefits-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.benefits-list li i {
    color: var(--success-color);
    margin-right: 10px;
    margin-top: 5px;
}

.benefits-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.benefits-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Tools Section */
.tools {
    padding: 5rem 0;
    background-color: --card-bg;
}

.tools-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tabs-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 12px 20px;
    background-color: #f0f4f8;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.tool-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

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

.tool-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.tool-card p {
    color: #546e7a;
    font-size: 0.95rem;
}

/* Installation Section */
.installation {
    padding: 5rem 0;
    background-color: var(--card-bg);
}

.installation-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    margin-bottom: 1rem;
}

.code-block {
    background-color: var(--dark-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
    padding: 0.5rem;
}

.code-block code {
    font-family: 'Courier New', monospace;
    color: white;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 4px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.note {
    font-size: 0.9rem;
    color: #607d8b;
    font-style: italic;
}

.cta-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

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

.newsletter-content h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.newsletter-content .note {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    padding: 5rem 0 2rem;
    background-color: var(--dark-color);
    color: #b0bec5;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-branding {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

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

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.footer-links-column h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-links-column ul {
    list-style: none;
}

.footer-links-column ul li {
    margin-bottom: 0.7rem;
}

.footer-links-column ul li a {
    color: #b0bec5;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: white;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.theme-toggle i {
    font-size: 1.2rem;
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    opacity: 0;
    transform: translateY(20px);
    color: #ff9800;
}

.theme-toggle .fa-moon {
    opacity: 1;
    transform: translateY(0);
    color: #1e88e5;
}

.theme-toggle.dark-active .fa-sun {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle.dark-active .fa-moon {
    opacity: 0;
    transform: translateY(-20px);
}

.dark-mode .theme-toggle {
    background-color: rgba(30, 30, 30, 0.9);
}

/* Dashboard specific theme toggle */
.dashboard-theme-toggle {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 45px;
    height: 45px;
    top: 15px;
    right: 15px;
    position: fixed;
    z-index: 1000;
}

.dark-mode .dashboard-theme-toggle {
    background-color: var(--card-bg);
}

/* Dark mode adaptations */
.dark-mode {
    color: var(--text-color);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: var(--dark-color);
}

.dark-mode .header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
}

.dark-mode .navbar {
    background-color: var(--nav-bg);
}

.dark-mode .feature-card,
.dark-mode .tool-card,
.dark-mode .code-block,
.dark-mode .step-content {
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    border-color: var(--card-border);
}

.dark-mode .feature-card:hover,
.dark-mode .tool-card:hover {
    background-color: var(--hover-bg);
    transform: translateY(-5px);
}

.dark-mode .tabs-header {
    background-color: var(--card-bg);
    border-color: var(--card-border);
}

.dark-mode .tab-btn {
    color: var(--grey-color);
}

.dark-mode .tab-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-mode .footer {
    background-color: var(--nav-bg);
    color: var(--footer-text);
}

.dark-mode .back-to-top {
    background-color: var(--card-bg);
    color: var(--primary-color);
}

.dark-mode .back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
}

.dark-mode input, 
.dark-mode textarea, 
.dark-mode select {
    background-color: var(--input-bg, #2c2c2c);
    border-color: var(--input-border, rgba(255, 255, 255, 0.1));
    color: var(--input-text, #eceff1);
}

.dark-mode .btn {
    box-shadow: var(--btn-shadow);
}

/* Animation for theme transition */
body, 
.card, 
.feature-card, 
.tool-card, 
.navbar, 
.header, 
.footer, 
.code-block, 
input, 
textarea, 
select, 
button,
.btn,
.back-to-top,
.status-indicator,
.service-card {
    transition: all 0.3s ease-in-out;
}

/* Theme transition animation */
@keyframes theme-transition {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

body.theme-transition {
    animation: theme-transition 0.5s ease;
}

/* Theme toggle animation enhancements */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, transparent 20%, transparent 80%, transparent 80%, transparent);
    transform: scale(0);
    transition: transform 0.6s ease-out;
}

.theme-toggle:active::before {
    transform: scale(4);
    transition: transform 0s;
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    background-color: white;
    color: var(--text-color);
    border-radius: 4px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-header {
    font-weight: 600;
    margin-bottom: 5px;
}

.toast-body {
    font-size: 0.9rem;
}

.dark-mode .toast-notification {
    background-color: #2c2c2c;
    color: #eceff1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero .container,
    .benefits .container {
        flex-direction: column;
    }
    
    .hero-content,
    .benefits-content {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .benefits-list li {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .features .section-title,
    .tools .section-title,
    .installation .section-title {
        font-size: 1.8rem;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: white;
    opacity: 1;
    transform: translateY(-5px);
}
