/**
 * Demo Şirketi - Modern Minimal CSS
 * Renkli, Animasyonlu, Dikkat Çekici Tasarım
 * @author Onix Medya
 */

/* ========== RESET & VARIABLES ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-alt: linear-gradient(135deg, #f472b6, #ec4899);
    --dark: #0f0f0f;
    --dark-light: #1a1a1a;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --white: #ffffff;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --glow: 0 0 60px rgba(99, 102, 241, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-300);
    background: var(--dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========== CURSOR GLOW ========== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease);
}

.header.scrolled {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--white);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.3s var(--ease);
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 20px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    position: absolute;
    left: 11px;
    transition: all 0.3s var(--ease);
}

.nav-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span::before {
    content: '';
    top: -6px;
}

.nav-toggle span::after {
    content: '';
    top: 6px;
}

/* ========== HERO / SLIDER ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.1), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.1), transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.slider {
    position: relative;
    width: 100%;
    z-index: 1;
}

.slide {
    display: none;
    position: relative;
    min-height: 100vh;
    align-items: center;
}

.slide.active {
    display: flex;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: blur(2px);
}

.slide-content {
    max-width: 700px;
    padding: 0 32px;
    animation: fadeInUp 0.8s var(--ease);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

.slide-content h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--white);
    margin-bottom: 24px;
}

.slide-content h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-content p {
    font-size: 20px;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 500px;
}

.slider-nav {
    position: absolute;
    bottom: 60px;
    left: 32px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

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

.slider-dots {
    position: absolute;
    bottom: 60px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.dot.active {
    background: var(--gradient);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========== SECTIONS ========== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, var(--dark-light), var(--dark));
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
}

.section-header h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s var(--ease);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.service-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}

.service-card p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========== POSTS / BLOG ========== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.posts-grid-large {
    grid-template-columns: repeat(2, 1fr);
}

.post-card {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.post-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 32px;
}

.post-content time {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin: 12px 0 16px;
    line-height: 1.4;
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-content p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.read-more:hover {
    gap: 12px;
}

/* ========== PAGE HEADER ========== */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15), transparent 60%);
}

.page-header h1 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
}

.page-header p {
    font-size: 20px;
    color: var(--gray-500);
    position: relative;
}

/* ========== PAGE CONTENT ========== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
}

.content-body {
    font-size: 18px;
    line-height: 1.9;
    color: var(--gray-400);
}

.content-body p {
    margin-bottom: 28px;
}

.content-body h2 {
    font-size: 32px;
    margin: 50px 0 24px;
    color: var(--white);
}

.content-body h3 {
    font-size: 24px;
    margin: 40px 0 16px;
    color: var(--white);
}

.content-body ul,
.content-body ol {
    margin-bottom: 28px;
    padding-left: 28px;
}

.content-body li {
    margin-bottom: 12px;
}

.content-body strong {
    color: var(--white);
}

/* ========== BLOG POST ========== */
.blog-post {
    padding-top: 80px;
}

.post-header {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.post-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15), transparent 60%);
}

.post-header time {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.post-header h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    margin-top: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.post-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 100px;
}

.post-featured-image {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 50px;
    overflow: hidden;
}

.post-footer {
    padding: 50px 0 100px;
    text-align: center;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 60px;
}

.pagination a {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.pagination span {
    color: var(--gray-500);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--dark-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 36px;
}

.footer-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about p {
    color: var(--gray-500);
    font-size: 15px;
    line-height: 1.7;
}

.footer h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 15px;
    color: var(--gray-500);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact li {
    font-size: 15px;
    color: var(--gray-500);
}

.footer-newsletter p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
    gap: 12px;
}

.footer-newsletter input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--white);
}

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

.footer-newsletter button {
    padding: 14px 24px;
    background: var(--gradient);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.footer-newsletter button:hover {
    transform: scale(1.05);
}

.newsletter-message {
    margin-top: 12px;
    font-size: 13px;
}

.newsletter-message.success {
    color: #22c55e;
}

.newsletter-message.error {
    color: #ef4444;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--gray-600);
}

.powered {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {

    .services-grid,
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 100px 32px 32px;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.4s var(--ease);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        padding: 16px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .hero {
        min-height: auto;
        padding: 150px 0 100px;
    }

    .slide {
        min-height: auto;
    }

    .slide-content h1 {
        font-size: 40px;
    }

    .slide-content p {
        font-size: 17px;
    }

    .section {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .services-grid,
    .posts-grid,
    .posts-grid-large {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cursor-glow {
        display: none;
    }
}

/* ========== FLOATING SHAPES ========== */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 20%;
    left: 10%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: #ec4899;
    bottom: 20%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {

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

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* ========== MODERN SLIDER EXTRAS ========== */
.slide-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.slider-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient);
    animation: progress 6s linear infinite;
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Image only slider - fullscreen */
.slide:not(:has(.slide-content)) {
    justify-content: center;
    align-items: center;
}

.slide:not(:has(.slide-content)) .slide-bg img {
    opacity: 0.8;
    filter: none;
}

/* ========== CTA SECTION ========== */
.cta-section {
    text-align: center;
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1), transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    margin: 16px 0 20px;
}

.cta-content p {
    font-size: 18px;
    color: var(--gray-500);
    margin-bottom: 40px;
}

/* ========== GRADIENT TEXT HELPER ========== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== BUTTON LARGE ========== */
.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
}

/* ========== POST IMAGE PLACEHOLDER ========== */
.post-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--gray-800), var(--gray-900));
}

.post-image-placeholder svg {
    color: var(--gray-600);
}

/* ========== SERVICE ICON DEFAULT ========== */
.service-icon svg {
    color: var(--primary);
}