/* ========================================
   FIERPELL - Premium Personal Website CSS
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

hr,
.hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 1.5rem auto;
    width: 80%;
    opacity: 0.6;
}

/* ========================================
   POLICY PAGES STYLES (Privacy & Terms)
   ======================================== */

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.policy-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: #059669;
    /* Green border on hover */
}

.policy-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-icon {
    font-size: 1.5rem;
    color: #059669;
    /* Matching green theme */
    background: rgba(5, 150, 105, 0.1);
    padding: 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.policy-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    line-height: 1.8;
}

.policy-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    flex-grow: 1;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #0a0a0a;
}

/* ========================================
   VARIABLES
   ======================================== */

:root {
    /* Colors */
    --primary-color: #00fe87;
    --secondary-color: #1e90ff;
    --accent-color: #ff6b6b;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #666666;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #52a3ea 0%, #131968 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    --gradient-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --gradient-blog: linear-gradient(135deg, #516de7 0%, #c9cfeb 100%);

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
    --card-padding: 30px;
    --border-radius: 15px;
    --border-radius-lg: 25px;

    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 242, 254, 0.3);

    /* Transitions */
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.7s ease;
}


.ana {
    text-decoration: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--secondary-color);

}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    border: none;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}



.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    display: none;
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

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

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    top: 40%;
    left: 70%;
    animation-delay: 10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--gradient-purple);
    transform: rotate(45deg);
    top: 80%;
    left: 20%;
    animation-delay: 15s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    border-radius: 50px;
    top: 10%;
    right: 30%;
    animation-delay: 8s;
}

@keyframes float {

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

    25% {
        transform: translateY(-20px) rotate(90deg);
    }

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

    75% {
        transform: translateY(-10px) rotate(270deg);
    }
}


.navbar {
    height: 90px;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-svg {
    width: 50px;
    height: 50px;
    display: inline-block;
    transition: all 0.3s ease;
}

.nav-logo:hover .logo-svg {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.6));
}

.logo-svg circle {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.logo-text {
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    color: #1e90ff;
    /* FIERPELL için mavi */
}

.logo-text:hover {
    transform: scale(1.08);
}

.logo-text .domain {
    color: #333;
    margin-left: 8px;
    font-size: 28px;
}

.logo-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-25deg);
    transition: left 0.1s ease, opacity 0.7s ease;
    opacity: 0;
    z-index: 1;
}

.logo-text:hover::after {
    left: 125%;
    opacity: 1;
    animation: slideFade 0.3s forwards;
}

.logo-text:hover .domain {
    opacity: 1;
    right: -50px;
    /* hoverda FIERPELL’in yanında daha sağda */
    transition-delay: 0.001s;
    /* gri şeritten sonra görünür */
}

@keyframes slideFade {
    0% {
        left: -50%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 125%;
        opacity: 0;
    }
}

.nav-logo .logo-text:hover {
    transform: scale(1.08);
}

.nav-logo .logo-text {
    position: relative;
    cursor: pointer;
    transition: transform 0.1s ease;
    display: inline-block;
    /* Önemli: animasyonlar için */
}

.nav-logo .logo-text .domain {
    position: absolute;
    top: 30px;
    right: -200px;
    /* Başlangıçta FIERPELL'in çok sağında */
    font-weight: 500;
    font-size: 1rem;
    color: #58a6ff;
    /* Mavi renk */
    opacity: 0;
    /* Başlangıçta görünmez */
    transition: opacity 0.1s ease, right 0.1s ease;
    z-index: 2;
    white-space: nowrap;
    /* Yazının satır atlamasını engelle */
}

.nav-logo .logo-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    /* Başlangıçta solun dışında */
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    /* Yarı şeffaf beyaz */
    transform: skewX(-25deg);
    /* Eğik efekt */
    transition: left 0.1s ease, opacity 0.7s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    /* Mouse tıklamasını engelleme */
}

.nav-logo .logo-text:hover::after {
    left: 125%;
    /* Sağa doğru kayma */
    opacity: 1;
    animation: slideFade 0.3s forwards;
}

