:root {
    --bg-main: #0b132b;
    --bg-surface: #1c2541;
    --bg-surface-soft: #222e50;
    --color-primary: #38bdf8;
    --color-primary-hover: #0ea5e9;
    --text-main: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --color-success: #10b981;
    --color-danger: #f43f5e;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 18px 45px rgba(3, 7, 18, 0.35);
    --shadow-card: 0 12px 30px rgba(3, 7, 18, 0.22);
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
        linear-gradient(135deg, #0b132b, #1e3a8a);
    color: var(--text-main);
    min-height: 100vh;
}

/* NAVBAR */

.navbar {
    width: 100%;
    background: rgba(7, 20, 47, 0.86);
    backdrop-filter: blur(14px);
    padding: 20px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-card);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-logo {
    color: white;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0;
    bottom: -7px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* HEADER */

header,
.page-header {
    background: rgba(7, 20, 47, 0.68);
    color: white;
    padding: 56px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

header h1,
.page-header h1 {
    font-size: clamp(36px, 5vw, 62px);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

header p,
.page-header p {
    color: var(--text-muted);
    font-size: 18px;
}

/* LAYOUT */

.container {
    width: min(1120px, 92%);
    margin: 44px auto;
}

.section-title {
    margin-bottom: 20px;
    font-size: 32px;
    color: white;
}

/* CARD */

.post,
.intro-text {
    background: rgba(248, 250, 252, 0.98);
    color: var(--text-dark);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.4);
}

.post h2 {
    color: var(--text-dark);
    margin-bottom: 18px;
    font-size: 32px;
}

.post p {
    margin-bottom: 18px;
    line-height: 1.8;
    font-size: 17px;
}

.post small {
    color: #64748b;
}

/* FORM */

form {
    margin-top: 20px;
}

input,
textarea {
    width: 100%;
    padding: 17px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    border: 1px solid #c7d2fe;
    font-size: 16px;
    outline: 2px solid transparent;
    outline-offset: 3px;
    transition: var(--transition);
    background: white;
}

input:focus,
textarea:focus {
    border-color: var(--color-primary-hover);
    outline-color: rgba(56, 189, 248, 0.35);
}

textarea {
    resize: vertical;
}

/* BUTTON */

button {
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    transition: var(--transition);
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(14, 165, 233, 0.34);
}

/* LINKS */

a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
}

a:hover {
    color: #0f172a;
}

/* DASHBOARD */

.dashboard-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 22px 0;
}

.dashboard-links .post {
    flex: 1;
    min-width: 220px;
}

/* ABOUT PAGE */

.about-card {
    background: rgba(248, 250, 252, 0.98);
    color: var(--text-dark);
    border-radius: 32px;
    padding: 42px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.5);
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 270px;
    height: 270px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    border: 7px solid #1e3a8a;
    box-shadow:
        0 0 0 10px rgba(56, 189, 248, 0.12),
        0 20px 45px rgba(3, 7, 18, 0.28);
}

.about-label {
    display: inline-block;
    background: rgba(56, 189, 248, 0.12);
    color: #0369a1;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 14px;
}

.about-content h2 {
    font-size: clamp(36px, 5vw, 54px);
    color: #07142f;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.about-content h3 {
    color: #1e3a8a;
    margin-bottom: 22px;
    font-size: 20px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.85;
    margin-bottom: 16px;
    color: #334155;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.info-box {
    background: #f8fafc;
    border: 1px solid #dbeafe;
    padding: 16px;
    border-radius: 18px;
}

.info-box strong {
    display: block;
    color: #1e3a8a;
    margin-bottom: 6px;
}

.info-box span {
    color: #334155;
    font-size: 15px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.skills span {
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.22);
}

/* FOOTER */

.footer {
    width: 100%;
    background: rgba(7, 20, 47, 0.92);
    color: white;
    text-align: center;
    padding: 28px;
    margin-top: 70px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* RESPONSIVE */

@media(max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 18px;
        padding: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 18px;
    }

    .about-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

    .about-info-grid {
        grid-template-columns: 1fr;
    }

    .skills {
        justify-content: center;
    }

    .about-image img {
        width: 220px;
        height: 220px;
    }
}

@media(max-width: 600px) {
    .container {
        width: 94%;
        margin: 28px auto;
    }

    .post,
    .about-card {
        padding: 24px;
    }

    .post h2 {
        font-size: 26px;
    }

    header,
    .page-header {
        padding: 42px 18px;
    }
}
/* PROFILE IMAGE FIX - Chrome/Opera uyumluluk */

.about-card .about-image {
    width: 100%;
    max-width: 300px;
    justify-self: center;
}

.about-card .about-image img {
    display: block;
    width: 270px !important;
    max-width: 270px !important;
    height: 270px !important;
    max-height: 270px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
}

@media(max-width: 900px) {
    .about-card .about-image img {
        width: 220px !important;
        max-width: 220px !important;
        height: 220px !important;
        max-height: 220px !important;
    }
}
/* PROFESSIONAL NAVBAR UPDATE */

