/* C-Tech Custom Styles */

/* Header Enhancements */
.site-header {
    transition: all 0.3s ease;
}

.custom-logo-link img {
    max-height: 60px;
    width: auto;
}

/* Primary Menu Styling */
.primary-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.primary-menu a:hover {
    opacity: 0.8;
}

/* Dropdown Menus */
.primary-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 5px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

.primary-menu .sub-menu a {
    color: #333;
    padding: 0.75rem 1.5rem;
}

.primary-menu .sub-menu a:hover {
    background: #f8fafc;
}

/* Elementor Compatibility */
.elementor-widget-wrap {
    display: flex;
    flex-wrap: wrap;
}

.elementor-section {
    position: relative;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: #1e3a8a;
}

.testimonial-position {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Form Styling */
.wpcf7-form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wpcf7-submit {
    background: #f97316;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wpcf7-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Footer Widgets */
.footer-widget-area h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-widget-area ul {
    list-style: none;
    padding: 0;
}

.footer-widget-area ul li {
    margin-bottom: 0.5rem;
}

.footer-widget-area a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-widget-area a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .primary-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar > .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .primary-menu {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .service-card,
    .portfolio-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.gradient-bg-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.gradient-bg-orange {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.box-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #3b82f6;
    color: white;
}

::-moz-selection {
    background: #3b82f6;
    color: white;
}