/* ArenesWeb Frontend Custom Styles */
:root {
    --arenes-red: #ed1b24;
    --arenes-gray-light: #f9f9f9;
    --arenes-dark: #1a1a1a;
}

body {
    font-family: 'Oxanium', sans-serif;
    color: var(--arenes-dark);
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.text-red {
    color: var(--arenes-red) !important;
}

.bg-red {
    background-color: var(--arenes-red) !important;
}

.bg-light-gray {
    background-color: var(--arenes-gray-light) !important;
}

/* Base Styles */
a {
    transition: color 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: var(--arenes-red);
}

.font-italic-custom {
    font-family: 'Brush Script MT', cursive, 'Oxanium';
    font-weight: 500;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--arenes-red);
}

/* Container Genişliğini Artırmak (Örnek) */
@media (min-width: 1400px) {
    .container {
        max-width: 1600px !important;
        /* İstediğiniz daha büyük veya küçük max-width değerini buraya yazın */
    }
}


/* Header & Navigation */
.arenes-header {
    background: #fff;
    padding: 40px 0px 16px;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.arenes-logo img {
    height: 40px;
}

.arenes-nav .nav-link {
    color: var(--arenes-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    margin: 0 5px;
}

.arenes-nav .nav-link:hover,
.arenes-nav .nav-link.active {
    color: var(--arenes-red);
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    width: 100%;
}

.hero-slanted-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    /* Base for mobile: small slant */
    clip-path: polygon(0% 0%, 100% 60px, 100% 100%, 0% calc(100% - 100px));
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-slanted-bg {
        clip-path: polygon(0% 0%, 100% 100px, 100% 100%, 0% calc(100% - 130px));
    }
}

@media (min-width: 992px) {
    .hero-slanted-bg {
        /* Fixed pixel slant on desktop, regardless of viewport height */
        clip-path: polygon(0% 0%, 100% 140px, 100% 100%, 0% calc(100% - 150px));
    }
}

.hero-arrow {
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.hero-arrow:hover {
    opacity: 1;
    transform: scale(1.1);
    color: var(--arenes-red) !important;
}

/* Slider Text Animations */
.slider-text-animate>* {
    opacity: 0;
    transform: translateY(20px);
}

.carousel-item.active .slider-text-animate>* {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance */
.carousel-item.active .slider-text-animate>*:nth-child(1) {
    transition: all 0.6s ease-out 0.2s;
}

.carousel-item.active .slider-text-animate>*:nth-child(2) {
    transition: all 0.6s ease-out 0.4s;
}

.carousel-item.active .slider-text-animate>*:nth-child(3) {
    transition: all 0.6s ease-out 0.6s;
}

/* Hide outgoing instantly to prevent overlap during crossfade */
.carousel-item.active.carousel-item-start .slider-text-animate>*,
.carousel-item.active.carousel-item-end .slider-text-animate>* {
    opacity: 0;
    transition: none !important;
}

/* Double Image Grid (About) */
.about-images {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.about-img-1 {
    width: 60%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 246px;
    top: 20%;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-img-2 {
    width: 75%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 5%;
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Services Section Slant */
.services-section-slanted {
    position: relative;
    /* Slant downwards to the right for both top and bottom edges (parallel) */
    clip-path: polygon(0 0, 100% clamp(40px, 6vw, 120px), 100% 100%, 0 calc(100% - clamp(40px, 6vw, 120px)));
    padding-top: 150px !important;
    padding-bottom: 150px !important;
    margin-top: -60px;
    z-index: 0;
}

/* Services Grid */
.service-card {
    background: #fff;
    padding: 30px 20px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    /* Bottom right cut effect */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #f1f1f1;
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--arenes-red);
    margin-bottom: 20px;
}

.service-title {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.service-card hr {
    width: 40px;
    border: 2px solid var(--arenes-red);
    opacity: 1;
    margin: 15px 0;
}

/* Project Gallery (Masonry Like) */
.project-gallery {
    display: flex;
    width: 100%;
}

.project-item {
    flex: 1;
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
    filter: grayscale(100%);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient on edges to separate items when collapsed */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.project-item:hover,
.project-item.active {
    flex: 4;
    filter: grayscale(0%);
}

.project-item:hover::before,
.project-item.active::before {
    opacity: 0.1;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Red to Transparent from top to bottom */
    background: linear-gradient(to bottom, rgba(237, 27, 36, 0.95) 0%, rgba(237, 27, 36, 0.7) 20%, rgba(237, 27, 36, 0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none; /* overlay itself is non-interactive */
}

/* Make the link inside the overlay clickable */
.project-overlay a {
    pointer-events: auto;
}

/* Text animation base */
.project-overlay .text-white {
    width: 350px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease 0.1s;
    white-space: nowrap;
}

/* Active item (default highlighted) */
.project-item.active {
    flex: 4;
    filter: grayscale(0%);
}
.project-item.active::before {
    opacity: 0.1;
}
.project-item.active .project-overlay {
    opacity: 1;
}
.project-item.active .project-overlay .text-white {
    opacity: 1;
    transform: translateY(0);
}

/* Hovered item */
.project-item:hover {
    flex: 4;
    filter: grayscale(0%);
}
.project-item:hover::before {
    opacity: 0.1;
}
.project-item:hover .project-overlay {
    opacity: 1;
}
.project-item:hover .project-overlay .text-white {
    opacity: 1;
    transform: translateY(0);
}

/* When gallery is in hover-mode, suppress active item back to grey */
.project-gallery.has-hover .project-item.active {
    flex: 1;
    filter: grayscale(100%);
}
.project-gallery.has-hover .project-item.active::before {
    opacity: 1;
}
.project-gallery.has-hover .project-item.active .project-overlay {
    opacity: 0;
}


/* Footer Section */
.arenes-footer {
    position: relative;
    background: var(--arenes-red);
    color: #fff;
    /* Slant downwards to the right (Left high, Right low) */
    clip-path: polygon(0 0, 100% clamp(40px, 6vw, 120px), 100% 100%, 0 100%);
    padding-top: calc(80px + clamp(40px, 6vw, 120px)) !important;
    padding-bottom: 20px;
    margin-top: calc(-1 * clamp(40px, 6vw, 120px));
    z-index: 10;
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
    /* Ensure it's white if logo is colored */
    height: 40px;
}

.arenes-footer h5 {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 15px;
}

/* Mega Menu */
.has-megamenu {
    position: static !important;
}

.megamenu {
    left: 15px;
    right: 15px;
    width: auto;
    border-top: 3px solid #ed1b24 !important;
}

.hover-bg-light {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
    color: #ed1b24 !important;
    transform: translateX(5px);
}

@media all and (min-width: 992px) {
    .has-megamenu:hover .megamenu {
        display: block;
        animation: fadeUp 0.3s ease forwards;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero-skew {
    clip-path: polygon(0 0, 100% clamp(40px, 6vw, 120px), 100% 100%, 0 calc(100% - clamp(40px, 6vw, 120px)));
}