/*
 * Main Stylesheet for Adsdizi Theme
 */

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

/*--------------------------------------------------------------
# Homepage Sections
--------------------------------------------------------------*/
.hero-section {
    padding: 100px 0;
    text-align: center;
    background-color: #f5f5f5;
}

.services-section, .projects-section, .testimonials-section, .contact-section {
    padding: 60px 0;
}

.services-grid, .projects-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.button.secondary {
    background-color: #777;
}

/*--------------------------------------------------------------
# Dark Mode
--------------------------------------------------------------*/
body.dark-mode {
    background-color: #1a1a1a;
    color: #eee;
}

body.dark-mode .site-header {
    border-bottom-color: #333;
}

body.dark-mode .hero-section {
    background-color: #2a2a2a;
}

.theme-toggle-button {
    background: none;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 12px;
    cursor: pointer;
    margin-left: 20px;
}

body.dark-mode .theme-toggle-button {
    border-color: #555;
    color: #eee;
}

/*--------------------------------------------------------------
# Sticky Header
--------------------------------------------------------------*/
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body.dark-mode .sticky {
    background-color: #1a1a1a;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/*--------------------------------------------------------------
# Scroll to Top Button
--------------------------------------------------------------*/
#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 20px;
    z-index: 1000;
}

#scroll-to-top:hover {
    background-color: #005a87;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #f5f5f5;
    padding: 40px 0;
    color: #555;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-widget-area h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    margin-right: 15px;
    color: #555;
    text-decoration: none;
}

.site-info {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

body.dark-mode .site-footer {
    background-color: #2a2a2a;
    color: #aaa;
}

body.dark-mode .site-info {
    border-top-color: #333;
}

body.dark-mode .social-links a {
    color: #aaa;
}