

:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --accent-color: #0fff00;
    --accent-rgb: 15, 255, 0;
    --secondary-color: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --font-main: 'Urbanist', sans-serif;
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
}

body.no-scroll {
    overflow: hidden !important;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.container-full { max-width: 100%; padding: 0 40px; }

/* Top Bar Styles */
.top-bar { display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 30px 0;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
}

.top-contact .label { opacity: 0.6; margin-right: 15px; text-transform: uppercase; }
.top-contact a { color: #fff; text-decoration: none; transition: 0.3s; }
.top-contact a:hover { color: var(--accent-color); }

.top-status {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

.status-dot { width: 8px; height: 8px; background: var(--accent-color); border-radius: 50%; box-shadow: 0 0 10px var(--accent-color); }

.top-socials { position: absolute; right: 0; display: flex; align-items: center; gap: 20px; }
.top-socials a { color: var(--text-color); opacity: 0.6; transition: 0.3s; text-decoration: none; }
.top-socials a:hover { opacity: 1; color: var(--accent-color); }
.search-trigger { background: none; border: none; color: var(--text-color); cursor: pointer; font-size: 16px; margin-left: 20px; }

/* Navigation */
.navbar {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(255, 255, 255, 0.7); /* Premium Glass alpha */
    backdrop-filter: blur(20px) saturate(160%); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1.5px dashed rgba(0, 0, 0, 0.45); /* Darker dashed border for higher visibility */
    border-radius: 100px;
    padding: 8px 10px 8px 30px;
    z-index: 1000;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    top: 15px;
    background: rgba(255, 255, 255, 0.85); /* Slightly more solid on scroll but still glass */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1.5px dashed rgba(0, 0, 0, 0.6);
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.navbar .logo { font-size: 20px; font-weight: 800; text-decoration: none; color: var(--text-color); display: flex; align-items: center; gap: 10px; }
.navbar .logo .logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 0 10px rgba(15, 255, 0, 0.15));
}
.navbar .logo .accent { color: var(--accent-color); }

@media (max-width: 768px) {
    .navbar .logo .logo-img { height: 38px; }
}


.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links > li { margin: 0; padding: 0; position: relative; }
.nav-links a { text-decoration: none; color: var(--text-color); opacity: 0.7; font-size: 14px; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { opacity: 1; color: var(--accent-color); }

/* Dropdown specific styles */
.nav-links li.has-dropdown {
    position: relative;
    padding: 10px 0; /* Creates hover target distance */
}

.nav-links li.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Space for arrow */
}

/* Base dropdown menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    width: 280px; /* Made larger */
    background: #fff;
    border-radius: 24px; /* Premium curved box */
    padding: 16px 8px; /* Room for pill margins */
    box-shadow: 0 15px 40px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.02); 
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(15px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100 !important;
}

/* Open state on hover */
.nav-links li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Submenu structure */
.dropdown-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px; /* Spacing between items */
}

.dropdown-submenu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

.dropdown-submenu li a {
    display: block;
    margin: 0 8px; /* Keeps pill inside the box nicely */
    padding: 12px 20px;
    color: #444;
    font-size: 15px; /* Slightly larger text */
    font-weight: 600;
    border-radius: 100px; /* Pill shape */
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-submenu li a:hover {
    background: var(--accent-color); /* Green pill button */
    color: #000;
    box-shadow: 0 8px 20px rgba(15, 255, 0, 0.25);
    transform: translateY(-2px);
}

/* Navbar color fix when hovered */
.navbar-on-dark .nav-links li.has-dropdown:hover > a {
    color: #fff !important;
    opacity: 1;
}

/* Ensure clean styling */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mobile-menu-toggle,
.mobile-menu-overlay {
    display: none;
}

.lang-switch {
    display: flex;
    gap: 8px;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    opacity: 0.6;
    margin-right: 10px;
}

.lang-switch span { cursor: pointer; transition: 0.3s; }
.lang-switch .active { color: var(--accent-color); opacity: 1; }

.btn-navbar-contact {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 12px 25px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
    font-size: 16px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-navbar-contact:hover { background: var(--accent-color); color: #000; }

/* Navbar on Dark Background (For Legal Hero sections) */
.navbar-on-dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.navbar-on-dark .logo,
.navbar-on-dark .nav-links a,
.navbar-on-dark .lang-switch {
    color: #000; /* Force dark text on the now white-ish navbar */
}

.navbar-on-dark .nav-links a {
    opacity: 0.8;
}

.navbar-on-dark .nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.navbar-on-dark .lang-switch span.active {
    color: var(--accent-color);
}

/* Hero Abstract Section */
.hero-abstract {
    height: 100vh;
    position: relative;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

/* Premium Floating Object Style */
.hero-premium-object {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 42vw;
    max-width: 600px;
    z-index: 2; /* Behind text (10), above watermark (1) */
    pointer-events: none;
    opacity: 0.9;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12));
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-ayda {
    width: 100%;
    height: auto;
    animation: premiumFloat 12s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes premiumFloat {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-30px) rotate(2deg) scale(1.02); }
    66% { transform: translateY(15px) rotate(-1deg) scale(0.98); }
}

@media (max-width: 1024px) {
    .hero-premium-object {
        width: 350px;
        right: -50px;
        opacity: 0.5;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .hero-premium-object {
        display: none; /* Hide on mobile to focus on text */
    }
}

.hero-bg-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-circle-accent {
    position: absolute;
    top: -300px;
    left: -300px;
    width: 800px;
    height: 800px;
    border: 80px solid rgba(15, 255, 0, 0.08); /* Fixed green circle returned */
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-text-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: spin 60s linear infinite;
}

.rotating-text {
    font-family: var(--font-main);
    font-size: 8px; /* High resolution SVG coordinate system */
    font-weight: 300; /* Thin font as requested */
    text-transform: uppercase;
    letter-spacing: 5px;
    fill: rgba(0, 0, 0, 0.15); /* Professional look */
}

@keyframes spin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.hero-bg-text-large {
    position: absolute;
    bottom: 80px; /* Watermark daha aÅŸaÄŸÄ± alÄ±ndÄ±, metinlerle Ã§akÄ±ÅŸmamasÄ± iÃ§in */
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    z-index: 5;
    pointer-events: none;
    will-change: transform;
    opacity: 0.8; /* Slightly more subtle */
}

.watermark-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.watermark-text-base, .watermark-text-flow {
    font-size: 150px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.watermark-text-base {
    fill: rgba(0, 0, 0, 0.03);
    stroke: #333; /* Koyu gri kenarlar */
    stroke-width: 1px;
}

.watermark-text-flow {
    fill: transparent;
    stroke: #0fff00;
    stroke-linecap: round;
    animation: cableFlow 5s linear infinite; /* Faster and more frequent */
    filter: drop-shadow(0 0 10px rgba(15, 255, 0, 0.6));
    pointer-events: none;
}

/* Head: The leading bright spark */
.flow-head {
    stroke-width: 2.2px;
    opacity: 1;
    stroke-dasharray: 120 2000; /* Smaller gap for less waiting */
}

/* Body: The following glow */
.flow-body {
    stroke-width: 1.8px;
    opacity: 0.55;
    stroke-dasharray: 350 2000;
    animation-delay: -0.1s;
}

/* Tail: The fading trail */
.flow-tail {
    stroke-width: 1.4px;
    opacity: 0.2;
    stroke-dasharray: 800 2000;
    animation-delay: -0.3s;
}

@keyframes cableFlow {
    0% { stroke-dashoffset: 2500; opacity: 1; } /* Tighter range = less dead time */
    100% { stroke-dashoffset: 0; opacity: 1; }
}

.hero-abstract .container {
    max-width: 100% !important;
    padding: 0 8% !important;
    margin: 0 !important;
}

.hero-main-content { 
    position: relative; 
    z-index: 10; 
    max-width: 800px; 
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    text-align: left;
    margin-top: -10vh; /* Moved slightly up */
}

/* Section Padding */
.section-padding { padding: 140px 0; }

/* ==========================================================================
   Strategic Masterclass Section (Chess Premium)
   ========================================================================== */
/* ==========================================================================
   Avista Style About Section
   ========================================================================== */
.about-avista {
    background: #fdfdfd;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: 80px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.avista-ruler {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.15) 1.5px, transparent 1.5px);
    background-size: 15px 8px, 90px 15px; /* 15px for small ticks, 90px for larger ticks */
    background-repeat: repeat-x;
    opacity: 0.6;
}


.avista-row {
    display: flex;
    gap: 60px; /* Left-col has padding-right:60px + this = space right of the divider line */
    position: relative;
    z-index: 10;
    padding: 0 6%;
    align-items: flex-start;
}

.avista-left-col {
    flex: 0 0 28%;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    border-right: 1px solid rgba(0,0,0,0.08); /* Vertical divider between columns */
    padding-right: 60px; /* Space between content and the line */
}

.avista-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000;
}

.avista-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color); /* Neon green */
    border-radius: 50%;
    flex-shrink: 0;
}

.avista-tag span:last-child {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
}

/* Divider in LEFT column — short green accent line under the tag */
.avista-divider {
    width: 55px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 0 36px 0;
    display: block;
    flex-shrink: 0;
}

.avista-quote {
    font-size: 20px;
    line-height: 1.75;
    font-weight: 300;
    color: #444;
    margin: 0 0 auto 0;
    font-family: 'Urbanist', sans-serif;
    text-align: justify;
    width: 100%;
    max-width: none;
    letter-spacing: -0.1px;
    padding: 0;
}

.avista-quote strong {
    font-weight: 900;
    color: #000;
    margin-right: 4px;
}

.avista-founder {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: auto;
    position: relative;
}

.founder-visual {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder-ripple-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1;
}

.founder-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.2);
    width: 100px;
    height: 100px;
    border: 1.5px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ripplePulse {
    0%, 100% { opacity: var(--rp-opacity); transform: translate(-50%, -50%) scale(var(--rp-scale)); }
    50% { opacity: calc(var(--rp-opacity) * 0.3); transform: translate(-50%, -50%) scale(var(--rp-scale)); }
}