.nav-logo .logo-text:hover .domain {
    opacity: 1;
    /* Görünür hale gel */
    right: -60px;
    /* FIERPELL'in yanına gel */
    transition-delay: 0.001s;
    /* Gri şeritten hemen sonra görün */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: var(--transition-fast);
}

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

.nav-link:hover {
    color: var(--secondary-color);
}

/* ========================================
   MEGAMENU STYLES
   ======================================== */

.nav-item {
    position: relative;
}

.nav-item.has-megamenu {
    position: relative;
}

.megamenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 280px;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--secondary-color);
    border-radius: 15px;
    padding: 30px 25px 25px 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.megamenu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    height: 15px;
    background: transparent;
}

/* Transparent hover bridge */
.nav-item.has-megamenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
    z-index: 998;
    pointer-events: auto;
}

.nav-item.has-megamenu:hover .megamenu,
.nav-item.has-megamenu:hover>.megamenu,
.megamenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-item.has-megamenu.active .megamenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.megamenu-content {
    display: block;
    pointer-events: auto;
}

.megamenu-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.megamenu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.megamenu-content ul li {
    margin-bottom: 10px;
}

.megamenu-content ul li:last-child {
    margin-bottom: 0;
}

.megamenu-content ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 5px;
    pointer-events: auto;
    cursor: pointer;
    width: 100%;
}

.megamenu-content ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.megamenu-content ul li a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.megamenu-content ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../images/profile/izmir-resim.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.hero-container {

    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    min-height: 600px;
}

.hero-title {
    font-size: 3rem;
    /* Reduced from 4rem */
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.typing-text {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    /* Significantly darker green-blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    min-width: 300px;
    text-align: left;
}


.cursor {
    color: #059669;
    /* Green cursor to match */
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
    /* FIX: Minimum height ekle */
    min-height: 26px;
}

.hero-emir {
    background: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    /* Significantly darker green-blue */
    /* Less bright green-blue */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 70px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    /* FIX: Minimum height ekle */
    min-height: 50px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* FIX: Minimum height ekle */
    min-height: 60px;
    align-items: flex-start;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 30px;
    /* FIX: Visual alanını sabitle */
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}




.avatar {
    width: 200px;
    /* yuvarlak boyutu */
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.5);
    overflow: hidden;
}

.pulse-ring,
.pulse-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse-avatar 2s infinite;
}

.pulse-ring {
    width: 250px;
    height: 250px;
    animation-delay: 0s;
}

.pulse-ring-2 {
    width: 300px;
    height: 300px;
    animation-delay: 1s;
    border-color: var(--primary-color);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }

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

.scroll-indicator {
    /*display: flex;
    flex-direction: column;
    justify-content: end;
    bottom: 30px;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    bottom: 30px;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: spin 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    position: relative;
    display: flex;
    padding: var(--section-padding);
    background: var(--bg-secondary);
    z-index: 0;
}

.about::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/profile/turkbayragi.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    align-items: start;
}

.text-block {
    margin-bottom: 40px;
}

.text-block h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.text-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.skill-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.skill-item span {
    color: var(--text-primary);
    font-weight: 500;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

.projects {
    position: relative;
    padding: var(--section-padding);
    background: var(--bg-primary);
    z-index: 0;
}

.project-card-link {
    text-decoration: none;
}

.projects::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/profile/eregli.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-secondary);
    color: white;
    border-color: black;
    transform: translateY(-2px);
}

.projects-grid {
    display: flex;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 230px;
    transition: transform 0.1s;
    opacity: 0.7;
    transition: opacity 0.1s;
}

.project-image:hover {
    opacity: 0.5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}



.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: var(--card-padding);
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tech span {
    padding: 5px 12px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog {
    position: relative;
    padding: var(--section-padding);
    background: var(--bg-secondary);
    z-index: 0;
}

.blog::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/profile/eregli2.webp");
    background-size: cover;
    background-position: center;
    object-fit: contain;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-fast);
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

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

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.blog-content {
    padding: var(--card-padding);
}

.blog-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

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

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 250px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-fast);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
}

.gallery-item:nth-child(3) {
    grid-row: span 1.5;
}

.gallery-item:nth-child(5) {
    grid-row: span 1.3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 242, 254, 0.8), rgba(79, 172, 254, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-content p {
    font-size: 1rem;
    opacity: 0.9;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    min-height: calc(100vh - 100px);
    position: relative;
    padding: 30px 0px 10px;
    margin-top: 0px;
    background: var(--bg-secondary);
    z-index: 0;
    display: flex;
    align-items: stretch;
}

.contact::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/profile/agalar2.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.map-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item {
    justify-content: start;
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
}

.contact-icon {
    display: flex;
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.contact-text h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-align: center;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1.5rem;
    text-align: center;
    align-items: center;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 0;
    align-items: center;
    justify-content: flex-end;
    margin-top: 50px;
}

.social-container {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
    padding: 25px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.social-container:hover {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(30, 30, 30, 0.8) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(-5px);
}

.social-link {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(30, 144, 255, 0.1) 100%);
    border: 2px solid rgba(0, 254, 135, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(0, 254, 135, 0.2) 0%, rgba(30, 144, 255, 0.2) 100%);
    border-color: rgba(0, 254, 135, 0.6);
    color: #00fe87;
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 254, 135, 0.3);
}

.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #00fe87;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 254, 135, 0.4);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    bottom: -40px;
}

/* ========================================
   HERO HIGHLIGHT CARD
   ======================================== */

.hero-highlight {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8) 0%, rgba(20, 35, 55, 0.6) 100%);
    border: 1.5px solid rgba(0, 254, 135, 0.3);
    border-radius: 20px;
    padding: 35px 28px;
    margin-bottom: 30px;
    backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 254, 135, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.hero-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 254, 135, 0.5), transparent);
}

