/* ===================================
   Page-Specific Styles
   =================================== */

/* Page Header */
.page-header {
    padding: 140px 0 80px;
    background: var(--primary-yellow);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
    background-size: 50px 50px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===================================
   About Page Styles
   =================================== */

/* Company Story */
.company-story {
    padding: var(--section-padding);
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--gray-text);
    font-size: 1.0625rem;
}

.story-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Founder Section */
.founder-section {
    padding: var(--section-padding);
    background: var(--background);
}

.founder-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: center;
}

.founder-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.founder-title {
    color: var(--primary-yellow);
    font-size: 1.25rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.founder-bio p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Mission & Values */
.mission-values {
    padding: var(--section-padding);
    background: var(--background);
}

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

.value-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(245, 183, 0, 0.15);
}

.value-icon {
    margin-bottom: 24px;
    color: var(--primary-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-yellow);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-text);
}

.value-card p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* Team Section */
.team-section {
    padding: var(--section-padding);
    background: var(--white);
}

.team-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-feature {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    background: var(--background);
}

.feature-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--primary-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.team-feature h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
}

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

/* Certifications */
.certifications {
    padding: var(--section-padding);
    background: var(--background);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.cert-item {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.cert-placeholder {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-yellow);
}

/* Why Choose About */
.why-choose-about {
    padding: var(--section-padding);
    background: var(--white);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.reason-item {
    padding: 32px;
    border-radius: 12px;
    background: var(--background);
    transition: var(--transition);
}

.reason-item:hover {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.reason-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-yellow);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.reason-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

.reason-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.reason-item p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* ===================================
   Services Page Styles
   =================================== */

.service-detail {
    padding: var(--section-padding);
    background: var(--white);
}

.service-detail:nth-child(even) {
    background: var(--background);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-content.reverse {
    direction: rtl;
}

.service-content.reverse > * {
    direction: ltr;
}

.service-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: var(--primary-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-text p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 24px;
    font-size: 1.0625rem;
}

.service-features {
    list-style: none;
    margin: 32px 0;
}

.service-features li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--dark-text);
    font-weight: 500;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-yellow);
    font-weight: 700;
}

.service-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Projects/Portfolio Page Styles
   =================================== */

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 8px;
    background: var(--white);
    color: var(--dark-text);
    font-weight: 600;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-yellow);
    color: var(--white);
    border-color: transparent;
}

.gallery-section {
    padding: var(--section-padding);
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--background);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 24px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.gallery-category {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Project Lightbox with Description */
.project-lightbox .lightbox-content {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    max-height: 85vh;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.project-lightbox .lightbox-image-container {
    flex: 1.2;
    min-width: 0;
    background: var(--anthracite);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-lightbox .lightbox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    max-height: none;
    border-radius: 0;
}

.project-lightbox .lightbox-info {
    flex: 0.8;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--anthracite);
    min-width: 320px;
    max-width: 400px;
}

.lightbox-category {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-yellow);
    color: var(--anthracite);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
    align-self: flex-start;
}

.lightbox-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.lightbox-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.lightbox-cta {
    align-self: flex-start;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    color: var(--dark-text);
    transition: var(--transition);
    z-index: 10001;
    padding: 0;
}

.lightbox-close:hover {
    background: var(--primary-yellow);
    color: var(--white);
}

/* Responsive lightbox */
@media (max-width: 900px) {
    .project-lightbox .lightbox-content {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .project-lightbox .lightbox-image-container {
        min-height: 250px;
        max-height: 40vh;
    }

    .project-lightbox .lightbox-info {
        min-width: unset;
        max-width: unset;
        padding: 32px;
    }

    .lightbox-title {
        font-size: 1.5rem;
    }
}

/* ===================================
   Products Page Styles
   =================================== */

.products-section {
    padding: var(--section-padding);
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--background);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.product-logo {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
}

.product-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-logo img:hover {
    transform: scale(1.05);
}

.product-logo-placeholder {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-text);
}

.lightbox-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.product-card p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* ===================================
   Partner Page Styles
   =================================== */

.partner-intro {
    padding: var(--section-padding);
    background: var(--white);
    text-align: center;
}

.partner-intro .section-subtitle {
    max-width: 700px;
}

.partner-benefits {
    padding: var(--section-padding);
    background: var(--background);
}

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

.benefit-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    transition: var(--transition);
}

.benefit-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.benefit-card p {
    color: var(--gray-text);
    line-height: 1.7;
}

.partner-form-section {
    padding: var(--section-padding);
    background: var(--white);
}

/* ===================================
   Contact Page Styles
   =================================== */

.contact-info-section {
    padding: var(--section-padding);
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--background);
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    background: var(--white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--primary-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--white);
    font-size: 24px;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-text);
}

.contact-card p {
    color: var(--gray-text);
    font-size: 1.0625rem;
}

.contact-card a {
    color: var(--primary-yellow);
    font-weight: 600;
}

.contact-card a:hover {
    color: #ffc107;
}

/* Form Styles */
.form-section {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(245, 183, 0, 0.1);
}

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

.form-submit {
    width: 100%;
}

/* Map Container */
.map-container {
    margin-top: 60px;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    font-weight: 600;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    max-width: 400px;
    background: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s ease;
}

.notification.show {
    right: 20px;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-info {
    border-left: 4px solid var(--primary-yellow);
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 968px) {
    .page-title {
        font-size: 2.5rem;
    }

    .story-content,
    .founder-content,
    .service-content {
        grid-template-columns: 1fr;
    }

    .founder-content {
        grid-template-columns: 1fr;
    }

    .service-content.reverse {
        direction: ltr;
    }

    .service-text h2 {
        font-size: 2rem;
    }

    .form-section {
        padding: 32px 24px;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.125rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }

    .notification {
        max-width: calc(100% - 40px);
    }
}
