/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5cf6;
    --secondary-color: #7c3aed;
    --bg-dark: #0a0814;
    --bg-darker: #050208;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --border-color: rgba(139, 92, 246, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.7;
    overflow-x: hidden;
    animation: pageLoad 0.8s ease-in-out;
}

/* ==========================================
   PAGE TRANSITION ANIMATIONS
   ========================================== */
@keyframes pageLoad {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to sections */
.hero-section,
.services-section,
.skills-section,
.blog-section,
.breadcrumb-section,
.gallery-section,
.blog-page-section,
.blog-detail-section {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content-box {
    animation: fadeInLeft 1s ease-out 0.2s both;
}

.hero-image-box {
    animation: fadeInRight 1s ease-out 0.4s both;
}

.service-item {
    animation: fadeIn 0.6s ease-out both;
}

.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

.skill-item {
    animation: fadeInUp 0.6s ease-out both;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.15s; }
.skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-item:nth-child(4) { animation-delay: 0.25s; }
.skill-item:nth-child(5) { animation-delay: 0.3s; }
.skill-item:nth-child(6) { animation-delay: 0.35s; }
.skill-item:nth-child(7) { animation-delay: 0.4s; }
.skill-item:nth-child(8) { animation-delay: 0.45s; }

.blog-item {
    animation: fadeInUp 0.6s ease-out both;
}

.blog-item:nth-child(1) { animation-delay: 0.1s; }
.blog-item:nth-child(2) { animation-delay: 0.2s; }
.blog-item:nth-child(3) { animation-delay: 0.3s; }
.blog-item:nth-child(4) { animation-delay: 0.4s; }
.blog-item:nth-child(5) { animation-delay: 0.5s; }
.blog-item:nth-child(6) { animation-delay: 0.6s; }

.blog-card {
    animation: fadeInUp 0.6s ease-out both;
}

.blog-card:nth-child(1) { animation-delay: 0.1s; }
.blog-card:nth-child(2) { animation-delay: 0.2s; }

.gallery-item {
    animation: fadeInUp 0.5s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0.05s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.15s; }
.gallery-item:nth-child(4) { animation-delay: 0.2s; }
.gallery-item:nth-child(5) { animation-delay: 0.25s; }
.gallery-item:nth-child(6) { animation-delay: 0.3s; }
.gallery-item:nth-child(7) { animation-delay: 0.35s; }
.gallery-item:nth-child(8) { animation-delay: 0.4s; }

.funfact-item {
    animation: fadeInUp 0.6s ease-out both;
}

.funfact-item:nth-child(1) { animation-delay: 0.1s; }
.funfact-item:nth-child(2) { animation-delay: 0.2s; }
.funfact-item:nth-child(3) { animation-delay: 0.3s; }
.funfact-item:nth-child(4) { animation-delay: 0.4s; }

.section-header {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Smooth link transitions */
a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth hover effects */
.blog-item,
.skill-item,
.service-item,
.gallery-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   BREADCRUMB BACKGROUND PATTERN
   ========================================== */
.breadcrumb-section {
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/resim1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
    animation: slideBackground 20s ease-in-out infinite;
}

@keyframes slideBackground {
    0%, 24% {
        background-image: url('../img/resim1.png');
        opacity: 0.08;
    }
    25%, 49% {
        background-image: url('../img/resim2.png');
        opacity: 0.08;
    }
    50%, 74% {
        background-image: url('../img/resim3.png');
        opacity: 0.08;
    }
    75%, 100% {
        background-image: url('../img/resim4.png');
        opacity: 0.08;
    }
}

.breadcrumb-section .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.load-text {
    display: flex;
    gap: 10px;
}

.load-text span {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    animation: bounce 1s infinite alternate;
}

.load-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.load-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.load-text span:nth-child(4) {
    animation-delay: 0.3s;
}

@keyframes bounce {
    to {
        transform: translateY(-20px);
    }
}

/* ==========================================
   PROGRESS WRAP
   ========================================== */
.progress-wrap {
    position: fixed;
    right: 30px;
    bottom: 30px;
    height: 50px;
    width: 50px;
    cursor: pointer;
    display: block;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.progress-wrap.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.progress-wrap svg path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 4;
    transition: stroke-dashoffset 10ms linear;
}

/* ==========================================
   HEADER
   ========================================== */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

.header-absolute {
    background: transparent;
}

.header-sticky {
    background: rgba(10, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    transform: translateY(-100%);
    box-shadow: 0 2px 20px rgba(139, 92, 246, 0.1);
}

.header-sticky.sticky-on {
    transform: translateY(0);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 30px;
}

.logo-box svg {
    width: 50px;
    height: 50px;
    fill: var(--primary-color);
    transition: all 0.3s ease;
}

.logo-box:hover svg {
    transform: rotate(180deg);
}

.header-info {
    display: none;
}

.header-info ul {
    display: flex;
    align-items: center;
}

.header-info li {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
}

.header-menu nav > ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

.header-menu nav > ul > li {
    position: relative;
}

.header-menu nav > ul > li > a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-white);
    padding: 8px 0;
    display: block;
}

.header-menu nav > ul > li:hover > a {
    color: var(--primary-color);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 8, 20, 0.98);
    backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.has-dropdown:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.sub-menu li a:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}

.header-button .btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.header-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.menu-bar {
    display: none;
}

.menu-bar button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-bar button span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
}