.hero-highlight:hover {
    border-color: rgba(0, 254, 135, 0.6);
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(20, 35, 55, 0.8) 100%);
    box-shadow: 0 20px 50px rgba(0, 254, 135, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.highlight-header {
    text-align: center;
    margin-bottom: 24px;
}

.highlight-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #00fe87;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(135deg, #00fe87 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background: linear-gradient(135deg, rgba(0, 254, 135, 0.06) 0%, rgba(30, 144, 255, 0.06) 100%);
    border: 1.5px solid rgba(0, 254, 135, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 254, 135, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    background: linear-gradient(135deg, rgba(0, 254, 135, 0.2) 0%, rgba(30, 144, 255, 0.2) 100%);
    border-color: rgba(0, 254, 135, 0.8);
    color: #00fe87;
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 254, 135, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tech-item i {
    font-size: 1.9rem;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #00fe87 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 0 8px rgba(0, 254, 135, 0.4));
}

.tech-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.tech-item:hover .tech-name {
    opacity: 1;
}

.highlight-divider {
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(0, 254, 135, 0.4), transparent);
    margin: 22px 0;
    opacity: 0.8;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.stat-box {
    background: linear-gradient(135deg, rgba(0, 254, 135, 0.08) 0%, rgba(30, 144, 255, 0.08) 100%);
    border: 1.5px solid rgba(0, 254, 135, 0.3);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 254, 135, 0.5), transparent);
}

.stat-box:hover {
    background: linear-gradient(135deg, rgba(0, 254, 135, 0.15) 0%, rgba(30, 144, 255, 0.15) 100%);
    border-color: rgba(0, 254, 135, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 254, 135, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00fe87 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
}

.stat-box:hover .stat-text {
    color: #00fe87;
}

.contact-form {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition-fast);
    padding-top: 20px;
}

.form-group input:focus,
.form-group textarea:focus {
    color: #ffffff;
    /* Ensure white text on focus */
    outline: none;
    border-color: #059669;
    /* Darker green border */
    box-shadow: 0 0 15px rgba(5, 150, 105, 0.3);
    /* Green glow */
    background: #252525;
    /* Solid dark grey - distinct but easy on eyes */
}

