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

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo h2 {
    color: #1a365d;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-logo-img {
    height: 80px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

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

.nav-menu li a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: #1a365d;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1a365d;
    transition: width 0.3s ease;
}

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

.nav-cta {
    background: #1a365d !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 6px;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: #2c5282 !important;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1a365d;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    -webkit-object-fit: cover;
    background: linear-gradient(135deg, #1a365d, #2c5282);
}

.hero-video.loaded {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-video {
        object-fit: cover;
        object-position: center;
        min-width: 100%;
        min-height: 100%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(44, 82, 130, 0.6));
    z-index: -1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    padding: 3rem 5% 4rem;
    animation: fadeInUp 1s ease-out;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.hero-left {
    flex: 1;
    max-width: 60%;
}

.hero-right {
    flex: 1;
    max-width: 35%;
    text-align: right;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.rotating-text {
    display: inline-block;
    min-height: 1.2em;
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 100%);
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: #f8f9fa;
}

/* Tab Navigation */
.about-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #6a6a6a;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #1a365d;
    background: #f8fafc;
}

.tab-button.active {
    color: #1a365d;
    border-bottom-color: #1a365d;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: #6a6a6a;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1a365d;
}

.stat-label {
    font-size: 0.9rem;
    color: #6a6a6a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Footer Section */
.about-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.certifications-compact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.cert-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    white-space: nowrap;
}

.cert-logos-compact {
    height: 100px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.cert-logos-compact:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* License Number Styling */
.license-number {
    text-align: center;
    margin-top: 1rem;
}

.license-number p {
    font-size: 1rem;
    color: #1a365d;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* About Section Buttons */
.about-buttons-center {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.about-btn {
    background: #1a365d;
    color: white;
    border: 2px solid #1a365d;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.about-btn:hover {
    background: #2c5282;
    border-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.about-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.about-image .image-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-weight: 500;
}

.about-team-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* History Icon */
.history-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Client Logos Section */
.clients {
    padding: 2rem 0;
    background: white;
    text-align: center;
}

.clients .container {
    overflow: hidden;
    position: relative;
}

.clients .container::before,
.clients .container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.clients .container::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.clients .container::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.clients h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 3rem;
    font-weight: 500;
}

.client-logos {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollLogos 15s linear infinite;
    width: max-content;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    min-width: 120px;
}

.client-logo:hover {
    opacity: 1;
    animation-play-state: paused;
}

.clients:hover .client-logos {
    animation-play-state: paused;
}

.logo-placeholder {
    background: #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: #4a5568;
    font-weight: 500;
    white-space: nowrap;
}

.client-logo-img {
    height: 70px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.client-logo:hover .client-logo-img {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header p {
    font-size: 1.1rem;
    color: #6a6a6a;
    max-width: 800px;
    margin: 0 auto;
}

.service-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-card:active {
    transform: scale(0.98);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1;
}

.category-card:hover::before {
    border-color: #1a365d;
}

.category-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    background-size: cover;
    background-position: center;
}

/* Category-specific background images */
.category-card:nth-child(1) .category-image {
    background-image: url('assets/projects/tampa-cypress-main.jpg');
}

.category-card:nth-child(2) .category-image {
    background-image: url('assets/projects/tia-cargo-warehouse.jpg');
}

.category-card:nth-child(3) .category-image {
    background-image: url('assets/projects/baycare-st-joseph.jpg');
}

.category-card:nth-child(4) .category-image {
    background-image: url('assets/projects/renata-lakewood-ranch.jpg');
}

.category-card:nth-child(5) .category-image {
    background-image: url('assets/projects/tampa-convention-center.jpg');
}

.category-card:nth-child(6) .category-image {
    background-image: url('assets/projects/macdill-fitness.jpg');
}

.category-card:nth-child(7) .category-image {
    background-image: url('assets/projects/palacio-de-avila.jpg');
}

.category-card:nth-child(8) .category-image {
    background-image: url('assets/projects/starkey-ranch.jpg');
}

.category-card:nth-child(9) .category-image {
    background-image: url('assets/projects/dicks-sporting.jpg');
}

.category-card:nth-child(10) .category-image {
    background-image: url('assets/projects/tpa-red-curb.jpg');
}

.category-card:nth-child(11) .category-image {
    background-image: url('assets/projects/tia-fire-station.jpg');
}

.category-card:nth-child(12) .category-image {
    background-image: url('assets/projects/st-thomas.jpg');
}

.category-card:nth-child(13) .category-image {
    background-image: url('assets/projects/north-lakes-park.jpg');
}

.category-card:nth-child(14) .category-image {
    background-image: url('assets/projects/st-patrick.jpg');
}

.coming-soon-card .category-image {
    background-image: url('assets/projects/coming-soon.png');
}

.coming-soon-card {
    cursor: default !important;
}

.coming-soon-card:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.coming-soon-card::before {
    border-color: transparent !important;
}

.coming-soon-card:hover::before {
    border-color: transparent !important;
}





.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.7) 100%);
    transition: all 0.3s ease;
}

.category-card:hover .image-overlay {
    background: linear-gradient(180deg, transparent 0%, transparent 20%, rgba(26, 54, 93, 0.4) 60%, rgba(26, 54, 93, 0.9) 100%);
}

.category-content {
    position: relative;
    z-index: 2;
    text-align: left;
    transition: all 0.3s ease;
}

.category-card h3 {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    backdrop-filter: blur(2px);
}

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

.category-card:hover h3 {
    color: white;
    background: rgba(26, 54, 93, 0.8);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: #f8f9fa;
}

/* Minimalist Filter Panel */
.filter-panel {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem auto;
    max-width: 1000px;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08);
    border: 1px solid #e2e8f0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-header h3 {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.filter-clear {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #6a6a6a;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
}