.visible .founder-ripple:nth-child(1) {
    transition-delay: 0.2s;
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.8;
    --rp-opacity: 0.8;
    --rp-scale: 1.4;
    animation: ripplePulse 2.5s ease-in-out 1.7s infinite;
}
.visible .founder-ripple:nth-child(2) {
    transition-delay: 0.4s;
    transform: translate(-50%, -50%) scale(1.9);
    opacity: 0.5;
    --rp-opacity: 0.5;
    --rp-scale: 1.9;
    animation: ripplePulse 2.5s ease-in-out 2s infinite;
}
.visible .founder-ripple:nth-child(3) {
    transition-delay: 0.6s;
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0.2;
    --rp-opacity: 0.2;
    --rp-scale: 2.4;
    animation: ripplePulse 2.5s ease-in-out 2.3s infinite;
}

.founder-pfp {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    position: relative;
    z-index: 2;
}

.founder-pfp img {
    width: 65%;
    height: auto;
    filter: grayscale(1);
    opacity: 0.8;
}

.founder-name {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #000;
    letter-spacing: -0.5px;
}

.founder-title {
    font-size: 11px;
    color: #999;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.avista-right-col {
    flex: 1;
    min-width: 0;
}

.avista-main-heading {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 800;
    color: #111;
    margin-bottom: 36px;
    letter-spacing: -2.5px;
}

.avista-cta {
    margin-bottom: 36px;
}

.btn-avista {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #000; /* Reverted to Black */
    color: #fff;
    padding: 20px 42px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); /* Keeping the speed at 0.3s */
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.btn-avista:hover {
    background: var(--accent-color); /* Reverted to Green on Hover */
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(15, 255, 0, 0.25);
}

.btn-avista .btn-arrow {
    font-size: 20px;
    transition: 0.4s;
}

.btn-avista:hover .btn-arrow {
    transform: translate(4px, -4px);
}



/* No second divider in right column - it's in left col now */
.avista-value-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0;
    width: 100%;
}

.avista-card {
    position: relative; /* Added for absolute SVG border */
    background: #fff;
    padding: 26px 32px;
    border-radius: 22px;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex !important; 
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 28px rgba(0,0,0,0.03);
    overflow: hidden; /* Ensure SVG doesn't overflow corners */
}

.avista-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.ac-content {
    flex: 1; /* Pushes icon to the right */
}

.ac-content h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #000;
    letter-spacing: -0.5px;
}

.ac-content p {
    font-size: 15px;
    line-height: 1.65;
    color: #666;
    margin: 0;
}

.ac-icon {
    font-size: 40px;
    color: var(--accent-color); /* Always green as requested */
    margin-top: -5px;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1.5px #000); /* Thin black outline */
    z-index: 2;
    will-change: transform, filter; /* Hardware acceleration */
}

.avista-card:hover .ac-icon {
    transform: rotate(10deg) scale(1.15) translateZ(0);
    animation: icon-vibe 2.5s ease-in-out infinite; 
}

/* Specific styling for the dashed green border traces on avista-cards */
.avista-card .card-border-svg rect {
    stroke: #000; /* Changed to Black as requested */
    stroke-width: 2px;
    stroke-dasharray: 60, 100; /* Distinct "traces" look */
    opacity: 0.5;
    animation: none; /* Completely stop the animation for these cards */
}

.avista-card:hover .card-border-svg rect {
    opacity: 0.9;
    stroke-width: 2.2px;
}