/* Fix for Chrome Autofill white background */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #252525 inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-fast);
    pointer-events: none;
    font-weight: 500;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--bg-secondary);
    padding: 0 10px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--bg-primary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: 1000;
    box-shadow: var(--shadow-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: auto;
    }

    .hero-visual {
        order: -1;
        max-width: 100%;
    }

    .hero-title {
        min-height: 180px;
    }

    .typing-text {
        min-width: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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


@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    /* Logo domain ayarları */
    .nav-logo .logo-text .domain {
        font-size: 0.8rem;
        right: -150px;
    }

    .nav-logo .logo-text:hover .domain {
        right: -40px;
    }


    .hamburger {
        display: flex;
    }

    .language-switcher {
        margin-left: 0;
        margin-top: 1rem;
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.9);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .nav-item.has-megamenu:hover .megamenu {
        display: none;
    }

    .megamenu {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        background: rgba(20, 20, 20, 0.95);
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        transform: none;
        transition: all 0.3s ease;
        box-shadow: none;
    }

    .nav-item.has-megamenu.active .megamenu {
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 20px 0;
    }

    .megamenu-content {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .megamenu-column {
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }

    .megamenu-column:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: 100vh;
        padding-top: 100px;
        /* Navbar için üst boşluk */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Boşluğu azalttık */
        text-align: center;
        padding-top: 20px;
        /* Ek üst padding */
    }

    .hero-visual {
        order: -1;
        margin-top: 20px;
        /* Avatar için üst boşluk */
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
        min-height: 120px;
    }

    .typing-text {
        min-width: 200px;
    }

    .avatar-container {
        margin-top: 10px;
        /* Container için ek boşluk */
    }

    .avatar {
        width: 180px;
        /* Mobilde biraz büyük */
        height: 180px;
        margin: 0 auto;
    }

    .pulse-ring {
        width: 220px;
        height: 220px;
    }

    .pulse-ring-2 {
        width: 260px;
        height: 260px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }




    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 10px;
        min-height: 40px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
        margin-top: 20px;
        min-height: 50px;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter {
        justify-content: center;
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    /* Contact form mobil düzeltme */
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }

}

@media (max-width: 480px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 0.95rem;
        /* Further reduced from 1.1rem */
        line-height: 1.4;
        min-height: 100px;
    }

    .hero-visual {
        margin-top: 40px;
        /* Çok küçük ekranlarda daha fazla boşluk */
    }

    .avatar {
        width: 160px;
        height: 160px;
    }

    .pulse-ring {
        width: 200px;
        height: 200px;
    }

    .pulse-ring-2 {
        width: 240px;
        height: 240px;
    }

    .hero-title {
        font-size: 1.1rem;
        /* Reduced from 2rem to prevent wrapping */
        line-height: 1.4;
        min-height: 100px;
    }

    .typing-text {
        min-width: 150px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        min-height: 120px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-item:nth-child(1),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(5) {
        grid-row: span 1;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .hero-emir {
        font-size: 3rem;
        /* Adjusted for mobile */
    }
}


/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Loading animation */
.loading {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.interactive-hover {
    transition: var(--transition-fast);
}

.interactive-hover:hover {
    transform: translateY(-2px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary);
}

/* Selection color */
::selection {
    background: var(--secondary-color);
    color: white;
}


/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

#nah {
    color: red;
}


.blog-card-link {
    text-decoration: none;
}

.github_link {
    color: greenyellow !important;
    font-weight: bold;
    text-decoration: none;
}

.github_link:hover {
    color: var(--secondary-color) !important;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.lang-btn.active {
    background: var(--secondary-color);
    color: #333;
    border: none;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.lang-btn:hover::before {
    left: 100%;
}

.lang-btn i {
    margin-right: 0.5rem;
}

.demo-content {
    margin-top: 100px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.demo-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.language-demo {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem auto;
    max-width: 600px;
    backdrop-filter: blur(5px);
}

.fade-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-transition.active {
    opacity: 1;
}

.kutu {
    position: relative;
    top: 20px;
    /* Aşağı kayar */
    left: 30px;
    /* Sağa kayar */
}

.hr {
    height: 2px;
    border: none;
    background: linear-gradient(to right, black 1%, #0f82ed 50%, black 99%);
}


/* Hero visual container güncelleme */
.hero-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 30px;
}

/*bana ulaş kısmındaki map*/
.custom-map-widget {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.map-icon {
    font-size: 30px;
    color: #FFD700;
}

.map-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.map-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}



.tech-slider-container {
    background: var(--bg-secondary);
    padding: 30px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tech-slider-container::before,
.tech-slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.tech-slider-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.tech-slider-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-secondary), transparent);
}

.tech-track {
    display: flex;
    width: calc(200px * 16);
    animation: scroll 20s linear infinite;
}

.tech-slide {
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tech-slide i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Hover durumunda slider dursun istersen */
.tech-slider-container:hover .tech-track {
    animation-play-state: paused;
}

.tech-slide:hover {
    color: var(--text-primary);
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 254, 135, 0.5);
}

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

    100% {
        transform: translateX(calc(-200px * 8));
        /* Slide genişliği x Yarım set sayısı */
    }
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .tech-slide {
        width: 150px;
        font-size: 1rem;
    }

    .tech-track {
        width: calc(150px * 16);
        animation-duration: 15s;
    }

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

        100% {
            transform: translateX(calc(-150px * 8));
        }
    }
}

