/* ============================================================
   CDF IT Solutions - Shared Stylesheet
   ============================================================ */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --accent-secondary: #f1c40f;
    --text-color: #333;
    --text-light: #777;
    --light-bg: #ecf0f1;
    --dark-bg: #2c3e50;
    --white: #ffffff;
    --gray: #95a5a6;
    --success: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

/* ---- Navbar ---- */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(44, 62, 80, 0.97);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.logo-text {
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text span {
    color: var(--accent-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    margin-left: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* ---- Layout ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* ---- Section Header ---- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.btn-accent:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.88), rgba(44, 62, 80, 0.88)), url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?q=80&w=2034') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 160px 0 80px;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    background-color: var(--light-bg);
    padding: 12px 0;
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 8px;
    color: var(--gray);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list span {
    color: var(--text-light);
}

/* ---- Stats Section ---- */
.stats {
    background: linear-gradient(rgba(52, 152, 219, 0.9), rgba(52, 152, 219, 0.9)), url('https://images.unsplash.com/photo-1573164713988-8665fc963095?q=80&w=2069') center/cover fixed no-repeat;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-secondary);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ---- Services ---- */
.services-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.service-tab {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    font-size: 0.95rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 1px solid #eee;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 25px auto 0;
    background-color: var(--light-bg);
    border-radius: 50%;
    color: var(--secondary-color);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--secondary-color);
    color: var(--white);
}

.service-content {
    padding: 15px 25px 25px;
    text-align: center;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Process ---- */
.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gray);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 22%;
    padding: 0 10px;
}

.step-number {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    border: 2px solid var(--accent-secondary);
    transition: all 0.3s ease;
}

.step:hover .step-number {
    background-color: var(--accent-secondary);
    color: var(--white);
    transform: scale(1.1);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- Testimonials ---- */
.testimonial-slide {
    background-color: var(--light-bg);
    padding: 40px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    left: 20px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 750px;
    margin: 0 auto 25px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #ddd;
    margin-bottom: 15px;
    overflow: hidden;
    border: 3px solid var(--secondary-color);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-position {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 400;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ---- Clients ---- */
.clients {
    background-color: var(--light-bg);
    padding: 60px 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.client-logo {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ---- About ---- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

.features-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 12px;
}

.feature-icon {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), #1a252f);
    color: var(--white);
    padding: 70px 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 30px;
}

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

/* ---- Contact ---- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    padding: 35px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-secondary);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 15px;
}

.contact-icon {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    margin-bottom: 4px;
}

.contact-text a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-text a:hover {
    color: var(--accent-secondary);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

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

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

/* ---- Contact Form ---- */
.contact-form-wrapper {
    padding: 35px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    border: 1px solid #eee;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.contact-form-wrapper h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

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

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

.form-group label .required {
    color: var(--accent-color);
    margin-left: 3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23777' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}

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

.form-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.35);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    display: block;
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 12px;
    text-align: center;
}

/* ---- Consultation Buttons ---- */
.btn-consultation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 1rem;
}

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

.btn-emergency {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-color);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 1rem;
}

.btn-emergency:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ---- Footer ---- */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-company {
    margin-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo img {
    height: 80px;
}

.footer-company p {
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-heading {
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    color: var(--white);
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-secondary);
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--accent-secondary);
}

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

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    opacity: 0.7;
}

/* ---- Scroll to Top ---- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
}

/* ---- Info Cards ---- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.info-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

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

.info-card-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ---- Responsive ---- */
@media screen and (max-width: 992px) {
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-steps::before {
        width: 2px;
        height: 100%;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: all 0.3s ease;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
        padding: 12px 0;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-banner h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 140px 0 60px;
    }
}