@keyframes icon-vibe {
    0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1.5px #000) brightness(1); }
    25% { transform: translateY(-3px) rotate(-2deg); }
    50% { transform: translateY(0) rotate(2deg); filter: drop-shadow(0 0 1px #000) drop-shadow(0 0 1.5px #000) brightness(1.2); }
    75% { transform: translateY(2px) rotate(-1deg); }
}

/* --- Entry/Exit Animation Classes --- */
.reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal-up { transform: translateY(80px); }

/* Entered / Active */
.visible.reveal-left, .visible.reveal-right, .visible.reveal-up {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Exiting Classes (will be toggled by JS) */
.exiting-left { transform: translateX(-80px) !important; opacity: 0 !important; }
.exiting-right { transform: translateX(80px) !important; opacity: 0 !important; }
.exiting-up { transform: translateY(80px) !important; opacity: 0 !important; }

@media (max-width: 1200px) {
    .avista-main-heading { font-size: 54px; }
    .avista-row { gap: 60px; }
}

@media (max-width: 992px) {
    .about-avista { padding: 100px 0; }
    .avista-row { flex-direction: column; gap: 60px; }
    .avista-left-col { flex: 1; }
    .avista-main-heading { font-size: 42px; letter-spacing: -1.5px; }
    .avista-value-cards { grid-template-columns: 1fr; }
    .avista-bg-knight { width: 70%; opacity: 0.3; top: 10%; left: 15%; }
    .avista-quote { font-size: 24px; }
}

/* Hero Title Wrapper & Styles */
.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0px; /* SatÄ±r aralarÄ±ndaki gap sÄ±fÄ±rlandÄ± ki Ã§ok yapÄ±ÅŸÄ±k da deÄŸil Ã§ok aÃ§Ä±k da olmasÄ±n, line-height kendi boÅŸluÄŸunu kuracak */
    margin-bottom: 25px; /* Alt metne olan mesafe dÃ¼zenlendi */
    position: relative;
    z-index: 20; /* Watermark'Ä±n Ã¶nÃ¼ne net Ã§Ä±kmasÄ± iÃ§in */
}

.hero-title-line-1, .hero-title-line-2 {
    overflow: hidden;
    margin: 0;
    line-height: 1.15; /* SatÄ±r aralÄ±ÄŸÄ± daraltÄ±larak yapÄ±ÅŸmasÄ± azaltÄ±ldÄ± ama fazla aÃ§Ä±lmasÄ± da engellendi */
    padding-bottom: 5px; /* Animasyon sÄ±rasÄ±nda harf altlarÄ±nÄ±n kesilmemesi iÃ§in */
}

.hero-title-line-1 span, .hero-title-line-2 span {
    display: block;
    white-space: nowrap; /* KESÄ°NLÄ°KLE alt satÄ±ra geÃ§mesin, yan yana kalsÄ±n */
    font-size: clamp(24px, 4.5vw, 65px); /* YazÄ± boyutu agresif olarak kÃ¼Ã§Ã¼ltÃ¼ldÃ¼ */
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    transform: translateY(110%);
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hero-title-line-1 span {
    color: var(--text-color);
    animation-delay: 0.2s;
}

.hero-title-line-2 span {
    animation-delay: 0.4s;
}

.outline-text {
    -webkit-text-stroke: 1.5px var(--accent-color);
    color: transparent;
    position: relative;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    transition: 0.5s;
    animation: revealText 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards, shimmer 3s infinite linear !important;
    animation-delay: 0.4s, 2s !important;
}

@keyframes revealText {
    0% { transform: translateY(110%) skewY(10deg); }
    100% { transform: translateY(0) skewY(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.hero-main-subtext {
    font-size: clamp(12px, 1vw, 15px);
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.8;
    opacity: 0.6;
    max-width: 500px;
    margin: 40px auto 0 auto; /* YukarÄ±yla boÅŸluÄŸu artÄ±rdÄ±k ve yatayda ortaladÄ±k */
    text-align: center; /* Ä°Ã§i de ortalÄ± oldu */
    align-self: center; /* BoÅŸ alanÄ± mÃ¼kemmel doldurur */
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 20; /* Ãœstte kalmasÄ±nÄ± saÄŸlar */
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
}

@keyframes fadeInUp {
    to { transform: translateY(0); opacity: 0.6; }
}

.hero-discovery { display: none; }

.letter-spacing-lg { letter-spacing: 15px; font-weight: 500; text-transform: uppercase; }

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* Animations Trigger */
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }


.services-hybrid {
    height: 450vh; /* Increased scroll area */
    position: relative;
    background: #fff;
}

.services-hybrid-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 150px; /* Increased gap to give more breathing room */
    width: 100%;
    padding: 0 8%;
    overflow: hidden;
}

.typo-left {
    flex: 1.2;
    height: 100%;
    display: flex;
    align-items: flex-start; /* Start from top to let JS center active item */
    padding-top: 0;
    position: relative;
    overflow: visible;
}

.typo-list {
    display: flex;
    flex-direction: column;
    gap: 60px; /* Increased from 40px for more vertical space */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.typo-item {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0.35; /* Increased for better readability */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(0);
}

.typo-item.active {
    opacity: 1;
    transform: translateX(40px);
}

/* Right: Single Premium Card (Visual 1) */
.typo-right-single {
    flex: 0.8;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.premium-card-v4 {
    background: #0d0d0d !important;
    border-radius: 50px !important;
    padding: 60px 45px;
    width: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.pc-content {
    position: relative;
    z-index: 10;
}


.premium-card-v4::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(15, 255, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pc-icon {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 200px;
    color: var(--accent-color);
    opacity: 0.12;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}


.premium-card-v4 h4 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1;
    letter-spacing: -1.5px;
}

.premium-card-v4 p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    transition: 0.4s;
}

.pc-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 30px;
}

.pc-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: transparent;
    color: var(--accent-color);
    padding: 18px 45px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1.5px solid var(--accent-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
    align-self: flex-end; /* Pushes to the right */
    width: fit-content;
    box-shadow: 0 0 15px rgba(15, 255, 0, 0.1);
}

.pc-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(15, 255, 0, 0.3);
}

.pc-btn-arr {
    font-size: 18px;
    transition: transform 0.4s ease;
}

.pc-btn:hover .pc-btn-arr {
    transform: translateX(5px);
}

.premium-card-v4.switching {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-hybrid-container {
        gap: 40px;
        padding: 0 5%;
    }
    .typo-item h3 {
        font-size: 40px !important;
    }
    .premium-card-v4 {
        padding: 40px 30px;
        min-height: 450px;
    }
}





/* Portfolio Section */
.portfolio { padding: 120px 0; background: #fff; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.portfolio-card { border-radius: 30px; overflow: hidden; position: relative; aspect-ratio: 4/5; box-shadow: 0 30px 60px rgba(0,0,0,0.05); background: #f5f5f5; border: 1px solid rgba(0,0,0,0.03); }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-card:hover img { transform: scale(1.08); }

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: 0.5s;
}

.portfolio-card:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-tag { font-size: 12px; font-weight: 700; color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.portfolio-title { font-size: 28px; font-weight: 800; }

/* --- Reviews / Müşteri Değerlendirmeleri --- */
.reviews-section {
    background: #000; /* Dark Mode transition */
    padding: 160px 0;
    overflow: hidden;
}

.reviews-wrap {
    width: 100%;
    margin: 0;
    padding: 0 40px 0 0; /* Reverted to far left */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.rev-top-meta {
    margin-bottom: 20px;
    padding-left: 8%; /* Indented as requested, matching site standard */
}

.rev-counter {
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-color); /* Neon for dark mode */
    letter-spacing: 4px;
}

.rev-section-label {
    display: none; /* Hidden on desktop */
    font-family: 'Urbanist', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(255,255,255,0.4);
    margin: 0 0 10px 0;
}

.rev-main-row {
    display: flex;
    align-items: flex-end;
    gap: 12px; /* Tightened gap for a more unified feel */
    min-height: 520px;
}

/* Thumbs Area (EN SOL - Order 1) */
.rev-thumbs-area {
    order: 1;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    padding-bottom: 5px;
    padding-left: 0;
}

.rev-thumb-card {
    width: 110px;
    height: 160px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    filter: none;
    opacity: 0.8;
}

.rev-thumb-card:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-10px);
}

.rev-thumb-initial {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
}

/* Active Portrait (Center - Order 2) */
.rev-active-portrait {
    order: 3; /* Moved to allow label before it */
    flex: 0 0 260px;
    height: 520px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.06);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.rev-active-portrait.switching {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes revIn {
    0% { transform: translateX(-20px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.rev-main-initial {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Urbanist', sans-serif;
    font-size: 130px;
    font-weight: 900;
    color: rgba(255,255,255,0.15);
    user-select: none;
}

/* Side Label (Order 2 - Between cards) */
.rev-side-label {
    order: 2;
    display: flex;
    align-items: center;
    border-left: none; /* Removed border to not 'break' the flow */
    padding: 0;
    margin: 0; 
    width: 20px; /* Minimal width */
    justify-content: center;
    align-self: flex-start; /* Moved to top as requested */
    margin-top: 10px; /* Slight top space for premium alignment */
}

.rev-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #fff; /* White in dark mode */
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
}

/* Right Content (Order 4) */
.rev-right {
    order: 4;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: flex-end;
    padding-bottom: 40px;
    padding-left: 40px;
    max-width: 600px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rev-right.switching {
    opacity: 0;
    transform: translateY(20px);
}

.rev-name {
    font-family: 'Urbanist', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #fff; /* White in dark mode */
}

.rev-company {
    font-family: 'Urbanist', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 2px;
}

.rev-quote {
    font-family: 'Urbanist', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: rgba(255,255,255,0.7); /* Soft white */
    line-height: 1.6;
    font-style: normal;
    min-height: 140px;
}

.rev-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #fff; /* White button on black bg */
    border: none;
    color: #000;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.rev-btn:hover {
    background: var(--accent-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(15, 255, 0, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .rev-main-row {
        flex-wrap: wrap;
        gap: 30px;
    }
    .rev-right {
        padding-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        padding: 80px 0 60px !important;
    }
    .reviews-wrap {
        padding: 0 20px !important;
        gap: 20px !important;
    }
    .rev-top-meta {
        padding-left: 0 !important;
        text-align: center !important;
    }
    .rev-section-label {
        display: block !important; /* Show only on mobile */
    }
    /* Ana satırı dikey akışa çevir */
    .rev-main-row {
        flex-direction: column !important;
        align-items: center !important;
        min-height: auto !important;
        gap: 20px !important;
    }
    /* Portrait: üstte, tam genişlik, daha kısa */
    .rev-active-portrait {
        order: 1 !important;
        height: 260px !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 340px !important;
        border-radius: 16px !important;
    }
    /* Thumbnail'ları yatay şerit olarak ortala */
    .rev-thumbs-area {
        order: 2 !important;
        overflow-x: auto !important;
        width: 100% !important;
        justify-content: center !important;
        padding-bottom: 8px !important;
        flex-wrap: nowrap !important;
    }
    .rev-thumb-card {
        width: 70px !important;
        height: 100px !important;
        flex-shrink: 0 !important;
    }
    /* Yan etiket gizle */
    .rev-side-label {
        display: none !important;
    }
    /* İsim, şirket, alıntı: alta, tam genişlik */
    .rev-right {
        order: 3 !important;
        padding-left: 0 !important;
        padding-bottom: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
    .rev-name {
        font-size: 22px !important;
    }
    .rev-quote {
        font-size: 16px !important;
        min-height: auto !important;
        line-height: 1.5 !important;
    }
}

/* ==========================================================================
   Marquee Ribbons (Modern Ticker Section)
   ========================================================================== */
.marquee-ribbons-section {
    position: relative;
    padding: 120px 0;
    background: #fff;
    overflow: hidden;
    margin-top: -60px;
    z-index: 5;
}

.marquee-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.marquee-lane {
    position: absolute;
    width: 150%; /* Köşelerin açıkta kalmaması için geniş tutuldu */
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    padding: 24px 0;
    white-space: nowrap;
    overflow: hidden;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: -1px;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.lane-black {
    background: #000;
    color: #fff;
    transform: translate(-50%, -50%) rotate(-3deg);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.lane-green {
    background: var(--accent-color);
    color: #000;
    transform: translate(-50%, -50%) rotate(3deg);
    z-index: 5;
    box-shadow: 0 0 40px rgba(15, 255, 0, 0.2);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: marquee-track 30s linear infinite;
    padding-right: 40px;
    will-change: transform; /* Critical for scroll smoothness */
    transform: translateZ(0);
}

.lane-reverse .marquee-content {
    animation: marquee-track-reverse 35s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 30px;
}

.marquee-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@keyframes marquee-track {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes marquee-track-reverse {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* Responsive Marquee */
@media (max-width: 992px) {
    .marquee-lane { font-size: 28px; padding: 18px 0; }
    .lane-black { transform: translate(-50%, -50%) rotate(-3deg) translateY(10px) !important; }
    .lane-green { transform: translate(-50%, -50%) rotate(3deg) translateY(-10px) !important; }
}

@media (max-width: 600px) {
    .marquee-lane { font-size: 18px; letter-spacing: 0; padding: 14px 0; width: 200%; }
    .lane-black { transform: translate(-50%, -50%) rotate(-4deg) translateY(20px) !important; }
    .lane-green { transform: translate(-50%, -50%) rotate(4deg) translateY(-20px) !important; }
    .marquee-ribbons-section { padding: 40px 0; margin-top: 0 !important; } /* Negatif margin kaldırıldı */
    .marquee-container { height: 140px; }
}






/* --- Blog Ultra Storyline v8: Stabilite ve Lüks Grid --- */
.blog-section-unique.light-mode {
    background: #ffffff;
    padding: 180px 0;
    position: relative;
    overflow: hidden;
}

/* Floating Particles (Performance Optimized) */
.u-particles-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.p-shape, .p-strip {
    position: absolute;
    background: var(--accent-color);
    opacity: 0.06;
    animation: floatP 15s linear infinite;
}

.p-shape { border-radius: 50%; filter: blur(3px); }
.p-strip { border-radius: 20px; }

.p-1 { width: 40px; height: 40px; left: 5%; bottom: -100px; animation-duration: 20s; }
.p-2 { width: 20px; height: 20px; left: 25%; bottom: -100px; animation-duration: 14s; animation-delay: 2s; }
.p-3 { width: 80px; height: 80px; left: 65%; bottom: -100px; animation-duration: 25s; animation-delay: 5s; border-radius: 15px; rotate: 45deg; }
.s-1 { width: 140px; height: 2px; left: 80%; bottom: -150px; rotate: -25deg; animation-duration: 30s; }
.s-2 { width: 100px; height: 3px; left: 15%; bottom: -200px; rotate: 45deg; animation-duration: 22s; }

@keyframes floatP {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-1300px) rotate(360deg); opacity: 0; }
}

.u-relative { position: relative; z-index: 2; }

.u-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    font-size: 22vw;
    font-weight: 950;
    color: rgba(0, 0, 0, 0.02);
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.u-story-block {
    position: relative;
    margin-bottom: 250px;
    display: flex;
    flex-direction: column;
}

.u-story-block:last-child { margin-bottom: 0; }

/* Devasa Rakam Arkada Layer Olarak */
.u-index-wrap {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 0;
}

.block-reverse .u-index-wrap { text-align: right; }

.u-huge-num {
    font-size: 450px;
    font-weight: 950;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent-color);
    font-family: 'Outfit', sans-serif;
    opacity: 0.12;
}

.u-content-wrap {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 100px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.block-reverse .u-content-wrap {
    grid-template-columns: 1fr 1.3fr;
}

.u-image-box {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    height: 580px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.u-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.u-story-block:hover .u-image-box img { transform: scale(1.1); }

.u-text-box { position: relative; }

.u-tag {
    display: inline-block;
    color: var(--accent-color);
    background: rgba(15, 255, 0, 0.06);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 4px;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.u-title {
    font-size: 48px;
    font-weight: 900;
    color: #000;
    line-height: 1.1;
    margin-bottom: 35px;
    letter-spacing: -2px;
}

.u-desc {
    font-size: 19px;
    color: rgba(0,0,0,0.55);
    line-height: 1.7;
    margin-bottom: 50px;
}

.u-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1.5px;
}

.u-btn svg { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.u-btn:hover { color: var(--accent-color); }
.u-btn:hover svg { transform: translateX(12px) scale(1.1); }

/* Responsive Responsive Responsive */
@media (max-width: 1200px) {
    .u-content-wrap, .block-reverse .u-content-wrap {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .u-image-box { height: 450px; }
    .u-huge-num { font-size: 280px; }
    .u-title { font-size: 42px; }
}

@media (max-width: 768px) {
    .blog-section-unique.light-mode { padding: 60px 0 !important; }
    
    .u-story-block { 
        margin-bottom: 40px !important; 
        background: #fff !important;
        border-radius: 30px !important;
        padding: 20px !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.05) !important;
        border: 1px solid rgba(0,0,0,0.03) !important;
    }

    .u-content-wrap {
        gap: 25px !important;
    }

    .u-image-box { 
        height: 240px !important; 
        border-radius: 20px !important; 
        margin-bottom: 0 !important;
    }

    .u-text-box {
        padding: 10px 5px !important;
    }

    .u-huge-num { 
        font-size: 140px !important; 
        opacity: 0.08 !important; 
        top: -20px !important;
    }

    .u-title { 
        font-size: 26px !important; 
        margin-bottom: 15px !important;
        letter-spacing: -1px !important;
    }

    .u-desc {
        font-size: 15px !important;
        margin-bottom: 25px !important;
        line-height: 1.5 !important;
    }

    .u-tag {
        margin-bottom: 15px !important;
        padding: 4px 12px !important;
        font-size: 11px !important;
    }

    .u-btn {
        font-size: 13px !important;
        gap: 12px !important;
    }
}

/* Newsletter Responsive Fix (Already in main block) */


/* Footer Section */

.footer { padding: 100px 0; background: #fff; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; }
.footer-brand .logo { font-size: 30px; font-weight: 800; color: #000; text-decoration: none; display: block; margin-bottom: 30px; }
.footer-text { opacity: 0.6; font-size: 18px; line-height: 1.6; }
.footer-links h4 { color: #00aa00; margin-bottom: 30px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: #666; transition: 0.3s; }
.footer-links a:hover { color: #000; }

/* Mobile */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .nav-links { display: none; }
    .hero-bg-text-large { font-size: 35vw; bottom: 20px; }
    .hero-title-line-1 span, .hero-title-line-2 span { font-size: clamp(20px, 6vw, 30px); letter-spacing: -1px; white-space: nowrap; line-height: 1.15; }
    .hero-title-wrapper { gap: 0px; margin-bottom: 20px; }
    .hero-main-subtext { font-size: 11px; margin: 30px auto 0 auto; text-align: center; align-self: center; }
    
    /* Services Mobile: Dynamic Sticky Flow */
    .services-hybrid {
        height: 500vh !important; /* Re-enable scroll depth for sticky */
        position: relative;
        padding: 0 !important;
        margin-top: -10px;
    }
    .services-hybrid-container {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 80px 20px 20px 20px !important;
        gap: 20px !important;
        overflow: hidden;
    }
    .services-hybrid .section-title-small {
        position: absolute !important;
        top: 90px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 100;
    }
    .typo-left {
        height: 160px !important; /* More space for titles */
        flex: none !important;
        width: 100% !important;
        display: flex !important;
        align-items: flex-start !important; /* Align to top for JS math */
        justify-content: center !important;
        position: relative;
        z-index: 50;
        mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    }
    .typo-list {
        /* JS handles transform translateY */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    .typo-item {
        opacity: 0.2;
        transform: scale(0.8) !important;
        transition: all 0.5s ease;
        text-align: center;
    }
    .typo-item.active {
        opacity: 1;
        transform: scale(1) !important;
    }
    .typo-item h3 {
        font-size: 26px !important;
        letter-spacing: -1px !important;
        color: #000 !important;
        -webkit-text-stroke: 0px !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
    .typo-right-single {
        max-width: 100%;
    }
    .premium-card-v4 {
        min-height: auto;
        padding: 40px 25px;
    }
    .premium-card-v4 h4 {
        font-size: 30px;
    }

    .solana-bottom { 
        grid-template-columns: 1fr; 
        margin-top: 20px; 
        text-align: center;
    }
    .solana-col.center { padding-top: 40px; }
}




/* Services section content starts here */


/* Fix spacing for the Container */
/* Services section structure optimized */
.services-hybrid .section-title-small {
    color: #fff !important;
    text-align: center;
    position: absolute;
    top: 45px; /* Safely positioned */
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    padding: 16px 36px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 20px rgba(15, 255, 0, 0.1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 15px;
}

.services-hybrid .section-title-small::before,
.services-hybrid .section-title-small::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
    flex-shrink: 0;
}


.typo-item h3 {
    letter-spacing: -3px !important;
    font-size: clamp(40px, 5.5vw, 85px) !important;
    font-weight: 900 !important;
    margin: 0 !important;
    line-height: 1.15 !important; /* Increased for better legibility */
    text-transform: uppercase !important;
    color: transparent !important;
    -webkit-text-stroke: 1.5px rgba(0,0,0,0.25) !important; /* Darkened stroke */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.typo-item.active h3 {
    color: #111 !important;
    -webkit-text-stroke: 0px !important;
    transform: translateX(30px) !important;
}
/* =========================================================================
   REFINED TYPOGRAPHY & SYNC (FINAL FIX)
   ========================================================================= */
.typo-item h3 {
    font-size: clamp(50px, 7.5vw, 100px) !important;
    font-weight: 950 !important;
    color: transparent !important;
    -webkit-text-stroke: 1.2px rgba(0,0,0,0.2) !important;
    text-transform: uppercase !important;
    line-height: 1.25 !important; /* Increased to 1.25 for absolute clarity */
    margin: 15px 0 !important;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.typo-item.active h3 {
    color: #111 !important;
    -webkit-text-stroke: 0px !important;
    transform: translateX(40px) !important;
}

/* Mobile Fixes for Typography Items & Badges */
@media (max-width: 768px) {
    .typo-item h3 {
        font-size: 30px !important;
        letter-spacing: -1px !important;
        color: #000 !important; /* Solid black only */
        -webkit-text-fill-color: #000 !important;
        -webkit-text-stroke: 0px !important;
        white-space: normal !important;
        line-height: 1.1 !important;
        margin: 10px 0 !important;
        opacity: 0.1 !important; /* Faint but solid black for inactive */
        transition: all 0.4s ease !important;
    }
    .typo-item.active h3 {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        opacity: 1 !important; /* Full black for active */
        transform: scale(1.1) translateX(0) !important;
    }
    .services-hybrid .section-title-small {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        margin: 10px auto 60px auto !important; /* Increased to 60px for more air */
        max-width: 90% !important;
        white-space: normal !important;
        text-align: center !important;
        font-size: 11px !important;
        padding: 12px 20px !important;
        line-height: 1.4 !important;
        justify-content: center !important;
    }
    .typo-list {
        /* JS handles translate(x, y) now */
    }
    .typo-item {
        gap: 12px !important; /* Closer to number */
    }
    .t-num {
        min-width: 40px !important; /* Closer to text */
        font-size: 20px !important;
    }
}

.t-num {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0fff00 !important; /* Pure Neon Green */
    min-width: 60px;
    transition: 0.4s;
    text-shadow: 0 0 10px rgba(15, 255, 0, 0.4);
}

.typo-item.active .t-num {
    transform: scale(1.1);
    text-shadow: 0 0 25px rgba(15, 255, 0, 0.8);
}
/* Stats Mobile Overlay */

/* ==========================================================================
   Success Journey - High Priority Fix (ID Based)
   ========================================================================== */
#metric-journey {
    position: relative !important;
    padding: 120px 0 !important;
    background-color: #ffffff !important;
    overflow: hidden !important;
    width: 100% !important;
    display: block !important; /* Ensure it's not flex from parent */
}

#metric-journey .journey-huge-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(120px, 18vw, 350px);
    font-weight: 950;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0,0,0,0.02);
    pointer-events: none;
    z-index: 1;
    letter-spacing: -8px;
    white-space: nowrap;
    text-transform: uppercase;
}

#metric-journey .journey-header-simple {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

#metric-journey .j-pre-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-color) !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

#metric-journey .j-main-title {
    font-size: clamp(28px, 3.5vw, 52px);
    font-weight: 950;
    color: #000 !important;
    line-height: 1.1;
    letter-spacing: -1.5px;
    max-width: 800px;
    margin: 0 auto;
}

#metric-journey .journey-hubs-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

#metric-journey .hub-connectors {
    position: absolute;
    top: 80px;
    left: 10%;
    width: 80%;
    height: 150px;
    pointer-events: none;
    z-index: 1;
}

#metric-journey .conn-path {
    stroke-dasharray: 8 8;
    animation: dashOffset 20s linear infinite;
}

@keyframes dashOffset {
    to { stroke-dashoffset: -100; }
}

#metric-journey .hub-node {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative;
}

#metric-journey .hub-visual-wrap {
    position: relative;
    margin-bottom: 35px;
}

#metric-journey .hub-circle {
    width: 170px !important;
    height: 170px !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    z-index: 5;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

#metric-journey .hub-icon-box {
    font-size: 42px !important;
    color: #222 !important;
    z-index: 6;
}

#metric-journey .hub-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
}

#metric-journey .hub-node:hover .hub-pulse {
    animation: hubRingPulse 1.5s infinite;
}

@keyframes hubRingPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

#metric-journey .hub-node:hover .hub-circle {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(15, 255, 0, 0.15);
}

#metric-journey .hub-node:hover .hub-icon-box {
    color: #000 !important;
}

#metric-journey .hub-number {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: #000 !important;
    color: #fff !important;
    border-radius: 50%;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 950 !important;
    font-size: 13px !important;
    z-index: 10;
    border: 4px solid #fff !important;
}

#metric-journey .h-stat {
    position: absolute;
    top: -15px;
    left: -25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 12;
    pointer-events: none;
    text-align: left;
}

#metric-journey .h-val {
    display: block;
    font-size: 34px;
    font-weight: 950;
    color: var(--accent-color);
    line-height: 1;
    text-shadow: 0 0 15px rgba(15, 255, 0, 0.4);
    -webkit-text-stroke: 1.5px #000; /* Black outer border */
    animation: breathingText 3s ease-in-out infinite;
}

#metric-journey .h-lab {
    font-size: 8px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    max-width: 90px;
    line-height: 1.2;
}

@keyframes breathingText {
    0%, 100% { transform: scale(1); opacity: 0.8; text-shadow: 0 0 10px rgba(15, 255, 0, 0.3); }
    50% { transform: scale(1.1); opacity: 1; text-shadow: 0 0 25px rgba(15, 255, 0, 0.7); }
}

#metric-journey .hub-content {
    padding-top: 20px;
}

#metric-journey .hub-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin-bottom: 12px;
}

#metric-journey .hub-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

}