/* ========================================
   CUSTOM SIDEBAR STYLES
   ======================================== */

.sidebar-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.sidebar-toggle-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    /* Changed from right */
    width: 350px;
    height: 100%;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Changed from border-left */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    /* Changed shadow direction */
    z-index: 1002;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.custom-sidebar.active {
    left: 0;
    /* Changed from right: 0 */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.logo-circle {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
    animation: pulse 2s infinite;
}

.sidebar-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-profile .profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.sidebar-profile .profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    /* Yüzün yukarıda olduğunu varsayarak ayarlama */
    background: var(--bg-card);
}

.sidebar-profile h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sidebar-profile p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--transition-fast);
    font-weight: 500;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.sidebar-link:hover {
    background: linear-gradient(90deg, rgba(0, 254, 135, 0.1), transparent);
    color: var(--primary-color);
    padding-left: 25px;
}

.sidebar-link:hover i {
    transform: scale(1.2);
}

.sidebar-widget {
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(0, 0, 0, 0.2));
    padding: 20px;
    border-radius: 15px;
    margin: 10px 0 20px 0;
    /* Reduced top margin for better spacing */
    border: 1px solid rgba(30, 144, 255, 0.2);
    text-align: center;
}

.sidebar-widget h5 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 10px;
}

.sidebar-widget p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.btn-coffee {
    display: inline-block;
    padding: 8px 20px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-coffee:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 144, 255, 0.5);
    background: #187bcd;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-social {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sidebar-social a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.sidebar-social a:hover {
    color: white;
    transform: translateY(-3px);
}

@media (max-width: 480px) {
    .custom-sidebar {
        width: 100%;
        left: -100%;
        /* Changed from right */
    }
}

/* ========================================
   COFFEE PAGE STYLES
   ======================================== */