.filter-clear:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: #fff5f5;
}

.filter-sections {
    display: flex;
    gap: 1rem;
    align-items: end;
    flex-wrap: wrap;
}

.filter-section {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.filter-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-dropdown {
    position: relative;
}

.modern-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234a5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 0.8rem;
    padding-right: 2rem;
}

.modern-select:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

.modern-select:hover {
    border-color: #1a365d;
}

.search-container {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

.search-input:hover {
    border-color: #1a365d;
}

.search-icon {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6a6a6a;
    font-size: 0.8rem;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    min-height: 0;
}

.filter-tag {
    background: #1a365d;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: slideInLeft 0.3s ease;
}

.filter-tag .remove-tag {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    transition: background 0.2s ease;
}

.filter-tag .remove-tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Filters */
.mobile-filters {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Responsive Filter Display */
@media (max-width: 900px) {
    .filter-sections {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-section {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .filter-panel {
        display: none;
    }
    
    .mobile-filters {
        display: flex;
    }
    
    /* Mobile responsive adjustments for our changes */
    .project-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .project-stats span {
        white-space: normal;
        text-align: center;
        min-width: auto;
        text-overflow: initial;
        overflow: visible;
    }
    
    .certifications-compact {
        margin-bottom: 1.5rem;
    }
    
    /* Category cards mobile adjustments */
    .category-card h3 {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #1a365d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #4a5568;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.filter-select:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* Removed unused filter button styles - using dropdown filters instead */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image .image-placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-weight: 500;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-type {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.project-info > p {
    color: #6a6a6a;
    margin-bottom: 1rem;
}

.project-scope {
    color: #6a6a6a;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.4;
}

.project-scope strong {
    font-weight: 600;
    color: #4a5568;
}

.project-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.project-stats span {
    background: #f7fafc;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1a365d;
    border: 1px solid #e2e8f0;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    flex: 0 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.project-card.hidden {
    display: none;
}

/* Loading Message */
.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6a6a6a;
    font-size: 1.1rem;
}

/* Project Images */
.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.project-img:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Template hiding */
template {
    display: none;
}

/* Key Indicators Section */
.indicators {
    padding: 6rem 0;
    background: #1a365d;
    color: white;
}

.indicators .section-header h2 {
    color: white;
}

.indicators .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.indicators-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
    text-align: center;
}

.indicator {
    padding: 2rem 1rem;
}

.indicator-value {
    white-space: nowrap;
    display: block;
}

.indicator-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.indicator-suffix {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.indicator-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: #1a365d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cta-content p {
    font-size: 1.1rem;
    color: #6a6a6a;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1a365d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.cta-button:hover {
    background: #2c5282;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    color: #6a6a6a;
}

.contact-item strong {
    color: #1a365d;
}

/* Footer */
.footer {
    background: #2d3748;
    color: white;
    padding: 3rem 0 1rem;
    margin: 0;
    border: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.footer-brand {
    max-width: 100%;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.smaile-logo {
    transition: opacity 0.3s ease;
}

.smaile-logo:hover {
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.developer-credit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.developer-credit .smaile-logo {
    height: 24px;
    width: auto;
}



.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .service-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .indicators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-content {
        padding: 2rem 5% 3rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-right {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 768px) {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-logo-img {
        height: 70px;
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-content {
        position: absolute;
        bottom: 120px;
        left: 0;
        right: 0;
        padding: 2rem 5%;
    }
    
    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-left,
    .hero-right {
        max-width: 100%;
        text-align: left;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-footer {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .certifications-compact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 1.5rem;
        justify-content: center;
    }
    
    .cert-logos-compact {
        height: 75px;
        max-width: 120px;
    }
    
    .about-buttons-center {
        gap: 1rem;
    }
    
    .about-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .service-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        height: 250px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .developer-credit {
        justify-content: center;
        margin-bottom: 0 !important;
        padding-bottom: 1rem !important;
    }
    
    .footer-logo-img {
        height: 50px;
        max-width: 200px;
    }
    
    .client-logo-img {
        height: 55px;
        max-width: 90px;
    }
    
    .client-logos {
        gap: 2rem;
    }
    
    .client-logo {
        min-width: 80px;
    }
    
    .desktop-filters {
        display: none;
    }
    
    .mobile-filters {
        display: flex;
    }
    
    /* About Tabs Responsive */
    .about-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 768px) and (min-height: 800px) {
    .hero-content {
        bottom: 140px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-content {
        bottom: 100px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .indicator-number {
        font-size: 2.5rem;
    }
    
    .indicator-suffix {
        font-size: 1.8rem;
    }
    
    .footer {
        margin-bottom: 0;
        padding-bottom: 1rem;
    }
    
    body {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .nav-logo-img {
        height: 60px;
        max-width: 260px;
    }
    
    .footer-logo-img {
        height: 45px;
        max-width: 180px;
    }
    
    .client-logo-img {
        height: 45px;
        max-width: 70px;
    }
    
    .client-logos {
        gap: 1.5rem;
    }
    
    .client-logo {
        min-width: 60px;
    }
    
    .about-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .certifications-compact {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .cert-label {
        font-size: 0.8rem;
    }
    
    .cert-logos-compact {
        height: 65px;
        max-width: 100px;
    }
    
    .license-number p {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .about-buttons-center {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .about-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 200px;
    }
}

/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    animation: modalFadeIn 0.3s ease-out;
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #ffffff;
    border-radius: 0;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid #e2e8f0;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: 300;
}

.modal-close:hover {
    color: #1f2937;
    transform: scale(1.1);
}

.modal-header {
    padding: 3rem 3rem 0;
    border-bottom: none;
    background: none;
}

.modal-title {
    font-size: 2rem;
    color: #111827;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.modal-type {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.modal-body {
    padding: 2rem 3rem 3rem;
}

.modal-gallery {
    margin-bottom: 3rem;
}

.main-image-container {
    width: 100%;
    height: 400px;
    background: #f9fafb;
    position: relative;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 2;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex: 0 0 80px;
    height: 60px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.thumbnail:hover {
    border-color: #d1d5db;
}

.thumbnail.active {
    border-color: #111827;
}

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

.modal-description {
    margin-bottom: 2rem;
}

.modal-description h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-description-text {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.modal-scope {
    margin-bottom: 2rem;
}

.modal-scope h3 {
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-scope-text {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.modal-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.modal-stat h4 {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.25rem 0;
}

.modal-stat p {
    color: #111827;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 2rem 2rem 0;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem 2rem 2rem;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 0.5rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 0;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .main-image-container {
        height: 240px;
    }
    
    .modal-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .thumbnail {
        flex: 0 0 70px;
        height: 52px;
    }
}

/* ==============================
   CHAT WIDGET STYLES
   ============================== */

/* Chat Widget Container */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Chat Trigger (Horizontal Widget Container) */
.chat-trigger {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.widget-container {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 4px;
    border: 1px solid #e5e7eb;
}

.chat-trigger:hover {
    transform: translateY(-2px);
}

.chat-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.chat-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    pointer-events: none;
}

.chat-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.logo-circle {
    background: #ffffff;
    margin-right: 4px;
    padding: 0;
}

.widget-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.call-circle {
    background: linear-gradient(135deg, #1a365d, #2d5a8a);
    color: white;
    position: relative;
}

.call-circle:hover {
    background: linear-gradient(135deg, #2d5a8a, #1a365d);
    transform: scale(1.05);
}

/* Pulse Animation for Call Button */
.call-circle::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a365d, #2d5a8a);
    z-index: -1;
    animation: callPulse 2s infinite;
    opacity: 0.7;
}

@keyframes callPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Chat Interface */
.chat-interface {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    height: 480px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
}

.chat-interface.active {
    display: flex;
    animation: chatSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-interface.has-logo-bg {
    background: #ffffff;
}

.chat-interface.chat-active {
    background: #ffffff;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Header */
.chat-header {
    background: #ffffff;
    color: #333333;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.chat-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.agent-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.chat-title {
    flex: 1;
}

.chat-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-call-button {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-call-button:hover {
    background: #f0f0f0;
    color: #1a365d;
}

.chat-close {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    background: #f0f0f0;
    color: #333333;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message.bot-message {
    align-self: flex-start;
}

.chat-message.user-message {
    align-self: flex-end;
}

.message-content {
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
}

.bot-message .message-content {
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #1a365d, #2d5a8a);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 4px;
}

.user-message .message-time {
    text-align: right;
}

/* Chat Input Container */
.chat-input-container {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

.chat-input-wrapper {
    padding: 20px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-input-wrapper input {
    flex: 1;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 100px;
}

.chat-input-wrapper input:focus {
    border-color: #1a365d;
}

.chat-send {
    background: linear-gradient(135deg, #1a365d, #2d5a8a);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send:hover {
    background: linear-gradient(135deg, #2d5a8a, #1a365d);
    transform: scale(1.05);
}

.chat-send:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f3f4f6;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    margin-bottom: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hidden State */
.chat-trigger.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    /* Fullscreen chat interface on mobile, with room for Safari toolbar */
    .chat-interface {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        /* Prefer dynamic viewport height to avoid iOS overlay issues */
        height: 100dvh;
        margin: 0;
        border-radius: 0;
        /* Safe areas + extra space so input stays fully visible */
        padding-top: max(env(safe-area-inset-top), 0px);
        padding-bottom: calc(env(safe-area-inset-bottom) + 72px);
    }

    .widget-container {
        padding: 3px;
    }

    .chat-circle {
        width: 44px;
        height: 44px;
    }

    .widget-logo {
        width: 100%;
        height: 100%;
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-input-wrapper {
        padding: 12px 16px 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .chat-trigger,
    .chat-circle,
    .chat-interface,
    .action-button,
    .chat-send {
        transition: none;
        animation: none;
    }
    
    .call-circle::after {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .chat-circle {
        border-width: 3px;
    }
    
    .chat-interface {
        border-width: 2px;
        border-color: #000000;
    }
    
    .message-content {
        border: 1px solid #000000;
    }
} 