/* --- Standard Page Hero --- */
.page-hero {
    height: 100vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.about-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.hero-bg-img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: brightness(0.75) contrast(1.02);
}
.hero-title-container {
    text-align: center;
    z-index: 10;
}
.hero-title-container h1 {
    font-size: clamp(1.2rem, 3vw, 2rem) !important;
    font-weight: 900;
    line-height: 1 !important;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #fff;
}
.hero-title-container p {
    font-size: 1.1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 700;
}



/* --- Xidmetler Page --- */
.services-intro-section { 
    padding: 100px 0 30px; 
    text-align: center; 
    background: linear-gradient(rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.9)), url('../images/electric_panel.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}
.services-intro-section h2 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 800; margin-bottom: 20px; color: #fff; }
.services-intro-section p { font-size: 1.2rem; color: #aaa; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.services-page-grid { 
    padding: 20px 0 120px; 
    background: linear-gradient(rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.9)), url('../images/electric_panel.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.services-page-grid .services-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 30px !important;
}
@media (max-width: 992px) {
    .services-page-grid .services-grid { grid-template-columns: 1fr; }
}

/* --- Project Detail Page --- */
.project-hero { height: 100vh; width: 100%; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.project-hero img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.2) 100%); z-index: 2; }
.project-hero-content { position: relative; z-index: 10; max-width: 900px; padding: 0 20px; }
.project-hero h1 { color: #fff; font-size: clamp(1.2rem, 3vw, 2rem) !important; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }

.stats-bar { background-color: #050505; color: #fff; padding: 80px 0; position: relative; z-index: 10; margin-top: -1px; }
.stats-grid { display: flex; justify-content: center; align-items: center; width: 100%; }
.stat-item { flex: 1; padding: 15px 10px; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); transition: transform 0.3s ease; }
.stat-item:hover { transform: translateY(-5px); }
.stat-item:last-child { border-right: none; }
.stat-value { font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 900; color: #c5a880; margin-bottom: 5px; font-family: 'Inter', sans-serif; line-height: 1; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,0.5); font-weight: 600; }

@media (max-width: 768px) {
    .stats-grid { flex-direction: column; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; padding: 30px; }
    .stat-item:last-child { border-bottom: none; }
}

.project-content-wrapper { background: #fff; padding: 120px 0; }
.project-content { max-width: 900px; margin: 0 auto; font-size: 1.15rem; line-height: 1.9; color: #333; text-align: left; }
.project-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 30px 0; display: block; }

.gallery-section { padding: 80px 0 120px; background: #fdfdfd; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding: 0 4%; }
.gallery-item { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.1); aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); opacity: 0; transition: all 0.4s ease; display: flex; align-items: center; justify-content: center; }
.gallery-overlay i { color: #fff; font-size: 2.5rem; transform: scale(0.5); }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

#lightbox { display: none; position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); justify-content: center; align-items: center; }
#lightbox img { max-width: 90%; max-height: 85%; border-radius: 12px; }
#lightbox-close { position: absolute; top: 40px; right: 40px; color: #fff; cursor: pointer; font-size: 24px; }

/* --- TEM Page --- */
.tem-master-section { height: 400vh; position: relative; background: #000; }
.tem-pinned-container { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.tem-video-container { width: 100%; height: 100%; position: relative; }
.tem-scroll-canvas { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.tem-side-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.2) 100%); }
.tem-content-section { padding: 120px 0; background: #fff; color: #000; }
.tem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.tem-image-container img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.1); }
.tem-text p { font-size: 1.15rem; line-height: 1.8; color: #444; margin-bottom: 25px; }
.catalog-btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 35px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.1); text-decoration: none; border-radius: 50px; font-weight: 700; transition: all 0.3s ease; }
.catalog-btn:hover { background: #c5a880; color: #000; border-color: #c5a880; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(197, 168, 128, 0.25); }

.tem-mobile-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); display: none; }

