/* =====================================================
   KIRPI YAPIM - Main Stylesheet
   ===================================================== */

/* =====================================================
   FONT DEFINITIONS
   ===================================================== */


@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('../fonts/Inter-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Bebas Neue';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
}

/* =====================================================
   BASE STYLES
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
    overflow-x: hidden;
}

.font-display {
    font-family: 'Oswald', sans-serif;
}

/* =====================================================
   CUSTOM SCROLLBAR
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-gradient {
    background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

.glow-text {
    text-shadow: 0 0 40px rgba(255, 107, 53, 0.5);
}

/* =====================================================
   CARDS & HOVER EFFECTS
   ===================================================== */
.project-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(255, 107, 53, 0.25);
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card:hover .blog-title {
    color: #ff6b35;
}

/* =====================================================
   VIDEO & MODAL
   ===================================================== */
.video-container {
    position: relative;
    overflow: hidden;
}

.video-overlay {
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, transparent 50%);
}

.video-modal {
    display: none;
}

.video-modal.active {
    display: flex;
}

.modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 3px;
}

/* =====================================================
   TEAM & PERSON CARDS
   ===================================================== */
.team-card:hover .team-overlay {
    opacity: 1;
}

.team-card:hover img {
    transform: scale(1.05);
}

.person-card:hover .person-overlay {
    opacity: 1;
}

.person-card:hover img {
    transform: scale(1.05);
}

/* =====================================================
   SWIPER CUSTOMIZATION
   ===================================================== */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.swiper-pagination-bullet-active {
    background: #ff6b35 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ff6b35 !important;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.6);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.6s ease-out forwards;
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================================================
   FORM STYLES
   ===================================================== */
input:focus,
textarea:focus,
select:focus {
    border-color: #ff6b35;
}

/* =====================================================
   FOCUS STYLES FOR ACCESSIBILITY
   ===================================================== */
:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* =====================================================
   GOOGLE MAPS
   ===================================================== */
.map-container iframe {
    filter: grayscale(100%) invert(92%) contrast(83%);
}

/* =====================================================
   BLOG PROSE STYLES
   ===================================================== */
.prose h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #f5f5f5;
}

.prose h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #f5f5f5;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #9ca3af;
}

.prose ul,
.prose ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    color: #9ca3af;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid #ff6b35;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #d1d5db;
}

.prose img {
    border-radius: 1rem;
    margin: 2rem 0;
}

.prose a {
    color: #ff6b35;
    text-decoration: underline;
}

.prose a:hover {
    color: #ff8c5a;
}

/* =====================================================
   PLAY BUTTON
   ===================================================== */
.video-card:hover .play-btn {
    transform: scale(1.1);
    background-color: #ff6b35;
}

/* =====================================================
   VIDEO CONTAINER (with aspect ratio)
   ===================================================== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =====================================================
   HERO VIDEO BACKGROUND
   ===================================================== */
.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100vh;
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

@media (max-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 177.77vh;
        height: 100vh;
    }
}

@media (min-aspect-ratio: 16/9) {
    .video-background iframe {
        width: 100vw;
        height: 56.25vw;
    }
}

/* =====================================================
   ANIMATED BORDER
   ===================================================== */
.animated-border {
    position: relative;
}

.animated-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, #ff6b35, transparent, #ff6b35);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   FLOAT ANIMATION (class alternative)
   ===================================================== */
.float {
    animation: float 6s ease-in-out infinite;
}

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =====================================================
   CURSOR FOLLOWER
   ===================================================== */
.cursor-follower {
    pointer-events: none;
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    z-index: 9999;
    mix-blend-mode: difference;
}

/* =====================================================
   SERVICE ICON
   ===================================================== */
.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

/* =====================================================
   TEXT REVEAL
   ===================================================== */
.reveal-text {
    clip-path: inset(0 100% 0 0);
}

/* =====================================================
   NOISE OVERLAY
   ===================================================== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* =====================================================
   MAGNETIC BUTTON
   ===================================================== */
