/* CUSTOM FONTS & CORE STYLES */
body {
    background-color: #0f172a; /* Tailwind slate-900 */
    color: #f8fafc; /* Tailwind slate-50 */
    font-family: 'Outfit', sans-serif;
    overflow: hidden; /* Prevent scrolling during splash screen */
    margin: 0;
    padding: 0;
}

.bg-darker {
    background-color: #020617 !important; /* Tailwind slate-950 */
}

.bg-darker-2 {
    background-color: #0f172a !important; /* Tailwind slate-900 */
}

/* Glassmorphism Classes */
.bg-glass {
    background: rgba(30, 41, 59, 0.45); /* slate-800 com rgba */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* faint white border */
}

.border-glass {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* faint bottom border for header */
}

.hidden-initially {
    opacity: 0;
    visibility: hidden;
    position: absolute; /* Keep it out of flow if needed */
    pointer-events: none;
}

/* Gradient Text */
.premium-text-gradient {
    background: linear-gradient(to right, #3b82f6, #a855f7, #ec4899); /* blue-500, purple-500, pink-500 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Splash Screen Setup */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #020617; /* Very dark background */
    z-index: 9999;
    display: flex;
    overflow: hidden;
    transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.splash-content {
    position: relative;
    z-index: 10;
}

/* Titles Animation */
.name-part {
    font-size: 4rem; /* Big title */
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

.welcome-part {
    font-size: 1.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.8s;
}

/* Background Blobs for Splash */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #a855f7;
    bottom: -150px;
    right: -100px;
    animation-delay: 2s;
}

/* Loading Bar */
.loading-bar-container {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.2s;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #3b82f6, #a855f7);
    border-radius: 10px;
    animation: loadBar 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards 1.2s;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Transitions Out / In */
.fade-out-up {
    opacity: 0 !important;
    transform: translateY(-50px) !important;
    pointer-events: none;
}

.fade-in-up {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    pointer-events: auto !important;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-down {
    opacity: 1 !important;
    visibility: visible !important;
    position: fixed !important; /* Navbar becomes fixed after loading */
    pointer-events: auto !important;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Project Cards Styling */
.project-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(40px); /* Initially down for staggering effect */
}

.card-fade-in {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    filter: blur(50px);
    top: -50px;
    right: -50px;
    border-radius: 50%;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .card-glow {
    opacity: 0.4;
}

.icon-wrapper {
    z-index: 2;
}

.project-link-btn {
    transition: all 0.3s ease;
}

.project-link-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

.project-link-btn:hover .link-icon {
    transform: translateX(5px);
}

.transition-transform {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Utilities */
.hover-text-white {
    transition: color 0.3s ease;
}
.hover-text-white:hover {
    color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .name-part {
        font-size: 2.5rem;
    }
    .welcome-part {
        font-size: 1rem;
        letter-spacing: 4px;
    }
    #main-content {
        padding-top: 5rem !important; /* Adjusted for fixed nav */
    }
    
    /* Gelişmiş Global Responsive Düzeltmeler */
    .display-4 { font-size: 2rem !important; }
    .display-5 { font-size: 1.8rem !important; }
    h1, h2, h3, h4, h5, h6 { word-break: break-word; }
    p { font-size: 0.95rem !important; }
    
    /* Flex sarmalama: Uzun başlıklar ve butonlar yan yana sığmazsa alt alta atar */
    .d-flex.justify-content-between, .d-flex.align-items-center { flex-wrap: wrap !important; gap: 15px; }
    .flex-column.flex-md-row { flex-direction: column !important; }
    
    /* Proje kartları ve paddingler */
    .card-body, .glass-card, .p-5, .p-4 { padding: 1.5rem !important; }
    
    /* Responsive Tablolar */
    .table-responsive, table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    
    /* İŞ BAŞVURU GİBİ SIFIRLANMIŞ YATAY YAPILARI ESNEK DİKEY HALE GETİRME */
    .kanban-board { flex-wrap: wrap !important; overflow-x: hidden !important; flex-direction: column !important; }
    .kanban-board > div { min-width: 100% !important; margin-bottom: 1rem; }
    
    /* Alt Alta Dizecek Ekstra Sınıflar */
    .row { flex-direction: column !important; }
    .col-12, .col-md-4, .col-md-6, .col-md-8, .col-lg-4, .col-lg-8 { width: 100% !important; margin-bottom: 15px; }
    
    /* Layout menüleri */
    .navbar-collapse { background: rgba(10, 15, 30, 0.95); padding: 1rem; border-radius: 10px; margin-top: 10px; text-align: center; }
}
.bg-purple { background-color: #a855f7 !important; } 
.text-purple { color: #a855f7 !important; }