/* Animations Reveal */
#metric-journey.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#metric-journey.reveal-blur.visible {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
}

@media (max-width: 992px) {
    #metric-journey .journey-hubs-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 60px !important;
    }
}



/* ==========================================================================
   Blog Detail - Advanced Museum & Diagonal Concept
   ========================================================================== */
.blog-detail-page {
    background: #fff;
    overflow-x: hidden;
}

.blog-diagonal-wrap {
    position: relative;
    width: 100%;
}

/* Diagonal Sections */
.blog-diagonal-top {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.blog-diagonal-top.blog-hero-1 { background-image: url('../img/blog_hero.webp'); }
.blog-diagonal-top.blog-hero-2 { background-image: url('../img/blog_2_hero.webp'); }
.blog-diagonal-top.blog-hero-3 { background-image: url('../img/blog_3_hero.webp'); }
.blog-diagonal-top.blog-hero-4 { background-image: url('../img/blog_4_hero.webp'); }

.blog-diagonal-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.9));
}

.blog-hero-content {
    position: relative;
    z-index: 11;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.blog-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 950;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.blog-hero-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    color: #0fff00;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* White Middle Body */
.blog-diagonal-body {
    background: #fff;
    padding: 150px 0;
    position: relative;
    z-index: 5;
}

.blog-container-museum {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

/* Premium Content Box & Object Row */
.blog-museum-row {
    display: flex;
    align-items: center;
    gap: 80px;
    opacity: 0; /* JS reveal will handle this */
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-museum-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-museum-row.reverse {
    flex-direction: row-reverse;
}

.blog-text-box {
    flex: 1.2;
    background: #fff;
    padding: 80px;
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.05);
    border-top: 3px solid #0fff00;
    position: relative;
}

.blog-text-box::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: rgba(15, 255, 0, 0.03);
    z-index: -1;
    border-radius: 50%;
}

.blog-text-box h2 {
    font-size: 38px;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 30px;
    line-height:1.1;
}

.blog-text-box p {
    color: #555;
    font-size: 19px;
    line-height: 1.8;
}

/* Object Area (Circular Sculpture) */
.blog-object-area {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blog-object-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.15),
        0 0 40px rgba(15, 255, 0, 0.2);
    position: relative;
}

