/* InnovateQ - Modern Professional IT Solutions Website Stylesheet */
/* Design inspired by SourceIT with modern enhancements */

/* Color Scheme - Blue Theme */
:root {
    --dark-header: #1a1a1a;
    --dark-blue: #003366;
    --dark-blue-hover: #002244;
    --accent-blue: #0066cc;
    --text-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* Navigation Bar - Sticky Transparent Header */
.navbar {
    background-color: rgb(26 26 26 / 48%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
    transition: all 0.3s ease;
    margin: 0;
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-blue);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 280px;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding-left: 2rem;
}

.dropdown-menu a::after {
    display: none;
}

/* Hero Section - Dark Background with Large Text */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-white);
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -100px; /* Pull hero up behind navbar - increased to eliminate gap */
    padding-top: 140px; /* Add padding to account for navbar height */
}

/* Hero backgrounds for different pages */
.hero-home {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(0, 102, 51, 0.3) 100%),
                url('img/city-doha.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: calc(0px + 100vh);
}

.hero-about {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(0, 102, 51, 0.3) 100%),
                url('img/servers.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
}

.hero-services {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(0, 102, 51, 0.3) 100%),
                url('img/cloud tech.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
}

.hero-contact {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.4) 0%, rgba(0, 102, 51, 0.3) 100%),
                url('img/smart city.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 300px;
}

.hero-content {
    max-width: 716.8px;
    margin-left: calc(64% / 2);
    margin-right: calc(-4% / 2);
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 1.4rem;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 0px;
    line-height: 1.7;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-white);
    text-align: left;
}

/* Hero content for other pages - centered and simpler */
.hero-about .hero-content,
.hero-services .hero-content,
.hero-contact .hero-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    box-shadow: none;
}

.hero-about h1,
.hero-services h1,
.hero-contact h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: var(--text-white);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Down Icon */
.scroll-down-icon {
    position: absolute;
    bottom: 0.1rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: bounce 2s infinite;
}

.scroll-down-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down-icon svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.8rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Cards - Modern Design with Images */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
    perspective: 1000px; /* For 3D flip effect */
}

.card {
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border-color);
    overflow: visible;
    height: 100%;
    min-height: 400px;
    position: relative;
    perspective: 1000px;
}

/* Card Inner Container for Flip Effect */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Front and Back */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-front {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 100%);
    color: var(--text-white);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-back h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.card-back p {
    color: var(--text-white) !important;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.card-back .btn {
    background: var(--text-white);
    color: var(--dark-blue);
    margin-top: 1rem;
}

.card-back .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-blue);
}

/* Flip Card Effect - Desktop Only */
@media (min-width: 769px) {
    .card:hover .card-inner {
        transform: rotateY(180deg);
    }
    
    .card:hover {
        box-shadow: 0 12px 30px var(--shadow-hover);
        border-color: var(--accent-blue);
    }
}

/* Mobile - Simple hover effect (no flip) */
@media (max-width: 768px) {
    .card {

        overflow: hidden;
    }
    
    .card-inner {
        transform: none !important;
    }
    
    .card-back {
        display: none;
    }
    
    .card-front {
        position: relative;
        transform: none;
    }
    
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px var(--shadow-hover);
        border-color: var(--accent-blue);
    }
    
    .card:hover .card-inner {
        transform: none !important;
    }
}

.card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 100%);
    position: relative;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fallback for when image doesn't load */
.card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 100%);
    z-index: 0;
}

@media (min-width: 769px) {
    .card:hover .card-image img {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .card:hover .card-image img {
        transform: scale(1.05);
    }
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color 0.3s ease;
}

@media (min-width: 769px) {
    .card:hover h3 {
        color: var(--accent-blue);
    }
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    flex: 1;
}

.card ul li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-align: left;
}

.card ul li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--dark-blue);
    font-size: 0.65rem;
    top: 0.85rem;
    line-height: 1;
}

.card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Buttons - Modern Style */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--dark-blue);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 102, 51, 0.3);
}

.btn:hover {
    background-color: var(--dark-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 51, 0.4);
}

.btn-secondary {
    background-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.btn-secondary:hover {
    background-color: #008f45;
    box-shadow: 0 6px 16px rgba(0, 166, 81, 0.4);
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Lists */
.content-list {
    list-style: none;
    padding-left: 0;
}

.content-list li {
    padding: 1rem 0;
    padding-left: 1.8rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-gray);
}

.content-list li:last-child {
    border-bottom: none;
}

.content-list li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--dark-blue);
    font-size: 0.7rem;
    top: 1.2rem;
}

/* Mission & Vision */
.mission-vision {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--dark-blue);
    box-shadow: 0 4px 12px var(--shadow);
}

.mission-vision h3 {
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.mission-vision p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Contact Form - Modern Style */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.8rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 51, 0.1);
}

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

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    border-color: var(--accent-blue);
}

.contact-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

.contact-card p {
    color: var(--text-gray);
    margin: 0.6rem 0;
    line-height: 1.6;
}

