/* ---------- FONTS ---------- */
@font-face {
  font-family: 'Klavika';
  src: url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-medium-webfont.woff2') format('woff2'),
       url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-medium-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Klavika';
  src: url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-regular-italic-webfont.woff2') format('woff2'),
       url('https://xexanterxcin.github.io/PC-LEGEND/Font/klavika-regular-italic-webfont.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}


/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: transparent !important;
    width: 100%;
    font-family: Klavika, sans-serif !important;
    overflow-x: hidden;
}

/* ===== BOOTSTRAP OVERRIDE ===== */
a {
    color: inherit !important;
    text-decoration: none !important;
}

.container-fluid, .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#header-list-menu {
    display: flex !important;
    font-family: Klavika !important;
    font-size: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.download-cv, .contact-submit {
    background-color: #ff6000 !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-family: Klavika !important;
    border-radius: 22px !important;
    border: 0 !important;
    padding: 5px 20px !important;
    cursor: pointer !important;
    transition: 0.5s !important;
}

.download-cv:hover, .contact-submit:hover {
    background-color: #ffffff !important;
    color: #ff6000 !important;
    box-shadow: 0px 0px 10px rgb(255, 115, 0) !important;
}

.contact-input {
    text-align: center !important;
    width: 100% !important;
    font-family: Klavika !important;
    font-size: 16px !important;
    padding: 10px !important;
    border-radius: 8px !important;
    border: 1.5px solid rgb(255, 94, 0) !important;
    outline: none !important;
    margin-bottom: 20px !important;
    background-color: transparent !important;
    backdrop-filter: blur(7px) !important;
    color: #ffffff !important;
}

/* ===== GALAXY BACKGROUND ===== */
#galaxy-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 30% 40%, #1a0a05, #080302 90%);
}

#galaxy-canvas {
    display: block;
    width: 100vw;
    height: 100vh;
    background: transparent;
}

/* Make all content appear above the background */
.header,
#home-page,
#about-page,
#skills-page,
#work-page,
#contact-page,
.body1 {
    position: relative;
    z-index: 1;
}

.home-page-left,
.about-text,
.skill-box,
.contact-container {
    padding: 20px;
}

/* ===== HEADER ===== */
.header {
    z-index: 100;
    position: fixed;
    top: 0px;
    left: 0px;
    height: 80px;
    width: 100%;
    margin: 0px;
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0px 5px 15px rgba(255, 115, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 56px;
    width: 56px;
    border-radius: 50%;
}

.brand-name {
    font-family: Klavika, sans-serif;
    font-size: 38px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.call-me {
    color: #ffffff;
}

.yahya {
    color: #ff6000;
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

#header-list {
    display: flex;
    align-items: center;
}

#header-list-menu {
    display: flex;
    list-style: none;
    gap: 10px;
    margin: 0;
    padding: 0;
}

#header-list-menu li {
    margin: 0;
}

#header-list-menu li a {
    padding: 10px 15px;
    font-size: 18px;
    white-space: nowrap;
    position: relative;
    color: #999999 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

#header-list-menu li a:hover {
    color: #ffffff !important;
}

/* Hover state - line appears with smooth transition */
#header-list-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2.88px;
    background-color: #ff6000;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header-list-menu li a:hover::after {
    width: 100%;
}

/* Active state - line stays visible */
#header-list-menu li a.active {
    color: #ff6000 !important;
}

#header-list-menu li a.active::after {
    width: 100%;
    transition: width 0.3s ease;
}

/* Remove any other active styles that might cause issues */
.download-cv.active::after {
    display: none !important;
}
/* ===== HOME PAGE ===== */
#home-page {
    background-color: transparent !important;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    font-family: Klavika;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 50px;
}

.home-page-left {
    flex: 1;
    padding: 30px 50px 30px 100px;
}