.blog-object-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s;
}

.blog-object-circle:hover img {
    transform: scale(1.1);
}

/* Bottom Diagonal */
.blog-diagonal-bottom {
    position: relative;
    width: 100%;
    height: 40vh;
    background: #111;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    margin-top: -100px;
    z-index: 10;
}

@media (max-width: 1024px) {
    .blog-museum-row, .blog-museum-row.reverse {
        flex-direction: column;
        gap: 40px;
    }
    .blog-text-box { padding: 40px 25px; }
    .blog-object-circle { width: 300px; height: 300px; }
}

@media (max-width: 768px) {
    .blog-diagonal-top { height: 70vh; clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); }
    .blog-hero-content h1 { font-size: 35px; }
    .blog-diagonal-body { padding: 80px 0; }
}


/* ==========================================================================
   PORTFOLIO SECTION (Scrolling Cards Parallax)
   ========================================================================== */
.portfolio-showcase {
    background: #fff;
    padding: 0;
    position: relative;
    z-index: 5;
    padding-bottom: 0;
    overflow: hidden; /* Clips decorative elements */
}

/* Premium Topographic Background Layer */
.port-topo-bg {
    position: absolute;
    inset: 0;
    z-index: -2; /* Purely background, behind everything */
    pointer-events: none;
    opacity: 0.8;
    background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' viewBox='0 0 1600 900' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpath id='wave' d='M-100 200 C 100 100, 300 300, 500 200 S 900 100, 1100 200 S 1500 300, 1700 200' fill='none' stroke-width='1.5' /%3E%3C/defs%3E%3Cg opacity='0.4'%3E%3Cuse href='%23wave' transform='translate(0, -50)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(50, 0)' stroke='%230fff00' opacity='0.3' /%3E%3Cuse href='%23wave' transform='translate(-30, 50)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(80, 100)' stroke='%230fff00' opacity='0.2' /%3E%3Cuse href='%23wave' transform='translate(20, 150)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(120, 200)' stroke='%230fff00' opacity='0.4' /%3E%3Cuse href='%23wave' transform='translate(-50, 250)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(60, 300)' stroke='%230fff00' opacity='0.1' /%3E%3Cuse href='%23wave' transform='translate(0, 350)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(150, 400)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(-80, 450)' stroke='%230fff00' opacity='0.3' /%3E%3Cuse href='%23wave' transform='translate(40, 500)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(100, 550)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(-20, 600)' stroke='%230fff00' opacity='0.2' /%3E%3Cuse href='%23wave' transform='translate(60, 650)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(0, 700)' stroke='%23e0e0e0' /%3E%3Cuse href='%23wave' transform='translate(130, 750)' stroke='%230fff00' opacity='0.4' /%3E%3Cuse href='%23wave' transform='translate(-40, 800)' stroke='%23e0e0e0' /%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* Redefining z-indexes: Text above topo lines */
.port-bg-text-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end; /* Moved to bottom area */
    justify-content: center;
    overflow: hidden;
    z-index: 1; /* Above topo bg (-2), but below sticky header content (3) */
    pointer-events: none;
    padding-bottom: 50px;
}