/* Footer - Dark Green */
.footer {
    background-color: var(--dark-blue);
    color: var(--text-white);
    padding: 4rem 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin: 0.8rem 0;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

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

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .hero h1 {
        font-size: 1.3rem;
        line-height: 1.6;
    }
    
    .hero-content {
        padding: 2rem 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.05);
        margin-top: 0.5rem;
        margin-left: 1rem;
        padding: 0.5rem 0;
        box-shadow: none;
        border-radius: 4px;
    }
    
    .dropdown-menu a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dropdown-menu a:hover {
        padding-left: 1.2rem;
    }
    
    .hero {
        padding: 2.5rem 1.5rem 2rem;
        padding-top: 110px; /* Account for navbar on mobile */
        min-height: 250px;
        background-attachment: scroll;
        margin-top: -90px; /* Pull hero up behind navbar on mobile - increased */
    }
    
    .hero-home {
        height: calc(0px + 75vh);
    }
    
    .hero-about,
    .hero-services,
    .hero-contact {
        height: 250px;
        padding-top: 90px;
    }
    
    .hero h1 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        line-height: 1.5;
    }
    
    .hero-content {
        padding: 1.5rem 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    /* Ensure hero backgrounds work on mobile */
    .hero-home,
    .hero-about,
    .hero-services,
    .hero-contact {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .card {
        padding: 10px;

        min-height: auto;
    }
    
    .card h3 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .card ul li {
        font-size: 0.88rem;
        line-height: 1.5;
    }
    
    .card-image {
        height: 150px;
    }
    
    .service-item-image {
        height: 120px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .card-image img,
    .service-item-image img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    /* Ensure images don't overflow on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer {
        padding: 2.5rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .chat-widget {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .chat-widget span:last-child {
        display: none;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .highlight-box {
        padding: 2rem 1.5rem;
    }
    
    .highlight-box h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem 1.5rem;
        padding-top: 100px; /* Account for navbar on small mobile */
        height: calc(0px + 75vh);
        min-height: 220px;
        margin-top: -85px; /* Pull hero up behind navbar on small mobile - increased */
    }
    
    .hero h1 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        line-height: 1.4;
    }
    
    .hero-content {
        padding: 1.25rem 1.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.15rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .card ul li {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 0.5rem 0;
        padding-left: 1.3rem;
    }
    
    .card ul li:before {
        font-size: 0.6rem;
        top: 0.75rem;
    }
    
    .card {    padding: 10px;

        min-height: auto;
    }
    
    .card-image {
        height: 130px;
    }
    
    .service-item-image {
        height: 100px;
    }
    
    .service-item-content {
        padding: 1rem;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    /* Optimize images for small screens */
    .card-image img,
    .service-item-image img {
        object-position: center;
    }
    
    /* Fix card grid for mobile */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 4rem 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 100%) !important;
    color: var(--text-white) !important;
    padding: 3rem 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 24px rgba(0, 102, 51, 0.3);
}

.highlight-box h3 {
    color: var(--text-white) !important;
    margin-bottom: 1.2rem;
    font-size: 2rem;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-box a {
    color: var(--text-white) !important;
}

/* Cards inside highlight-box - dark text on light background */
.highlight-box .card h3 {
    color: var(--dark-blue) !important;
}

.highlight-box .card p {
    color: var(--text-dark) !important;
}

.highlight-box .card {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: stretch;
    perspective: 1000px; /* For 3D flip effect */
}

.service-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 0;
    border-left: 4px solid var(--dark-blue);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    border-left-width: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Flip Card Effect for Service Items - Desktop Only */
@media (min-width: 769px) {
    .service-item {
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .service-item:hover {
        border-left-color: var(--accent-blue);
        box-shadow: 0 10px 25px var(--shadow-hover);
        transform: translateX(3px) rotateY(3deg) translateY(-3px);
    }
    
    .service-item:hover .service-item-image {
        transform: scale(1.1) translateZ(15px);
    }
    
    .service-item:hover .service-item-content {
        transform: translateZ(8px);
    }
}

/* Mobile - Simple hover effect */
@media (max-width: 768px) {
    .service-item:hover {
        border-left-color: var(--accent-blue);
        box-shadow: 0 6px 16px var(--shadow-hover);
        transform: translateX(3px);
    }
}

.service-item-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 100%);
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .service-item:hover .service-item-image img {
        transform: scale(1.2);
    }
}

@media (max-width: 768px) {
    .service-item:hover .service-item-image img {
        transform: scale(1.05);
    }
}

.service-item-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--accent-blue) 100%);
    z-index: -1;
}

.service-item-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.service-item h3 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color 0.3s ease;
}

@media (min-width: 769px) {
    .service-item:hover h3 {
        color: var(--accent-blue);
    }
}

.service-item p {
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Services Columns Layout (like SourceIT) */
.services-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-column {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
}

.service-column h3 {
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.service-column ul {
    list-style: none;
    padding-left: 0;
}

.service-column ul li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.service-column ul li:last-child {
    border-bottom: none;
}

.service-column ul li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--dark-blue);
    font-size: 0.7rem;
    top: 1rem;
}

/* Intro Text Styling */
.intro-text {
    font-size: 1.15rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
    line-height: 1.9;
}

.intro-text + .intro-text {
    margin-top: 1.5rem;
}

/* Chat Widget Placeholder */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent-blue);
    color: var(--text-white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 166, 81, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.chat-widget:hover {
    background: #008f45;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 166, 81, 0.5);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-gray {
    color: var(--text-gray);
}
