/* 
* Jabartech - IT Solutions & Services
* Main Stylesheet
*/

/* ===== Variables ===== */
:root {
    --primary-color: #e1393b; /* Red */
    --secondary-color: #c01f21; /* Darker Red */
    --accent-color: #f97316; /* Orange */
    --text-color: #333333;
    --light-text: #666666;
    --lighter-text: #999999;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo img {
    height: 50px;
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 30px;
}

.nav-list li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-list li a:hover {
    color: var(--primary-color);
}

.nav-list li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list li a:hover:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    padding: 50px 20px;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

.mobile-nav-list li {
    margin-bottom: 20px;
}

.mobile-nav-list li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 18px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list li a:hover {
    color: var(--primary-color);
}

/* ===== Footer ===== */
.footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding-right: 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-column p {
    margin-bottom: 20px;
    color: #cccccc;
}

.social-icons {
    display: flex;
    gap: 15px;
}

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

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

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #cccccc;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--primary-color);
}

.newsletter h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    height: 45px;
}

.newsletter-form input {
    flex: 1;
    padding: 0 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
}

.newsletter-form button {
    width: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

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

.footer-bottom p {
    color: #999999;
    font-size: 14px;
}

/* ===== Service Header ===== */
.service-header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.service-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ===== Service Detail ===== */
.service-detail {
    padding: 80px 0;
}

.service-detail h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-detail p {
    margin-bottom: 20px;
}

.service-detail .btn {
    margin-top: 10px;
}

/* ===== Service Features ===== */
.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-item p {
    color: var(--light-text);
}

/* ===== Services Container ===== */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
}

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

.service-icon {
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 36px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-content p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ===== Contact Page Styles ===== */
/* Contact Info Section */
.contact-info-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.contact-info-item p {
    color: var(--light-text);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
}

.contact-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form-content {
    width: 100%;
}

.text-left {
    text-align: left;
}

.text-left h2:after {
    left: 0;
    transform: none;
}

.contact-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 57, 59, 0.2);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error-color);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 14px;
}

.form-submit {
    margin-top: 30px;
}

.contact-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.contact-image img {
    display: block;
    width: 100%;
    height: auto;
}

.contact-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 30px;
    color: var(--white);
}

.contact-cta h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-cta p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
}

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

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

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

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--light-bg);
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: var(--text-color);
}

.faq-toggle {
    font-size: 16px;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .section-title h2 {
        font-size: 32px;
    }
    
    .service-header h1 {
        font-size: 36px;
    }
    
    .service-detail h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .service-header {
        padding: 60px 0;
    }
    
    .service-header h1 {
        font-size: 32px;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-detail h2 {
        font-size: 24px;
    }
    
    .footer-column {
        flex: 0 0 100%;
        margin-bottom: 40px;
    }
    
    /* Contact Page Responsive */
    .contact-form-container {
        grid-template-columns: 1fr;
    }
    
    .contact-image {
        margin-top: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info-section,
    .contact-form-section,
    .map-section,
    .faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 24px;
    }
    
    .service-header h1 {
        font-size: 28px;
    }
    
    .service-header p {
        font-size: 16px;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .services-container {
        grid-template-columns: 1fr;
    }
    
    /* Contact Page Responsive - Small Screens */
    .contact-info-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info-section,
    .contact-form-section,
    .map-section,
    .faq-section,
    .cta-section {
        padding: 50px 0;
    }
    
    .contact-cta {
        padding: 20px;
    }
    
    .contact-cta h3 {
        font-size: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
    
    .cta-content p {
        font-size: 16px;
    }
}