.coffee-page {
    background: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.coffee-nav {
    background: transparent !important;
    padding: 20px 0;
    z-index: 10;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.coffee-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    z-index: 1;
}

.coffee-header {
    text-align: center;
    margin-bottom: 50px;
}

.coffee-icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffee-icon-main {
    font-size: 4rem;
    color: #FFDD00;
    filter: drop-shadow(0 0 20px rgba(255, 221, 0, 0.4));
    z-index: 2;
}

.steam {
    position: absolute;
    width: 8px;
    height: 20px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    top: -10px;
    filter: blur(3px);
}

.steam-1 {
    left: 40%;
    animation: steam 2s infinite ease-out;
    animation-delay: 0.5s;
}

.steam-2 {
    left: 50%;
    animation: steam 2s infinite ease-out;
    animation-delay: 1s;
}

.steam-3 {
    left: 60%;
    animation: steam 2s infinite ease-out;
    animation-delay: 1.5s;
}

@keyframes steam {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

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

.coffee-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FFDD00 0%, #FF9D00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.coffee-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.coffee-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.coffee-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 221, 0, 0.3);
}

.coffee-card.active {
    background: linear-gradient(135deg, rgba(255, 221, 0, 0.1), rgba(255, 157, 0, 0.1));
    border-color: #FFDD00;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 221, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.coffee-card h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.coffee-card .price {
    color: #FFDD00;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.coffee-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.payment-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
}

.payment-form-container h3 {
    color: white;
    margin-bottom: 25px;
    text-align: center;
}

.selected-amount-display {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.selected-amount-display span {
    color: #FFDD00;
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-pay {
    background: linear-gradient(135deg, #FFDD00 0%, #FF9D00 100%);
    border: none;
    color: black;
    font-weight: 700;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: var(--transition-fast);
}

/* ========================================
   IBAN MODAL STYLES
   ======================================== */

.iban-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.iban-modal {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 254, 135, 0.2);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.iban-modal-overlay[style*="visible"] .iban-modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: red;
}

.modal-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    border: none;
    /* Override Bootstrap */
}

.modal-header i {
    font-size: 3rem;
    color: var(--primary-color);
}

.modal-header h3 {
    color: white;
    font-size: 1.5rem;
    margin: 0;
}

.amount-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.amount-text span {
    color: #FFDD00;
    font-weight: 700;
    font-size: 1.3rem;
}

.iban-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.bank-logo {
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.iban-info {
    margin-bottom: 15px;
}

.iban-info label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row span {
    color: white;
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.btn-copy {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    color: white;
    transform: scale(1.1);
}


/* CS2 Widget Styles */

/* AI Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.chat-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.chat-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: pulseBorder 2s infinite;
    z-index: -1;
}

@keyframes floatIcon {

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

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

@keyframes pulseBorder {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

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

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

.chat-header {
    background: linear-gradient(90deg, #0a0a0a, #1a1a1a);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 600;
}

.header-icon {
    width: 25px;
    height: auto;
}

.chat-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.chat-close:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot-message {
    background: rgba(0, 242, 254, 0.1);
    color: white;
    border-radius: 15px 15px 15px 0;
    align-self: flex-start;
    border: 1px solid rgba(0, 242, 254, 0.2);
}

.user-message {
    background: var(--gradient-secondary);
    color: white;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
}

.chat-input-area {
    padding: 15px;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.chat-input-area button {
    background: var(--gradient-secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}


/* CS2 Widget Styles */
.cs2-widget {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

.cs2-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #ff9d00;
    /* CS2 Orange */
}

.cs2-header {
    color: #ff9d00 !important;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.cs2-stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.cs2-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    /* Semi-transparent card */
    padding: 8px 5px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.cs2-stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 157, 0, 0.1);
}

.cs2-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.cs2-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
    margin-top: 2px;
}

/* Contact Form Animation */
.plane-icon {
    margin-left: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-primary:hover .plane-icon {
    transform: translateX(3px) translateY(-3px);
}

.btn-primary.sending .plane-icon {
    animation: flyPlane 1.2s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary.sending .btn-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes flyPlane {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }

    20% {
        transform: translate(-10px, 10px) rotate(-10deg);
        /* Wind up */
    }

    40% {
        transform: translate(20px, -20px) rotate(10deg);
        opacity: 1;
    }

    100% {
        transform: translate(400px, -400px) rotate(45deg) scale(0.5);
        opacity: 0;
    }
}

/* ========================================
   TO DO WIDGET
   ======================================== */

.todo-widget {
    margin-top: 30px;
}

.todo-header {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.todo-header i {
    color: var(--primary-color);
}

.todo-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.todo-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.todo-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.todo-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 254, 135, 0.3);
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scrollbar */
}

.todo-widget hr {
    display: none;
    /* Remove separator line */
}

.todo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    animation: fadeIn 0.3s ease-out;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.todo-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    cursor: pointer;
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.todo-item.completed .todo-checkbox {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.todo-checkbox i {
    color: black;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.todo-item.completed .todo-checkbox i {
    opacity: 1;
    transform: scale(1);
}

.todo-text {
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    line-height: 1.4;
}

.todo-item.completed .todo-text {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

.todo-delete-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
    opacity: 0;
}

.todo-item:hover .todo-delete-btn {
    opacity: 1;
}

.todo-delete-btn:hover {
    color: #ff4757;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ========================================
   CS2 WIDGET STYLES
   ======================================== */

.cs2-widget .cs2-header {
    color: #FFD700;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cs2-stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 15px;
}

.cs2-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.cs2-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cs2-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.cs2-widget hr {
    border-color: rgba(255, 215, 0, 0.2);
    margin: 15px 0;
}

/* ========================================
   MEGA MENU STYLES (Hepsiburada Style)
   ======================================== */

.nav-item-mega {
    position: relative;
}

.mega-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: -100px;
    width: 800px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.nav-item-mega:hover .mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-container {
    display: flex;
    height: 400px;
}

.mega-menu-sidebar {
    width: 25%;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 0;
}

.mega-sidebar-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.mega-sidebar-item:hover,
.mega-sidebar-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    font-weight: 600;
}

.mega-sidebar-item i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.mega-menu-content-area {
    width: 75%;
    padding: 30px;
    background: var(--bg-card);
}

.mega-content-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.mega-content-panel.active {
    display: block;
}

.mega-content-panel h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.mega-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mega-link-column h5 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-link-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.mega-link-column a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .nav-item-mega {
        display: none;
    }
}

/* Mega Menu Simple List Styles */
.mega-simple-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.mega-simple-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.mega-simple-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 1rem;
    display: inline-block;
}

.mega-simple-list a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
}

/* ========================================
   LOGO HOVER FIX
   ======================================== */
.navbar-brand:hover,
.nav-logo a:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.05);
}

