/*
=========================================================
  __  __ _    _ _______ _      _    _ 
 |  \/  | |  | |__   __| |    | |  | |
 | \  / | |  | |  | |  | |    | |  | |
 | |\/| | |  | |  | |  | |    | |  | |
 | |  | | |__| |  | |  | |____| |__| |
 |_|  |_|\____/   |_|  |______|\____/ 
 _____ _____     __  __ _______       _      
|  __ \_   _|   |  \/  |__   __|     | |     
| |  | || |     | \  / |  | |  __ _  | |     
| |  | || |     | |\/| |  | | / _` | | |     
| |__| || |_    | |  | |  | || (_| | | |____ 
|_____/_____|   |_|  |_|  |_| \__,_| |______|
                                             
Samet Mutlu | +05422419932 | mutludijital.com.tr
=========================================================
*/

/* --- CSS VARIABLES --- */
:root {
    --color-bg: #131313;
    --color-bg-darker: #0a0a0a;
    --color-bg-light: #1e1e1e;
    --color-primary: #278c4a; /* HFM TEL Logo Green */
    --color-primary-dark: #1e6b38;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-black: #000000;
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h2.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
}

h2.section-title span {
    color: var(--color-primary);
}

p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* --- LAYOUT UTILS --- */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    padding: 8rem 0;
}

.bg-darker {
    background-color: var(--color-bg-darker);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* --- BUTTONS --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-black);
}

.btn-large {
    padding: 1.2rem 3.5rem;
    font-size: 1.3rem;
}

/* --- CUSTOM CURSOR --- */
.cursor {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor {
    opacity: 1;
}

/* --- NAVBAR --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.logo-text {
    color: var(--color-text);
    margin-right: 5px;
}

.logo-box {
    background-color: var(--color-primary);
    color: var(--color-text);
    padding: 0 8px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links li a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-links li a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-links li a:not(.btn-primary):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
#hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--color-bg); /* Fallback */
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 5rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.dynamic-text {
    display: inline-block;
    color: var(--color-primary, #278c4a);
    position: relative;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.dynamic-text.fade-out {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}

.dynamic-text.fade-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-content p {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 3rem;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* --- ABOUT SECTION --- */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.about-image {
    position: relative;
}

.about-image img {
    filter: grayscale(20%);
    transition: var(--transition-slow);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.image-overlay-box {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--color-primary);
    padding: 2rem;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
}

.image-overlay-box h4 {
    font-size: 1.5rem;
}

/* --- SERVICES / PRODUCTS --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--color-bg-light);
    overflow: hidden;
    transition: var(--transition-slow);
    border-bottom: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--color-primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- SLIDER --- */
.slider-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slider img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: var(--transition-slow);
}

.product-card:hover .slider img {
    filter: grayscale(0%);
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: var(--transition-fast);
    opacity: 0;
}

.slider-prev { left: 0; }
.slider-next { right: 0; }

.slider-container:hover .slider-prev,
.slider-container:hover .slider-next {
    opacity: 1;
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--color-primary);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.product-content {
    padding: 2.5rem;
}

.product-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.read-more span {
    transition: var(--transition-fast);
}

.read-more:hover span {
    transform: translateX(10px);
}

/* --- GALLERY --- */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 1rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.masonry-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.masonry-item:nth-child(4) { grid-column: span 2; }

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

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(39, 140, 74, 0.9), rgba(0,0,0,0.2));
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-slow);
}

.masonry-overlay span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

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

/* --- CTA SECTION --- */
.cta-section {
    background-color: var(--color-primary);
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--color-text);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.cta-section .btn-primary {
    background-color: var(--color-bg);
    color: var(--color-text);
    border-color: var(--color-bg);
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: var(--color-bg);
}

/* --- FOOTER --- */
footer {
    background-color: #050505;
    padding-top: 6rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
}

.footer-contact h3, .footer-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.footer-contact ul li {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.footer-contact ul li strong {
    color: var(--color-text);
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-form input {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-bg-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--color-text);
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.footer-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- GALLERY PAGE SPECIFIC --- */
.page-header {
    padding: 12rem 0 6rem;
    background-color: var(--color-bg-darker);
    text-align: center;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

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

.gallery-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease;
}

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

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.lightbox-img, .lightbox-video {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    outline: none;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

/* --- ANIMATIONS (REVEAL) --- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.map-embed iframe {
    display: block;
    width: 100%;
    filter: invert(90%) hue-rotate(180deg) brightness(110%) contrast(90%); /* Haritayı Dark Mode'a uyumlu yapar */
    transition: var(--transition-slow);
}

.map-embed:hover iframe {
    filter: invert(0%) hue-rotate(0deg) brightness(100%) contrast(100%); /* Üzerine gelince normal renklere döner */
}

/* --- Testimonials / Reviews Section --- */
.reviews-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0 4rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.reviews-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollReviews 40s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); }
}

.review-card {
    width: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.review-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary, #278c4a);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary, #278c4a), #124d27);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.reviewer-info {
    flex: 1;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
}

.reviewer-info span {
    font-size: 0.85rem;
    color: #aaa;
    display: block;
    margin-top: 2px;
}

.local-guide {
    color: #FBBC04 !important;
    font-size: 0.8rem !important;
    font-weight: 500;
}

.google-icon svg {
    width: 24px;
    height: 24px;
}

.review-stars {
    display: flex;
    gap: 4px;
}

.star {
    color: #FBBC04;
    font-size: 1.5rem;
    display: inline-block;
    animation: starGlow 1.5s infinite alternate;
    font-style: normal;
    line-height: 1;
}

.star:nth-child(1) { animation-delay: 0.0s; }
.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

@keyframes starGlow {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(251,188,4,0); }
    100% { transform: scale(1.2); text-shadow: 0 0 12px rgba(251,188,4,0.9); }
}

.review-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .review-card {
        width: 320px;
        padding: 1.5rem;
    }
}

/* --- RESPONSIVE DESIGN --- */
/* --- FLOATING CONTACT BUTTONS --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: var(--transition-fast);
    position: relative;
}

.float-btn.whatsapp {
    background-color: #25D366;
}

.float-btn.call {
    background-color: var(--color-primary);
}

.float-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
    color: white;
}

.float-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.float-btn.whatsapp::before { border-color: #25D366; }
.float-btn.call::before { border-color: var(--color-primary); }

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.3); opacity: 0; }
}

@media (max-width: 1024px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .masonry-item:nth-child(1), .masonry-item:nth-child(4) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-darker);
        flex-direction: column;
        padding: 2rem 0;
        clip-path: circle(0% at 50% 0);
        transition: all 0.5s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: circle(150% at 50% 0);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    body {
        cursor: auto; /* Disable custom cursor on mobile */
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
}