/* Dent Time Company Profile Frontend Styles */

/* Reset and Base Styles */
.dtcp-app-container * {
    box-sizing: border-box;
}

.dtcp-app-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background: #f5f5f7;
    min-height: 100vh;
    color: #1d1d1f;
}

/* Header */
.dtcp-header {
    background: linear-gradient(135deg, #d70d1c 0%, #A80000 100%);
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dtcp-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: dtcp-pulse 15s ease-in-out infinite;
}

@keyframes dtcp-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.dtcp-header-content {
    position: relative;
    z-index: 1;
}

.dtcp-logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

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

.dtcp-header h1 {
    font-size: 2.5rem;
    margin: 0 0 10px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.dtcp-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Hamburger Menu Button */
.dtcp-hamburger {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.dtcp-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dtcp-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.dtcp-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.dtcp-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation Menu */
.dtcp-nav-mobile {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #dd101e;
    z-index: 999;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dtcp-nav-mobile.active {
    right: 0;
}

.dtcp-nav-mobile .dtcp-nav-item {
    width: 100%;
    padding: 18px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.dtcp-nav-mobile .dtcp-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.dtcp-nav-mobile .dtcp-nav-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

.dtcp-nav-mobile .dtcp-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: white;
}

/* Overlay for mobile menu */
.dtcp-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dtcp-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Content */
.dtcp-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dtcp-section {
    display: none;
    animation: dtcp-fade-in 0.5s ease;
}

.dtcp-section.active {
    display: block;
}

@keyframes dtcp-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Cards */
.dtcp-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dtcp-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.dtcp-card h2 {
    font-size: 1.8rem;
    margin: 0 0 20px;
    color: #1a1a2e;
    font-weight: 700;
}

.dtcp-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
    color: #333;
}

/* Contact Grid */
.dtcp-contact-grid {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.dtcp-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f5f5f7;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.dtcp-contact-item:hover {
    background: #e8e8eb;
}

.dtcp-contact-item svg {
    color: #667eea;
    flex-shrink: 0;
}

.dtcp-contact-item a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
}

/* Features Grid */
.dtcp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dtcp-feature {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f5f7 0%, #fff 100%);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.dtcp-feature:hover {
    transform: translateY(-5px);
}

.dtcp-feature-icon {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #d70d1c 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.dtcp-feature h3 {
    font-size: 1.1rem;
    margin: 10px 0;
}

.dtcp-feature p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Timeline */
.dtcp-timeline {
    position: relative;
    padding-left: 30px;
}

.dtcp-timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(180deg, #d70d1c 0%, #764ba2 100%);
}

.dtcp-timeline-item {
    position: relative;
    margin-bottom: 30px;
    animation: dtcp-slide-up 0.5s ease;
}

@keyframes dtcp-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.dtcp-timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #d70d1c;
    border-radius: 50%;
    z-index: 1;
}

.dtcp-timeline-content {
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    margin-left: 10px;
}

.dtcp-timeline-content h3 {
    margin: 0 0 10px;
    color: #1a1a2e;
}

.dtcp-timeline-content p {
    margin: 0 0 10px;
    color: #666;
}

.dtcp-vehicles-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #d70d1c;
}

/* Milestone Images */
.dtcp-milestone-image {
    margin: 15px 0;
    border-radius: 8px;
    overflow: hidden;
}

.dtcp-milestone-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Services Grid */
.dtcp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dtcp-service-card {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.dtcp-service-card:hover {
    transform: translateY(-5px);
    border-color: #d70d1c;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

/* Service Images */
.dtcp-service-image {
    width: calc(100% + 60px);
    height: 200px;
    margin: -30px -30px 20px;
    overflow: hidden;
}

.dtcp-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dtcp-service-card:hover .dtcp-service-image img {
    transform: scale(1.05);
}

.dtcp-service-icon {
    margin-bottom: 20px;
    color: #d70d1c;
}

.dtcp-service-card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.dtcp-service-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Equipment List */
.dtcp-equipment-list {
    margin: 20px 0;
}

.dtcp-equipment-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding: 20px;
    background: #f5f5f7;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.dtcp-equipment-item:hover {
    background: #e8e8eb;
}

.dtcp-equipment-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.dtcp-equipment-item h4 {
    margin: 0 0 5px;
    color: #1a1a2e;
}

.dtcp-equipment-item p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Stats Grid */
.dtcp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dtcp-stat {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.dtcp-stat:hover {
    transform: scale(1.05);
}

.dtcp-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.dtcp-stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Clients Table */
.dtcp-clients-table {
    overflow-x: auto;
    margin-top: 20px;
}

.dtcp-clients-table table {
    width: 100%;
    border-collapse: collapse;
}

.dtcp-clients-table th,
.dtcp-clients-table td {
    text-align: left;
    padding: 15px;
    border-bottom: 1px solid #e8e8eb;
}

.dtcp-clients-table th {
    background: #f5f5f7;
    font-weight: 600;
    color: #1a1a2e;
}

.dtcp-clients-table tr:hover {
    background: #f8f9fa;
}

/* Testimonials */
.dtcp-testimonials-container {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.dtcp-testimonial {
    background: #f5f5f7;
    padding: 25px;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.dtcp-testimonial:hover {
    transform: translateY(-2px);
}

.dtcp-testimonial-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
}

.dtcp-testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dtcp-testimonial-author strong {
    color: #1a1a2e;
}

.dtcp-testimonial-author span {
    font-size: 0.9rem;
    color: #666;
}

.dtcp-testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.dtcp-testimonial-rating {
    display: flex;
    gap: 2px;
}

.dtcp-star {
    color: #ffc107;
    font-size: 1.2rem;
}

.dtcp-document-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #d70d1c;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.dtcp-document-link:hover {
    background: #d70d1c;
    color: white;
}

.dtcp-document-link svg {
    transition: stroke 0.3s ease;
}

.dtcp-document-link:hover svg {
    stroke: white;
}

/* Benefits List */
.dtcp-benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.dtcp-benefits-list li {
    padding: 15px 0;
    border-bottom: 1px solid #e8e8eb;
    line-height: 1.6;
}

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

/* Executive Image */
.dtcp-executive-image {
    margin: 20px 0;
    text-align: center;
}

.dtcp-executive-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Image Placeholders */
.dtcp-image-placeholder {
    background: linear-gradient(135deg, #e8e8eb 0%, #f5f5f7 100%);
    border-radius: 12px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-size: 1rem;
    color: #999;
    border: 2px dashed #ccc;
    transition: all 0.3s ease;
}

.dtcp-image-placeholder:hover {
    border-color: #d70d1c;
    color: #d70d1c;
}

/* Chart Canvas */
#dtcp-chart {
    max-width: 100%;
    height: auto !important;
    margin-top: 20px;
}

/* Gallery Styles */
.dtcp-gallery-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.dtcp-filter-btn {
    padding: 8px 20px;
    border: 2px solid #e8e8eb;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.dtcp-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.dtcp-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.dtcp-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.dtcp-gallery-item {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f7;
    transition: all 0.3s ease;
    opacity: 1;
}

.dtcp-gallery-item.hidden {
    display: none;
}

.dtcp-gallery-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 250px;
}

.dtcp-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dtcp-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.dtcp-gallery-image:hover .dtcp-gallery-overlay {
    opacity: 1;
}

.dtcp-gallery-image:hover img {
    transform: scale(1.1);
}

.dtcp-gallery-info {
    color: white;
}

.dtcp-gallery-info h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
}

.dtcp-gallery-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.dtcp-gallery-video video {
    width: 100%;
    height: auto;
    display: block;
}

.dtcp-video-info {
    padding: 15px;
}

.dtcp-video-info h4 {
    margin: 0 0 5px;
    color: #1a1a2e;
}

.dtcp-video-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Lightbox */
.dtcp-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.dtcp-lightbox.active {
    display: flex;
}

.dtcp-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.dtcp-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.dtcp-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.dtcp-lightbox-close:hover {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dtcp-header h1 {
        font-size: 2rem;
    }
    
    .dtcp-card {
        padding: 20px;
    }
    
    .dtcp-card h2 {
        font-size: 1.5rem;
    }
    
    .dtcp-features-grid,
    .dtcp-services-grid {
        grid-template-columns: 1fr;
    }
    
    .dtcp-equipment-item {
        flex-direction: column;
        text-align: center;
    }
    
    .dtcp-equipment-number {
        margin: 0 auto;
    }
    
    .dtcp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dtcp-clients-table {
        font-size: 0.85rem;
    }
    
    .dtcp-clients-table th,
    .dtcp-clients-table td {
        padding: 10px;
    }
    
    .dtcp-testimonial-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .dtcp-gallery-container {
        grid-template-columns: 1fr;
    }
    
    .dtcp-nav-mobile {
        width: 100%;
        right: -100%;
    }
}

/* Loading Animation */
.dtcp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: dtcp-spin 1s linear infinite;
}

@keyframes dtcp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}