.home-page-right {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.home-text {
    width: 100%;
    padding: 0;
}

.hello {
    font-size: 48px;
}

.name {
    font-size: 72px;
    white-space: nowrap;
}

.who {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.who-1 {
    font-size: 32px;
    margin: 0;
}

.who-2 {
    font-size: 32px;
    color: #ff6000;
    margin: 0;
}

.bio {
    font-size: 20px;
    margin-top: 10px;
    line-height: 1.6;
}

.a-1 {
    font-size: 28px;
    padding: 10px 0;
    color: #ff6000;
}

.social-media-button {
    padding: 20px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.fb-button, .gt-button, .dc-button, .ln-button {
    height: 24px;
    width: 24px;
    transition: transform 0.3s;
}

.fb-button:hover, .gt-button:hover, .dc-button:hover, .ln-button:hover {
    transform: scale(1.2);
}

.download-cv {
    background-color: #ff6000;
    color: #ffffff;
    font-size: 24px;
    font-family: Klavika;
    border-radius: 22px;
    border: 0;
    padding: 5px 20px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.5s;
}

.download-cv:hover {
    background-color: #ffffff;
    color: #ff6000;
    box-shadow: 0px 0px 10px rgb(255, 115, 0);
}

.my-image-1 {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===== ABOUT PAGE ===== */
#about-page {
    background-color: transparent !important;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    font-family: Klavika;
    padding: 100px 0 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}
.about-headline,
.skills-headline,
.work-headline,
.contact-headline {
    font-size: 42px;
    color: #ff6000;
    text-align: center;
    width: 100%;
    padding: 0 0 5px; /* Reduced from 40px */
    cursor: default;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Underline using ::after - placed below the text */
.about-headline::after,
.skills-headline::after,
.work-headline::after,
.contact-headline::after {
    content: '';
    height: 4px;
    background-color: #ff6000;
    display: block;
    border-radius: 2px;
    margin-top: -8px; /* Reduced from 8px */
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* Individual underline widths */
.about-headline::after {
    width: 109px;
}

.skills-headline::after {
    width: 95px;
}

.work-headline::after {
    width: 98px;
}

.contact-headline::after {
    width: 133px;
}

.about-content-wrapper {
    display: flex;
    width: 100%;
    padding: 0 50px;
    gap: 50px;
    align-items: flex-start;
}

.my-image-2 {
    flex: 0 0 200px;
    height: auto;
    width: 200px;
    object-fit: cover;
}

.about-text {
    flex: 1;
    padding: 0;
}

.a-3 {
    padding: 20px 0 5px;
    color: #ff6000;
    font-size: 24px;
}

.a-4 {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== SKILLS PAGE ===== */
#skills-page {
    background-color: transparent !important;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    font-family: Klavika;
    padding: 80px 0 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

/* Skills Wrapper - Flex container */
.skills-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    padding: 0 30px;
    gap: 40px;
    align-items: center; /* Changed from flex-start to center */
}

/* Left side - Skill Categories */
.skills-left {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

/* Skill Category Card */
.skill-category {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px 25px 25px;
    border: 1px solid rgba(255, 96, 0, 0.08);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(255, 96, 0, 0.2);
    box-shadow: 0 8px 30px rgba(255, 96, 0, 0.05);
    transform: translateY(-2px);
}

/* Category Title */
.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #ff6000;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 96, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    font-size: 20px;
}

/* Skill Items Container */
.skill-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Individual Skill Item */
.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.skill-item:last-child {
    border-bottom: none;
}

.skill-item .skill-name {
    font-size: 15px;
    color: #ddd;
    font-weight: 400;
}

/* Skill Level Badges */
.skill-level {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-level.expert {
    background: rgba(255, 96, 0, 0.25);
    color: #ff6000;
    border: 1px solid rgba(255, 96, 0, 0.3);
}

.skill-level.advanced {
    background: rgba(255, 96, 0, 0.12);
    color: #ffaa66;
    border: 1px solid rgba(255, 96, 0, 0.15);
}

.skill-level.intermediate {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Right side - Image */
.skills-right {
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    align-self: center; /* Add this to center vertically */
}

.skill-image {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    border: 2px solid rgba(255, 96, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.skill-image:hover {
    transform: scale(1.02);
    border-color: rgba(255, 96, 0, 0.3);
    box-shadow: 0 15px 50px rgba(255, 96, 0, 0.1);
}


/* ===== BLOG / WORK SECTION ===== */
#work-page {
    background-color: transparent !important;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    font-family: Klavika;
    padding: 80px 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Blog Posts Grid - 3 columns */
.work-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    min-height: 400px;
}

/* Blog Card */
.blog-card {
    background-color: rgba(255, 123, 0, 0.1) !important;
    backdrop-filter: blur(5px);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 40px rgba(255, 96, 0, 0.15);
    border-color: rgba(255, 96, 0, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1a1a1a;
    flex-shrink: 0;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px 25px 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #ff6000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    background: rgba(255, 96, 0, 0.1);
    padding: 3px 12px;
    border-radius: 20px;
    align-self: flex-start;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #ffffff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-description {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.blog-card-meta .date {
    color: #888;
}

.blog-card-meta .date i {
    margin-right: 5px;
}

.blog-card-meta .read-time {
    color: #ff6000;
    font-weight: 500;
}

.blog-card-meta .read-time i {
    margin-right: 5px;
}

/* Pagination */
/* ===== PAGINATION - CUSTOM STYLES ===== */
.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0 20px;
}

.pagination {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li {
    display: inline-block;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(42, 42, 42, 0.7);
    backdrop-filter: blur(8px);
    color: #aaa;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-family: Klavika, sans-serif;
    letter-spacing: 0.3px;
}

/* Hover effect */
.pagination li a:hover {
    background: rgba(255, 96, 0, 0.2);
    color: #ffffff;
    border-color: rgba(255, 96, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 96, 0, 0.15);
}

/* Active page - using <a> tag */
.pagination li.active a {
    background: linear-gradient(135deg, #ff6000, #e05500) !important;
    color: #ffffff !important;
    border-color: #ff6000 !important;
    box-shadow: 0 4px 25px rgba(255, 96, 0, 0.3) !important;
    transform: scale(1.05) !important;
    cursor: default !important;
}

/* Also style active span (if any) */
.pagination li.active span {
    background: linear-gradient(135deg, #ff6000, #e05500) !important;
    color: #ffffff !important;
    border-color: #ff6000 !important;
    box-shadow: 0 4px 25px rgba(255, 96, 0, 0.3) !important;
    transform: scale(1.05) !important;
    cursor: default !important;
}

/* Disabled (Previous/Next when not available) */
.pagination li.disabled span {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Previous/Next buttons special style */
.pagination li:first-child a,
.pagination li:last-child a {
    background: rgba(255, 96, 0, 0.1);
    border-color: rgba(255, 96, 0, 0.15);
    color: #ff6000;
    font-weight: 600;
    padding: 0 20px;
    gap: 6px;
}

.pagination li:first-child a:hover,
.pagination li:last-child a:hover {
    background: rgba(255, 96, 0, 0.25);
    border-color: rgba(255, 96, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 96, 0, 0.2);
}

.pagination li:first-child.disabled span,
.pagination li:last-child.disabled span {
    background: rgba(42, 42, 42, 0.4);
    color: #666;
    border-color: rgba(255, 255, 255, 0.03);
    opacity: 0.5;
}

/* Pagination icons */
.pagination li a i {
    font-size: 14px;
    margin: 0 4px;
}

/* Loading State */
.blog-loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    grid-column: 1 / -1;
}

.blog-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 96, 0, 0.1);
    border-radius: 50%;
    border-top-color: #ff6000;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.blog-empty i {
    font-size: 56px;
    color: #333;
    margin-bottom: 15px;
}

.blog-empty h3 {
    color: #888;
    margin-bottom: 8px;
}

/* Error State */
.blog-error {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
    grid-column: 1 / -1;
}

.blog-error i {
    font-size: 56px;
    margin-bottom: 15px;
}

.blog-error .btn-retry {
    background: #ff6000;
    border: none;
    color: #fff;
    padding: 10px 30px;
    border-radius: 10px;
    margin-top: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.blog-error .btn-retry:hover {
    background: #e05500;
}

/* ===== CONTACT PAGE ===== */
#contact-page {
    background-color: transparent !important;
    color: #ffffff;
    min-height: 100vh;
    width: 100%;
    font-family: Klavika;
    padding: 80px 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    width: 70%;
    max-width: 700px;
    padding: 20px;
}

.contact-input {
    text-align: center;
    width: 100%;
    font-family: Klavika;
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 1.5px solid rgb(255, 94, 0);
    outline: none;
    margin-bottom: 20px;
    background-color: transparent;
    color: #ffffff;
}

.contact-input::placeholder {
    color: #888;
}

.contact-submit {
    background-color: #ff6000;
    color: #ffffff;
    font-size: 24px;
    font-family: Klavika;
    border-radius: 12px;
    border: 0;
    padding: 5px 20px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: 0.5s;
}

.contact-submit:hover {
    background-color: #ffffff;
    color: #ff6000;
    box-shadow: 0px 0px 10px rgb(255, 115, 0);
}

/* ===== FOOTER ===== */
.body1 {
    width: 100%;
    display: grid;
    grid-template-rows: 1fr 10rem auto;
    grid-template-areas: "main" "." "footer";
    overflow: hidden;
    min-height: 300px;
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

.body1 .footer {
    z-index: 1;
    display: grid;
    position: relative;
    grid-area: footer;
    min-height: 12rem;
}

.body1 .footer .bubbles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1rem;
    background: rgb(255, 123, 0);
    filter: url("#blob");
}

.body1 .footer .bubbles .bubble {
    position: absolute;
    left: var(--position, 50%);
    background: rgb(255, 123, 0);
    border-radius: 100%;
    animation: bubble-size var(--time, 4s) ease-in infinite var(--delay, 0s), 
               bubble-move var(--time, 4s) ease-in infinite var(--delay, 0s);
    transform: translate(-50%, 100%);
}

.content {
    padding: 2rem 1rem 1.5rem;
    background: rgb(255, 123, 0);
    z-index: 100;
    font-family: Klavika;
    font-size: 32px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.follow-text {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 1px;
}

.social-footer-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icon {
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    list-style: none;
    flex-wrap: nowrap; /* Force icons to stay in one line */
}

.social-icon li {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking */
}

.icon {
    height: 42px;
    width: 42px;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: block;
    filter: brightness(0) invert(1);
}

.icon:hover {
    transform: scale(1.2);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes bubble-size {
    0%, 75% {
        width: var(--size, 4rem);
        height: var(--size, 4rem);
    }
    100% {
        width: 0rem;
        height: 0rem;
    }
}

@keyframes bubble-move {
    0% {
        bottom: -4rem;
    }
    100% {
        bottom: var(--distance, 10rem);
    }
}


/* ======================================== */
/* ===== RESPONSIVE BREAKPOINTS ===== */
/* ======================================== */

/* ===== LARGE DESKTOP (1440px+) ===== */
@media screen and (min-width: 1440px) {
    .home-page-left {
        padding: 50px 100px 50px 150px;
    }
    
    .home-page-right {
        flex: 0 0 35%;
    }
    
    .my-image-1 {
        height: 350px;
        width: 350px;
    }
    
    .name {
        font-size: 82px;
    }
    
    .work-container {
        max-width: 1600px;
    }
}

/* ===== DESKTOP (1280px - 1439px) ===== */
@media screen and (max-width: 1439px) and (min-width: 1280px) {
    .home-page-left {
        padding: 40px 60px 40px 100px;
    }
    
}

/* ===== LAPTOP (1024px - 1279px) ===== */
@media screen and (max-width: 1279px) and (min-width: 1024px) {

    .brand-name {
        font-size: 28px;
    }
    
    .logo img {
        height: 45px;
        width: 45px;
    }
    
    .header {
        height: 70px;
        padding: 0 15px;
    }

    .home-page-left {
        padding: 30px 40px 30px 60px;
    }
    
    .home-page-right {
        flex: 0 0 38%;
    }
    
    .my-image-1 {
        height: 250px;
        width: 250px;
    }
    
    .name {
        font-size: 60px;
        white-space: normal;
    }
    
    .hello {
        font-size: 40px;
    }
    
    .who-1, .who-2 {
        font-size: 28px;
    }
    
    .bio {
        font-size: 18px;
    }
    
    .a-1 {
        font-size: 24px;
    }
}


@media screen and (max-width: 1200px) {
    .skills-left {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .skills-right {
        flex: 0 0 220px;
    }
    
    .skill-image {
        max-width: 220px;
    }
}

@media screen and (max-width: 1024px) {
    .work-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .content {
        padding: 1.8rem 1rem 1.2rem;
    }
    
    .follow-text {
        font-size: 26px;
    }
    
    .icon {
        height: 38px;
        width: 38px;
    }
    
    .social-icon {
        gap: 20px;
    }
}


/* ===== TABLET (769px - 1023px) ===== */
@media screen and (max-width: 1023px) and (min-width: 769px) {
    /* Header */
    .header {
        height: 70px;
        padding: 0 15px;
    }
    
    .logo img {
        height: 45px;
        width: 45px;
    }
    
    #header-list-menu li a {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .contact-button {
        margin-right: 10px !important;
    }
    
    /* Home */
    #home-page {
        flex-direction: column-reverse;
        padding-top: 70px;
        min-height: auto;
    }
    
    .home-page-left {
        padding: 20px 30px;
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .home-page-right {
        flex: none;
        width: 100%;
    }
    
    .my-image-1 {
        height: 200px;
        width: 200px;
    }
    
    .name {
        font-size: 48px;
        white-space: normal;
    }
    
    .hello {
        font-size: 32px;
    }
    
    .who-1, .who-2 {
        font-size: 24px;
    }
    
    .who {
        justify-content: center;
    }

    .bio {
        font-size: 16px;
    }
    
    .a-1 {
        font-size: 20px;
    }
    
    .social-media-button {
        justify-content: center;
    }
    
    .cv-button {
        text-align: center;
    }
    
    .download-cv {
        font-size: 20px;
        padding: 5px 15px;
    }
    
    /* About */
    #about-page {
        padding: 70px 0 30px;
    }
    
    .about-headline {
        font-size: 36px;
    }
    
    .about-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0 30px;
        gap: 20px;
    }
    
    .my-image-2 {
        flex: 0 0 150px;
        height: auto;
        width: 150px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .a-3 {
        font-size: 22px;
        text-align: center;
    }
    
    .a-4 {
        font-size: 16px;
        text-align: center;
    }
    
    /* Skills */

    
    /* Contact */
    #contact-page {
        padding: 60px 0 30px;
    }
    
    .contact-headline {
        font-size: 36px;
    }
    
    .contact-container {
        width: 85%;
        padding: 10px;
    }
    
    .contact-submit {
        font-size: 20px;
        padding: 5px 15px;
    }
    
    /* Footer */
}

@media screen and (max-width: 992px) {
    .skills-wrapper {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0 20px;
    }
    
    .skills-left {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-right {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        padding: 10px 0 20px;
    }
    
    .skill-image {
        max-width: 200px;
    }
}


/* ===== MOBILE (481px - 768px) ===== */
@media screen and (max-width: 768px) and (min-width: 481px) {
    /* Header */
    .header {
        height: 60px;
        padding: 0 10px;
    }
    
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    #header-list-menu li a {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    #header-list-menu {
        gap: 5px;
    }
    
    .contact-button {
        margin-right: 5px !important;
    }
    
    /* Home */
    #home-page {
        flex-direction: column-reverse;
        padding-top: 60px;
        min-height: auto;
        padding-bottom: 30px;
    }
    
    .home-page-left {
        padding: 15px 20px;
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .home-page-right {
        flex: none;
        width: 100%;
    }
    
    .my-image-1 {
        height: 160px;
        width: 160px;
    }
    
    .name {
        font-size: 36px;
        white-space: normal;
    }
    
    .hello {
        font-size: 28px;
    }
    
    .who-1, .who-2 {
        font-size: 20px;
    }
    
    .who {
        justify-content: center;
    }

    .bio {
        font-size: 15px;
    }
    
    .a-1 {
        font-size: 18px;
    }
    
    .social-media-button {
        justify-content: center;
        gap: 15px;
    }
    
    .fb-button, .gt-button, .dc-button, .ln-button {
        height: 20px;
        width: 20px;
    }
    
    .cv-button {
        text-align: center;
    }
    
    .download-cv {
        font-size: 18px;
        padding: 5px 15px;
    }
    
    /* About */
    #about-page {
        padding: 60px 0 20px;
    }
    
    .about-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 15px;
    }
    
    .my-image-2 {
        flex: 0 0 120px;
        height: auto;
        width: 120px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .a-3 {
        font-size: 20px;
        text-align: center;
    }
    
    .a-4 {
        font-size: 15px;
        text-align: center;
    }
    
    /* Skills */


    /* Contact */
    #contact-page {
        padding: 50px 0 20px;
    }
    
    .contact-container {
        width: 90%;
        padding: 10px;
    }
    
    .contact-input {
        font-size: 15px;
        padding: 8px;
        margin-bottom: 15px;
    }
    
    .contact-submit {
        font-size: 18px;
        padding: 5px 15px;
        border-radius: 10px;
    }
}

@media screen and (max-width: 768px) {
    .brand-name {
        font-size: 26px;
    }
    
    .logo img {
        height: 40px;
        width: 40px;
    }
    
    .header {
        height: 60px;
        padding: 0 10px;
    }
    
    .header-left {
        gap: 10px;
    }

    .about-headline,
    .skills-headline,
    .work-headline,
    .contact-headline {
        font-size: 32px;
    }
    
    .about-headline::after {
        width: 80px;
        height: 3px;
        margin-top: -8px;
    }
    
    .skills-headline::after {
        width: 75px;
        height: 3px;
        margin-top: -8px;
    }
    
    .work-headline::after {
        width: 78px;
        height: 3px;
        margin-top: -8px;
    }
    
    .contact-headline::after {
        width: 100px;
        height: 3px;
        margin-top: -8px;
    }
    
    .skills-wrapper {
        padding: 0 15px;
        gap: 25px;
    }
    
    .skills-left {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .skill-category {
        padding: 16px 18px 20px;
    }
    
    .category-title {
        font-size: 16px;
    }
    
    .skill-item .skill-name {
        font-size: 14px;
    }
    
    .skill-level {
        font-size: 11px;
        padding: 2px 10px;
    }
    
    .skills-right {
        max-width: 220px;
    }
    
    .skill-image {
        max-width: 180px;
    }

    .work-container {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-title {
        font-size: 18px;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .pagination li:first-child a,
    .pagination li:last-child a {
        padding: 0 14px;
        font-size: 13px;
    }
        .blog-modal-content {
        padding: 25px 20px;
        width: 95%;
        max-height: 90vh;
    }
    
    .blog-modal-body {
        max-height: calc(90vh - 50px);
    }
    
    .modal-post-title {
        font-size: 24px;
    }
    
    .modal-post-description {
        font-size: 16px;
    }
    
    .modal-post-image {
        max-height: 250px;
    }
    
    .blog-modal-close {
        top: 10px;
        right: 12px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    /* Footer */
     .body1 {
        min-height: 250px;
        margin-top: 30px;
    }
    
    .body1 .footer {
        min-height: 10rem;
    }
    
    .body1 {
        min-height: 250px;
        margin-top: 30px;
    }
    
    .body1 .footer {
        min-height: 10rem;
    }
    
    .content {
        padding: 1.5rem 0.8rem 1rem;
        font-size: 24px;
    }
    
    .follow-text {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .social-icon {
        gap: 18px;
        max-width: 350px;
    }
    
    .icon {
        height: 34px;
        width: 34px;
    }
}

/* ===== MOBILE MENU (max-width: 540px) ===== */
@media screen and (max-width: 540px) {
    /* Show hamburger */
    .hamburger {
        display: flex;
    }
    
    /* Hide menu by default on mobile - Glassmorphism effect */
    #header-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        /* Glassmorphism effect */
        background: rgba(33, 33, 33, 0.75) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        /* Border for glass effect */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        padding: 80px 30px 30px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 
            -10px 0 40px rgba(0, 0, 0, 0.5),
            inset 0 0 30px rgba(255, 96, 0, 0.05);
        overflow-y: auto;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-start;
        z-index: 100;
    }
    
    #header-list.active {
        right: 0;
    }
    
    #header-list-menu {
        flex-direction: column;
        width: 100%;
        gap: 5px;
        padding-top: 10px;
    }
    
    #header-list-menu li {
        width: 100%;
        margin: 5px 0 !important;
        text-align: left;
    }
    
    #header-list-menu li a {
        display: block;
        padding: 14px 20px;
        font-size: 18px;
        border-radius: 12px;
        transition: all 0.3s ease;
        white-space: normal;
        color: rgba(255, 255, 255, 0.8) !important;
        font-weight: 500;
        letter-spacing: 0.5px;
        position: relative;
        overflow: hidden;
    }
    
    /* Hover effect with glassmorphism */
    #header-list-menu li a:hover {
        background: rgba(255, 96, 0, 0.15);
        color: #ffffff !important;
        transform: translateX(5px);
    }
    
    #header-list-menu li a::after {
        display: none !important;
    }
    
    /* Active menu item - glass style */
    #header-list-menu li a.active {
        background: rgba(255, 96, 0, 0.25) !important;
        color: #ff6000 !important;
        border: 1px solid rgba(255, 96, 0, 0.3);
        box-shadow: 0 0 20px rgba(255, 96, 0, 0.1);
        transform: translateX(5px);
    }
    
    /* Add a subtle glow effect on active item */
    #header-list-menu li a.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: #ff6000;
        border-radius: 0 4px 4px 0;
        box-shadow: 0 0 15px rgba(255, 96, 0, 0.5);
    }
    
    /* Brand name bigger on mobile */
    .brand-name {
        font-size: 32px;
        gap: 8px;
    }
    
    .call-me {
        font-size: 32px;
    }
    
    .yahya {
        font-size: 32px;
    }
    
    .header {
        height: 60px;
        padding: 0 15px;
    }
    
    .logo img {
        height: 45px;
        width: 45px;
    }
    
    /* Glassmorphism Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 99;
        animation: overlayFade 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    @keyframes overlayFade {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Smooth slide animation for menu */
    @keyframes slideIn {
        from {
            right: -100%;
            opacity: 0;
        }
        to {
            right: 0;
            opacity: 1;
        }
    }
    
    @keyframes slideOut {
        from {
            right: 0;
            opacity: 1;
        }
        to {
            right: -100%;
            opacity: 0;
        }
    }

    /*Footer*/
     .body1 {
        min-height: 200px;
        margin-top: 20px;
    }
    
    .body1 .footer {
        min-height: 8rem;
    }
    
    .body1 {
        min-height: 200px;
        margin-top: 20px;
    }
    
    .body1 .footer {
        min-height: 8rem;
    }
    
    .content {
        padding: 1.2rem 0.5rem 0.8rem;
        font-size: 20px;
    }
    
    .follow-text {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .social-icon {
        gap: 12px;
        max-width: 280px;
        justify-content: center;
    }
    
    .icon {
        height: 30px;
        width: 30px;
    }
    
    .social-icon li {
        margin: 0 !important;
    }
}

/* ===== VERY SMALL PHONES (320px - 480px) ===== */
@media screen and (max-width: 480px) {
    /* Header */
    .brand-name {
        font-size: 28px;
    }
    
    .logo img {
        height: 35px;
        width: 35px;
    }
    
    .header {
        height: 55px;
        padding: 0 8px;
    }
    
    .header-left {
        gap: 8px;
    }
    
    #header-list-menu li a {
        font-size: 11px;
        padding: 4px 5px;
    }
    
    #header-list-menu {
        gap: 2px;
    }
    
    #header-list-menu li {
        margin: 0 !important;
    }
    
    .contact-button {
        margin-right: 0 !important;
    }
    
    /* Home */
    #home-page {
        flex-direction: column-reverse;
        padding-top: 55px;
        min-height: auto;
        padding-bottom: 20px;
    }
    
    .home-page-left {
        padding: 10px 12px;
        flex: none;
        width: 100%;
        text-align: center;
    }
    
    .home-page-right {
        flex: none;
        width: 100%;
    }
    
    .my-image-1 {
        height: 120px;
        width: 120px;
    }
    
    .home-text {
        padding: 0;
    }
    
    .name {
        font-size: 28px;
        white-space: normal;
    }
    
    .hello {
        font-size: 22px;
    }
    
    .who-1, .who-2 {
        font-size: 18px;
    }
    
    .who {
        justify-content: center;
    }
    
    .bio {
        font-size: 13px;
        margin-top: 5px;
    }
    
    .a-1 {
        font-size: 16px;
        padding: 5px 0;
    }
    
    .social-media-button {
        justify-content: center;
        padding: 10px 0;
        gap: 12px;
    }
    
    .fb-button, .gt-button, .dc-button, .ln-button {
        height: 18px;
        width: 18px;
    }
    
    .cv-button {
        text-align: center;
    }
    
    .download-cv {
        font-size: 16px;
        padding: 4px 12px;
        border-radius: 18px;
    }
    
    /* About */
    #about-page {
        padding: 50px 0 15px;
    }
    
    .about-headline,
    .skills-headline,
    .work-headline,
    .contact-headline {
        font-size: 28px;
    }
    
    .about-headline::after {
        width: 72px;
        height: 3px;
    }
    
    .skills-headline::after {
        width: 63px;
        height: 3px;
    }
    
    .work-headline::after {
        width: 62px;
        height: 3px;
    }
    
    .contact-headline::after {
        width: 87px;
        height: 3px;
    }
    
    .about-content-wrapper {
        flex-direction: column;
        align-items: center;
        padding: 0 12px;
        gap: 10px;
    }
    
    .my-image-2 {
        flex: 0 0 100px;
        height: auto;
        width: 100px;
    }
    
    .about-text {
        text-align: center;
    }
    
    .a-3 {
        font-size: 18px;
        text-align: center;
        padding: 5px 0;
    }
    
    .a-4 {
        font-size: 14px;
        text-align: center;
        margin-bottom: 10px;
        line-height: 1.5;
    }
    
    /* Skills */
    .skills-wrapper {
        padding: 0 10px;
        gap: 20px;
    }
    
    .skill-category {
        padding: 14px 14px 16px;
        border-radius: 12px;
    }
    
    .category-title {
        font-size: 14px;
        gap: 8px;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    .category-title i {
        font-size: 16px;
    }
    
    .skill-item {
        padding: 5px 0;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .skill-item .skill-name {
        font-size: 13px;
    }
    
    .skill-level {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .skills-right {
        max-width: 180px;
        padding: 5px 0 15px;
    }
    
    .skill-image {
        max-width: 150px;
    }
    /*Work*/
    .work-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .blog-card-content {
        padding: 15px 18px 20px;
    }
    
    .blog-card-image {
        height: 150px;
    }
    
        .pagination {
        gap: 4px;
    }
    
    .pagination li a,
    .pagination li span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .pagination li:first-child a,
    .pagination li:last-child a {
        padding: 0 10px;
        font-size: 11px;
    }

    /* Contact */
    #contact-page {
        padding: 40px 0 15px;
        min-height: auto;
    }
    
    .contact-container {
        width: 95%;
        padding: 5px;
    }
    
    .contact-input {
        font-size: 13px;
        padding: 6px;
        margin-bottom: 12px;
        border-radius: 6px;
    }
    
    .contact-input::placeholder {
        font-size: 13px;
    }
    
    .contact-submit {
        font-size: 16px;
        padding: 4px 12px;
        border-radius: 8px;
    }
    
    /* Footer */
    .body1 {
        min-height: 180px;
        margin-top: 15px;
    }
    
    .body1 .footer {
        min-height: 7rem;
    }
    
    .body1 {
        min-height: 180px;
        margin-top: 15px;
    }
    
    .body1 .footer {
        min-height: 7rem;
    }
    
    .content {
        padding: 1rem 0.3rem 0.6rem;
        font-size: 18px;
    }
    
    .follow-text {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .social-icon {
        gap: 10px;
        max-width: 240px;
    }
    
    .icon {
        height: 26px;
        width: 26px;
    }
    
    .dc, .ins, .fb, .tw {
        margin: 0 4px !important;
    }
    
    .modal-post-title {
        font-size: 20px;
    }
    
    .modal-post-description {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .modal-post-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    .modal-post-image {
        max-height: 180px;
        border-radius: 12px;
    }
}


@media screen and (max-width: 380px) {
    .social-icon {
        gap: 6px;
        max-width: 200px;
    }
    
    .icon {
        height: 22px;
        width: 22px;
    }
    
    .follow-text {
        font-size: 14px;
    }
    
    .dc, .ins, .fb, .tw {
        margin: 0 2px !important;
    }
}


/* ===== EXTRA SMALL (under 320px) ===== */
@media screen and (max-width: 320px) {
    /* Header */
    .brand-name {
        font-size: 16px;
    }
    
    .logo img {
        height: 30px;
        width: 30px;
    }
    
    .header {
        height: 50px;
        padding: 0 5px;
    }
    
    .header-left {
        gap: 5px;
    }
    
    #header-list-menu li a {
        font-size: 10px;
        padding: 3px 4px;
    }
    
    /* Home */
    .name {
        font-size: 24px;
    }
    
    .hello {
        font-size: 18px;
    }
    
    .who-1, .who-2 {
        font-size: 15px;
    }
    
    .bio {
        font-size: 12px;
    }
    
    .a-1 {
        font-size: 14px;
    }
    
    .my-image-1 {
        height: 100px;
        width: 100px;
    }
    
    .download-cv {
        font-size: 14px;
        padding: 3px 10px;
    }
    
    /* About */
    .about-headline {
        font-size: 24px;
    }
    
    .my-image-2 {
        height: auto;
        width: 80px;
    }
    
    .a-3 {
        font-size: 16px;
    }
    
    .a-4 {
        font-size: 12px;
    }
    
    /* Skills */

    
    /* Contact */
    .contact-headline {
        font-size: 24px;
    }
    
    .contact-input {
        font-size: 12px;
        padding: 5px;
    }
    
    .contact-submit {
        font-size: 14px;
        padding: 3px 10px;
    }
    
    /* Footer */
    .body1 {
        min-height: 150px;
        margin-top: 10px;
    }
    
    .content {
        padding: 0.8rem 0.2rem 0.4rem;
        font-size: 16px;
    }
    
    .follow-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .social-icon {
        gap: 4px;
        max-width: 160px;
    }
    
    .icon {
        height: 18px;
        width: 18px;
    }
    
    .dc, .ins, .fb, .tw {
        margin: 0 1px !important;
    }
}

/* ===== FIX FOR SAFARI AND SOME BROWSERS ===== */
@supports (-webkit-touch-callout: none) {
    .header {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header, .body1 {
        display: none;
    }
    
    #home-page, #about-page, #skills-page, #work-page, #contact-page {
        min-height: auto;
        padding: 20px 0;
        page-break-inside: avoid;
    }
}

/* ======================================== */
/* ===== BLOG POST MODAL ===== */
/* ======================================== */

/* Modal Container */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: modalFadeIn 0.3s ease;
}

.blog-modal.active {
    display: flex;
}

/* Modal Overlay */
.blog-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Glassmorphism Modal Content */
.blog-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: rgba(33, 33, 33, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 96, 0, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 96, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 40px;
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Modal Body - Scrollable */
.blog-modal-body {
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    padding-right: 10px;
    color: #ffffff;
}

/* Custom Scrollbar for Modal */
.blog-modal-body::-webkit-scrollbar {
    width: 6px;
}

.blog-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.blog-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 96, 0, 0.4);
    border-radius: 10px;
}

.blog-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 96, 0, 0.6);
}

/* Modal Close Button */
.blog-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.blog-modal-close:hover {
    transform: rotate(90deg);
    color: #ff6000;
    background: rgba(255, 96, 0, 0.15);
}

/* Modal Content Styles */
.modal-post-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-post-category {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #ff6000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: rgba(255, 96, 0, 0.15);
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 96, 0, 0.1);
}

.modal-post-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.modal-post-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-post-meta i {
    color: #ff6000;
}

.modal-post-description {
    font-size: 18px;
    line-height: 1.8;
    color: #ddd;
    white-space: pre-wrap;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