.port-sticky-box {
    position: sticky;
    top: 0;
    height: 80vh; /* Reduced from 100vh to fix huge empty space */
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Centered content */
    padding-top: 40px;
}

.port-header {
    text-align: center;
    position: relative;
    z-index: 3;
    margin-bottom: 0;
}

.port-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 20px;
}

.pt-left-brace, .pt-right-brace {
    color: var(--accent-color); /* Corrected to neon green */
    font-weight: 400;
}

.pt-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent-color);
}

.port-main-title {
    font-size: 55px;
    font-weight: 800;
    line-height: 1.1;
    color: #111;
    letter-spacing: -2px;
    margin: 0;
}


.port-huge-bg {
    display: block;
    font-size: clamp(100px, 16vw, 240px);
    font-weight: 950;
    white-space: nowrap;
    color: rgba(0,0,0,0.06); /* Darker gray tone */
    -webkit-text-stroke: 1.5px rgba(0,0,0,0.15); /* Black outline */
    margin: 0;
    line-height: 1;
    letter-spacing: -6px;
    will-change: transform;
    transform-origin: center center;
    position: relative;
    top: 20px;
}

/* Grid Layout */
.port-grid-container {
    display: flex;
    gap: 150px;
    position: relative;
    z-index: 10; /* Cards stay clickable above everything */
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

/* Custom Reveal with Blur */
.reveal-blur { 
    opacity: 0; 
    transform: translateY(80px); 
    filter: blur(15px); 
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.2s ease-out; 
    pointer-events: none; /* Disable interaction until visible */
}
.reveal-blur.visible { 
    opacity: 1; 
    transform: translateY(0); 
    filter: blur(0); 
    pointer-events: auto;
}


.port-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 200px;
}

.right-col {
    margin-top: 350px; /* Offset to stagger */
}

/* Single Card */
.port-card {
    background: #fff;
    border-radius: 30px;
    overflow: visible; /* Changed from hidden to show the floating frames */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

/* Curved Flowing Dashed Border (SVG) */
.card-border-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1; /* Above background, below content if needed */
}

.card-border-svg rect {
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    x: 1px;
    y: 1px;
    rx: 30px;
    ry: 30px;
    fill: none;
    stroke: #000; /* Distinct Black Dashed Lines */
    stroke-width: 1.2px;
    stroke-dasharray: 12, 8;
    animation: svg-border-flow 3s infinite linear;
    will-change: stroke-dashoffset; /* Optimize SVG animation */
}

@keyframes svg-border-flow {
    from { stroke-dashoffset: 20; transform: translateZ(0); }
    to { stroke-dashoffset: 0; transform: translateZ(0); }
}

/* Base Frame Elements */
.port-card::before, .port-card::after {
    content: "";
    position: absolute;
    border: 1px solid var(--accent-color);
    border-radius: 35px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

/* Layer 1 - Inner Frame */
.port-card:hover::before {
    inset: -12px;
    opacity: 0.8;
    transform: scale(1);
    border-width: 2px; /* Slightly thicker */
}

.port-card:hover::after {
    inset: -25px;
    opacity: 0.4;
    transform: scale(1);
    transition-delay: 0.1s;
    border-width: 1.5px; /* Slightly thicker */
}

.port-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.port-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 65%; /* roughly aspect ratio */
    overflow: hidden;
    border-radius: 30px 30px 0 0; /* Keep radius despite outer card overflow:visible */
}

.port-image-wrap img {
    position: absolute;
    top:0; left:0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.port-card:hover .port-image-wrap img {
    transform: scale(1.05);
}

.port-tags {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.port-tags span {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #111;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.port-info {
    padding: 30px;
    background: #fff;
    border-radius: 0 0 30px 30px; /* Rounded bottom corners */
    transition: background 0.4s ease; /* Smooth color transition */
}

.port-card:hover .port-info {
    background: var(--accent-color);
}

.port-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.port-info p {
    font-size: 15px;
    color: #777;
    margin: 0;
    line-height: 1.6;
}

/* Portfolio Footer (40+ Projects) */
.port-footer-area {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 20;
    background: #fff;
    padding: 80px 0;
}

.port-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 4%;
}

.ps-number-wrapper {
    display: flex;
    align-items: center;
    gap: 0px;
}

.ps-braces {
    font-size: 85px;
    font-weight: 300;
    color: var(--accent-color); /* Red to neon green */
    line-height: 1;
    margin-top: -10px;
}

.ps-num-val {
    font-size: 82px;
    font-weight: 900;
    color: #111;
    letter-spacing: -4px;
    line-height: 1;
    margin: 0 5px;
}

.ps-group-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 8px;
    margin-left: 2px;
}

.ps-plus-sign {
    font-size: 40px;
    font-weight: 950;
    color: var(--accent-color); /* Red to neon green */
    line-height: 0.7;
    margin-bottom: 2px;
}

.ps-pro-text {
    font-size: 14px;
    color: #111;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.5px;
}

.ps-desc {
    font-size: 17px;
    color: #333;
    line-height: 1.5;
    flex: 1;
    margin: 0 80px;
    max-width: 450px;
    font-weight: 500;
}

