/**
 * Header & Footer Additional Styles
 */

/* Header scrolled state */
.site-header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.site-header.hidden {
    transform: translateY(-100%);
}

/* Menu toggle animation */
.menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* Loading states */
body.loading {
    overflow: hidden;
}

.loading::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-white);
    z-index: 9999;
}

/* Portfolio loading */
#portfolio-container.loading {
    opacity: 0.5;
    pointer-events: none;
}

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

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

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-white);
    color: var(--color-white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

body.lightbox-open {
    overflow: hidden;
}

/* Carousel navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--color-secondary);
    transform: scale(1.1);
}

/* Error messages */
.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.error {
    border-color: #dc2626 !important;
}

/* Process timeline styles */
.process-timeline {
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-bottom: 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Animation classes */
.fade-in-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stats section */
.about-stats {
    background-color: var(--color-primary);
    color: var(--color-white);
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.stat-icon img {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    filter: brightness(0) invert(1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Values & Team sections */
.about-values,
.about-team {
    padding: 5rem 0;
}

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

.value-card,
.team-member {
    text-align: center;
}

.value-icon img,
.member-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
}

.member-photo img {
    width: 150px;
    height: 150px;
}

.member-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-position {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--color-gray);
    margin-bottom: 1rem;
}

.member-social {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.member-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--color-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

/* Contact info */
.contact-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-icon {
    flex-shrink: 0;
}

.contact-hours ul,
.contact-social .social-links {
    list-style: none;
    padding: 0;
}

.hour-day {
    font-weight: 600;
}

.hour-time {
    color: var(--color-gray);
}

/* Service page styles */
.service-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 4rem 0;
}

.service-header-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.service-icon img {
    width: 120px;
    height: 120px;
    filter: brightness(0) invert(1);
}

.service-header-text h1 {
    color: var(--color-white);
}

.service-excerpt {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 1rem 0;
}

.service-meta {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.service-meta span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.service-benefits,
.service-technologies,
.service-process {
    background-color: var(--color-light);
}

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

.benefit-item {
    padding: 2rem;
}

.technologies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Project styles */
.project-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    padding: 4rem 0;
}

.project-meta-top {
    margin-bottom: 1rem;
}

.project-type {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-header h1 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.project-meta-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.project-content-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.project-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-box {
    background-color: var(--color-light);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.sidebar-box h3 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.tech-list,
.results-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.results-list li {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.results-list strong {
    font-size: 1.5rem;
    color: var(--color-primary);
}

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

.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
}

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

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Testimonial box */
.project-testimonial {
    background-color: var(--color-light);
    padding: 5rem 0;
}

.testimonial-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.testimonial-box blockquote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    border: none;
    padding: 0;
}

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

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
