/**
 * İpek Ersan Portfolio - Main Stylesheet
 * Theme: Elegant Cinematic - Soft Black + Rose Red + Cyan Blue
 */

:root {
    /* Primary Colors - Softer, More Elegant */
    --color-black: #0d0d0d;
    --color-black-light: #141418;
    --color-black-medium: #1c1c22;
    --color-black-soft: #26262e;

    /* Accent Colors - Refined */
    --color-red: #e63946;
    --color-red-soft: #ff6b7a;
    --color-red-dark: #c1121f;
    --color-red-glow: rgba(230, 57, 70, 0.4);

    --color-blue-neon: #4cc9f0;
    --color-blue-soft: #7dd3fc;
    --color-blue-dark: #0096c7;
    --color-blue-glow: rgba(76, 201, 240, 0.4);

    /* Gradient Accents */
    --gradient-accent: linear-gradient(135deg, var(--color-red) 0%, var(--color-blue-neon) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, rgba(76, 201, 240, 0.1) 100%);

    /* Text Colors */
    --color-white: #ffffff;
    --color-gray-light: #e8e8ec;
    --color-gray: #9898a6;
    --color-gray-dark: #606070;

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-elegant: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Shadows */
    --shadow-glow-red: 0 0 40px var(--color-red-glow);
    --shadow-glow-blue: 0 0 40px var(--color-blue-glow);
    --shadow-elegant: 0 20px 60px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-red-soft) var(--color-black);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--color-red), var(--color-blue-neon));
    border-radius: 3px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--color-red);
    color: var(--color-white);
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-red-soft);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-title.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ============================= */
/* ULTRA MODERN SPLASH SCREEN */
/* ============================= */
#preloader {
    position: fixed;
    inset: 0;
    background: #0a0a0c;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
}

/* Morphing Background */
.splash-morph {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.morph-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
}

.morph-shape.shape-1 {
    width: 500px;
    height: 500px;
    background: #e63946;
    top: -20%;
    left: -10%;
    animation: morphFloat1 15s ease-in-out infinite;
}

.morph-shape.shape-2 {
    width: 400px;
    height: 400px;
    background: #4cc9f0;
    bottom: -15%;
    right: -15%;
    animation: morphFloat2 18s ease-in-out infinite;
}

.morph-shape.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #e63946, #4cc9f0);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: morphPulse 4s ease-in-out infinite;
}

@keyframes morphFloat1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(50px, 30px) scale(1.1) rotate(10deg);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.9) rotate(-5deg);
    }
}

@keyframes morphFloat2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(-40px, -20px) scale(1.15) rotate(-8deg);
    }

    66% {
        transform: translate(30px, -40px) scale(0.95) rotate(12deg);
    }
}

@keyframes morphPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.25;
    }
}

/* Scan Lines */
.scan-lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px);
    pointer-events: none;
}

/* Animated Ring */
.splash-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    opacity: 0;
    animation: ringFadeIn 1s ease forwards 0.3s;
}

.splash-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.splash-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 0.5;
}

.splash-ring .ring-progress {
    fill: none;
    stroke: url(#ringGradient);
    stroke: linear-gradient(90deg, #e63946, #4cc9f0);
    stroke-width: 0.5;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: ringProgress 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.5s;
}

@keyframes ringFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes ringProgress {
    to {
        stroke-dashoffset: 0;
    }
}

/* Main Content */
.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Logo with Letter Animation */
.splash-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.logo-letters {
    display: flex;
}

.logo-letters .char {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    color: #fff;
    opacity: 0;
    transform: translateY(40px) rotateX(-90deg);
    animation: charReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(0.3s + var(--d) * 0.08s);
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.logo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 50px;
}

.logo-divider .line {
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #e63946, #4cc9f0);
    animation: lineGrow 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

@keyframes lineGrow {
    to {
        height: 40px;
    }
}

/* Glowing Subtitle */
.splash-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: subtitleReveal 0.8s ease forwards;
    animation-delay: 1.2s;
}

.splash-subtitle .glow-text {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: #9898a6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.splash-subtitle .pulse-dot {
    width: 4px;
    height: 4px;
    background: #ff6b7a;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #ff6b7a;
}

@keyframes subtitleReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Modern Loader Dots */
.splash-loader-modern {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.4s;
}

.loader-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.loader-dots span {
    width: 6px;
    height: 6px;
    background: #4cc9f0;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
    background: #ff6b7a;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {

    0%,
    80%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.5;
    }

    40% {
        transform: translateY(-12px) scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Floating Particles */
.splash-particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sp {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.sp:nth-child(1) {
    left: 15%;
    top: 20%;
    animation-delay: 0s;
}

.sp:nth-child(2) {
    right: 20%;
    top: 25%;
    animation-delay: 1s;
    background: #e63946;
}

.sp:nth-child(3) {
    left: 25%;
    bottom: 30%;
    animation-delay: 2s;
    background: #4cc9f0;
}

.sp:nth-child(4) {
    right: 15%;
    bottom: 20%;
    animation-delay: 0.5s;
}

.sp:nth-child(5) {
    left: 50%;
    top: 15%;
    animation-delay: 1.5s;
    background: #4cc9f0;
    width: 3px;
    height: 3px;
}

.sp:nth-child(6) {
    right: 30%;
    top: 60%;
    animation-delay: 2.5s;
    background: #e63946;
    width: 3px;
    height: 3px;
}

@keyframes particleFloat {

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

    20% {
        opacity: 0.6;
        transform: translateY(-10px) scale(1);
    }

    80% {
        opacity: 0.6;
        transform: translateY(-40px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0);
    }
}

/* Corner Lines */
.corner-line {
    position: absolute;
    background: transparent;
    opacity: 0;
    animation: cornerSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.corner-line.tl,
.corner-line.br {
    width: 80px;
    height: 1px;
}

.corner-line.tr,
.corner-line.bl {
    width: 1px;
    height: 80px;
}

.corner-line.tl {
    top: 40px;
    left: 40px;
    background: linear-gradient(90deg, #e63946, transparent);
    animation-delay: 0.2s;
}

.corner-line.tr {
    top: 40px;
    right: 40px;
    background: linear-gradient(180deg, #4cc9f0, transparent);
    animation-delay: 0.4s;
}

.corner-line.bl {
    bottom: 40px;
    left: 40px;
    background: linear-gradient(0deg, #4cc9f0, transparent);
    animation-delay: 0.6s;
}

.corner-line.br {
    bottom: 40px;
    right: 40px;
    background: linear-gradient(270deg, #e63946, transparent);
    animation-delay: 0.8s;
}

@keyframes cornerSlide {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* Navigation - Elegant Minimal */
.navbar {
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-white);
    transition: var(--transition-normal);
}

.navbar-brand:hover .brand-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray) !important;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--gradient-accent);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 28px;
    height: 20px;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.navbar-toggler-icon span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--color-white);
    transition: var(--transition-normal);
}

.nav-social {
    margin-left: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-social a {
    color: var(--color-gray);
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.nav-social a:hover {
    color: var(--color-red-soft);
    transform: translateY(-2px);
}

.imdb-link {
    font-size: 0.6rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--color-gray-dark);
    border-radius: 4px;
    transition: var(--transition-normal);
}

.imdb-link:hover {
    border-color: var(--color-blue-neon);
    color: var(--color-blue-neon);
    box-shadow: 0 0 15px var(--color-blue-glow);
}