/*
Theme Name: New Road Clone
Theme URI: https://example.com/newroad-clone
Author: Genco
Author URI: https://example.com
Description: A clone of newroad.com.tr
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newroad-clone
*/

:root {
    --primary-color: #ffffff;
    --background-color: #000000;
    --text-color: #ffffff;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header */
.site-header {
    background-color: transparent;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
    transition: background-color 0.4s ease, padding 0.4s ease, border-bottom 0.4s ease;
}

.site-header.header-scrolled {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.main-navigation a:hover {
    opacity: 1;
}

/* Header Right / Language */
.header-right {
    display: flex;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.lang-switch {
    opacity: 0.5;
}

.lang-switch.active,
.lang-switch:hover {
    opacity: 1;
}

.sep {
    opacity: 0.3;
}

/* Filter Bar */
.filter-bar-container {
    background: #000;
    padding: 20px 0;
    border-bottom: 1px solid #222;
    text-align: center;
}

.filter-bar {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 30px;
}

.filter-link {
    color: #888;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.filter-link:hover,
.filter-link.active {
    color: #fff;
    border-bottom-color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 0;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    /* Responsive sizing needed usually */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 20px;
    /* Added padding to separate from hero */
}

.project-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 4px;
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-item:hover .project-thumbnail {
    transform: scale(1.08);
}

.project-info {
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-item:hover .project-info {
    opacity: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background-color: #000;
    color: #fff;
    padding: 60px 20px;
    border-top: 1px solid #222;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-social a {
    margin-right: 20px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-contact p {
    margin-bottom: 5px;
    opacity: 0.7;
}

.site-info {
    width: 100%;
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    opacity: 0.4;
    border-top: 1px solid #111;
    padding-top: 20px;
}

/* Works Grid Styling (Used on both Works page and Homepage) */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
    padding-bottom: 120px;
}

.works-item {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 9;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    background-color: #111;
}

.works-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.works-item-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.works-thumbnail {
    width: 100%;
    height: 100%;
}

.works-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.works-item:hover .works-thumbnail img {
    transform: scale(1.15);
}

.works-thumbnail.placeholder {
    background: #222;
}

.works-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
    transition: opacity 0.4s ease;
}

.works-item:hover .works-overlay {
    opacity: 0;
}

.works-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    transform: none;
    transition: none;
}

.works-item:hover .works-title,
.works-item:hover .works-category {
    transform: translateY(-8px);
}

.works-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    opacity: 1;
    transition: transform 0.4s ease, color 0.3s ease, opacity 0.3s ease;
}

.works-item:hover .works-category {
    color: #fff;
}

.works-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.4s ease;
}

/* Heading Styles */
.homepage-works-header {
    text-align: center;
    padding: 120px 20px 0px;
}

.homepage-works-header h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff !important;
    margin: 0;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

.works-header {
    margin-bottom: 80px;
    text-align: center;
}

.works-header h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #ffffff !important;
    margin-bottom: 20px;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-social a {
        display: block;
        margin: 10px 0;
    }
}