@media (max-width: 768px) {
    .tem-master-section { height: 100vh !important; background: #000000 !important; }
    .tem-pinned-container { position: relative !important; height: 100vh !important; background: #000000 !important; }
    .tem-video-container { background: #000000 !important; }
    .tem-scroll-canvas { display: none !important; }
    .tem-mobile-img { display: block !important; width: 100%; height: 100%; object-fit: cover; filter: none !important; }
    .tem-side-overlay { display: none !important; }
    .tem-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- Projects Page --- */
.hero-title-mockup {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(2.4rem, 5.5vw, 4.8rem) !important;
    font-weight: 300 !important;
    letter-spacing: 8px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

.hero-title-divider {
    width: 120px;
    height: 1px;
    background: #c5a880;
    margin: 20px auto 25px auto;
}

.hero-subtitle-mockup {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(0.75rem, 1.8vw, 0.95rem) !important;
    font-weight: 600 !important;
    letter-spacing: 8px !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    text-align: center !important;
}

.hero-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.projects-hero-spec {
    height: 70vh !important;
    min-height: 520px !important;
}

/* Brighten the cover image and reduce double overlay shading to let the cover shine beautifully */
.projects-hero-spec .hero-bg-img {
    filter: brightness(0.75) contrast(1.05) !important; /* Highly visible cover image */
}

.projects-hero-spec .hero-overlay-dark {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%) !important;
}

.projects-hero-spec .hero-bg-wrapper::after {
    display: none !important; /* Hide global overlay to prevent double shading */
}

.projects-listing-premium {
    padding: 80px 0 120px 0 !important;
    margin-top: 0 !important;
    background: #050505 !important;
    position: relative;
    z-index: 10;
}

.projects-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

@media (max-width: 992px) {
    .projects-grid-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .projects-grid-premium {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project-card-premium {
        height: 360px !important;
    }
    .project-card-info {
        bottom: 20px !important;
        left: 20px !important;
        right: 20px !important;
        padding: 0 !important;
    }
    .project-card-arrow {
        width: 38px !important;
        height: 38px !important;
    }
}

.project-card-premium {
    position: relative;
    display: block;
    text-decoration: none;
    height: 430px; /* Precise height for the full-bleed card */
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    border: none !important;
}

.project-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(197, 168, 128, 0.05) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 2;
}

/* Beautiful dark bottom gradient overlay matching the mockup exactly for maximum legibility */
.project-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* Smoothly spans the bottom half of the card */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 60%, transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: height 0.5s ease;
}

.project-card-premium:hover::after {
    height: 55%; /* Subtle expansion on hover */
}

.project-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.project-card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.project-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card-premium:hover .project-card-image-wrapper img {
    transform: scale(1.06);
}

.project-card-info {
    position: absolute;
    bottom: 28px;
    left: 28px;
    right: 28px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align title and arrow perfectly on the bottom line */
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-card-title {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: clamp(1.4rem, 2vw, 1.7rem) !important; /* Beautiful large luxury serif title */
    font-weight: 400 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important; /* Extra crisp readability */
    text-align: left !important;
}

.project-card-category {
    font-family: 'Inter', sans-serif !important;
    font-size: 9px !important;
    letter-spacing: 2px !important;
    color: rgba(197, 168, 128, 0.8) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: block !important;
    text-align: left !important;
}

.project-card-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(197, 168, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    flex-shrink: 0;
}

.project-card-arrow svg {
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card-arrow svg line,
.project-card-arrow svg polyline {
    stroke: #c5a880;
    transition: stroke 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.project-card-premium:hover .project-card-arrow {
    background: #c5a880;
    border-color: #c5a880;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
}

.project-card-premium:hover .project-card-arrow svg {
    transform: translateX(3px);
}

.project-card-premium:hover .project-card-arrow svg line,
.project-card-premium:hover .project-card-arrow svg polyline {
    stroke: #000000;
}

/* --- Pagination Bar --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.pagination-bar {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(12, 12, 12, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 8px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pagination-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    border: 1px solid transparent;
}

.pagination-number:hover {
    color: #c5a880;
    border-color: rgba(197, 168, 128, 0.3);
    background: rgba(197, 168, 128, 0.05);
}

.pagination-number.active {
    background: #c5a880;
    color: #000000;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(197, 168, 128, 0.4);
    border-color: #c5a880;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.pagination-btn:hover {
    color: #ffffff;
    border-color: #c5a880;
    background: rgba(197, 168, 128, 0.05);
}

/* --- Contact Page --- */
.contact-section { padding: 120px 0; background: #ffffff; color: #000; position: relative; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; align-items: start; }
.info-wrapper { display: flex; flex-direction: column; gap: 30px; }
.info-card { background: #f8f9fa; padding: 30px; border-radius: 24px; transition: all 0.3s ease; color: #000; display: flex; align-items: flex-start; gap: 20px; }
.info-card:hover { background: #000; color: #fff; transform: translateY(-5px); }
.info-icon { font-size: 1.5rem; color: #c5a880; transition: all 0.3s ease; flex-shrink: 0; width: 50px; height: 50px; background: rgba(197, 168, 128, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.info-card:hover .info-icon { color: #fff; background: #c5a880; box-shadow: 0 0 10px rgba(197, 168, 128, 0.5); }
.info-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; color: inherit; }
.info-card p { font-size: 1rem; line-height: 1.5; opacity: 0.8; color: inherit; margin: 0; }
.form-wrapper { background: #fff; padding: 50px; border-radius: 30px; box-shadow: 0 30px 60px rgba(0,0,0,0.08); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #666; }
.form-group input, .form-group textarea { width: 100%; padding: 18px; background: #fdfdfd; border: 1px solid #eee; border-radius: 12px; font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { border-color: #000; background: #fff; outline: none; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.submit-btn { width: 100%; padding: 20px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover { background: #c5a880; color: #000; border-color: #c5a880; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(197, 168, 128, 0.25); }

/* Map Section */
.map-section { width: 100%; height: 500px; background: #eee; line-height: 0; }
.map-section iframe { width: 100%; height: 100%; border: none; filter: grayscale(1) invert(0.9) contrast(1.2); }

/* Social Icons in Info Card */
.social-icons-wrapper { display: flex; gap: 15px; margin-top: 15px; }
.social-icons-wrapper a { width: 40px; height: 40px; background: #000; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; text-decoration: none; }
.social-icons-wrapper a:hover { background: #333; transform: translateY(-3px); }

@media (max-width: 992px) {
    .vision-grid { grid-template-columns: 1fr; gap: 60px; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .tem-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}
@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .process-line, .process-progress { left: 30px; transform: none; }
    .process-step { flex-direction: column !important; align-items: flex-start; padding-left: 80px; text-align: left; }
    .step-content, .step-spacer { width: 100%; }
    .step-number { left: 30px; transform: translateX(-50%); margin-bottom: 20px; position: absolute; }
    .values-grid { grid-template-columns: 1fr; }
    .form-wrapper { padding: 30px; }
    .map-section { height: 350px; }
}

/* Animated TEM Brand Overlay */
.tem-brand-overlay {
    position: absolute;
    top: 50%;
    left: 80px;
    transform: translateY(-50%);
    z-index: 5 !important;
    pointer-events: none;
    text-align: left;
    width: auto;
}

.tem-brand-title {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 36px;
    background: rgba(0, 0, 0, 0.45); /* Light premium shadow background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    opacity: 0;
    width: fit-content;
}

.tem-word-top {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(2.0rem, 4vw, 3.2rem) !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 6px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.tem-word-bottom {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(1.0rem, 2vw, 1.4rem) !important;
    font-weight: 600 !important;
    color: #c5a880 !important;
    letter-spacing: 4px !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

@media (max-width: 768px) {
    .tem-brand-overlay {
        left: 20px;
    }
    .tem-brand-title {
        padding: 0 !important;
        gap: 4px;
        background: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
    }
}