.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 24px;
}

.nav-links a.active {
    color: var(--color-primary);
}

.nav-links a.active::after {
    transform: scaleX(1);
}

/* MOBILE NAVBAR */

@media(max-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(7, 20, 47, 0.98);
        padding: 20px;
        border-radius: 18px;
        margin-top: 18px;
    }

    .nav-links.show {
        display: flex;
    }
}
/* PREMIUM HOME PAGE */

.hero-section {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 20px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.22), transparent 35%),
        linear-gradient(135deg, #07142f, #1e3a8a);
}

.hero-content {
    max-width: 900px;
}

.hero-label {
    display: inline-block;
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    margin-bottom: 22px;
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.hero-content h1 {
    font-size: clamp(42px, 7vw, 76px);
    color: white;
    margin-bottom: 22px;
    letter-spacing: -2px;
}

.hero-content p {
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1.8;
    max-width: 760px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-buttons a {
    background: white;
    color: #0f172a;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(0,0,0,0.22);
}

.hero-buttons a:hover {
    background: #38bdf8;
    color: white;
    transform: translateY(-2px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 42px;
}

.feature-card {
    background: rgba(248, 250, 252, 0.98);
    color: #0f172a;
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.45);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1e3a8a;
}

.feature-card p {
    color: #334155;
    line-height: 1.7;
}

@media(max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 56px 18px;
    }

    .hero-content p {
        font-size: 17px;
    }
}
/* PREMIUM POST CARDS */

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
    color: white;
    font-weight: 900;
}

.post {
    background: rgba(248, 250, 252, 0.98);
    border-radius: 28px;
    padding: 36px;
    margin-bottom: 30px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25),
        0 2px 10px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.4);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.post:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 45px rgba(0,0,0,0.32),
        0 8px 18px rgba(0,0,0,0.15);
}

.post h2 {
    color: #0f172a;
    font-size: 34px;
    margin-bottom: 18px;
}

.post p {
    color: #334155;
    font-size: 18px;
    line-height: 1.9;
    margin-bottom: 22px;
}

.post small {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(59,130,246,0.1);
    color: #2563eb;
    font-weight: 700;
}

/* FORM IMPROVEMENTS */

form {
    background: rgba(248,250,252,0.98);
    padding: 36px;
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

input,
textarea {
    background: white;
    border: 1px solid #cbd5e1;
    transition: 0.25s ease;
}

input:focus,
textarea:focus {
    outline: 3px solid rgba(56,189,248,0.3);
    border-color: #38bdf8;
}

button {
    border: none;
    cursor: pointer;
}
/* AI CHATBOT FINAL */

.chatbot-button {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    width: 66px !important;
    height: 66px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #38bdf8, #2563eb) !important;
    color: white !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.55) !important;
}

.chatbot-window {
    position: fixed !important;
    right: 24px !important;
    bottom: 105px !important;
    width: 370px !important;
    height: 500px !important;
    max-width: calc(100vw - 32px) !important;
    max-height: 75vh !important;
    background: white !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    display: none !important;
    flex-direction: column !important;
    z-index: 999998 !important;
    box-shadow: 0 24px 70px rgba(0,0,0,0.38) !important;
}

.chatbot-window.show {
    display: flex !important;
}

.chatbot-header {
    background: linear-gradient(135deg, #07142f, #1e3a8a) !important;
    color: white !important;
    padding: 16px 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.chatbot-close {
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 22px !important;
    cursor: pointer !important;
}

.chatbot-messages {
    flex: 1 !important;
    padding: 16px !important;
    overflow-y: auto !important;
    background: #f8fafc !important;
}

.bot-message,
.user-message {
    display: block !important;
    width: fit-content !important;
    max-width: 82% !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #0f172a !important;
}

.bot-message {
    background: #e0f2fe !important;
    margin-right: auto !important;
}

.user-message {
    background: #1e3a8a !important;
    color: white !important;
    margin-left: auto !important;
}

.chatbot-input-area {
    display: flex !important;
    gap: 8px !important;
    padding: 12px !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
}

.chatbot-input-area input {
    flex: 1 !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
}

.chatbot-input-area button {
    padding: 12px 18px !important;
    border-radius: 14px !important;
    border: none !important;
    background: #2563eb !important;
    color: white !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    .chatbot-button {
        width: 58px !important;
        height: 58px !important;
        right: 16px !important;
        bottom: 16px !important;
        font-size: 19px !important;
    }

    .chatbot-window {
        right: 10px !important;
        bottom: 84px !important;
        width: calc(100vw - 20px) !important;
        height: 70vh !important;
        max-height: 70vh !important;
        border-radius: 20px !important;
    }

    .chatbot-input-area {
        padding: 10px !important;
    }

    .chatbot-input-area button {
        padding: 12px 14px !important;
    }
}