.navbar-brand::before,
.navbar-brand::after,
.nav-logo a::before,
.nav-logo a::after {
    display: none !important;
    content: none !important;
}

/* ========================================
   PREMIUM ABOUT SECTION STYLES
   ======================================== */
.about-premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.premium-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.premium-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 242, 254, 0.1);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translate(0, 0);
    /* Fix for some browsers */
}

.premium-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.premium-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.premium-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Stats Card Specifics */
.premium-stats-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}

.p-stat-item {
    text-align: center;
}

.p-stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 5px;
}

.p-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
}

/* Full Width Card for Skills */
.full-width-card {
    grid-column: 1 / -1;
    text-align: center;
}

.skills-premium-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.skill-badge i {
    color: var(--primary-color);
}

.skill-badge:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

@media (max-width: 768px) {
    .premium-stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .p-stat-divider {
        width: 60px;
        height: 1px;
    }
}

/* ========================================
   PREMIUM PROJECTS SECTION STYLES
   ======================================== */
.project-premium-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-premium-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

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

.project-premium-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-premium-card h3 {
    font-size: 1.4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.project-premium-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-premium-tech-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.project-premium-card:hover .project-premium-tech-badge {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
    color: var(--primary-color);
}

/* ========================================
   PREMIUM BLOG SECTION STYLES
   ======================================== */
.blog-premium-card {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-premium-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-premium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

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

.blog-premium-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-premium-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-premium-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.blog-premium-meta i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-premium-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.blog-premium-card:hover h3 {
    color: var(--primary-color);
}

/* ========================================
   PREMIUM CONTACT SECTION STYLES
   ======================================== */
.contact-premium-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.contact-map-premium {
    flex-grow: 1;
    width: 100%;
    min-height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.form-premium-control {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 15px !important;
    transition: all 0.3s ease !important;
}

.form-premium-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1) !important;
}

.form-premium-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .contact-premium-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   BOOK WIDGET STYLES
   ======================================== */

.book-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
}

.book-button {
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    transition: all 0.3s ease;
    color: #f59e0b;
    font-size: 1.4rem;
}

.book-report-btn {
    position: absolute;
    right: -8px;
    top: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #111827;
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.book-report-btn:hover {
    transform: translateY(-1px);
}

.book-report-btn::after {
    content: "Rapor";
    position: absolute;
    right: 110%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 6px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.book-report-btn:hover::after {
    opacity: 1;
}

.book-report-btn {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}

.book-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

.book-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #f59e0b;
    animation: bookPulseBorder 2s infinite;
    z-index: -1;
}

@keyframes bookPulseBorder {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

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

/* Book Panel */
.book-panel {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 370px;
    max-height: 560px;
    background: rgba(16, 16, 20, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(245, 158, 11, 0.08);
}

.book-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}

/* Panel Header */
.book-panel-header {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 16, 20, 0.95));
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.book-panel-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 1rem;
}

.book-panel-header-info i {
    font-size: 1.1rem;
}

.book-panel-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
    padding: 4px;
}

.book-panel-close:hover {
    color: white;
}

/* Stats Bar */
.book-panel-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 14px 20px;
    background: rgba(245, 158, 11, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.book-stat {
    text-align: center;
}

.book-stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
}

.book-stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

.book-stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
}