.btn-more-services {
    background: #000;
    color: #fff;
    padding: 6px 6px 6px 35px;
    border-radius: 100px; /* More rounded as per visual */
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-more-services::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 75px; /* Matches .arr width initially */
    height: 100%;
    background: var(--accent-color);
    border-radius: 100px;
    z-index: -1;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-more-services .arr {
    background: transparent; /* Now colored by ::before */
    color: #000;
    width: 65px;
    height: 65px;
    border-radius: 50%; /* Circle looks more aesthetic */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-more-services:hover {
    color: #000;
    transform: scale(1.02);
}

.btn-more-services:hover::before {
    width: 100%;
}

.btn-more-services:hover .arr {
    transform: translateX(5px);
}

/* Industry Experience Card */
.industry-wrap {
    position: relative;
    z-index: 20;
    background: linear-gradient(to bottom, #fff 50%, #000 50%);
    padding: 40px 0 0 0;
}

.industry-card {
    background: #f4f4f4;
    border-radius: 40px;
    padding: 80px 40px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.04);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px;
    margin: 0 auto;
    max-width: 1350px;
    width: 92%;
    border: 2px dashed var(--accent-color); /* Kesikli yeşil çerçeve */
}

.ind-header-row {
    margin-bottom: 0;
}

.ind-title-text {
    font-size: clamp(28px, 4vw, 48px) !important;
    font-weight: 800 !important;
    color: #111;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -2.5px;
}

.ind-title-text span:not(.ind-num) {
    font-weight: 400 !important; /* Removing bold from text after numbers */
    letter-spacing: -1px;
}

.ind-num {
    font-size: 1.2em;
    font-weight: 900;
    color: #111;
}

.ind-num-plus {
    color: var(--accent-color);
    font-size: 0.9em;
    margin-left: 2px;
}

.ind-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ind-tags span {
    padding: 16px 45px;
    background: #ffffff;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border: 2px dashed var(--accent-color); /* Kesikli yeşil çerçeve */
}

.ind-tags span:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Social Footer Row */
.social-footer-row {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 8% 20px 8%;
    position: relative;
    width: 100%;
}

.social-links-inner {
    display: flex;
    gap: 50px;
    align-items: center;
}

.social-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 45px;
    border-radius: 14px;
    border: 1.5px dotted rgba(255,255,255,0.3);
    transition: all 0.4s;
    min-width: 190px;
    justify-content: center;
}

.social-link:hover {
    background: #fff;
    color: #000;
    border-style: solid;
    border-color: #fff;
    transform: translateY(-10px);
}

.social-footer-dot {
    display: none;
}

.ind-tags span:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Responsive fixes */
@media (max-width: 992px) {
    .port-grid-container { flex-direction: column; }
    .right-col { margin-top: 0; }
    .port-main-title { font-size: 40px; }
    .port-stats-row { flex-direction: column; text-align: center; gap: 30px; }
    .ps-desc { margin: 15px 0; max-width: 100%; }
    .industry-card { padding: 30px 20px; }
    .ind-header-row { flex-direction: column; gap: 15px; align-items: flex-start; }
}

/* ==========================================================================
   Premium Splash Screen Styles
   ========================================================================== */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease;
    overflow: hidden;
}

.splash-noise {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
    animation: noiseMove 0.2s infinite alternate;
}

@keyframes noiseMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.splash-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: #c0c0c0;
    animation: blobFloat 15s infinite alternate ease-in-out;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    background: #a0a0a0;
    opacity: 0.18;
    animation: blobFloat 20s infinite alternate-reverse ease-in-out;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(-30px, -50px) scale(0.9); }
}

#splash-screen.hide {
    transform: translateY(-100%);
    pointer-events: none;
    opacity: 0;
}

.splash-content {
    width: 90%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 10;
}



.splash-logo-wrap {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.splash-logo-img {
    max-width: 450px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;
    filter: blur(25px);
    transform: scale(0.8);
    animation: logoReveal 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        filter: blur(25px);
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}



.splash-loader-wrap {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.splash-slogan {
    color: #555555;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-align: center;
    opacity: 0.9;
}

.splash-progress-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(15, 255, 0, 0.5);
    transition: width 0.3s ease;
}

.splash-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.splash-percent {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .splash-text-stroke, .splash-text-fill {
        font-size: 45px;
        letter-spacing: 6px;
    }
    .splash-slogan {
        font-size: 10px;
        letter-spacing: 3px;
    }
    .splash-percent {
        font-size: 10px;
    }
}

/* ==========================================================================
   PREMIUM GRID FOOTER
   ========================================================================== */
.footer-premium {
    background-color: #111;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center top;
    position: relative;
    overflow: visible;
    color: #fff;
    padding: 80px 4% 40px 4%;
    font-family: 'Urbanist', sans-serif;
}

.fp-container {
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.fp-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.fp-brand {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}
.fp-brand .fp-reg {
    font-size: 11px;
    vertical-align: top;
    margin-left: 2px;
    color: var(--accent-color);
}

.fp-links-group {
    display: flex;
    gap: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-right: 180px;
}
.fp-bracket {
    font-weight: 400;
    color: var(--accent-color);
}
.fp-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fp-nav li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}
.fp-nav li a:hover {
    color: var(--accent-color);
}

.fp-newsletter {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 25px;
}
.fp-nl-title {
    font-size: 26px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #fff;
}
.fp-nl-title span:last-child {
    color: var(--accent-color);
}

.fp-nl-form {
    background: var(--accent-color);
    border-radius: 50px;
    padding: 6px 6px 6px 25px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 280px;
    text-decoration: none;
    transition: all 0.3s;
}
.fp-nl-text {
    font-size: 15px;
    font-weight: 800;
    color: #000;
    letter-spacing: 1px;
}
.fp-nl-form:hover {
    box-shadow: 0 0 20px rgba(15, 255, 0, 0.4);
}

.fp-nl-btn {
    background: #000;
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-size: 13px;
}
.fp-nl-btn i {
    transform: rotate(-45deg);
    transition: transform 0.3s;
}
.fp-nl-form:hover .fp-nl-btn {
    transform: scale(1.05);
}
.fp-nl-form:hover .fp-nl-btn i {
    transform: rotate(0deg);
}

.fp-huge-text-wrapper {
    width: 100%;
    text-align: center;
    height: clamp(150px, 22vw, 340px);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin: 40px 0 0 0;
}

.fp-huge-text {
    font-size: clamp(60px, 12.5vw, 230px);
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    line-height: 1;
    letter-spacing: -4px;
    color: #fff;
    white-space: nowrap;
    transform-origin: center bottom;
    transform: scaleY(1.6) skewX(-16deg);
    display: inline-block;
}

.fp-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.fp-bottom-row a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}
.fp-bottom-row a:hover {
    color: var(--accent-color);
}
.fp-copy, .fp-policy, .fp-socials, .fp-credits {
    line-height: 1.8;
}
.fp-copy { justify-self: start; }
.fp-policy { justify-self: end; display: flex; gap: 30px; text-align: right;}

@media(max-width: 1200px) {
    .fp-top-row { flex-direction: column; gap: 40px; align-items: center; text-align: center; }
    .fp-newsletter { flex-direction: column; align-items: center; gap: 20px; }
    .fp-nl-form { width: 100%; max-width: 450px; }
    .fp-nl-text { text-align: left !important; }
    .fp-links-group { margin-right: 0 !important; justify-content: center !important; }
    .fp-nav { align-items: center !important; gap: 15px !important; }
    .fp-bottom-row { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .fp-policy { justify-self: center; text-align: center; }
    .fp-copy { justify-self: center; text-align: center; }
}

@media(max-width: 768px) {
    .fp-brand { 
        margin-top: 0 !important;
        font-size: 24px !important;
    }

    .fp-nl-title {
        justify-content: center !important;
        font-size: 22px !important;
    }

    .fp-nl-form {
        padding: 6px 6px 6px 20px !important;
    }

    .fp-nl-text {
        font-size: 11px !important;
    }

    .fp-huge-text { 
        transform: scaleY(1.2) skewX(-10deg) !important; 
        font-size: 12vw !important; 
        letter-spacing: -1px !important; 
    }

    .fp-policy {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }
}

/* Floating Actions - Premium Controls */
.social-float-aside {
    position: fixed;
    right: 30px;
    top: 35%; /* Moved even higher to avoid larger AI bot overlap */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10001;
    transition: all 0.5s ease;
}

.whatsapp-float-fixed {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 9999;
    transition: all 0.5s ease;
}

/* Visibility Control for Lightbox/Cinema Mode */
.cinema-active .social-float-aside,
.cinema-active .whatsapp-float-fixed,
.panel-open .whatsapp-float-fixed {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
}

/* Product Detail Page Specific: Show only WhatsApp */
.product-detail-page .social-float-aside,
.product-detail-page #ai-chat-trigger,
.product-detail-page .ai-chat-tooltip,
.product-detail-page .ai-chat-window {
    display: none !important;
}

.whatsapp-float-fixed .float-btn {
    width: 80px; /* Kept large size */
    height: 80px;
    background: #fff; /* Reverted to white */
    color: #000; /* Reverted to black */
    border: 3.5px solid var(--accent-color); /* Added neon green border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-size: 34px;
}



.float-btn {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    font-size: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.float-btn:hover {
    transform: scale(1.1) translateX(-5px);
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 25px rgba(15, 255, 0, 0.6);
}

.whatsapp-float-fixed .float-btn:hover {
    transform: scale(1.1) translateX(5px);
}

/* Animations */
.float-ani {
    animation: floating-icon 3s ease-in-out infinite;
}

.shake-ani {
    animation: attention-shake 5s ease-in-out infinite;
}

@keyframes floating-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes attention-shake {
    0%, 90% { transform: scale(1); }
    92% { transform: scale(1.1) rotate(5deg); }
    94% { transform: scale(1.1) rotate(-5deg); }
    96% { transform: scale(1.1) rotate(5deg); }
    98% { transform: scale(1.1) rotate(-5deg); }
    100% { transform: scale(1); }
}

/* Tooltip */
.float-btn::before {
    content: attr(data-label);
    position: absolute;
    right: 65px;
    background: #000;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
}
.whatsapp-float-fixed .float-btn::before {
    right: auto;
    left: 65px;
}

.float-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .social-float-aside { right: 15px; }
    .whatsapp-float-fixed { left: 15px; bottom: 15px; }
    .float-btn { width: 42px; height: 42px; font-size: 18px; }
}

/* Gallery Page Specific Styles */
.gallery-hero {
    background: #fff;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Scrolling Text Strip */
.scrolling-text-strip {
    background-color: var(--accent-color);
    color: #000;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.scrolling-text-content {
    display: inline-block;
    animation: scroll-text-strip 50s linear infinite;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 2px;
}
.scrolling-text-content .star-icon {
    margin: 0 30px;
    font-size: 10px;
}
@keyframes scroll-text-strip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gallery-grid-section {
    background: #fafafa;
    padding: 100px 0;
    min-height: 600px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

@media (max-width: 768px) {
    .gallery-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}


@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CINEMA MODE (LIGHTBOX) STYLES
   ========================================================================== */

.cinema-mode-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999999 !important;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-out;
}

.cinema-mode-overlay.active {
    display: flex;
    opacity: 1;
}

.cinema-image-container {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    border: 2px solid rgba(15, 255, 0, 0.2);
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.cinema-mode-overlay.active .cinema-image-container {
    transform: scale(1);
}

.cinema-image-container img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
}

/* Controls */
.cinema-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10001;
}

.cinema-close:hover {
    background: var(--accent-color);
    color: #000;
    transform: rotate(90deg);
}

.cinema-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
}