.magnetic-btn {
    transition: transform 0.3s ease;
}

/* =====================================================
   SPLIT TEXT
   ===================================================== */
.split-char {
    display: inline-block;
    transition: all 0.3s ease;
}

.split-char:hover {
    color: #ff6b35;
    transform: translateY(-5px);
}

/* =====================================================
   LOADING SCREEN
   ===================================================== */
.loader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-text {
    font-size: 4rem;
    font-family: 'Oswald', sans-serif;
    color: #ff6b35;
}

/* =====================================================
   HORIZONTAL SCROLL SECTION
   ===================================================== */
.horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
}

.horizontal-scroll .panel {
    flex-shrink: 0;
    width: 100%;
    height: 100vh;
}

/* =====================================================
   GRADIENT ANIMATION
   ===================================================== */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

/* =====================================================
   GLITCH EFFECT
   ===================================================== */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-text:hover::before {
    animation: glitch-1 0.3s linear;
    color: #ff6b35;
    z-index: -1;
    opacity: 0.8;
}

.glitch-text:hover::after {
    animation: glitch-2 0.3s linear;
    color: #00ffff;
    z-index: -2;
    opacity: 0.8;
}

@keyframes glitch-1 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-5px, 5px);
    }

    40% {
        clip-path: inset(40% 0 30% 0);
        transform: translate(5px, -5px);
    }

    60% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(-5px, 5px);
    }

    80% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(5px, -5px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }

    20% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(5px, -5px);
    }

    40% {
        clip-path: inset(30% 0 50% 0);
        transform: translate(-5px, 5px);
    }

    60% {
        clip-path: inset(50% 0 20% 0);
        transform: translate(5px, -5px);
    }

    80% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(-5px, 5px);
    }
}

/* =====================================================
   REFERENCE SWIPER - Coverflow Effect
   ===================================================== */
.referansSwiper {
    padding: 50px 0 80px !important;
}

.referansSwiper .swiper-slide {
    transition: all 0.4s ease;
    filter: blur(2px) brightness(0.5);
}

.referansSwiper .swiper-slide-active {
    filter: blur(0) brightness(1);
    transform: scale(1.05);
}

.referansSwiper .swiper-slide-prev,
.referansSwiper .swiper-slide-next {
    filter: blur(1px) brightness(0.7);
}

/* =====================================================
   VIDEO SWIPER - Parallax Style
   ===================================================== */
.videoSwiper .swiper-slide {
    overflow: hidden;
}

.videoSwiper .swiper-pagination {
    position: relative;
    margin-top: 30px;
}

.videoSwiper .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.videoSwiper .swiper-pagination-bullet-active {
    width: 50px;
    background: linear-gradient(90deg, #ff6b35, #ff8c5a) !important;
}

/* =====================================================
   TEAM SWIPER - Creative Card Style
   ===================================================== */
.teamSwiper {
    padding: 20px 0 60px !important;
}

.teamSwiper .swiper-slide {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.teamSwiper .swiper-slide:hover {
    transform: translateY(-10px);
}

.teamSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border: 2px solid #ff6b35;
    background: transparent !important;
    opacity: 1;
}

.teamSwiper .swiper-pagination-bullet-active {
    background: #ff6b35 !important;
}

/* =====================================================
   SWIPER NAVIGATION BUTTONS CUSTOM
   ===================================================== */
.swiper-nav-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b35;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.swiper-nav-btn:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: scale(1.1);
}

/* =====================================================
   PROGRESS BAR PAGINATION
   ===================================================== */
.swiper-pagination-progressbar {
    background: rgba(255, 107, 53, 0.2) !important;
}

.swiper-pagination-progressbar-fill {
    background: #ff6b35 !important;
}

/* =====================================================
   COUNTER ANIMATION
   ===================================================== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */
@media (max-width: 768px) {
    .hero-gradient {
        background: radial-gradient(ellipse at center, rgba(255, 107, 53, 0.1) 0%, transparent 60%);
    }
}