/* ============================================
   A3S IT Solutions - Modern Frontend Styles
   Color Scheme: #00436a (Primary) & #00875f (Secondary)
   ============================================ */

:root {
    --primary-color: #00436a;
    --secondary-color: #00875f;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 67, 106, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 67, 106, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ============================================
   Header & Navigation
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 67, 106, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 67, 106, 0.15);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.navbar-brand img {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

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

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.header-cta {
    display: flex;
    align-items: center;
}

.btn-cta-header {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-cta-header:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

@media (max-width: 991px) {
    .header-cta {
        margin-top: 1rem;
        margin-left: 0 !important;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn-cta-header {
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .navbar-nav {
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   Hero/Banner Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 67, 106, 0.05) 0%, rgba(0, 135, 95, 0.05) 100%), #ffffff;
    z-index: 0;
    padding-top: 80px;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 67, 106, 0.1) 0%, transparent 70%);
    top: -250px;
    right: -250px;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 135, 95, 0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    box-shadow: var(--shadow);
}

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

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

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 67, 106, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 67, 106, 0.05) 0%, rgba(0, 135, 95, 0.05) 100%);
    transition: left 0.4s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio-section {
    padding: 100px 0;
    background: #f8f9fa;
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 1rem;
}

.filter-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 67, 106, 0.9) 0%, rgba(0, 135, 95, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.portfolio-overlay-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ============================================
   Blogs Section
   ============================================ */

.blogs-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 1;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta i {
    color: var(--secondary-color);
}

.blog-content h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.blog-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
    gap: 1rem;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(0, 67, 106, 0.08) 0%, rgba(0, 135, 95, 0.08) 100%), #f8f9fa;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--secondary-color);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.testimonial-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

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

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.footer-widget h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-widget p,
.footer-widget li {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

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

.footer-social a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        padding-top: 70px;
        min-height: auto;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar .container {
        flex-wrap: wrap;
    }
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    padding: 100px 0;
    background: var(--light-bg);
    position: relative;
    z-index: 1;
}

.contact-info-card,
.contact-form-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: left !important;
}

.contact-info-card h1,
.contact-info-card h2,
.contact-info-card h3,
.contact-info-card h4,
.contact-info-card h5,
.contact-info-card h6,
.contact-info-card p,
.contact-info-card span,
.contact-info-card div,
.contact-info-card a {
    text-align: left !important;
}

.contact-info-card:hover,
.contact-form-card:hover {
    box-shadow: var(--shadow-hover);
}

.contact-info-card h4,
.contact-form-card h4 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info-card h4::after,
.contact-form-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-info {
    margin-top: 2rem;
    text-align: left !important;
    width: 100%;
}

.contact-info .service-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-right: 15px;
}

.contact-info h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    text-align: left !important;
    width: 100%;
}

.contact-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    text-align: left !important;
    width: 100%;
}

.contact-info .mb-4 {
    text-align: left !important;
    width: 100%;
}

.contact-info .mb-4 > .d-flex {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
}

.contact-info .mb-4 > .d-flex > div:last-child {
    text-align: left !important;
    flex: 1;
}

.contact-info-card {
    text-align: left !important;
}

.contact-info-card p,
.contact-info-card h4,
.contact-info-card h6,
.contact-info-card div,
.contact-info-card .contact-info,
.contact-info-card .contact-info > div {
    text-align: left !important;
}

.contact-info-card .d-flex {
    justify-content: flex-start !important;
}

.contact-info-card .d-flex > div:last-child {
    text-align: left !important;
    width: 100%;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
}

.form-group .form-control {
    border: 2px solid rgba(0, 67, 106, 0.15);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    width: 100%;
    background: var(--white);
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.form-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 67, 106, 0.15);
    outline: none;
    background: var(--white);
}

.form-group .form-control::placeholder {
    color: rgba(108, 117, 125, 0.6);
}

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

.form-group button[type="submit"] {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 0.5rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Ensure form inputs are always clickable */
.contact-form-card form,
.contact-form-card .form-group,
.contact-form-card input,
.contact-form-card textarea,
.contact-form-card button {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.contact-form-card {
    overflow: visible;
}

/* Responsive adjustments for contact page */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-info-card h4,
    .contact-form-card h4 {
        font-size: 1.5rem;
    }
    
    .contact-info .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* ============================================
   Scroll Animations
   ============================================ */

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Loading Animation
   ============================================ */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s ease-in-out infinite;
}

