/* Footer Customization (moved from style.css) */
.site-footer {
    background: #fff;
    color: #ff8800;
    border-top: 3px solid #ff8800;
    box-shadow: 0 -2px 16px rgba(255,136,0,0.08);
    padding-top: 2rem;
    padding-bottom: 1.5rem;
    /*margin-left: 300px;
    width: calc(100% - 300px);*/
    box-sizing: border-box;
}

/* RTL support for footer layout */
.rtl .site-footer {
    margin-left: 0 !important;
    margin-right: 300px;
    width: calc(100% - 300px);
    box-sizing: border-box;
}

/* Search and archive page styles */
/* Search highlighting */
mark {
    background-color: #ffeb3b;
    color: #333;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Search term in page title */
.search-term {
    color: var(--primary-color);
    font-weight: 600;
}

/* Search suggestions */
.search-suggestions {
    margin: 20px 0;
}

.search-suggestions h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: var(--muted-text);
}

.search-suggestions li:before {
    content: "•";
    color: var(--primary-color);
    margin-right: 8px;
}

/* Search again form */
.search-again {
    margin: 20px 0;
}

/* Back home button */
.back-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.back-home-btn:hover {
    background: var(--primary-dark);
    text-decoration: none;
}
.site-footer a,
.site-footer .footer-menu a {
    color: #ff8800;
}
.site-footer .site-info {
    font-size: 0.85em;
    opacity: 0.7;
    margin-top: 1.5rem;
    text-align: center;
}
.site-footer .footer-logo.logo-white img {
    filter: invert(0);
}
/* Header Carousel Styles */
.header-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: white;
    overflow: hidden;
}

.header-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

/* Carousel Loading Bar */
.carousel-loading-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 10;
}

.carousel-loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    transition: width 0.1s linear;
}

.carousel-loading-progress.animating {
    animation: carousel-loading 5s linear;
}

@keyframes carousel-loading {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

.slide-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.slide-cta {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slide-cta:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.carousel-btn {
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: scale(1.1);
}

/* Slide List */
.slide-list {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.slide-list-items {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem;
}

.slide-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    opacity: 0.7;
}

.slide-list-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    opacity: 1;
}

.slide-list-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.slide-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-orange);
    min-width: 30px;
    text-align: center;
}

.slide-title {
    color: var(--pure-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.slide-list-item.active .slide-number {
    color: var(--pure-white);
    text-shadow: var(--shadow-glow) var(--primary-orange);
}

.slide-list-item.active .slide-title {
    color: var(--pure-white);
    text-shadow: var(--shadow-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-carousel {
        height: 80vh;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .carousel-nav {
        padding: 0 1rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Mobile slide list adjustments */
    .slide-list-items {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .slide-list-item {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }

    .slide-number {
        min-width: 25px;
        font-size: 1rem;
    }

    .slide-title {
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 120px;
    }
}

/* Contact Section Styles */
.contact-section {
    background: var(--pure-white);
    color: var(--text-primary);
    padding: 4rem 0;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: white;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-text {
    font-size: 1rem;
}

/* Contact Form Styles */
.contact-form-element {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: var(--overlay-light);
}

.submit-btn {
    background: var(--primary-orange);
    color: var(--pure-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.submit-btn:hover {
    color: var(--primary-orange) !important;
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-container {
        padding: 0 1rem;
    }
}

/* Grid Layouts */
.works-grid,
.inventions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Card Styles */
.work-item,
.invention-item {
    background: var(--pure-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.work-item:hover,
.invention-item:hover {
    transform: translateY(-5px);
}

/* Thumbnail Styles */
.work-thumbnail img,
.invention-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Section Headers */
.latest-works,
.latest-inventions {
    padding: 4rem 0;
}

.latest-works h2,
.latest-inventions h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    background: var(--off-white);
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

/* View All Button */
.view-all {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--text-primary);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 4px;
    margin-top: 2rem;
}

.view-all:hover {
    background: var(--overlay-light) !important;
}