/*!
Theme Name: PrimeStack IT
Theme URI: https://primestackit.org
Author: PrimeStack IT
Author URI: https://primestackit.org
Description: Professional IT consulting website theme with dark mode support
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: primestackit
Domain Path: /languages
*/

/* Global */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background: #f9f9f9;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Dark Mode Styles */
[data-theme="dark"] body {
    background: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] header {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

[data-theme="dark"] nav a {
    color: #e0e0e0;
}

[data-theme="dark"] .service-card {
    background: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] .service-card h3 {
    color: #4da6ff;
}

[data-theme="dark"] .service-card p {
    color: #b0b0b0;
}

[data-theme="dark"] .services h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .services-intro {
    color: #b0b0b0;
}

[data-theme="dark"] .contact-item a {
    color: #e0e0e0;
}

[data-theme="dark"] .contact-item a:hover {
    color: #0077ff;
}

[data-theme="dark"] .support-note {
    color: #999;
}

[data-theme="dark"] .newsletter-form input[type="email"],
[data-theme="dark"] .newsletter-form input[type="text"] {
    background: #2d2d2d;
    color: #e0e0e0;
}

[data-theme="dark"] footer {
    background: #2d2d2d;
    color: #e0e0e0;
}

/* Navigation */
header {
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, #0077ff 0%, #0056cc 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

.hero .btn {
    background: white;
    color: #0077ff;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Services */
.services {
    padding: 80px 0;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin: 0 0 15px 0;
    color: #333;
}

.services-intro {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 0;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #0077ff;
}

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

/* Newsletter */
.newsletter {
    background: #0077ff;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.newsletter h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
}

.newsletter p {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    min-width: 200px;
    font-size: 16px;
    box-sizing: border-box;
}

.newsletter-form .btn {
    background: white;
    color: #0077ff;
    margin: 0;
}

/* Contact */
.contact {
    padding: 60px 0;
    text-align: center;
}

.contact p {
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item strong {
    color: #0077ff;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #0077ff;
    text-decoration: underline;
}

.support-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.btn {
    background: #0077ff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #eee;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }

    header {
        padding: 10px 0;
    }

    nav {
        padding: 10px 0;
        gap: 0;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .logo {
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        order: -1;
    }

    .logo img {
        height: 75px;
    }

    nav ul {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        padding: 10px 0;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .services {
        padding: 60px 0;
    }

    .services h2 {
        font-size: 28px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 40px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .newsletter {
        padding: 40px 0;
    }

    .newsletter h2 {
        font-size: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    .contact {
        padding: 40px 0;
    }

    .contact h2 {
        font-size: 24px;
    }

    footer {
        padding: 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    header {
        padding: 5px 0;
    }

    nav {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }

    .logo {
        width: auto;
        justify-content: center;
        padding: 8px 0;
        margin: 0;
    }

    .logo img {
        height: 70px;
    }

    nav ul {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        padding: 5px 0;
    }

    nav a {
        font-size: 11px;
        padding: 3px 8px;
        white-space: nowrap;
    }

    .theme-toggle {
        font-size: 18px;
        padding: 2px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .services h2 {
        font-size: 22px;
    }

    .service-grid {
        gap: 15px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-icon {
        font-size: 36px;
    }

    .service-card h3 {
        font-size: 16px;
    }

    .newsletter {
        padding: 30px 0;
    }

    .newsletter h2 {
        font-size: 20px;
    }

    .contact {
        padding: 30px 0;
    }

    .contact h2 {
        font-size: 20px;
    }
}