/* Book List */
.book-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.book-list::-webkit-scrollbar {
    width: 4px;
}

.book-list::-webkit-scrollbar-track {
    background: transparent;
}

.book-list::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 10px;
}

/* Book Card */
.book-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: 56px;
}

.book-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #f59e0b;
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.book-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
    transform: translateX(4px);
}

.book-card:hover::before {
    opacity: 1;
}

.planned-card {
    opacity: 0.55;
}

.planned-card:hover {
    opacity: 0.8;
}

.book-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    flex: 1;
}

.book-info {
    flex: 1;
    min-width: 0;
}

.book-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.book-author {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    font-style: italic;
}

/* Status Badges */
.book-status {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.book-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.book-status.reading {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
    animation: readingGlow 2s infinite alternate;
}

@keyframes readingGlow {
    0% {
        box-shadow: 0 0 3px rgba(245, 158, 11, 0.2);
    }

    100% {
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }
}

.book-status.planned {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-card-bottom {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 0;
    margin-top: 0;
    gap: 8px;
}

.book-rating {
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-rating i {
    font-size: 0.7rem;
}

.book-date {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.book-date i {
    font-size: 0.65rem;
}

.book-note {
    display: none;
}

/* Clickable Book Card */
.book-card[data-review] {
    cursor: pointer;
}

.book-card-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.book-card:hover .book-card-arrow {
    color: #f59e0b;
    transform: translateX(3px);
}

/* Book Review Modal */
.book-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.book-review-modal.active {
    opacity: 1;
    visibility: visible;
}

.book-review-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
}

.book-review-modal-content {
    position: relative;
    width: 90%;
    max-width: 750px;
    height: 80vh;
    max-height: 650px;
    background: rgba(16, 16, 20, 0.98);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(30px) scale(0.92);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(245, 158, 11, 0.06);
}

.book-review-modal.active .book-review-modal-content {
    transform: translateY(0) scale(1);
}

.book-review-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.book-review-modal-close:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
    transform: scale(1.1);
}

#bookReviewIframe {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
}

@media (max-width: 600px) {
    .book-review-modal-content {
        width: 95%;
        height: 85vh;
        border-radius: 18px;
    }
}

/* Panel Footer */
.book-panel-footer {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.book-panel-footer i {
    margin-right: 4px;
    color: #f59e0b;
    font-size: 0.7rem;
}

/* Reading Report Modal */
.reading-report-modal {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reading-report-modal.active {
    opacity: 1;
    visibility: visible;
}

.reading-report-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.reading-report-content {
    position: relative;
    width: min(420px, 92vw);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.reading-report-close {
    position: absolute;
    right: 12px;
    top: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
}

.reading-report-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    margin-bottom: 12px;
}

.reading-report-header i {
    color: #f59e0b;
}

.reading-report-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.report-charts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 6px;
}

.report-chart-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px;
}

.report-chart-title {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.report-pie {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: conic-gradient(#10b981 0deg, #10b981 0deg, #f59e0b 0deg, #f59e0b 0deg, #64748b 0deg, #64748b 360deg);
    box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.4);
}

.report-legend {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    flex-wrap: wrap;
}

.legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.legend-dot.completed { background: #10b981; }
.legend-dot.reading { background: #f59e0b; }
.legend-dot.planned { background: #64748b; }

.report-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-bar-row {
    display: grid;
    grid-template-columns: 70px 1fr 28px;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.report-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.report-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.report-bar-fill.completed { background: #10b981; }
.report-bar-fill.reading { background: #f59e0b; }
.report-bar-fill.planned { background: #64748b; }

.report-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.report-label {
    color: rgba(255, 255, 255, 0.6);
}

.report-value {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 480px) {
    .report-charts {
        grid-template-columns: 1fr;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .book-widget {
        bottom: 20px;
        left: 20px;
    }

    .book-button {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .book-panel {
        width: calc(100vw - 40px);
        max-height: 70vh;
        left: 0;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    color: #f59e0b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(245, 158, 11, 0.08);
    z-index: 9000;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-top-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.15);
    transform: translateX(-50%) translateY(-3px);
}

.scroll-top-btn:active {
    transform: translateX(-50%) translateY(0);
}