.cinema-nav:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.cinema-prev { left: 40px; }
.cinema-next { right: 40px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .cinema-nav {
        top: auto;
        bottom: 50px;
        transform: none;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .cinema-prev { left: calc(50% - 60px); }
    .cinema-next { right: auto; left: calc(50% + 10px); }
    .cinema-close { top: 15px; right: 15px; width: 45px; height: 45px; font-size: 18px; }
}

/* ==========================================================================
   CUSTOM MOUSE CURSOR
   ========================================================================== */

/* ==========================================================================
   MOBILE NAVIGATION & UI IMPROVEMENTS (Strictly Mobile Only)
   ========================================================================== */
@media (max-width: 768px) {
    /* Navbar Cleanup */
    .navbar .nav-links,
    .navbar .nav-actions .lang-switch,
    .navbar .btn-navbar-contact {
        display: none !important;
    }

    .navbar {
        padding: 5px 15px 5px 20px !important;
        width: 94% !important;
    }

    .nav-inner {
        justify-content: space-between;
    }

    /* Hamburger Button */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: #000;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        padding: 0;
        align-items: center;
        transition: 0.3s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

    .mobile-menu-toggle:active {
        transform: scale(0.9);
    }

    .mobile-menu-toggle .bar {
        width: 22px;
        height: 2px;
        background: var(--accent-color);
        border-radius: 2px;
        transition: 0.3s;
    }

    /* Mobile Menu Overlay (Slides from Left) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 999999; /* Max priority */
        transform: translateX(-100%); /* Hidden to the left */
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .mobile-menu-overlay.active {
        transform: translateX(0); /* Slide in */
    }

    .mobile-menu-header {
        padding: 40px 25px;
        display: flex;
        justify-content: center; /* Logoyu ortaladık kanka */
        align-items: center;
        border-bottom: none !important; /* Alttaki çizgiyi kaldırdık kanka */
        position: relative;
    }

    .mobile-menu-header .logo-img {
        height: 40px; 
        width: auto;
    }

    .mobile-menu-close {
        position: absolute;
        right: 25px;
        width: 50px;
        height: 50px;
        background: #f5f5f5;
        border: none;
        border-radius: 50%;
        font-size: 22px;
        color: #000;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-content {
        padding: 40px 25px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center; /* İçeriği ortala */
        text-align: center;
    }

    .mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 25px; /* Boşluğu biraz daralttık */
        width: 100%;
    }

    .mobile-nav-links > li > a,
    .mobile-dropdown-trigger a {
        font-size: 28px; /* 42px'den 28px'e küçültüldü */
        font-weight: 800;
        text-decoration: none;
        color: #000;
        text-transform: uppercase;
        letter-spacing: -1px;
        transition: 0.3s;
        line-height: 1.2;
    }

    .mobile-nav-links li a:active {
        color: var(--accent-color);
    }

    /* Mobile Dropdown */
    .mobile-dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: center; /* Ortalamak için center yaptık */
        gap: 10px;
        width: 100%;
    }

    .mobile-dropdown-trigger i {
        font-size: 24px;
        color: var(--accent-color);
        transition: 0.3s;
    }

    .has-mobile-dropdown.open .mobile-dropdown-trigger i {
        transform: rotate(180deg);
    }

    .mobile-dropdown-menu {
        list-style: none;
        padding: 10px 0;
        margin: 0;
        display: none;
        border: none; /* Kenarlığı kaldırdık kanka */
    }

    .has-mobile-dropdown.open .mobile-dropdown-menu {
        display: block;
    }

    .mobile-dropdown-menu li {
        margin: 20px 0;
    }

    .mobile-dropdown-menu li a {
        font-size: 20px; /* Biraz daha küçültüldü */
        font-weight: 700;
        text-decoration: none;
        color: #666;
        display: block;
        text-align: center;
    }

    .mobile-menu-footer {
        margin-top: auto;
        padding: 30px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .mobile-lang-switch {
        display: flex;
        gap: 25px;
        font-size: 18px;
        font-weight: 800;
    }

    .mobile-lang-switch span { opacity: 0.3; }
    .mobile-lang-switch span.active { opacity: 1; color: var(--accent-color); }

    .mobile-socials {
        display: none; /* Sosyal medya hesaplarını gizledik */
    }

    .mobile-socials a {
        width: 50px;
        height: 50px;
        background: #000;
        color: var(--accent-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        text-decoration: none;
    }

    /* Floating Action Buttons Responsive (Hide in Hero, Smaller Size) */
    .whatsapp-float-fixed,
    .social-float-aside,
    #ai-chat-trigger,
    .ai-chat-tooltip {
        opacity: 0; /* !important kaldırıldı */
        pointer-events: none;
        visibility: hidden;
        transition: all 0.5s ease;
    }
    
    /* Shrink sizes on mobile */
    .whatsapp-float-fixed .float-btn { width: 60px; height: 60px; font-size: 28px; }
    #ai-chat-trigger { width: 60px; height: 60px; font-size: 28px; right: 15px; bottom: 20px; }
    .social-float-aside .float-btn { width: 42px; height: 42px; font-size: 18px; }

    /* Show them with this class (ID seçicisini ezmesi için daha spesifik yaptık) */
    .whatsapp-float-fixed.show-floats,
    .social-float-aside.show-floats,
    #ai-chat-trigger.show-floats {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Tooltip'in sadece görünürlük alanını açıyoruz, opaklığı JS (show class) yönetecek */
    .ai-chat-tooltip.show-floats {
        pointer-events: auto !important;
        visibility: visible !important;
    }

    /* Hero adjustments */
    .hero-abstract .container {
        padding: 0 5% !important; /* Yazıya daha fazla yer kalsın kanka */
    }

    .hero-title-line-1 span, .hero-title-line-2 span {
        font-size: 10.5vw !important; /* Kesilmeyi önlemek için küçülttük */
        line-height: 1.1;
        display: block;
        white-space: normal;
    }
    .hero-main-subtext {
        font-size: 15px !important;
        max-width: 95%;
    }

    /* Portfolio arka plan yazısı - mobil düzeltme */
    .port-huge-bg {
        font-size: 13vw !important;
        white-space: normal !important;
        text-align: center !important;
        letter-spacing: -2px !important;
        line-height: 1.2 !important;
        overflow: visible !important;
        word-break: break-word !important;
        padding-bottom: 10px !important;
    }

    /* Portfolio boşluk ayarları - mobil */
    .port-sticky-box {
        height: 48vh !important;
        padding-top: 15px !important;
    }

    .port-grid-container {
        margin-top: 40px !important;
    }

    .port-bg-text-wrapper {
        padding-bottom: 10px !important;
    }
}