.intro-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
}

.intro-text svg {
    width: 100vw;
    height: 60vh;
}

.intro-text text {
    font-size: 200px;
    font-weight: 900;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s ease-in-out forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-sub-title {
    font-size: 16px;
    color: var(--text-gray);
    display: block;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 35px;
}

.button-box {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 16px 35px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons li a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons li a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image-box {
    position: relative;
    text-align: center;
}

.hero-image-box img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================
   FUNFACT
   ========================================== */
.funfact-area {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.funfact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.funfact-item {
    text-align: center;
    padding: 20px;
}

.funfact-item .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.funfact-item .text {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* ==========================================
   SECTIONS
   ========================================== */
.services-section,
.skills-section,
.blog-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   SERVICES
   ========================================== */
.services-widget {
    position: relative;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-item:hover,
.service-item.active {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--border-color);
}

.service-item .left-box {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 350px;
}

.service-item .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.service-item .right-box {
    flex: 1;
}

.service-item .right-box p {
    color: var(--text-gray);
    line-height: 1.7;
}

.service-item .arrow {
    font-size: 24px;
    color: var(--primary-color);
    margin-left: auto;
}

/* ==========================================
   SKILLS
   ========================================== */
.skills-widget {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.skill-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-10px);
    background: rgba(139, 92, 246, 0.08);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.skill-inner .icon-box {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    position: relative;
}

.skill-inner .icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.skill-inner .icon-box .online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 16px;
    line-height: 1;
    background: #10b981;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

.skill-inner .number {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.skill-item > p {
    font-size: 14px;
    color: var(--text-gray);
}

/* ==========================================
   BLOG
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-item {
    background: rgba(139, 92, 246, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.blog-thumb {
    position: relative;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.1);
}

.blog-thumb .category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.blog-content {
    padding: 25px;
}

.blog-meta ul {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-meta li {
    font-size: 13px;
    color: var(--text-gray);
}

.blog-title a {
    font-size: 20px;
    font-weight: 600;
    color: white;
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--primary-color);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer-area {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo-box {
    margin-bottom: 25px;
}

.footer-logo-box svg {
    fill: var(--primary-color);
}

.copy-text p {
    font-size: 14px;
    color: var(--text-gray);
}

.copy-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.copy-text a:hover {
    text-decoration: underline;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 768px) {
    .header-info {
        display: block;
    }
}

@media (max-width: 1200px) {
    .header-menu {
        display: none;
    }
    
    .menu-bar {
        display: block;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 992px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .funfact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-widget {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-item .left-box {
        flex-direction: column;
        flex: 1;
    }
    
    .funfact-grid,
    .skills-widget,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
