:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --bg-dark: #0f1624;
    --bg-card: #111a2b;
    --text-white: #ffffff;
    --text-gray: #a0a8b3;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-bg: linear-gradient(135deg, #0f1624 0%, #1c2940 100%);
    --cursor-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M4 2L4 26L10 20L15 30L19 28L14 18L24 18Z' fill='%2300d2ff' stroke='%2300182a' stroke-width='1'/></svg>") 2 2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d2ff, #00a8e8, #0088c9);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    cursor: var(--cursor-arrow), auto;
}

a,
button,
input,
select,
textarea,
.clickable,
.magnetic-button,
.nav-link,
.featured-project-card-new,
.premium-project-card,
.tool-card {
    cursor: pointer;
}

/* Enhanced Image Responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: var(--bg-dark);
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Header / Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 22, 36, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: min(1440px, calc(100vw - 16px));
    padding: 0 1.25rem;
}

/* ===== 2026 Portfolio Polish Overrides ===== */
html {
    scroll-padding-top: var(--header-offset, 160px);
}

body {
    overflow-x: hidden;
}

.header {
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.94) 0%, rgba(4, 10, 22, 0.72) 58%, transparent 100%) !important;
    border-bottom: 0 !important;
    padding: 1rem 0 0 !important;
    backdrop-filter: none !important;
}

.header .container {
    display: grid !important;
    justify-items: center !important;
    gap: 0.9rem !important;
    width: 100% !important;
    max-width: min(1400px, calc(100vw - 28px)) !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(127, 227, 255, 0.22);
    background: rgba(9, 18, 34, 0.88);
    box-shadow: 0 18px 50px rgba(3, 10, 24, 0.35);
    text-decoration: none;
    font-size: 0.92rem !important;
    letter-spacing: 1.6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 60px rgba(0, 210, 255, 0.18);
}

.navbar {
    position: relative;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0;
    justify-content: center !important;
}

.navbar ul {
    justify-content: center !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 0.5rem !important;
    padding: 0.7rem 0.85rem !important;
    border-radius: 999px !important;
    background: rgba(9, 18, 34, 0.86) !important;
    border: 1px solid rgba(127, 227, 255, 0.18);
    box-shadow: 0 24px 60px rgba(2, 8, 20, 0.42);
    backdrop-filter: blur(20px);
}

.navbar a {
    font-size: 0.72rem !important;
    padding: 0.62rem 0.86rem !important;
    border-radius: 999px !important;
    gap: 0.42rem !important;
    letter-spacing: 0.08em;
}

.navbar a:hover,
.navbar a.active {
    color: #06121f !important;
    background: linear-gradient(135deg, #7fe3ff 0%, #00d2ff 55%, #8eb8ff 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.28) !important;
    text-shadow: none !important;
}

.navbar-actions {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
}

.navbar-actions .cp-nav-launcher[hidden] {
    display: none !important;
}

.main-content {
    padding-top: calc(var(--header-offset, 160px) + 1rem) !important;
}

.section-content {
    display: block !important;
    opacity: 1 !important;
    min-height: auto !important;
    padding: clamp(4rem, 6vw, 6.5rem) 0 !important;
    scroll-margin-top: calc(var(--header-offset, 160px) + 10px);
}

.section-content.active-section {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
}

#home.section-content,
#home.active-section {
    display: flex !important;
    align-items: center;
    min-height: calc(100vh - var(--header-offset, 160px)) !important;
    padding-top: 1rem !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-linkedin {
    margin: 0 !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(127, 227, 255, 0.35);
    background: rgba(8, 20, 36, 0.68);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.16);
}

.projects-curation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
    gap: 1.25rem;
    margin: 0 0 2rem;
    padding: 1.45rem;
    border-radius: 28px;
    border: 1px solid rgba(127, 227, 255, 0.14);
    background:
        radial-gradient(circle at top right, rgba(0, 210, 255, 0.12), transparent 42%),
        linear-gradient(135deg, rgba(9, 18, 34, 0.94), rgba(14, 28, 48, 0.86));
    box-shadow: 0 22px 55px rgba(2, 8, 20, 0.28);
}

.projects-curation-chip,
.showcase-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(127, 227, 255, 0.1);
    border: 1px solid rgba(127, 227, 255, 0.18);
    color: #8fe8ff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.projects-curation-text {
    margin: 1rem 0 0;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 60ch;
}

.projects-curation-stats {
    display: grid;
    gap: 0.9rem;
}

.projects-curation-stat {
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(127, 227, 255, 0.1);
}

.projects-curation-stat strong {
    color: var(--text-white);
    font-size: 0.95rem;
}

.projects-curation-stat span {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.featured-projects-grid-new {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 1.4rem !important;
    margin-bottom: 3rem !important;
}

@media (min-width: 1100px) {
    .premium-project-card {
        grid-column: span 2;
    }
}

.featured-project-card-new {
    min-height: 100%;
    border-radius: 26px !important;
    border: 1px solid rgba(127, 227, 255, 0.12) !important;
    background:
        radial-gradient(circle at top right, rgba(0, 210, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(12, 20, 36, 0.98), rgba(16, 28, 46, 0.94)) !important;
    box-shadow: 0 22px 55px rgba(2, 8, 20, 0.28) !important;
}

.featured-project-card-new:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(127, 227, 255, 0.32) !important;
    box-shadow: 0 28px 68px rgba(0, 210, 255, 0.16) !important;
}

.featured-project-image-new {
    height: 250px !important;
    padding: 0 !important;
    border: 0 !important;
    background:
        radial-gradient(circle at top, rgba(0, 210, 255, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(15, 28, 47, 0.96), rgba(9, 18, 32, 0.96)) !important;
}

.featured-project-image-new img {
    padding: 1rem;
    border-radius: 0 !important;
    object-fit: contain !important;
}

.featured-project-info-new {
    padding: 1.55rem !important;
    gap: 1rem !important;
    background: transparent !important;
}

.featured-project-info-new h3 {
    font-size: 1.08rem !important;
    line-height: 1.45 !important;
}

.featured-project-info-new p {
    font-size: 0.92rem !important;
    line-height: 1.7 !important;
}

.featured-project-buttons-new {
    gap: 0.75rem !important;
}

.btn-featured-primary-new {
    min-height: 46px;
    padding: 0.82rem 1.15rem !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    text-transform: none !important;
    letter-spacing: 0.04em;
}

.graphic-showcase {
    margin-top: 1rem;
}

.showcase-heading {
    display: grid;
    gap: 0.85rem;
    max-width: 760px;
    margin-bottom: 1.4rem;
}

.showcase-heading h3 {
    color: var(--text-white);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.showcase-heading p {
    color: var(--text-gray);
    line-height: 1.8;
}

.graphic-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
}

.graphic-project-card {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(127, 227, 255, 0.12);
    background:
        radial-gradient(circle at top left, rgba(127, 227, 255, 0.12), transparent 38%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(17, 28, 46, 0.94));
    box-shadow: 0 22px 55px rgba(2, 8, 20, 0.24);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.graphic-project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(127, 227, 255, 0.28);
    box-shadow: 0 30px 70px rgba(0, 210, 255, 0.15);
}

.graphic-project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    display: block;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #0a1220;
}

.graphic-project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.graphic-project-card:hover .graphic-project-media img {
    transform: scale(1.05);
}

.graphic-project-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 1.1rem 1.15rem 1.2rem;
    background: linear-gradient(180deg, transparent, rgba(4, 10, 22, 0.9));
}

.graphic-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: rgba(8, 20, 36, 0.78);
    border: 1px solid rgba(127, 227, 255, 0.18);
    color: #dff8ff;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.graphic-project-body {
    display: grid;
    gap: 0.95rem;
    padding: 1.4rem 1.4rem 1.5rem;
}

.graphic-project-body h4 {
    color: var(--text-white);
    font-size: 1.16rem;
    line-height: 1.35;
}

.graphic-project-body p {
    color: var(--text-gray);
    line-height: 1.75;
    font-size: 0.92rem;
}

.graphic-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.2rem !important;
}

.contact-card {
    display: flex;
    min-height: 100%;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px !important;
    border: 1px solid rgba(127, 227, 255, 0.12) !important;
    background:
        radial-gradient(circle at top left, rgba(0, 210, 255, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(17, 28, 46, 0.92)) !important;
    box-shadow: 0 18px 46px rgba(2, 8, 20, 0.22);
}

.contact-card:hover {
    animation: none !important;
    transform: translateY(-10px) !important;
    border-color: rgba(127, 227, 255, 0.26) !important;
    box-shadow: 0 28px 60px rgba(0, 210, 255, 0.14) !important;
}

.contact-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 100%;
    padding: 1.45rem;
    color: inherit;
    text-decoration: none;
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(127, 227, 255, 0.08);
    border: 1px solid rgba(127, 227, 255, 0.15);
}

.contact-card i {
    margin: 0 !important;
    font-size: 1.35rem !important;
}

.contact-card-body {
    display: grid;
    gap: 0.45rem;
}

.contact-card h3 {
    margin: 0 !important;
    font-size: 1rem !important;
}

.contact-card p {
    margin: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
}

.contact-card small {
    margin-top: auto;
    font-size: 0.74rem !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fe8ff;
}

.footer {
    margin-top: 0 !important;
    padding: 4rem 0 5rem !important;
    background:
        radial-gradient(circle at top, rgba(0, 210, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 22, 1)) !important;
    border-top: 1px solid rgba(127, 227, 255, 0.12) !important;
}

.footer-content {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
}

.footer-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    background: rgba(9, 18, 34, 0.85);
    border: 1px solid rgba(127, 227, 255, 0.18);
    box-shadow: 0 14px 36px rgba(2, 8, 20, 0.18);
}

.footer-email-link:hover {
    text-decoration: none;
}

@media (max-width: 1200px) {
    .projects-curation-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .header .container {
        gap: 0.75rem !important;
    }

    .navbar {
        width: 100% !important;
    }

    .navbar ul {
        width: 100%;
        border-radius: 26px !important;
    }
}

@media (max-width: 767px) {
    .header {
        padding-top: 0.75rem !important;
    }

    .logo {
        font-size: 0.76rem !important;
        letter-spacing: 1px;
        text-align: center;
        max-width: 100%;
    }

    .navbar {
        width: 100% !important;
    }

    .navbar ul {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 0.62rem !important;
    }

    .main-content {
        padding-top: calc(var(--header-offset, 150px) + 0.35rem) !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-linkedin,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .featured-projects-grid-new,
    .graphic-projects-grid {
        grid-template-columns: 1fr !important;
    }

    .projects-curation-panel {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .graphic-project-card,
    .contact-card {
        border-radius: 24px;
    }

    .contact-card-link {
        padding: 1.25rem;
    }
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar li {
    flex: 0 0 auto;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-projects-link,
.nav-contact-link {
    flex: 0 0 auto;
}

.navbar-actions .nav-link {
    padding: 0.45rem 0.58rem;
}

.navbar ul::-webkit-scrollbar {
    display: none;
}

.navbar a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    padding: 0.43rem 0.62rem;
    border-radius: 25px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1;
    white-space: nowrap;
    flex: 0 0 auto;
    overflow: visible;
    text-overflow: clip;
}

.navbar a i {
    font-size: 0.8rem;
}

.navbar .nav-label {
    display: inline-block;
    line-height: 1;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
    display: none;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
    display: none;
}

/* Main Content */
.main-content {
    padding-top: 80px;
    width: 100%;
    overflow-x: hidden;
}

/* Section Content Visibility (Tab System) */
.section-content {
    display: none;
    padding: 80px 0;
    /* Match parent spacing */
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
}

.section-content.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.section-heading .accent {
    color: var(--primary-color);
}


/* Hero Section */
#home.section-content {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

#home.active-section {
    display: flex;
    /* Override for the hero section to align content */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    flex: 1;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;

    /* --- Beautiful Rectangle Effect --- */
    display: inline-block;
    padding: 15px 30px;
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 15px;
    background: rgba(0, 210, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(to right, #fff, #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
}

.hero-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    min-height: 3.2rem;
}

/* Typing Cursor Animation */
.typing-cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    margin-left: 4px;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-white);
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn-linkedin {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-linkedin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.6);
}

.tech-stack {
    margin-top: 2.5rem;
    border-top: 1px solid rgba(0, 210, 255, 0.25);
    padding-top: 1.5rem;
}

.tech-stack h3 {
    font-size: 1.05rem;
    color: #7fe3ff;
    margin-bottom: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.tech-icons {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.tech-icon {
    width: 56px;
    height: 56px;
    background: rgba(10, 20, 35, 0.7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #9fdcff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid rgba(0, 210, 255, 0.35);
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 16px rgba(2, 10, 22, 0.5);
}

.tech-icon .tech-svg {
    width: 30px;
    height: 30px;
    display: block;
}

.ps-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #31a8ff;
}

.tech-icon:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 210, 255, 0.8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 210, 255, 0.25);
}

/* HTML5 - Orange */
.html5-icon {
    color: #f06529;
    border-color: rgba(240, 101, 41, 0.55);
}

.html5-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(240, 101, 41, 0.3);
}

/* CSS3 - Blue */
.css3-icon {
    color: #264de4;
    border-color: rgba(38, 77, 228, 0.55);
}

.css3-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(38, 77, 228, 0.3);
}

/* JavaScript - Yellow */
.js-icon {
    color: #f7df1e;
    border-color: rgba(247, 223, 30, 0.6);
}

.js-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(247, 223, 30, 0.3);
}

/* Bootstrap - Purple */
.bootstrap-icon {
    color: #7952b3;
    border-color: rgba(121, 82, 179, 0.6);
}

.bootstrap-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(121, 82, 179, 0.3);
}

/* Code - Cyan */
.code-icon {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.6);
}

.code-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(0, 212, 255, 0.35);
}

/* VS Code */
.vs-code-icon {
    border-color: rgba(79, 176, 255, 0.65);
}

.vs-code-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(79, 176, 255, 0.35);
}

/* ========================================
   REVEAL ANIMATIONS (RESTORED)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Photoshop - Blue */
.photoshop-icon {
    color: #31a8ff;
    border-color: rgba(49, 168, 255, 0.6);
}

.photoshop-icon:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 10px 22px rgba(49, 168, 255, 0.3);
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 2px;
    transform: translateX(-50%) rotate(45deg);
}

.tech-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-year {
    text-align: right;
    width: 100%;
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--text-gray);
    opacity: 0.7;
}


/* About Section */
.about-header-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.about-kicker {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 6px;
    color: rgba(0, 210, 255, 0.7);
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(0, 210, 255, 0.35);
}

.about-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0.6rem 0 0.8rem;
    color: #e9f9ff;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.about-underline {
    display: inline-block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), var(--primary-color), rgba(0, 210, 255, 0.1));
    border-radius: 999px;
    margin-bottom: 1rem;
}

.about-intro {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1rem;
}

.about-content-wrapper {
    display: grid;
    grid-template-columns: minmax(240px, 380px) minmax(320px, 1fr);
    align-items: center;
    gap: 3rem;
}

.about-image {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(0, 210, 255, 0.25);
    background: rgba(8, 14, 24, 0.6);
    aspect-ratio: 4 / 3;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-card {
    background: rgba(12, 18, 30, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 18px;
    padding: 2rem 2.4rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.12), transparent 50%);
    pointer-events: none;
}

.about-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: capitalize;
}

.about-bio {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.skills-heading {
    font-size: 1.05rem;
    color: #7fe3ff;
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(0, 210, 255, 0.4);
    border-radius: 999px;
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 210, 255, 0.08);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.skill-badge i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.skill-badge:hover {
    background: rgba(0, 210, 255, 0.18);
    transform: translateY(-2px);
}

/* Individual Skill Badge Colors */
/* HTML Badge */
.skill-badge:nth-child(1) {
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 140, 66, 0.15));
}

.skill-badge:nth-child(1) i {
    color: #FF6B35;
}

.skill-badge:nth-child(1):hover {
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
    border-color: #FF6B35;
    color: #fff;
}

/* CSS Badge */
.skill-badge:nth-child(2) {
    border-color: #264DE4;
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.15), rgba(41, 101, 241, 0.15));
}

.skill-badge:nth-child(2) i {
    color: #264DE4;
}

.skill-badge:nth-child(2):hover {
    background: linear-gradient(135deg, #264DE4, #2965F1);
    border-color: #264DE4;
    color: #fff;
}

/* JavaScript Badge */
.skill-badge:nth-child(3) {
    border-color: #FFD700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 199, 0, 0.15));
}

.skill-badge:nth-child(3) i {
    color: #FFD700;
}

.skill-badge:nth-child(3):hover {
    background: linear-gradient(135deg, #FFD700, #FFC700);
    border-color: #FFD700;
    color: #333;
}

/* Bootstrap Badge */
.skill-badge:nth-child(4) {
    border-color: #7B2CBF;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(157, 78, 221, 0.15));
}

.skill-badge:nth-child(4) i {
    color: #7B2CBF;
}

.skill-badge:nth-child(4):hover {
    background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
    border-color: #7B2CBF;
    color: #fff;
}

/* Python Badge */
.skill-badge:nth-child(5) {
    border-color: #3776AB;
    background: linear-gradient(135deg, rgba(55, 118, 171, 0.15), rgba(255, 212, 59, 0.15));
}

.skill-badge:nth-child(5) i {
    color: #3776AB;
}

.skill-badge:nth-child(5):hover {
    background: linear-gradient(135deg, #3776AB, #FFD700);
    border-color: #3776AB;
    color: #fff;
}

/* C++ Badge */
.skill-badge:nth-child(6) {
    border-color: #E63946;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15), rgba(247, 127, 136, 0.15));
}

.skill-badge:nth-child(6) i {
    color: #E63946;
}

.skill-badge:nth-child(6):hover {
    background: linear-gradient(135deg, #E63946, #F77F88);
    border-color: #E63946;
    color: #fff;
}

/* C# Badge */
.skill-badge:nth-child(7) {
    border-color: #239B56;
    background: linear-gradient(135deg, rgba(35, 155, 86, 0.15), rgba(82, 190, 128, 0.15));
}

.skill-badge:nth-child(7) i {
    color: #239B56;
}

.skill-badge:nth-child(7):hover {
    background: linear-gradient(135deg, #239B56, #52BE80);
    border-color: #239B56;
    color: #fff;
}

/* About Skills - Unified Glow Style */
.about-card .skill-badge {
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    gap: 0.6rem;
    border-color: rgba(0, 210, 255, 0.55);
    background: rgba(7, 18, 28, 0.7);
    color: #7fe3ff;
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.12), 0 6px 14px rgba(0, 210, 255, 0.12);
}

.about-card .skill-badge i {
    color: #7fe3ff;
}

.about-card .skill-badge:hover {
    background: rgba(0, 210, 255, 0.16);
    border-color: rgba(0, 210, 255, 0.9);
    color: #e9f9ff;
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.2), 0 10px 22px rgba(0, 210, 255, 0.35);
}

.about-actions {
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.6rem;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    color: #0b1220;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.btn-download-cv:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
}

.about-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.about-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    background: rgba(0, 210, 255, 0.1);
}

.about-socials a:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
}

/* LinkedIn Icon */
.about-socials a:has(.fa-linkedin-in) {
    border-color: #0077B5;
}

.about-socials a:has(.fa-linkedin-in):hover {
    background: linear-gradient(135deg, #0077B5 0%, #005A8C 100%);
    border-color: #0077B5;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.6);
}

/* Email Icon */
.about-socials a:has(.fa-envelope) {
    border-color: #EA4335;
}

.about-socials a:has(.fa-envelope):hover {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
    border-color: #EA4335;
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.6);
}

/* WhatsApp Icon */
.about-socials a:has(.fa-whatsapp) {
    border-color: #25D366;
}

.about-socials a:has(.fa-whatsapp):hover {
    background: linear-gradient(135deg, #25D366 0%, #1FA351 100%);
    border-color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.6);
}

/* GitHub Icon */
.about-socials a.about-github-link {
    border-color: #24292f;
    background: rgba(36, 41, 47, 0.16);
    color: #e6edf3;
}

.about-socials a.about-github-link:hover {
    background: linear-gradient(135deg, #2b3137 0%, #0d1117 100%);
    border-color: #24292f;
    box-shadow: 0 5px 15px rgba(13, 17, 23, 0.55);
    color: #ffffff;
}

/* ========================================
   Education Section (Modern)
   ======================================== */
.edu-header {
    text-align: center;
    margin-bottom: 3rem;
}

.edu-kicker {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: rgba(0, 210, 255, 0.7);
    text-transform: uppercase;
    text-shadow: 0 0 25px rgba(0, 210, 255, 0.35);
}

.edu-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: #e9f9ff;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    margin: 0.8rem 0 1rem;
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.35);
}

.edu-intro {
    max-width: 820px;
    margin: 0 auto;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.edu-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.8rem;
    margin: 2.5rem 0 3rem;
}

.edu-card {
    background: rgba(12, 18, 30, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    position: relative;
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
    transform-style: preserve-3d;
}

.edu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top right, rgba(0, 210, 255, 0.12), transparent 55%);
    pointer-events: none;
}

.edu-card::after {
    content: '';
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent, rgba(0, 210, 255, 0.12), transparent);
    transform: translateX(-60%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.edu-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(0, 210, 255, 0.55);
    box-shadow: 0 22px 45px rgba(0, 210, 255, 0.22), 0 20px 45px rgba(0, 0, 0, 0.4);
}

.edu-card:hover::after {
    transform: translateX(60%);
}

.edu-card-highlight {
    border-color: rgba(0, 210, 255, 0.45);
    box-shadow: 0 18px 40px rgba(0, 210, 255, 0.12);
}

.edu-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.edu-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: #7fe3ff;
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.edu-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #03131f;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0, 210, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edu-card h3 {
    color: #e9f9ff;
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.25);
}

.edu-track {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.edu-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.edu-tag {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 210, 255, 0.45);
    color: #7fe3ff;
    font-size: 0.78rem;
    background: rgba(7, 18, 28, 0.65);
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.1);
}

.edu-section {
    margin-top: 2.5rem;
}

.edu-section-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #e9f9ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 12px rgba(0, 210, 255, 0.35);
    font-family: 'Poppins', sans-serif;
}

.edu-section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 123, 213, 0.2));
    color: #7fe3ff;
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.2), 0 8px 16px rgba(0, 0, 0, 0.35);
}

.edu-section-icon i,
.edu-mini-icon i {
    display: inline-block;
    line-height: 1;
}

.edu-section-icon img {
    width: 22px;
    height: 22px;
    display: block;
    filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
}

.edu-mini-icon img {
    width: 44px;
    height: 44px;
    display: block;
    filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.55));
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.2rem;
}

.edu-grid-projects {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.edu-mini-card {
    background: linear-gradient(180deg, rgba(10, 16, 28, 0.95), rgba(10, 16, 28, 0.8));
    border: 1px solid rgba(0, 210, 255, 0.25);
    border-radius: 18px;
    padding: 1.7rem 1.4rem;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.1), 0 12px 26px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.edu-mini-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 0 22px rgba(0, 210, 255, 0.3), 0 18px 34px rgba(0, 210, 255, 0.25);
}

.edu-mini-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(12, 20, 32, 0.85);
    color: #e9f9ff;
    box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.2), 0 0 18px rgba(0, 210, 255, 0.3);
    font-size: 1.2rem;
}

.edu-mini-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: #e9f9ff;
    font-weight: 700;
}

.edu-mini-card p {
    color: #69e6ff;
    font-size: 0.85rem;
    line-height: 1.6;
}

.edu-mini-tags {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.edu-mini-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 210, 255, 0.4);
    color: #7fe3ff;
    font-size: 0.7rem;
    background: rgba(7, 18, 28, 0.7);
}

/* Coursework icon colors + glow (match reference) */
#education .edu-section:nth-of-type(1) .edu-section-icon {
    background: linear-gradient(135deg, rgba(92, 225, 255, 0.35), rgba(139, 92, 246, 0.35));
    color: #e9f9ff;
    box-shadow: 0 0 14px rgba(92, 225, 255, 0.4), 0 0 22px rgba(139, 92, 246, 0.35);
}

#education .edu-section:nth-of-type(1) .edu-section-icon i {
    background: linear-gradient(135deg, #a3e635, #ec4899, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

#education .edu-section:nth-of-type(1) .edu-section-icon i::before {
    background: linear-gradient(135deg, #a3e635, #ec4899, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(1) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.9), rgba(56, 189, 248, 0.25) 55%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.6), 0 0 28px rgba(56, 189, 248, 0.4);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(1) .edu-mini-icon i {
    color: #b58cff;
    text-shadow: 0 0 10px rgba(181, 140, 255, 0.7);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(1) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(2) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.9), rgba(167, 139, 250, 0.25) 55%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.6), 0 0 28px rgba(167, 139, 250, 0.35);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(2) .edu-mini-icon i {
    color: #7af2ff;
    text-shadow: 0 0 10px rgba(122, 242, 255, 0.7);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(2) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #22c55e, #ec4899, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(3) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(251, 146, 60, 0.9), rgba(253, 224, 71, 0.25) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(251, 146, 60, 0.6), 0 0 28px rgba(253, 224, 71, 0.4);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(3) .edu-mini-icon i {
    color: #ffc96b;
    text-shadow: 0 0 10px rgba(255, 201, 107, 0.7);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(3) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #f97316, #facc15);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(4) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(203, 213, 225, 0.9), rgba(148, 163, 184, 0.3) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(203, 213, 225, 0.45), 0 0 28px rgba(148, 163, 184, 0.3);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(4) .edu-mini-icon i {
    color: #e2e8f0;
    text-shadow: 0 0 10px rgba(226, 232, 240, 0.6);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(4) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(5) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.9), rgba(96, 165, 250, 0.3) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.6), 0 0 28px rgba(96, 165, 250, 0.35);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(5) .edu-mini-icon i {
    color: #8fd9ff;
    text-shadow: 0 0 10px rgba(143, 217, 255, 0.7);
}

#education .edu-section:nth-of-type(1) .edu-mini-card:nth-child(5) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Projects icon colors + glow (match reference) */
#education .edu-section:nth-of-type(2) .edu-section-icon {
    background: linear-gradient(135deg, rgba(255, 170, 64, 0.35), rgba(255, 105, 180, 0.35));
    color: #fff3d6;
    box-shadow: 0 0 14px rgba(255, 170, 64, 0.4), 0 0 22px rgba(255, 105, 180, 0.35);
}

#education .edu-section:nth-of-type(2) .edu-section-icon i {
    background: linear-gradient(135deg, #fb7185, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(251, 113, 133, 0.55));
}

#education .edu-section:nth-of-type(2) .edu-section-icon i::before {
    background: linear-gradient(135deg, #fb7185, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(1) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.9), rgba(56, 189, 248, 0.25) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.6), 0 0 28px rgba(56, 189, 248, 0.35);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(1) .edu-mini-icon i {
    color: #b58cff;
    text-shadow: 0 0 10px rgba(181, 140, 255, 0.7);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(1) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #a855f7, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(2) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(248, 113, 113, 0.9), rgba(251, 113, 133, 0.3) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(248, 113, 113, 0.6), 0 0 28px rgba(251, 113, 133, 0.35);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(2) .edu-mini-icon i {
    color: #ff8aa3;
    text-shadow: 0 0 10px rgba(255, 138, 163, 0.7);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(2) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #ef4444, #fb7185);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(3) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.9), rgba(96, 165, 250, 0.3) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.6), 0 0 28px rgba(96, 165, 250, 0.35);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(3) .edu-mini-icon i {
    color: #7fb4ff;
    text-shadow: 0 0 10px rgba(127, 180, 255, 0.7);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(3) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(4) .edu-mini-icon {
    background: radial-gradient(circle at 30% 30%, rgba(244, 114, 182, 0.9), rgba(253, 164, 175, 0.3) 60%, rgba(12, 18, 30, 0.9) 100%);
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.6), 0 0 28px rgba(253, 164, 175, 0.35);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(4) .edu-mini-icon i {
    color: #ffb0dc;
    text-shadow: 0 0 10px rgba(255, 176, 220, 0.7);
}

#education .edu-section:nth-of-type(2) .edu-mini-card:nth-child(4) .edu-mini-icon i::before {
    background: linear-gradient(135deg, #f472b6, #fda4af);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Statistics Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(0, 210, 255, 0.2);
}

.stat-card {
    background: rgba(0, 210, 255, 0.05);
    border: 2px solid rgba(0, 210, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: rgba(0, 210, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.counter {
    display: inline-block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-white);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

/* Education + Experience Ambient Backgrounds */
#education,
#experience {
    position: relative;
    overflow: hidden;
}

#education::before,
#experience::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/images/experience-code-pattern.svg') center/cover no-repeat;
    opacity: 0.14;
    pointer-events: none;
}

#experience::before {
    opacity: 0.2;
}

#education .container,
#experience .container {
    position: relative;
    z-index: 1;
}

.skill-category h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    background: rgba(58, 123, 213, 0.1);
}

.skill-tag i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.skill-tag:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(58, 123, 213, 0.3);
}

/* Timeline for Education & Experience */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(0, 210, 255, 0.3);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}


.timeline-content {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.timeline-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}


/* Certificates & Projects Grid */
.cert-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card,
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-radius: 10px;
    overflow: hidden;
}

.cert-card:hover,
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cert-img-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.cert-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.cert-card:hover .cert-img-box img {
    transform: scale(1.1);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay i {
    font-size: 2rem;
    color: #fff;
}

.cert-info,
.project-content {
    padding: 1.5rem;
}

.cert-info h3,
.project-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cert-info p,
.project-content p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-project {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.btn-project:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Contact */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-main-title {
    font-size: 3.8rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(17, 26, 43, 0.5);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(0, 210, 255, 0.15);
    transition: all 0.3s ease;
    border-radius: 12px;
    cursor: pointer;
}

.contact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.2);
    background: rgba(17, 26, 43, 0.7);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
}

.contact-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.contact-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-card small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    padding: 70px 24px 110px;
    background: radial-gradient(circle at top, rgba(0, 210, 255, 0.08), transparent 40%),
        rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.2rem;
}

.lightbox-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 92vw;
    max-height: 78vh;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.35);
    animation: zoomIn 0.35s ease;
    transform: translate(0, 0) scale(1);
    transform-origin: center center;
    transition: transform 0.15s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox.dragging .lightbox-content {
    cursor: grabbing;
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
    }

    to {
        transform: scale(1);
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    background: transparent;
    border: none;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

.lightbox-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(10, 18, 30, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.25);
}

.lightbox-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 210, 255, 0.45);
    background: rgba(12, 20, 32, 0.9);
    color: #7fe3ff;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lightbox-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.9);
    box-shadow: 0 0 14px rgba(0, 210, 255, 0.45);
}

.certificate-image.cert-img-box {
    cursor: zoom-in;
}

.cert-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.6rem;
    margin-top: 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 210, 255, 0.6);
    background: rgba(8, 16, 28, 0.75);
    color: #7fe3ff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cert-view-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.95);
    background: rgba(0, 210, 255, 0.12);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN FOR ALL DEVICES
   ======================================== */

/* Large Desktops (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }

    .hero-name {
        font-size: 4.5rem;
    }

    .hero-image {
        width: 450px;
        height: 450px;
    }
}

/* Medium Desktops (992px to 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .header .container {
        max-width: 1180px;
        padding: 0 1rem;
        gap: 0.6rem;
    }

    .logo {
        font-size: 0;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .logo span {
        font-size: 0.98rem;
        letter-spacing: 0.6px;
    }

    .navbar {
        gap: 0.4rem;
    }

    .navbar ul {
        gap: 0.32rem;
    }

    .navbar ul li:first-child {
        margin-left: -0.34rem;
    }

    .navbar ul li:first-child .nav-link {
        padding-left: 0.32rem;
        padding-right: 0.44rem;
    }

    .navbar a {
        font-size: 0.64rem;
        padding: 0.38rem 0.5rem;
    }

    .navbar-actions {
        gap: 0.28rem;
    }

    .navbar-actions .nav-link {
        font-size: 0.61rem;
        padding: 0.36rem 0.4rem;
    }

    .cp-launcher {
        height: 38px;
        padding: 0 0.62rem;
        font-size: 0.66rem;
    }

    .hero-name {
        font-size: 4rem;
    }

    .hero-image {
        width: 400px;
        height: 400px;
    }

    .hero-container {
        gap: 2.5rem;
    }
}

@media (max-width: 1320px) {
    .header .container {
        align-items: flex-start;
    }

    .navbar {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.7rem;
    }

    .navbar ul {
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 0.4rem;
    }

    .navbar-actions {
        width: 100%;
        justify-content: center;
    }

    .main-content {
        padding-top: 118px;
    }
}

/* Tablets and Small Desktops (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }

    /* Header Responsive */
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    .navbar {
        width: 100%;
        gap: 0.55rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem;
        padding: 0;
        overflow-x: visible;
    }

    .navbar a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        flex: 0 0 auto;
    }

    .navbar-actions {
        gap: 0.35rem;
        width: 100%;
        justify-content: center;
    }

    .navbar a i {
        font-size: 0.7rem;
    }

    .cp-nav-label {
        display: none;
    }

    .cp-nav-launcher {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    /* Hero Section Responsive */
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-greeting {
        font-size: 0.9rem;
    }

    .hero-name {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
        margin: 0 auto 2rem;
        max-width: 100%;
    }

    .hero-image {
        width: 350px;
        height: 350px;
    }

    .hero-image-wrapper {
        flex: 1;
        justify-content: center;
    }

    .tech-icons {
        justify-content: center;
        gap: 1rem;
    }

    .tech-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* About Section Responsive */
    .about-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        flex: 0 0 100%;
        width: 100%;
        max-width: 400px;
        height: auto;
        margin: 0 auto;
    }

    .about-heading {
        font-size: 2.5rem;
    }

    .about-bio {
        font-size: 0.95rem;
    }

    .about-details {
        flex: 1;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .about-socials {
        justify-content: center;
    }

    /* Skills Section Responsive */
    .skills-header-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-label {
        font-size: 2rem;
    }

    .skills-description {
        font-size: 1rem;
    }

    .skills-grid-items {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Section Heading Responsive */
    .section-heading {
        font-size: 2rem;
    }

    /* Timeline Responsive */
    .timeline::after {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        left: 0;
        text-align: left;
    }

    .timeline-item::after,
    .timeline-item:nth-child(even)::after,
    .timeline-item:nth-child(odd)::after {
        left: 10px;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
    }

    /* Contact Section Responsive */
    .contact-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .contact-card i {
        font-size: 2.2rem;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    /* Certificate Grid Responsive */
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .certificate-image {
        height: 300px;
    }

    .project-image {
        height: 200px;
    }

    /* Featured Projects Responsive */
    .featured-projects-grid-new {
        grid-template-columns: 1fr !important;
    }

    .featured-project-standalone {
        max-width: 100% !important;
    }

    .featured-project-image-new {
        height: 240px;
    }

    /* Services Grid Responsive */
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-title-new {
        font-size: 2.5rem;
    }

    .service-image-new {
        height: 200px;
    }
}

/* Tablets (768px to 991px) - keep desktop feel without overlap */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 2rem;
    }

    .hero-content {
        text-align: left;
    }

    .hero-image-wrapper {
        justify-content: flex-end;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .tech-icons {
        justify-content: flex-start;
    }

    .featured-projects-grid-new {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .featured-project-standalone {
        max-width: calc(50% - 1rem) !important;
    }
}

/* Smartphones and Mobile Devices (480px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Main Content Padding */
    .main-content {
        padding-top: 70px;
    }

    /* Header Responsive */
    .header {
        padding: 0.6rem 0;
    }

    .header .container {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .logo {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .navbar {
        width: 100%;
        gap: 0.45rem;
    }

    .navbar ul {
        flex-wrap: nowrap;
        gap: 0.3rem;
        padding: 0 0 0.2rem 0;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .navbar ul::-webkit-scrollbar {
        display: none;
    }

    .navbar a {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
        flex: 0 0 auto;
    }

    .navbar-actions {
        gap: 0.3rem;
    }

    .navbar a i {
        font-size: 0.6rem;
        margin-right: 0.2rem;
    }

    .cp-nav-label {
        display: none;
    }

    .cp-nav-launcher {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
    }

    /* Section Content */
    .section-content {
        padding: 3rem 0;
    }

    /* Hero Section Mobile */
    .hero-container {
        flex-direction: column-reverse;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-greeting {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .hero-name {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .btn-linkedin {
        font-size: 0.8rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .tech-stack {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .tech-stack h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .tech-icons {
        justify-content: center;
        gap: 0.8rem;
    }

    .tech-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .tooltip {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .portfolio-year {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    /* About Section Mobile */
    .about-content-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .about-image {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0 auto;
    }

    .about-heading {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-bio {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .skills-heading {
        font-size: 1rem;
    }

    .about-skills {
        gap: 0.7rem;
    }

    .skill-badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.9rem;
    }

    .about-actions {
        margin-top: 1.5rem;
    }

    .btn-download-cv {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }

    .about-socials {
        gap: 1rem;
        justify-content: center;
        margin-top: 1.5rem;
    }

    .about-socials a {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Skills Section Mobile */
    .skills-header-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }

    .skills-label {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .skills-main-title {
        font-size: 1.8rem;
    }

    .skills-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .skills-categories {
        gap: 1.5rem;
    }

    .skill-category-box {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1rem;
    }

    .skills-grid-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .skill-item {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }

    /* Section Heading Mobile */
    .section-heading {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Timeline Mobile */
    .timeline {
        max-width: 100%;
        padding: 1.5rem 0;
    }

    .timeline::after {
        left: 15px;
        width: 1px;
    }

    .timeline-item {
        padding: 10px 0;
        width: 100%;
        padding-left: 45px;
        padding-right: 10px;
        left: 0;
        text-align: left;
        box-sizing: border-box;
    }

    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 45px;
        padding-right: 10px;
        left: 0;
    }

    .timeline-item::after {
        width: 15px;
        height: 15px;
        top: 18px;
    }

    .timeline-item:nth-child(even)::after,
    .timeline-item:nth-child(odd)::after {
        left: 5px;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    /* Education Section Mobile */
    .education-wrapper {
        flex-direction: column;
        gap: 1.5rem;
        position: relative;
        left: 0;
        transform: none;
    }

    .education-date-side {
        position: static;
        transform: none;
        margin-bottom: 1rem;
    }

    .timeline-date-large {
        font-size: 2.5rem;
    }

    .education-content-side {
        margin-left: 0;
        margin-top: 1rem;
    }

    .education-title {
        font-size: 1.5rem;
    }

    .education-intro {
        font-size: 0.9rem;
    }

    /* Experience Section Mobile */
    .experience-timeline::before {
        left: 15px;
    }

    .experience-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .experience-item::before {
        left: 5px;
    }

    .experience-item.left,
    .experience-item.right {
        justify-content: flex-start;
        padding-left: 45px;
    }

    .experience-card {
        padding: 1.2rem;
    }

    .experience-card h3 {
        font-size: 1.1rem;
    }

    .experience-date-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .experience-role {
        font-size: 0.85rem;
    }

    .experience-description {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .experience-title {
        font-size: 1.5rem;
    }

    /* Contact Section Mobile */
    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-main-title {
        font-size: 2.2rem;
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 1.8rem 1.5rem;
    }

    .contact-card i {
        font-size: 2.2rem;
    }

    .contact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    /* Certificate Section Mobile */
    .certificates-header {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .certificates-main-title {
        font-size: 2.5rem;
    }

    .certificates-intro h3 {
        font-size: 1.2rem;
    }

    .certificates-intro p {
        font-size: 0.9rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .certificate-image {
        height: 250px;
    }

    .certificate-info {
        padding: 1rem;
    }

    .certificate-info h4 {
        font-size: 0.95rem;
    }

    .cert-organization {
        font-size: 0.8rem;
    }

    /* Projects Section Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1rem;
    }

    .project-content p {
        font-size: 0.85rem;
    }

    .project-buttons {
        gap: 0.6rem;
    }

    .project-buttons .btn-project {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
        min-width: 90px;
    }

    /* Featured Projects Mobile */
    .projects-header-left {
        margin-bottom: 2rem;
    }

    .projects-title-left {
        font-size: 1.5rem;
    }

    .projects-year-left {
        font-size: 1.2rem;
    }

    .featured-projects-grid-new {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }

    .featured-project-standalone {
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    .featured-project-image-new {
        height: 220px !important;
        padding: 0.8rem !important;
    }

    .featured-project-info-new {
        padding: 1rem !important;
    }

    .featured-project-info-new h3 {
        font-size: 0.95rem !important;
    }

    .featured-project-info-new p {
        font-size: 0.8rem !important;
    }

    .btn-featured-primary-new,
    .btn-featured-secondary-new {
        font-size: 0.7rem;
        padding: 0.5rem 0.6rem;
        min-width: 80px;
    }

    /* Services Section Mobile */
    .services-section-new {
        margin-top: 50px;
        padding: 50px 0;
    }

    .services-title-new {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .services-subtitle-new {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0;
    }

    .service-image-new {
        height: 200px;
        padding: 0.8rem;
    }

    .service-card-new h3 {
        font-size: 1rem;
        margin: 1rem 0.8rem 0.4rem;
    }

    .service-card-new p {
        font-size: 0.8rem;
        margin: 0 0.8rem 1rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 2rem 0;
        margin-top: 3rem;
    }

    .footer-content p {
        font-size: 0.85rem;
    }

    /* Lightbox Mobile */
    .code-modal {
        padding: 0.5rem;
    }

    .code-modal-content {
        max-width: 100%;
        padding: 1rem;
        margin: auto 0;
    }

    .code-display pre {
        font-size: 0.7rem;
    }
}

/* Footer */
.footer {
    background: rgba(15, 22, 36, 0.98);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: #fff;
    text-decoration: underline;
}

.heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Education Section */
.education-wrapper {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
    margin-top: 3rem;
    position: relative;
}

.education-date-side {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -3rem;
    z-index: 10;
}

.timeline-date-large {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 210, 255, 0.15);
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -2px;
    position: static;
    margin: 0 auto 2rem;
    width: 100%;
}

.education-content-side {
    flex: 1;
    margin-left: auto;
    margin-top: 3rem;
}

.education-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.education-intro {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.education-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    padding: 0;
}

.education-item h3 {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-status {
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.education-school {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.status-cyan {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 768px) {
    .education-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .timeline-date-large {
        font-size: 4rem;
    }
}

/* Experience Section */
.experience-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    justify-content: center;
    text-align: center;
    padding-top: 0;
}

.experience-content {
    flex: 1;
    margin-left: 0;
}

.experience-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.experience-intro {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.experience-timeline {
    position: relative;
    padding: 0;
    margin-top: 0;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 210, 255, 0.1));
    transform: translateX(-1px);
}

.experience-item {
    margin-bottom: 3rem;
    display: flex;
    width: 100%;
    position: relative;
}

.experience-item.left {
    justify-content: flex-end;
    padding-right: 50%;
}

.experience-item.right {
    justify-content: flex-start;
    padding-left: 50%;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.experience-card {
    background: rgba(17, 26, 43, 0.7);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-left: 3px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    transition: all 0.3s;
}

.experience-card:hover {
    border-color: var(--primary-color);
    background: rgba(17, 26, 43, 0.95);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.15);
    transform: translateY(-3px);
}

.experience-date-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-card h3 {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.experience-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.experience-description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 500;
}

@media (max-width: 968px) {
    .experience-timeline::before {
        left: 30px;
    }

    .experience-item {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 60px;
    }

    .experience-item::before {
        left: -47px;
    }

    .experience-item.left,
    .experience-item.right {
        justify-content: flex-start;
    }

    .experience-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .experience-title {
        font-size: 1.8rem;
    }
}

/* Skills Section */
.skills-header-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(220px, 0.9fr) minmax(320px, 2fr);
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    padding: 0;
}

.skills-left-section {
    text-align: left;
    padding-top: 0;
}

.skills-center-section {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-visual-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(8, 16, 30, 0.85), rgba(15, 28, 50, 0.95));
    border: 1px solid rgba(0, 210, 255, 0.2);
    box-shadow: 0 18px 40px rgba(0, 210, 255, 0.15);
    overflow: hidden;
    animation: skills-float 6s ease-in-out infinite;
}

.skills-visual-card::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.35), transparent 65%);
    opacity: 0.8;
}

.skills-visual-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 255, 0.15);
    pointer-events: none;
}

.skills-visual-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    filter: saturate(1.05) contrast(1.08);
}

.skills-visual-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    background: rgba(10, 18, 32, 0.85);
    border: 1px solid rgba(0, 210, 255, 0.25);
    color: var(--text-white);
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

@keyframes skills-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.skills-label {
    font-size: 3rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 2rem 0;
    font-weight: 900;
    display: block;
    padding-bottom: 1.2rem;
    width: fit-content;
    border-bottom: 3px solid var(--primary-color);
}

.skills-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 210, 255, 0.15);
    line-height: 1;
    letter-spacing: -1px;
    margin: 0 0 3rem 0;
    text-align: center;
}

.skills-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 2;
    margin: 0;
    max-width: 600px;
    font-weight: 500;
}

.skills-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-left: 0;
    width: 100%;
    margin-top: 0;
}

.skill-category-box {
    background: rgba(17, 26, 43, 0.6);
    border: 2px solid rgba(0, 210, 255, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-category-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-category-box:hover::before {
    opacity: 1;
}

.skill-category-box:hover {
    border-color: var(--primary-color);
    background: rgba(17, 26, 43, 0.95);
    box-shadow: 0 20px 60px rgba(0, 210, 255, 0.15), 
                0 0 40px rgba(0, 210, 255, 0.05) inset;
    transform: translateY(-8px) scale(1.02);
}

/* Individual Category Box Colors with Enhanced 3D Effects */
/* Web Development & Programming */
.skill-category-box:nth-child(1) {
    border: 2px solid rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 140, 66, 0.08));
}

.skill-category-box:nth-child(1)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.skill-category-box:nth-child(1):hover {
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.18), rgba(255, 140, 66, 0.18));
    box-shadow: 0 25px 60px rgba(255, 107, 53, 0.25), 
                0 0 60px rgba(255, 107, 53, 0.1) inset,
                0 0 20px rgba(255, 107, 53, 0.1);
}

.skill-category-box:nth-child(1):hover::after {
    opacity: 1;
}

.skill-category-box:nth-child(1) .category-icon {
    color: #FF6B35;
}

.skill-category-box:nth-child(1) .category-title {
    color: #FF6B35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

/* Electronics & Embedded Systems */
.skill-category-box:nth-child(2) {
    border: 2px solid rgba(38, 77, 228, 0.4);
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.08), rgba(41, 101, 241, 0.08));
}

.skill-category-box:nth-child(2)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(38, 77, 228, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.skill-category-box:nth-child(2):hover {
    border-color: #264DE4;
    background: linear-gradient(135deg, rgba(38, 77, 228, 0.18), rgba(41, 101, 241, 0.18));
    box-shadow: 0 25px 60px rgba(38, 77, 228, 0.25), 
                0 0 60px rgba(38, 77, 228, 0.1) inset,
                0 0 20px rgba(38, 77, 228, 0.1);
}

.skill-category-box:nth-child(2):hover::after {
    opacity: 1;
}

.skill-category-box:nth-child(2) .category-icon {
    color: #264DE4;
}

.skill-category-box:nth-child(2) .category-title {
    color: #264DE4;
    text-shadow: 0 0 10px rgba(38, 77, 228, 0.3);
}

/* Tools & Software */
.skill-category-box:nth-child(3) {
    border: 2px solid rgba(123, 44, 191, 0.4);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.08), rgba(157, 78, 221, 0.08));
}

.skill-category-box:nth-child(3)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(123, 44, 191, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 16px;
    pointer-events: none;
}

.skill-category-box:nth-child(3):hover {
    border-color: #7B2CBF;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.18), rgba(157, 78, 221, 0.18));
    box-shadow: 0 25px 60px rgba(123, 44, 191, 0.25), 
                0 0 60px rgba(123, 44, 191, 0.1) inset,
                0 0 20px rgba(123, 44, 191, 0.1);
}

.skill-category-box:nth-child(3):hover::after {
    opacity: 1;
}

.skill-category-box:nth-child(3) .category-icon {
    color: #7B2CBF;
}

.skill-category-box:nth-child(3) .category-title {
    color: #7B2CBF;
    text-shadow: 0 0 10px rgba(123, 44, 191, 0.3);
}

.category-title {
    font-size: 1.2rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, currentColor, transparent);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.category-icon {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.skills-grid-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.skill-item {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 210, 255, 0.1);
    border: 2px solid rgba(0, 210, 255, 0.4);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}

.skill-item:hover {
    background: rgba(0, 210, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.2);
    transform: translateY(-2px);
}

.skill-item.highlight {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(58, 123, 213, 0.2));
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* ===== Individual Skill Colors ===== */
/* All skills - Same Cyan Color */
.skill-item:nth-child(1),
.skill-item:nth-child(2),
.skill-item:nth-child(3),
.skill-item:nth-child(4),
.skill-item:nth-child(5),
.skill-item:nth-child(6),
.skill-item:nth-child(7),
.skill-item:nth-child(8),
.skill-item:nth-child(9),
.skill-item:nth-child(10),
.skill-item:nth-child(11),
.skill-item:nth-child(12),
.skill-item:nth-child(13),
.skill-item:nth-child(14),
.skill-item:nth-child(15),
.skill-item:nth-child(16),
.skill-item:nth-child(17),
.skill-item:nth-child(18),
.skill-item:nth-child(19),
.skill-item:nth-child(20),
.skill-item:nth-child(21),
.skill-item:nth-child(22),
.skill-item:nth-child(23),
.skill-item:nth-child(24),
.skill-item:nth-child(25) {
    background: rgba(0, 210, 255, 0.1);
    border: 2px solid rgba(0, 210, 255, 0.4);
    color: var(--primary-color);
    font-weight: 600;
}

.skill-item:nth-child(1):hover,
.skill-item:nth-child(2):hover,
.skill-item:nth-child(3):hover,
.skill-item:nth-child(4):hover,
.skill-item:nth-child(5):hover,
.skill-item:nth-child(6):hover,
.skill-item:nth-child(7):hover,
.skill-item:nth-child(8):hover,
.skill-item:nth-child(9):hover,
.skill-item:nth-child(10):hover,
.skill-item:nth-child(11):hover,
.skill-item:nth-child(12):hover,
.skill-item:nth-child(13):hover,
.skill-item:nth-child(14):hover,
.skill-item:nth-child(15):hover,
.skill-item:nth-child(16):hover,
.skill-item:nth-child(17):hover,
.skill-item:nth-child(18):hover,
.skill-item:nth-child(19):hover,
.skill-item:nth-child(20):hover,
.skill-item:nth-child(21):hover,
.skill-item:nth-child(22):hover,
.skill-item:nth-child(23):hover,
.skill-item:nth-child(24):hover,
.skill-item:nth-child(25):hover {
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
    border-color: var(--primary-color);
    background: rgba(0, 210, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .skills-header-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skills-center-section {
        text-align: center;
        justify-content: center;
    }

    .skills-visual-card {
        max-width: 420px;
        aspect-ratio: 16 / 10;
    }

    .skills-main-title {
        font-size: 2.5rem;
    }

    .skills-grid-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .skills-header-layout {
        padding: 2rem 0;
        gap: 1rem;
    }

    .skills-label {
        font-size: 1.2rem;
    }

    .skills-main-title {
        font-size: 2rem;
    }

    .skills-grid-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .skill-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===== Certificates Section ===== */
#certificates {
    position: relative;
    padding: 6rem 0;
    background: var(--bg-dark);
}

.certificates-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
    text-align: center;
}

.certificates-main-title {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(0, 210, 255, 0.3);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 2rem 0;
}

.certificates-intro h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.certificates-intro p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-size: 0.95rem;
    max-width: 800px;
    margin: 0 auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: rgba(17, 26, 43, 0.6);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Highlight the best certificates (AI, Security, Enterprise CCNA) */
.certificate-card:nth-child(1),
.certificate-card:nth-child(2),
.certificate-card:nth-child(3) {
    border: 2px solid var(--primary-color);
    background: rgba(17, 26, 43, 0.8);
}

.certificate-card:nth-child(1)::before,
.certificate-card:nth-child(2)::before,
.certificate-card:nth-child(3)::before {
    content: '⭐ FEATURED';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #00d2ff, #0099cc);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 10;
}

.certificate-image {
    position: relative;
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3), inset 0 0 20px rgba(0, 210, 255, 0.05);
    transform: translateY(-5px);
}

/* Extra glow for featured certificates on hover */
.certificate-card:nth-child(1):hover,
.certificate-card:nth-child(2):hover,
.certificate-card:nth-child(3):hover {
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5), inset 0 0 20px rgba(0, 210, 255, 0.1);
    transform: translateY(-8px);
}

.certificate-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(15, 22, 36, 0.8);
    backdrop-filter: blur(10px);
}

.certificate-info h4 {
    color: #fff;
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 600;
    flex: 1;
}

.cert-organization {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
}

.cert-description {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

.cert-tag {
    display: inline-block;
    background: rgba(0, 210, 255, 0.15);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(0, 210, 255, 0.3);
}

/* Responsive Design for Certificates */
@media (max-width: 968px) {
    .certificates-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certificates-main-title {
        font-size: 4rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    #certificates {
        padding: 4rem 0;
    }

    .certificates-main-title {
        font-size: 3rem;
    }

    .certificates-intro h3 {
        font-size: 1.2rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .certificate-image {
        height: 220px;
    }

    .certificate-info {
        padding: 1rem;
    }

    .certificate-info h4 {
        font-size: 0.95rem;
    }

    .cert-organization {
        font-size: 0.8rem;
    }
}

/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(17, 26, 43, 0.8);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.3), inset 0 0 20px rgba(0, 210, 255, 0.05);
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image img:not([src]),
.project-image img[src=""],
.project-image img[alt]:after {
    content: '📊';
    position: absolute;
    font-size: 3rem;
    opacity: 0.5;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

.project-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
    flex: 1;
}

.project-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-buttons .btn-project {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 0.3rem;
    text-align: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.project-buttons .btn-project:hover {
    background: rgba(0, 210, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

/* ===== Projects Responsive ===== */
@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h3 {
        font-size: 1rem;
    }

    .project-buttons .btn-project {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-image {
        height: 200px;
    }

    .project-buttons {
        gap: 0.8rem;
    }

    .project-buttons .btn-project {
        flex: 1;
        min-width: 100px;
    }
}

/*
 ===== NEW PROJECTS SECTION STYLES ===== */



/* Projects Header Left Aligned */
.projects-header-left {
    text-align: left;
    margin-bottom: 3rem;
}

.projects-title-left {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
}

.projects-subtitle-left {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.projects-year-left {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Featured Projects Grid - 2 columns side by side */
.featured-projects-grid-new {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 5rem !important;
    width: 100% !important;
}

/* Standalone Project Card - Left aligned, same width as grid items */
.featured-project-standalone {
    margin-bottom: 5rem !important;
    width: 100% !important;
    max-width: calc(50% - 1rem) !important;
}

.featured-project-standalone .featured-project-card-new {
    background: rgba(17, 26, 43, 0.9);
    border: 2px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-project-card-new {
    background: rgba(17, 26, 43, 0.9);
    border: 2px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.featured-project-card-new:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    transform: translateY(-5px);
}

.featured-project-image-new {
    width: 100% !important;
    height: 280px !important;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(255, 255, 255, 0.08)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    position: relative !important;
    padding: 1.2rem !important;
    border: 1px solid rgba(0, 210, 255, 0.2) !important;
}

.featured-project-image-new img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: all 0.3s ease !important;
    border-radius: 8px !important;
    filter: brightness(1.05) contrast(1.15) !important;
}

.featured-project-card-new:hover .featured-project-image-new img {
    transform: scale(1.1);
    filter: brightness(1.15) contrast(1.25) saturate(1.1) !important;
}

.featured-project-info-new {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: rgba(17, 26, 43, 0.8);
}

.featured-project-info-new h3 {
    color: var(--text-white) !important;
    font-size: 1rem !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

.featured-project-info-new p {
    color: var(--text-gray) !important;
    font-size: 0.8rem !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    flex: 1 !important;
}

.featured-project-buttons-new {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-featured-primary-new {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: capitalize;
}

.btn-featured-primary-new:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.btn-featured-secondary-new {
    flex: 1;
    min-width: 100px;
    padding: 0.6rem 1rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: capitalize;
}

.btn-featured-secondary-new:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

/* Coming Soon Button */
.btn-coming-soon {
    background: rgba(0, 210, 255, 0.1) !important;
    color: rgba(0, 210, 255, 0.5) !important;
    border: 1px solid rgba(0, 210, 255, 0.3) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.btn-coming-soon:hover {
    background: rgba(0, 210, 255, 0.1) !important;
    color: rgba(0, 210, 255, 0.5) !important;
    box-shadow: none !important;
}

.btn-coming-soon:disabled {
    cursor: not-allowed;
}




/* Services Section */
.services-section-new {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 210, 255, 0.15);
}

.services-title-new {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-align: center;
}

.services-subtitle-new {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
}

.service-card-new {
    background: rgba(17, 26, 43, 0.9);
    border: 2px solid rgba(0, 210, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.service-card-new:hover {
    border-color: var(--primary-color);
    background: rgba(17, 26, 43, 1);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
    transform: translateY(-5px);
}

.service-image-new {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(255, 255, 255, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1.2rem;
    border: 1px solid rgba(0, 210, 255, 0.15);
}

.service-image-new img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 8px;
    filter: brightness(1.08) contrast(1.2);
}

.service-card-new:hover .service-image-new img {
    transform: scale(1.12);
    filter: brightness(1.18) contrast(1.3) saturate(1.08);
}

.service-card-new h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin: 1.5rem 1.2rem 0.8rem;
    font-weight: 600;
}

.service-card-new p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 0 1.2rem 1.5rem;
    line-height: 1.6;
}

/* Responsive Design for New Projects Section */
@media (max-width: 1024px) {
    .projects-title-left {
        font-size: 1.8rem;
    }

    .projects-year-left {
        font-size: 1.5rem;
    }

    .featured-projects-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .services-grid-new {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-title-left {
        font-size: 1.5rem;
    }

    .projects-subtitle-left {
        font-size: 0.85rem;
    }

    .projects-year-left {
        font-size: 1.2rem;
    }

    .featured-projects-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-project-standalone {
        max-width: 100% !important;
    }

    .featured-project-image-new {
        height: 240px;
    }

    .featured-project-info-new {
        padding: 1.2rem;
    }

    .featured-project-info-new h3 {
        font-size: 0.9rem;
    }

    .featured-project-info-new p {
        font-size: 0.75rem;
    }

    .btn-featured-primary-new,
    .btn-featured-secondary-new {
        min-width: 80px;
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }

    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .services-title-new {
        font-size: 1.5rem;
    }

    .service-image-new {
        height: 200px;
    }

    .service-card-new h3 {
        font-size: 0.95rem;
        margin: 1rem 0.8rem 0.4rem;
    }

    .service-card-new p {
        font-size: 0.75rem;
        margin: 0 0.8rem 1rem;
    }
}

/* ==================== Services Section ==================== */
.services-section-new {
    margin-top: 80px;
    padding: 80px 0;
    background: rgba(17, 26, 43, 0.3);
}

.services-title-new {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
}

.services-title-new::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.services-subtitle-new {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card-new {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.service-image-new {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card-new:hover .service-image-new img {
    transform: scale(1.1);
}

.service-card-new h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    padding: 20px 20px 10px;
    text-align: center;
}

.service-card-new p {
    font-size: 0.95rem;
    color: var(--text-gray);
    padding: 0 20px 25px;
    text-align: center;
    line-height: 1.6;
}

/* Responsive Design for Services */
@media (max-width: 992px) {
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid-new {
        grid-template-columns: 1fr;
    }

    .services-title-new {
        font-size: 2.2rem;
    }
}


/* ==================== Services Section ==================== */
.services-section-new {
    margin-top: 80px;
    padding: 80px 0;
    background: rgba(17, 26, 43, 0.3);
}

.services-title-new {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0 auto 20px;
    position: relative;
    padding-bottom: 25px;
    display: block;
    width: 100%;
}

.services-title-new::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 120px;
    height: 4px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.services-subtitle-new {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.3rem;
    margin: 0 auto 70px;
    font-weight: 300;
    display: block;
    width: 100%;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card-new {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid var(--border-color);
    position: relative;
}

.service-card-new:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.4);
}

.service-image-new {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card-new:hover .service-image-new img {
    transform: scale(1.15);
}

.service-card-new h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
    padding: 25px 20px 12px;
    text-align: center;
}

.service-card-new p {
    font-size: 0.98rem;
    color: var(--text-gray);
    line-height: 1.7;
    padding: 0 20px 30px;
    text-align: center;
    margin: 0;
}

/* Responsive Design for Services */
@media (max-width: 992px) {
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .services-title-new {
        font-size: 2.8rem;
    }

    .services-subtitle-new {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .services-title-new {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .services-subtitle-new {
        font-size: 1rem;
        margin-bottom: 50px;
    }

    .service-image-new {
        height: 200px;
    }
}

/* Code Modal Styling */
.code-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.code-modal-content {
    background: #111a2b;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.code-modal-content h2 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.code-modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    transition: color 0.3s;
}

.code-modal-close:hover {
    color: #00ffff;
}

.code-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.code-display pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    color: #00d2ff;
    font-size: 0.85rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.btn-copy-code {
    background: linear-gradient(135deg, #00d2ff 0%, #0099cc 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    margin: 0 auto;
}

.btn-copy-code:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.btn-copy-code:active {
    transform: translateY(-1px);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .code-modal-content {
        max-width: 95%;
        padding: 1.5rem;
    }

    .code-display pre {
        font-size: 0.75rem;
    }

    .code-modal-close {
        right: 1rem;
        font-size: 1.5rem;
    }
}

/* ========================================
   CREATIVE ANIMATIONS FOR PORTFOLIO
   ======================================== */

/* 1. Smooth Fade In Animation for Sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Glow Pulse Animation */
@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 210, 255, 0.3), 0 0 20px rgba(0, 210, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 210, 255, 0.6), 0 0 30px rgba(0, 210, 255, 0.3);
    }
}

/* 3. Float Animation for Cards */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* 4. Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 5. Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 6. Scale and Rotate Animation */
@keyframes scaleAndRotate {
    0% {
        transform: scale(0.8) rotate(-5deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* 7. Bounce Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-5px);
    }
}

/* 8. Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

/* 9. Color Pulse Animation */
@keyframes colorPulse {

    0%,
    100% {
        border-color: rgba(0, 210, 255, 0.3);
    }

    50% {
        border-color: rgba(0, 210, 255, 0.8);
    }
}

/* 10. Rotate Animation */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   APPLY ANIMATIONS TO ELEMENTS
   ======================================== */

/* Animate Section Heading */
.section-heading {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Animate Skill Items */
.skill-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.skill-item:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-item:nth-child(2) {
    animation-delay: 0.15s;
}

.skill-item:nth-child(3) {
    animation-delay: 0.2s;
}

.skill-item:nth-child(4) {
    animation-delay: 0.25s;
}

.skill-item:nth-child(5) {
    animation-delay: 0.3s;
}

.skill-item:nth-child(6) {
    animation-delay: 0.35s;
}

.skill-item:nth-child(7) {
    animation-delay: 0.4s;
}

.skill-item:nth-child(8) {
    animation-delay: 0.45s;
}

.skill-item:nth-child(9) {
    animation-delay: 0.5s;
}

/* Animate Featured Project Cards */
.featured-project-card-new {
    animation: scaleAndRotate 0.7s ease-out both;
}

.featured-projects-grid-new .featured-project-card-new:nth-child(1) {
    animation-delay: 0.2s;
}

.featured-projects-grid-new .featured-project-card-new:nth-child(2) {
    animation-delay: 0.4s;
}

.featured-project-standalone:nth-child(n+3) .featured-project-card-new {
    animation-delay: 0.5s;
}

/* Animate Service Cards */
.service-card-new {
    animation: fadeInUp 0.7s ease-out backwards;
}

.service-card-new:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card-new:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card-new:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card-new:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card-new:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card-new:nth-child(6) {
    animation-delay: 0.6s;
}

/* Glow effect on hover for Featured Projects */
.featured-project-card-new:hover {
    animation: glowPulse 1.5s ease-in-out infinite;
}

/* Float effect for Certificate Cards */
.certificate-card {
    animation: fadeInUp 0.7s ease-out backwards;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    animation: float 3s ease-in-out infinite;
}

.certificate-card:nth-child(1) {
    animation-delay: 0.1s;
}

.certificate-card:nth-child(2) {
    animation-delay: 0.2s;
}

.certificate-card:nth-child(3) {
    animation-delay: 0.3s;
}

.certificate-card:nth-child(4) {
    animation-delay: 0.4s;
}

.certificate-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Animate Education Items */
.education-item {
    animation: slideInLeft 0.6s ease-out backwards;
}

.education-item:nth-child(1) {
    animation-delay: 0.2s;
}

.education-item:nth-child(2) {
    animation-delay: 0.4s;
}

/* Animate Experience Items */
.experience-item {
    animation: slideInRight 0.6s ease-out backwards;
}

.experience-item:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out backwards;
}

/* Smooth button transitions */
.btn-featured-primary-new,
.btn-featured-secondary-new,
.btn-download-cv,
.btn-linkedin {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

/* Ripple effect styles */
.btn-featured-primary-new .ripple,
.btn-featured-secondary-new .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-featured-primary-new::before,
.btn-featured-secondary-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 210, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-featured-primary-new:hover::before,
.btn-featured-secondary-new:hover::before {
    left: 100%;
}

/* Animate Skill Category Boxes */
.skill-category-box {
    animation: fadeInUp 0.8s ease-out backwards;
}

.skill-category-box:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-category-box:nth-child(2) {
    animation-delay: 0.4s;
}

.skill-category-box:nth-child(3) {
    animation-delay: 0.6s;
}

/* Animate Contact Cards */
.contact-card {
    animation: scaleAndRotate 0.6s ease-out backwards;
    transition: all 0.3s ease;
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Add subtle pulsing effect to contact cards */
.contact-card:hover {
    animation: bounce 0.6s ease-in-out;
}

/* Animate Skill Badges */
.skill-badge {
    animation: fadeInUp 0.6s ease-out backwards;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-badge:nth-child(1) {
    animation-delay: 0.05s;
}

.skill-badge:nth-child(2) {
    animation-delay: 0.1s;
}

.skill-badge:nth-child(3) {
    animation-delay: 0.15s;
}

.skill-badge:nth-child(4) {
    animation-delay: 0.2s;
}

.skill-badge:nth-child(5) {
    animation-delay: 0.25s;
}

.skill-badge:nth-child(6) {
    animation-delay: 0.3s;
}

.skill-badge:nth-child(7) {
    animation-delay: 0.35s;
}

/* Pulsing glow on skill badges */
.skill-badge:hover {
    animation: glowPulse 1s ease-in-out infinite;
}

/* Animate Hero Image */
.hero-image {
    animation: float 4s ease-in-out infinite;
}

/* Animate Logo and Brand */
.logo {
    animation: slideInLeft 0.8s ease-out;
}

/* Navigation links animation */
.navbar a {
    position: relative;
    transition: all 0.3s ease;
}

.navbar a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar a:hover::before {
    width: 100%;
}

/* Text animation - smooth reveal */
.about-bio {
    animation: fadeInUp 0.8s ease-out backwards;
}

.about-bio:nth-of-type(1) {
    animation-delay: 0.2s;
}

.about-bio:nth-of-type(2) {
    animation-delay: 0.4s;
}

/* Portfolio year animation */
.portfolio-year {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    letter-spacing: 2px;
}

/* Animate Section Content On Display */
.section-content.active-section {
    animation: fadeInUp 0.8s ease-in-out !important;
}

/* Image scale effect */
.about-image img,
.hero-image img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-image:hover img,
.hero-image:hover img {
    transform: scale(1.05);
}

/* Border animation on hover */
/* Smooth transitions for all interactive elements */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* ========================================
   SPECIAL EFFECTS
   ======================================== */

/* Typing animation for hero text */
@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {

    0%,
    49% {
        border-color: var(--primary-color);
    }

    50%,
    100% {
        border-color: transparent;
    }
}

/* Hero name animation */
.hero-name {
    animation: fadeInUp 0.8s ease-out, glowPulse 3s ease-in-out infinite;
    animation-delay: 0.3s, 1s;
}

/* Hero subtitle animation */
.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* Parallax-like effect for sections */
.section-content {
    animation: fadeInUp 0.8s ease-in-out;
}

/* Smooth color transitions for skill items */
.skill-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth transitions for category boxes */
.skill-category-box {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhance service cards with smooth scale */
.service-card-new {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Project cards smooth animation */
.featured-project-card-new {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Placeholder style for Smart Attendance image */
.featured-project-standalone:nth-of-type(2) .featured-project-image-new {
    background: linear-gradient(135deg, #0066CC 0%, #00B8D4 50%, #0066CC 100%);
    background-size: 200% 200%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

.featured-project-standalone:nth-of-type(2) .featured-project-image-new::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveGrid 10s linear infinite;
}

.featured-project-standalone:nth-of-type(2) .featured-project-image-new::after {
    content: '';
    position: absolute;
    font-size: 80px;
    z-index: 2;
}

/* Create visual icon for Smart Attendance */
.featured-project-standalone:nth-of-type(2) .featured-project-image-new img:not([src])~* {
    content: '📸👤✓';
    font-size: 60px;
    z-index: 3;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 20px);
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-10px) scale(1.1);
    }
}

/* Certificate cards smooth animation */
.certificate-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========================================
   RESPONSIVE ANIMATIONS
   ======================================== */

@media (max-width: 768px) {

    /* Reduce animation complexity on mobile */
    .skill-item {
        animation: fadeInUp 0.5s ease-out backwards !important;
    }

    .featured-project-card-new {
        animation: fadeInUp 0.5s ease-out backwards !important;
    }

    .service-card-new {
        animation: fadeInUp 0.5s ease-out backwards !important;
    }

    .certificate-card {
        animation: fadeInUp 0.5s ease-out backwards !important;
    }

    /* Disable float animation on mobile for performance */
    .certificate-card:hover {
        animation: none !important;
    }

    .hero-image {
        animation: float 5s ease-in-out infinite;
    }
}

/* ========================================
   SMART ATTENDANCE PROJECT STYLING
   ======================================== */

/* Smart Attendance 3D Gallery Card */
.smart-attendance-card {
    background: rgba(17, 26, 43, 0.9);
    border-color: rgba(0, 210, 255, 0.3);
}

.smart-attendance-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.3);
}

.smart-attendance-showcase {
    height: 360px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0.85rem !important;
    background: transparent !important;
}

.smart-attendance-gallery {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.78rem;
}

.smart-attendance-frame {
    position: relative;
    margin: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    isolation: isolate;
}

.smart-attendance-frame::before {
    content: none;
}

.smart-attendance-frame--hero {
    grid-row: 1 / span 3;
}

.smart-attendance-card .smart-attendance-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    filter: none !important;
    transition: none !important;
    background: transparent !important;
}

.smart-attendance-card:hover .featured-project-image-new img {
    transform: none;
    filter: none !important;
}

.smart-attendance-card:hover .smart-attendance-frame img {
    transform: none;
}

.smart-attendance-frame figcaption {
    display: none;
}

.smart-attendance-card .featured-project-info-new {
    background: rgba(17, 26, 43, 0.8);
}

.smart-attendance-highlights {
    display: none;
}

.smart-attendance-highlights span {
    display: none;
}

/* Special styling for Smart Attendance Card */
.featured-project-standalone:nth-of-type(2) .featured-project-card-new {
    border: 2px solid rgba(0, 200, 255, 0.4);
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.1), rgba(0, 200, 255, 0.05));
}

.featured-project-standalone:nth-of-type(2) .featured-project-card-new:hover {
    border-color: rgba(0, 200, 255, 0.8);
    background: linear-gradient(135deg, rgba(0, 100, 200, 0.2), rgba(0, 200, 255, 0.15));
    box-shadow: 0 15px 40px rgba(0, 200, 255, 0.5), inset 0 0 20px rgba(0, 210, 255, 0.1);
}

/* SVG Animation */
.featured-project-standalone:nth-of-type(2) .featured-project-image-new img {
    filter: drop-shadow(0 0 20px rgba(0, 200, 255, 0.3));
    animation: svgGlow 2s ease-in-out infinite;
}

@keyframes svgGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 150, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(0, 200, 255, 0.6));
    }
}

@media (max-width: 768px) {
    .smart-attendance-showcase {
        height: auto !important;
    }

    .smart-attendance-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto auto auto;
    }

    .smart-attendance-frame {
        aspect-ratio: 4 / 3;
    }

    .smart-attendance-frame--hero {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 560px) {
    .smart-attendance-gallery {
        grid-template-columns: 1fr;
    }

    .smart-attendance-frame--hero {
        grid-column: auto;
    }
}

/* ========================================
   ENHANCED PROJECT CARD EFFECTS
   ======================================== */

/* Gradient background animation on hover */
.featured-project-card-new:hover {
    position: relative;
}

.featured-project-card-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 210, 255, 0.1) 50%, transparent 70%);
    background-size: 200% 200%;
    animation: shimmerEffect 3s infinite;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

@keyframes shimmerEffect {
    0% {
        background-position: 200% 200%;
    }

    100% {
        background-position: -200% -200%;
    }
}

/* ========================================
   STAGGERED ANIMATIONS FOR BETTER UX
   ======================================== */

/* Cascade animation for multiple cards */
.featured-projects-grid-new .featured-project-card-new {
    animation: cascadeIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) backwards;
}

.featured-projects-grid-new .featured-project-card-new:nth-child(1) {
    animation-delay: 0.1s;
}

.featured-projects-grid-new .featured-project-card-new:nth-child(2) {
    animation-delay: 0.3s;
}

@keyframes cascadeIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================
   MICRO-INTERACTIONS
   ======================================== */

/* Button ripple effect */
.btn-featured-primary-new,
.btn-featured-secondary-new {
    position: relative;
    overflow: hidden;
}

.btn-featured-primary-new::after,
.btn-featured-secondary-new::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 210, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-featured-primary-new:active::after,
.btn-featured-secondary-new:active::after {
    width: 300px;
    height: 300px;
    transition: width 0.3s, height 0.3s;
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

/* Animated title for projects */
.projects-title-left {
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-subtitle-left {
    animation: slideInUp 0.8s ease-out 0.1s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-year-left {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========================================
   SERVICES SECTION ENHANCEMENTS
   ======================================== */

.services-title-new {
    animation: slideInDown 0.8s ease-out 0.1s both;
    position: relative;
}

.services-title-new::after {
    animation: scaleX 0.8s ease-out 0.5s both;
    transform-origin: left;
}

@keyframes scaleX {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
    }
}

.services-subtitle-new {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ========================================
   CERTIFICATE SECTION ENHANCEMENTS
   ======================================== */

.certificates-main-title {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.certificates-intro h3 {
    animation: slideInDown 0.8s ease-out 0.2s both;
}

.certificates-intro p {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* ========================================
   ADVANCED HOVER EFFECTS
   ======================================== */

/* 3D perspective hover effect */
.featured-project-card-new {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.featured-project-card-new:hover {
    transform: rotateY(2deg) rotateX(2deg);
}

.featured-project-info-new {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Smooth color transition for skill items */
.skill-item {
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.4s ease;
    z-index: -1;
}

.skill-item:hover::before {
    left: 100%;
}

/* ========================================
   LOADING AND TRANSITION STATES
   ======================================== */

/* Smooth page transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: pageEnter 0.8s ease-out;
}

/* ========================================
   PARALLAX AND DEPTH EFFECTS
   ======================================== */

/* Card depth effect */
.featured-project-card-new,
.service-card-new,
.certificate-card {
    position: relative;
}

.featured-project-card-new::after,
.service-card-new::after,
.certificate-card::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    filter: blur(5px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.featured-project-card-new:hover::after,
.service-card-new:hover::after,
.certificate-card:hover::after {
    opacity: 1;
    bottom: -15px;
}

/* PDF Viewer Modal */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-modal[style*="flex"] {
    display: flex !important;
}

.pdf-modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 700px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 210, 255, 0.8);
}

.pdf-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-modal-close:hover {
    color: #fff;
    background: rgba(0, 210, 255, 0.3);
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .pdf-modal-content {
        max-width: 90%;
        height: 600px;
    }
}

@media (max-width: 768px) {
    .pdf-modal-content {
        max-width: 95%;
        height: 500px;
    }

    .pdf-modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .pdf-modal-content {
        max-width: 98%;
        height: 400px;
    }

    .pdf-modal-close {
        top: 5px;
        right: 5px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

/* Video Player Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 600px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 210, 255, 0.8);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-close:hover {
    color: #fff;
    background: rgba(0, 210, 255, 0.3);
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .video-modal-content {
        max-width: 90%;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .video-modal-content {
        max-width: 95%;
        height: 350px;
    }

    .video-modal-close {
        top: 10px;
        right: 10px;
        font-size: 2rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .video-modal-content {
        max-width: 98%;
        height: 250px;
    }

    .video-modal-close {
        top: 5px;
        right: 5px;
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #00d2ff, #00a8e8);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    z-index: 9997;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.4);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #00a8e8, #0088c9);
    box-shadow: 0 6px 30px rgba(0, 210, 255, 0.6);
    transform: translateY(-3px);
}

.back-to-top:active {
    transform: translateY(0);
}

/* Back to Top Button Responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;

    }
}


/* --- Custom Cursor Styles --- */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.2s;
    mix-blend-mode: difference;
    opacity: 0;
}

.custom-cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 210, 255, 0.1);
    border-color: transparent;
}

/* Hide default cursor on interactive elements */
body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button {
    cursor: none;
}


/* --- Glitch Text Effect --- */
@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-2deg);
    }

    40% {
        transform: skew(2deg);
    }

    60% {
        transform: skew(-1deg);
    }

    80% {
        transform: skew(1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

@keyframes glitch-anim {
    0% {
        text-shadow: 2px 2px #ff00c1, -2px -2px #00fff9;
        transform: translate(2px, 0);
    }

    2% {
        text-shadow: -2px 2px #ff00c1, 2px -2px #00fff9;
        transform: translate(-2px, 0);
    }

    4% {
        text-shadow: 0 0 transparent, 0 0 transparent;
        transform: translate(0, 0);
    }

    100% {
        text-shadow: 0 0 transparent, 0 0 transparent;
        transform: translate(0, 0);
    }
}

.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch-anim 3s infinite linear;
}

.glitch-text:hover {
    animation: glitch-anim 0.3s infinite linear;
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* --- Mobile Fixes (Max Width 480px) --- */
@media (max-width: 480px) {

    /* Hero Name Scaling */
    .hero-name {
        font-size: 1.8rem !important;
        /* Force smaller font */
        padding: 10px 15px !important;
        /* Reduce padding for rectangle */
        width: 100%;
        box-sizing: border-box;
    }

    .gradient-text {
        white-space: normal;
        /* Allow text to wrap if needed */
        display: block;
    }

    /* Tech Icons Wrapping */
    .tech-icons {
        gap: 0.5rem !important;
    }

    .tech-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* General Padding */
    .container {
        padding: 0 15px !important;
    }

    .section-content {
        padding: 2rem 0;
    }

    /* Stats Grid */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* --- Experience Section Mobile (Single Column) --- */
    .experience-timeline::before {
        left: 15px !important;
        transform: none !important;
    }

    .experience-item {
        width: 100% !important;
        margin-bottom: 1.5rem;
        padding-left: 45px !important;
        padding-right: 0 !important;
        left: 0 !important;
    }

    .experience-item.left,
    .experience-item.right {
        left: 0 !important;
        text-align: left !important;
        padding-left: 45px !important;
        padding-right: 0 !important;
        justify-content: flex-start !important;
    }

    .experience-item::before {
        top: 20px !important;
        left: 5px !important;
        right: auto !important;
        width: 12px !important;
        height: 12px !important;
    }

    /* Adjust card content for narrow columns */
    .experience-card {
        padding: 10px !important;
    }

    .experience-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 5px;
    }

    .experience-date-badge {
        font-size: 0.6rem !important;
        padding: 2px 5px !important;
        margin-bottom: 5px;
        display: inline-block;
    }

    .tag {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
    }
}

/* --- Magnetic Button Transition --- */
.magnetic-button {
    transition: transform 0.2s cubic-bezier(0.33, 1, 0.68, 1);
}

/* --- Project Preview Modal --- */
.project-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.show {
    opacity: 1;
}

.project-modal-content {
    background: rgba(16, 20, 24, 0.95);
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 210, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-modal.show .project-modal-content {
    transform: scale(1);
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.project-modal-close:hover {
    color: var(--primary-color);
}

.project-modal-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    height: 100%;
}

.project-modal-media {
    background:
        radial-gradient(circle at top, rgba(0, 210, 255, 0.08), transparent 48%),
        #050b14;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    min-height: 300px;
    overflow: hidden;
}

.project-modal-media img,
.project-modal-media video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-modal-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-modal-details h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-modal-details p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.project-modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsiveness */
@media (max-width: 768px) {
    .project-modal-grid {
        grid-template-columns: 1fr;
    }

    .project-modal-media {
        min-height: 200px;
        padding: 0;
    }

    .project-modal-media img {
        border-radius: 20px 20px 0 0;
        max-height: 300px;
    }

    .project-modal-details {
        padding: 25px;
    }

    .project-modal-details h3 {
        font-size: 1.5rem;
    }
}



/* ========================================
   ENHANCED SKILLS SECTION STYLES
   ======================================== */

/* Web Development Category - Enhanced with Proficiency Bars */
.web-dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-item-enhanced {
    background: rgba(255, 107, 53, 0.08);
    border: 2px solid rgba(255, 107, 53, 0.25);
    border-radius: 14px;
    padding: 1.4rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-item-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.15), transparent);
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.skill-item-enhanced:hover::before {
    left: 100%;
}

.skill-item-enhanced:hover {
    background: rgba(255, 107, 53, 0.18);
    border-color: rgba(255, 107, 53, 0.5);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.35), 
                0 0 30px rgba(255, 107, 53, 0.15) inset,
                0 0 15px rgba(255, 107, 53, 0.1);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.skill-icon {
    font-size: 2rem;
    color: #FF6B35;
    min-width: 35px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

.skill-item-enhanced:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.6));
}

.skill-name {
    font-weight: 700;
    color: var(--text-white);
    font-size: 0.98rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.proficiency-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    border: 2px solid rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B35 0%, #FF8C42 50%, #FFA55E 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6),
                inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: relative;
}

.proficiency-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border-radius: 10px;
}

.proficiency-text {
    font-size: 0.8rem;
    color: #FF6B35;
    font-weight: 800;
    display: block;
    text-align: right;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 4px rgba(255, 107, 53, 0.2);
}

/* Electronics Category - with Schematic Background */
.electronics-category {
    position: relative;
    overflow: hidden;
}

.schematic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.schematic-svg {
    width: 100%;
    height: 100%;
}

.electronics-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Electronics Category - Enhanced Skills with Icons and Bars */
.electronics-grid .skill-item-enhanced {
    background: rgba(38, 77, 228, 0.08);
    border: 1px solid rgba(38, 77, 228, 0.2);
}

.electronics-grid .skill-item-enhanced:hover {
    background: rgba(38, 77, 228, 0.15);
    border-color: rgba(38, 77, 228, 0.4);
    border-color: rgba(38, 77, 228, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(38, 77, 228, 0.4), 0 5px 15px rgba(38, 77, 228, 0.2);
}

/* Tools Category - with Mini Carousels */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
}

.tool-item-with-carousel {
    background: rgba(123, 44, 191, 0.08);
    border: 1px solid rgba(123, 44, 191, 0.2);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.tool-item-with-carousel:hover {
    background: rgba(123, 44, 191, 0.15);
    border-color: rgba(123, 44, 191, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(123, 44, 191, 0.4), 0 8px 20px rgba(123, 44, 191, 0.2);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.tool-header .skill-icon {
    font-size: 1.5rem;
    color: #7B2CBF;
    min-width: 25px;
}

.tool-name {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
}

.mini-carousel {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 0.5px solid rgba(123, 44, 191, 0.2);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.1);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 16px;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 210, 255, 0.6);
}

/* Carousel Animation */
@keyframes carouselSlide {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-slide.active {
    animation: carouselSlide 0.5s ease;
}

/* Responsive Design for Enhanced Skills */
@media (max-width: 1199px) {
    .web-dev-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 991px) {
    .web-dev-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .electronics-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 0.8rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1rem;
    }

    .skill-item-enhanced {
        padding: 1rem;
    }

    .skill-header {
        gap: 0.6rem;
    }

    .skill-icon {
        font-size: 1.5rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }

    .proficiency-text {
        font-size: 0.7rem;
    }

    .mini-carousel {
        height: 70px;
    }
}

@media (max-width: 768px) {
    .web-dev-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .electronics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .skill-item-enhanced {
        padding: 0.8rem;
    }

    .skill-header {
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }

    .skill-icon {
        font-size: 1.3rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }

    .proficiency-bar {
        height: 6px;
        margin-bottom: 0.4rem;
    }

    .proficiency-text {
        font-size: 0.65rem;
    }

    .tool-header .skill-icon {
        font-size: 1.2rem;
    }

    .tool-name {
        font-size: 0.8rem;
    }

    .mini-carousel {
        height: 60px;
    }

    .carousel-dot {
        width: 5px;
        height: 5px;
    }

    .carousel-dot.active {
        width: 12px;
    }
}

@media (max-width: 480px) {
    .web-dev-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .electronics-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .skill-item-enhanced {
        padding: 0.7rem;
    }

    .skill-header {
        gap: 0.4rem;
        margin-bottom: 0.5rem;
    }

    .skill-icon {
        font-size: 1.2rem;
    }

    .skill-name {
        font-size: 0.75rem;
    }

    .proficiency-bar {
        height: 5px;
        margin-bottom: 0.3rem;
    }

    .proficiency-text {
        font-size: 0.6rem;
    }

    .tool-header .skill-icon {
        font-size: 1rem;
    }

    .tool-name {
        font-size: 0.75rem;
    }

    .mini-carousel {
        height: 50px;
    }

    .carousel-nav {
        bottom: 6px;
        gap: 4px;
    }

    .carousel-dot {
        width: 4px;
        height: 4px;
    }

    .carousel-dot.active {
        width: 10px;
    }
}

/* --- Custom Cursor --- */
body.custom-cursor-enabled {
    cursor: none;
    /* Hide default cursor */
}

body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled .clickable,
body.custom-cursor-enabled .magnetic-button,
body.custom-cursor-enabled .nav-link,
body.custom-cursor-enabled .featured-project-card-new,
body.custom-cursor-enabled .premium-project-card,
body.custom-cursor-enabled .tool-card {
    cursor: none;
    /* Ensure it stays hidden on clickable elements */
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.2s;
    mix-blend-mode: difference;
    opacity: 0;
}

#custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #00d2ff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.2s;
}

/* Hover State for Cursor */
body.hovering #custom-cursor {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 210, 255, 0.1);
    border-color: #00d2ff;
}

@media (hover: none), (pointer: coarse) {
    #custom-cursor,
    #custom-cursor-dot,
    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}

/* Mobile: Keep Education + Experience in desktop-style opposing layout */
@media (max-width: 767px) {
    /* Education timeline (left/right) */
    .timeline {
        max-width: 1000px;
        padding: 2rem 0;
    }

    .timeline::after {
        left: 50%;
        width: 2px;
    }

    .timeline-item {
        width: 50%;
        padding: 10px 20px;
        left: auto;
        text-align: right;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 20px;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 20px;
        text-align: left;
    }

    .timeline-item::after {
        width: 16px;
        height: 16px;
        top: 22px;
    }

    .timeline-item:nth-child(odd)::after {
        right: -8px;
        left: auto;
    }

    .timeline-item:nth-child(even)::after {
        left: -8px;
        right: auto;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    /* Experience timeline (left/right) */
    .experience-timeline::before {
        left: 50%;
        transform: translateX(-1px);
    }

    .experience-item {
        width: 100%;
        left: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .experience-item.left {
        justify-content: flex-end;
        padding-right: 50%;
        padding-left: 0;
        text-align: right;
    }

    .experience-item.right {
        justify-content: flex-start;
        padding-left: 50%;
        padding-right: 0;
        text-align: left;
    }

    .experience-item::before {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .experience-card {
        padding: 1rem;
    }

    .experience-card h3 {
        font-size: 1rem;
    }

    .experience-role {
        font-size: 0.85rem;
    }

    .experience-description {
        font-size: 0.8rem;
    }
}

/* --- Tabbed Interface Visibility --- */
/* Ensure strictly hidden/shown logic matches script.js */
.section-content {
    display: none !important;
    /* Force hide unless active */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.section-content.active-section {
    display: block !important;
    opacity: 1;
    animation: fadeIn 0.6s ease-out forwards;
}

/* --- Premium Sandbox Card --- */
.premium-project-card {
    position: relative;
    border: 1px solid rgba(0, 210, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.15);
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(15, 22, 36, 0.9) 0%, rgba(20, 30, 48, 0.95) 100%);
}

.premium-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.3);
    border-color: #00d2ff;
}

.premium-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ffc107, #ff9800);
    color: #000;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
    z-index: 2;
}

.premium-btn {
    background: linear-gradient(90deg, #00d2ff, #007bff);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    color: white;
    border: none;
}

.premium-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.6);
}

/* --- SciCalc Project Card --- */
.sci-calc-card {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(0, 210, 255, 0.35);
    background: radial-gradient(circle at top left, rgba(0, 210, 255, 0.12), rgba(17, 26, 43, 0.95) 55%);
}

.sci-calc-card::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 0, 153, 0.12), rgba(0, 210, 255, 0.12), transparent 60%);
    opacity: 0.4;
    transform: translateX(-20%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
}

.sci-calc-card:hover::before {
    transform: translateX(20%);
    opacity: 0.8;
}

.sci-calc-image {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(255, 0, 153, 0.08));
}

.sci-calc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    font-weight: 700;
    color: #0b1220;
    background: linear-gradient(90deg, #00d2ff, #ff4dd2);
    box-shadow: 0 0 16px rgba(0, 210, 255, 0.35);
}

.sci-calc-btn {
    border: none;
    background: linear-gradient(90deg, #00d2ff, #7b5cff);
    color: #0b1220;
    font-weight: 700;
    text-transform: uppercase;
}

.sci-calc-btn:hover {
    box-shadow: 0 8px 24px rgba(0, 210, 255, 0.45);
    transform: translateY(-2px);
}

.sci-calc-btn-outline {
    border: 1px solid rgba(0, 210, 255, 0.7);
    background: rgba(12, 20, 32, 0.8);
    color: #7fe3ff;
}

.sci-calc-btn-outline:hover {
    border-color: rgba(255, 77, 210, 0.9);
    box-shadow: 0 0 16px rgba(255, 77, 210, 0.35);
}

/* --- About Section Responsive (Modern Layout) --- */
@media (max-width: 1100px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-card {
        text-align: left;
    }

    .about-image {
        max-width: 520px;
        margin: 0 auto;
    }

    .about-kicker {
        font-size: 2.4rem;
        letter-spacing: 5px;
    }

    .about-heading {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .about-header-modern {
        margin-bottom: 2rem;
    }

    .about-kicker {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .about-heading {
        font-size: 1.6rem;
    }

    .about-intro {
        font-size: 0.95rem;
    }

    .about-card {
        padding: 1.6rem;
    }

    .about-actions {
        justify-content: center;
    }

    .about-socials {
        justify-content: center;
    }
}

/* --- Education Responsive --- */
@media (max-width: 968px) {
    .edu-cards {
        grid-template-columns: 1fr;
    }

    .edu-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .edu-kicker {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .edu-title {
        font-size: 1.6rem;
    }

    .edu-intro {
        font-size: 0.92rem;
    }

    .edu-section-title {
        font-size: 1rem;
    }

    .edu-mini-card {
        padding: 1.1rem;
    }
}

/* --- Control Panel --- */
.cp-launcher {
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(0, 210, 255, 0.55);
    background: linear-gradient(160deg, rgba(13, 25, 45, 0.95), rgba(10, 17, 30, 0.92));
    color: #e9f7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 0.78rem;
    min-width: 40px;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.cp-launcher i {
    font-size: 0.9rem;
    color: #00d2ff;
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.75);
}

.cp-launcher:focus-visible {
    outline: none;
    border-color: rgba(0, 210, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.25), 0 10px 24px rgba(0, 0, 0, 0.42);
}

.cp-launcher:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 210, 255, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.42), 0 0 16px rgba(0, 210, 255, 0.24);
}

.cp-nav-label {
    line-height: 1;
}

.cp-nav-launcher {
    margin: 0;
    align-self: center;
    justify-self: end;
    flex: 0 0 auto;
}

.cp-overlay {
    position: fixed;
    inset: 0;
    z-index: 11980;
    background: rgba(4, 10, 20, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.cp-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cp-modal {
    position: fixed;
    inset: 0;
    z-index: 11990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.cp-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cp-modal-card {
    position: relative;
    width: min(460px, 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.35);
    background: linear-gradient(165deg, rgba(12, 22, 38, 0.97), rgba(10, 16, 28, 0.95));
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.5);
    padding: 24px 24px 22px;
}

.cp-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
}

.cp-modal-card h3 {
    color: #ffffff;
    font-size: 1.22rem;
    margin-bottom: 8px;
}

.cp-login-subtitle {
    color: #9cb6cb;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.cp-login-form {
    display: grid;
    gap: 10px;
}

.cp-login-form label {
    color: #d4e8f9;
    font-size: 0.86rem;
    font-weight: 600;
}

.cp-login-form input {
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(130, 161, 190, 0.45);
    background: rgba(9, 15, 27, 0.88);
    color: #f4f9ff;
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-login-form input:focus {
    outline: none;
    border-color: rgba(0, 210, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.18);
}

.cp-login-error {
    min-height: 18px;
    color: #ff7e7e;
    font-size: 0.83rem;
}

.cp-panel {
    position: fixed;
    inset: 14px;
    z-index: 11995;
    width: min(1220px, calc(100vw - 28px));
    height: min(900px, calc(100vh - 28px));
    margin: auto;
    border-radius: 22px;
    border: 1px solid rgba(116, 156, 193, 0.42);
    background: linear-gradient(165deg, #0f2f57 0%, #0a2747 45%, #071f3e 100%);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.985);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.cp-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.cp-dashboard-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    gap: 10px;
    padding: 10px;
}

.cp-panel-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(147, 183, 216, 0.34);
    border-radius: 14px;
    background: rgba(7, 29, 55, 0.7);
    padding: 10px 12px;
}

.cp-header-close {
    border-radius: 12px;
    width: 36px;
    height: 36px;
    background: rgba(38, 72, 105, 0.7);
    border-color: rgba(144, 185, 219, 0.44);
}

.cp-panel-title-wrap h2 {
    margin: 0;
    color: #f4fbff;
    font-size: 1.28rem;
    line-height: 1.15;
    text-align: end;
}

.cp-panel-title-wrap p {
    margin: 4px 0 0;
    color: rgba(205, 226, 245, 0.88);
    font-size: 0.82rem;
    text-align: end;
}

.cp-panel-scroll {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 10px;
    overflow: hidden;
}

.cp-admin-top-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cp-admin-top-grid.is-collapsed {
    display: none;
}

.cp-admin-tools-toggle {
    justify-self: start;
    min-height: 36px;
}

.cp-card {
    border: 1px solid #c4d1de;
    background: linear-gradient(180deg, #f2f5f8 0%, #e8edf3 100%);
    border-radius: 14px;
    padding: 14px 15px;
    color: #1a324b;
    box-shadow: 0 8px 22px rgba(7, 35, 63, 0.08);
}

.cp-top-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #223f5d;
}

.cp-card h3 {
    margin: 0;
    color: #233e5a;
    font-size: 1rem;
}

.cp-card-desc {
    margin: 6px 0 10px;
    color: #55738f;
    font-size: 0.83rem;
}

.cp-backup-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cp-passcode-box {
    display: grid;
    gap: 8px;
}

.cp-passcode-box label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #3c5a76;
}

.cp-passcode-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.cp-passcode-row input {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #bfd0df;
    background: #fbfdff;
    color: #1f3953;
    padding: 0 12px;
}

.cp-passcode-row input:focus {
    outline: none;
    border-color: #2b7ec4;
    box-shadow: 0 0 0 3px rgba(43, 126, 196, 0.14);
}

.cp-quick-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #c8d7e6;
    display: grid;
    gap: 8px;
}

.cp-quick-actions-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #3c5974;
}

.cp-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cp-quick-actions-grid .cp-btn {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.76rem;
}

.cp-tab-strip {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(147, 183, 216, 0.34);
    border-radius: 14px;
    background: rgba(7, 29, 55, 0.65);
    padding: 12px;
}

.cp-tab-strip-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-tab-strip-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.cp-tab-strip-kicker,
.cp-card-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 0 12px;
    min-height: 28px;
    background: rgba(16, 93, 160, 0.22);
    border: 1px solid rgba(146, 188, 224, 0.32);
    color: #d4ebff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-tab-strip-note {
    margin: 0;
    color: rgba(214, 232, 248, 0.9);
    font-size: 0.82rem;
    max-width: 720px;
}

.cp-tab-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cp-tab-group {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-content: start;
}

.cp-tab-group-label {
    color: #cce2f8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-tab-group-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cp-tab-btn,
.cp-logout-pill {
    border-radius: 999px;
    white-space: nowrap;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

.cp-tab-btn-section {
    font-size: 0.76rem;
    min-height: 34px;
    padding: 0 11px;
    opacity: 0.92;
}

.cp-tab-content {
    min-height: 0;
    border: 1px solid rgba(147, 183, 216, 0.34);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(8, 32, 59, 0.7), rgba(7, 25, 46, 0.72));
    padding: 12px;
    overflow: hidden;
}

.cp-tab-panel {
    display: none;
    min-height: 0;
    height: 100%;
    gap: 12px;
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
}

.cp-tab-panel.is-active {
    display: grid;
}

.cp-tab-panel[data-cp-tab-panel="section"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.cp-tab-panel[data-cp-tab-panel="settings"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
}

.cp-btn {
    border: 1px solid #b2c4d7;
    border-radius: 10px;
    padding: 9px 12px;
    background: #f9fbfd;
    color: #15314e;
    font-size: 0.83rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cp-btn:hover {
    border-color: #4c95d1;
    box-shadow: 0 0 0 2px rgba(76, 149, 209, 0.14);
}

.cp-btn-primary {
    background: linear-gradient(135deg, #0f9d78, #0b8368);
    border-color: transparent;
    color: #f4fffc;
}

.cp-btn-secondary {
    background: #ffffff;
}

.cp-btn-danger {
    background: #ffe6e8;
    border-color: #ffc4cb;
    color: #af3747;
}

.cp-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 202, 211, 0.35);
    color: #ffd8df;
}

.cp-btn-lang {
    min-width: 86px;
}

.cp-btn-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
}

.cp-tab-btn {
    background: rgba(33, 69, 104, 0.86);
    border: 1px solid rgba(149, 185, 218, 0.38);
    color: #d7e7f8;
}

.cp-tab-btn.is-active {
    background: linear-gradient(135deg, #1988f1, #0f6bc4);
    border-color: rgba(198, 227, 255, 0.62);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 107, 196, 0.35);
}

.cp-hidden-control {
    display: none !important;
}

.cp-context-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px dashed #aec4d8;
    background: #f7fbff;
    color: #3d5f7c;
    font-size: 0.76rem;
    font-weight: 700;
}

.cp-section-workspace-card,
.cp-section-preview-card {
    grid-column: 1 / -1;
}

.cp-section-workspace-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.cp-section-workspace-copy {
    display: grid;
    gap: 8px;
}

.cp-section-workspace-copy h3 {
    margin: 0;
    font-size: 1.22rem;
    color: #1a3956;
}

.cp-section-workspace-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cp-section-visibility-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #bfd0df;
    background: #fbfdff;
    color: #284764;
    font-size: 0.8rem;
    font-weight: 700;
}

.cp-section-visibility-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #0f6bc4;
}

.cp-section-preview {
    border: 1px solid #d6e2ec;
    border-radius: 12px;
    background: #ffffff;
    max-height: 360px;
    overflow: auto;
    padding: 14px;
    font-size: 0.92rem;
}

.cp-section-preview .container {
    max-width: 100%;
    padding: 0;
}

.cp-section-preview .section-content {
    min-height: 0;
    padding: 18px 0;
    animation: none;
}

.cp-section-preview a,
.cp-section-preview button {
    pointer-events: none;
}

.cp-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cp-btn-mode.active {
    background: linear-gradient(135deg, rgba(31, 136, 241, 0.2), rgba(15, 107, 196, 0.2));
    border-color: rgba(15, 107, 196, 0.76);
    color: #165594;
}

.cp-section-list {
    display: grid;
    gap: 8px;
}

.cp-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #c9d6e2;
    border-radius: 10px;
    padding: 10px;
    color: #2f4d69;
    background: #f9fbfd;
    font-size: 0.82rem;
}

.cp-section-row input {
    accent-color: #0f6bc4;
    width: 16px;
    height: 16px;
}

.cp-add-form,
.cp-values-editor,
.cp-item-editor,
.cp-item-toolbar {
    display: grid;
    gap: 8px;
}

.cp-item-toolbar {
    grid-template-columns: 1fr auto;
    align-items: end;
}

.cp-item-toolbar label,
.cp-item-toolbar select {
    grid-column: 1 / -1;
}

.cp-add-form label,
.cp-values-editor label,
.cp-item-toolbar label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3e5d7a;
}

.cp-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cp-inline-actions-compact {
    margin-top: 2px;
}

.cp-inline-actions-compact .cp-btn {
    min-height: 32px;
    padding: 0 11px;
    font-size: 0.75rem;
}

.cp-upload-name {
    font-size: 0.76rem;
    color: #55738f;
}

.cp-add-form input,
.cp-add-form textarea,
.cp-add-form select,
.cp-values-editor select,
.cp-item-toolbar select,
.cp-value-input,
.cp-item-field input,
.cp-item-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #bccdde;
    background: #ffffff;
    color: #1f3953;
    padding: 9px 11px;
    font-size: 0.82rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cp-add-form textarea,
.cp-value-input,
.cp-item-field textarea {
    resize: vertical;
}

.cp-add-form input:focus,
.cp-add-form textarea:focus,
.cp-add-form select:focus,
.cp-values-editor select:focus,
.cp-item-toolbar select:focus,
.cp-value-input:focus,
.cp-item-field input:focus,
.cp-item-field textarea:focus {
    outline: none;
    border-color: #2b7ec4;
    box-shadow: 0 0 0 3px rgba(43, 126, 196, 0.12);
}

.cp-value-list,
.cp-image-list,
.cp-item-list {
    max-height: 420px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    padding-right: 2px;
}

.cp-value-row,
.cp-item-row {
    border: 1px solid #c8d6e3;
    border-radius: 10px;
    background: #ffffff;
}

.cp-value-row {
    padding: 9px;
    display: grid;
    gap: 6px;
}

.cp-value-row-title {
    font-size: 0.75rem;
    color: #5a7690;
}

.cp-value-attr-input {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #bccdde;
    background: #ffffff;
    color: #1f3953;
    padding: 9px 11px;
    font-size: 0.8rem;
}

.cp-value-attr-input:focus {
    outline: none;
    border-color: #2b7ec4;
    box-shadow: 0 0 0 3px rgba(43, 126, 196, 0.12);
}

.cp-image-row {
    gap: 8px;
}

.cp-image-preview {
    width: 100%;
    max-height: 170px;
    border-radius: 10px;
    border: 1px solid #bfd0df;
    background: #f4f8fb;
    object-fit: contain;
    padding: 6px;
}

.cp-image-actions,
.cp-item-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Force flexible image display for uploaded images with any dimensions */
.cp-free-size-image,
.certificate-image img,
.cert-img-box img,
.featured-project-image-new img,
.service-image-new img {
    object-fit: contain !important;
    background: #f4f8fb;
}

.cp-image-fallback {
    object-fit: cover !important;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(255, 255, 255, 0.06));
    padding: 0 !important;
}

.cp-item-head {
    width: 100%;
    border: none;
    background: #f1f6fb;
    color: #2c4866;
    text-align: start;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.cp-item-body {
    display: none;
    padding: 10px;
    border-top: 1px solid #d5e1ec;
    gap: 8px;
}

.cp-item-row.open .cp-item-body {
    display: grid;
}

.cp-item-field {
    display: grid;
    gap: 5px;
}

.cp-item-field label {
    font-size: 0.74rem;
    color: #57738d;
}

.cp-status {
    min-height: 22px;
    font-size: 0.82rem;
    color: #d1eeff;
    padding: 0 6px 4px;
}

.cp-status.error {
    color: #ffd0d5;
}

.cp-generic-zone {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.cp-generic-card {
    border: 1px solid rgba(139, 167, 193, 0.35);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
    padding: 14px;
    box-shadow: 0 10px 26px rgba(17, 49, 78, 0.08);
}

.cp-generic-image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #d7e4ef;
    margin-bottom: 10px;
}

.cp-generic-title {
    margin: 0 0 8px;
    color: #1f3d5a;
    font-size: 1.05rem;
    font-weight: 700;
}

.cp-generic-description {
    margin: 0;
    color: #3f5e7a;
    line-height: 1.7;
}

.cp-generic-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #b6cbe0;
    background: #f7fbff;
    color: #1b4f82;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cp-generic-link:hover {
    border-color: #3f88c6;
    box-shadow: 0 0 0 2px rgba(63, 136, 198, 0.13);
}

.cp-hover-target {
    outline: 2px dashed rgba(0, 210, 255, 0.95);
    outline-offset: 2px;
    cursor: crosshair !important;
}

.cp-editing-now {
    outline: 2px solid rgba(0, 210, 255, 0.95);
    outline-offset: 2px;
    background: rgba(0, 210, 255, 0.08);
}

.cp-user-hidden {
    display: none !important;
}

.cp-section-hidden {
    display: none !important;
}

.cp-nav-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cp-custom-card {
    animation: cp-pop-in 0.32s ease;
}

@keyframes cp-pop-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.cp-panel.cp-lang-ar {
    direction: rtl;
}

.cp-panel.cp-lang-ar .cp-panel-title-wrap h2,
.cp-panel.cp-lang-ar .cp-panel-title-wrap p {
    text-align: right;
}

.cp-modal.cp-lang-ar {
    direction: rtl;
}

.cp-modal.cp-lang-ar .cp-login-close {
    right: auto;
    left: 12px;
}

@media (max-width: 1080px) {
    .cp-admin-top-grid {
        grid-template-columns: 1fr;
    }

    .cp-tab-groups {
        grid-template-columns: 1fr;
    }

    .cp-tab-panel[data-cp-tab-panel="section"],
    .cp-tab-panel[data-cp-tab-panel="settings"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cp-panel {
        inset: 6px;
        width: calc(100vw - 12px);
        height: calc(100vh - 12px);
        border-radius: 16px;
    }

    .cp-dashboard-shell {
        padding: 8px;
        gap: 8px;
    }

    .cp-panel-header {
        grid-template-columns: auto 1fr;
    }

    .cp-btn-lang {
        grid-column: 1 / -1;
    }

    .cp-backup-actions {
        grid-template-columns: 1fr;
    }

    .cp-passcode-row {
        grid-template-columns: 1fr;
    }

    .cp-quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .cp-tab-strip-topline {
        align-items: stretch;
    }

    .cp-tab-groups {
        grid-template-columns: 1fr;
    }

    .cp-tab-group-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .cp-tab-group-buttons::-webkit-scrollbar {
        height: 6px;
    }

    .cp-tab-group-buttons::-webkit-scrollbar-thumb {
        background: rgba(141, 181, 218, 0.5);
        border-radius: 999px;
    }

    .cp-tab-btn,
    .cp-logout-pill {
        flex: 0 0 auto;
    }
}

/* ===== Final Cascade Fixes ===== */
html {
    scroll-padding-top: var(--header-offset, 160px);
}

.header {
    background: linear-gradient(180deg, rgba(4, 10, 22, 0.94) 0%, rgba(4, 10, 22, 0.72) 58%, transparent 100%) !important;
    border-bottom: 0 !important;
    padding: 1rem 0 0 !important;
    backdrop-filter: none !important;
}

.header .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.9rem !important;
    width: 100% !important;
    max-width: min(1400px, calc(100vw - 28px)) !important;
    margin-inline: auto !important;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(127, 227, 255, 0.22);
    background: rgba(9, 18, 34, 0.88);
    box-shadow: 0 18px 50px rgba(3, 10, 24, 0.35);
    text-decoration: none;
    align-self: center !important;
    margin-inline: auto;
    width: fit-content;
}

.navbar {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    flex: 0 1 auto !important;
    width: min(1320px, calc(100vw - 54px)) !important;
    max-width: min(1320px, calc(100vw - 54px)) !important;
    padding: 0.55rem 0.65rem;
    border-radius: 999px;
    background: rgba(9, 18, 34, 0.88);
    border: 1px solid rgba(127, 227, 255, 0.18);
    box-shadow: 0 24px 60px rgba(2, 8, 20, 0.42);
    backdrop-filter: blur(20px);
    justify-content: center !important;
    align-self: center !important;
    margin-inline: auto;
}

.navbar ul {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 0.38rem !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-width: 0;
    width: fit-content;
    max-width: 100%;
}

.navbar a {
    font-size: 0.67rem !important;
    padding: 0.58rem 0.74rem !important;
    border-radius: 999px !important;
    gap: 0.36rem !important;
    letter-spacing: 0.06em;
}

.navbar a:hover,
.navbar a.active {
    color: #06121f !important;
    background: linear-gradient(135deg, #7fe3ff 0%, #00d2ff 55%, #8eb8ff 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 10px 30px rgba(0, 210, 255, 0.28) !important;
    text-shadow: none !important;
}

.navbar-actions {
    position: static !important;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    min-width: fit-content;
}

.navbar-actions .cp-nav-launcher[hidden] {
    display: none !important;
}

.cp-nav-launcher {
    min-height: 44px;
    padding: 0 0.95rem;
    border-radius: 999px;
    white-space: nowrap;
}

.main-content {
    padding-top: calc(var(--header-offset, 160px) + 1rem) !important;
}

.section-content {
    display: block !important;
    opacity: 1 !important;
    min-height: auto !important;
    padding: clamp(4rem, 6vw, 6.5rem) 0 !important;
    scroll-margin-top: calc(var(--header-offset, 160px) + 10px);
}

.section-content.active-section {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
}

#home.section-content,
#home.active-section {
    display: flex !important;
    align-items: center;
    min-height: calc(100vh - var(--header-offset, 160px)) !important;
    padding-top: 1rem !important;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-linkedin {
    margin: 0 !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(127, 227, 255, 0.35);
    background: rgba(8, 20, 36, 0.68);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.projects-curation-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.95fr);
    gap: 1.25rem;
}

.featured-projects-grid-new {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 1.4rem !important;
    margin-bottom: 3rem !important;
}

.featured-project-card-new {
    min-height: 100%;
    border-radius: 26px !important;
    border: 1px solid rgba(127, 227, 255, 0.12) !important;
    background:
        radial-gradient(circle at top right, rgba(0, 210, 255, 0.12), transparent 36%),
        linear-gradient(180deg, rgba(12, 20, 36, 0.98), rgba(16, 28, 46, 0.94)) !important;
    box-shadow: 0 22px 55px rgba(2, 8, 20, 0.28) !important;
}

.featured-project-card-new:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(127, 227, 255, 0.32) !important;
    box-shadow: 0 28px 68px rgba(0, 210, 255, 0.16) !important;
}

.featured-project-image-new {
    height: 250px !important;
    padding: 0 !important;
    border: 0 !important;
    background:
        radial-gradient(circle at top, rgba(0, 210, 255, 0.16), transparent 50%),
        linear-gradient(180deg, rgba(15, 28, 47, 0.96), rgba(9, 18, 32, 0.96)) !important;
}

.featured-project-info-new {
    padding: 1.55rem !important;
    gap: 1rem !important;
    background: transparent !important;
}

.contact-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1.2rem !important;
}

.contact-card {
    display: flex;
    min-height: 100%;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 24px !important;
    border: 1px solid rgba(127, 227, 255, 0.12) !important;
    background:
        radial-gradient(circle at top left, rgba(0, 210, 255, 0.1), transparent 42%),
        linear-gradient(180deg, rgba(10, 18, 34, 0.98), rgba(17, 28, 46, 0.92)) !important;
    box-shadow: 0 18px 46px rgba(2, 8, 20, 0.22);
}

.contact-card:hover {
    animation: none !important;
    transform: translateY(-10px) !important;
    border-color: rgba(127, 227, 255, 0.26) !important;
    box-shadow: 0 28px 60px rgba(0, 210, 255, 0.14) !important;
}

.contact-card-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 100%;
    padding: 1.45rem;
    color: inherit;
    text-decoration: none;
}

.footer {
    margin-top: 0 !important;
    padding: 4rem 0 5rem !important;
    background:
        radial-gradient(circle at top, rgba(0, 210, 255, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(8, 14, 28, 0.98), rgba(6, 10, 22, 1)) !important;
    border-top: 1px solid rgba(127, 227, 255, 0.12) !important;
}

.footer-content {
    display: grid;
    gap: 0.85rem;
    justify-items: center;
}

.footer-email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    background: rgba(9, 18, 34, 0.85);
    border: 1px solid rgba(127, 227, 255, 0.18);
    box-shadow: 0 14px 36px rgba(2, 8, 20, 0.18);
}

@media (min-width: 1100px) {
    .premium-project-card {
        grid-column: span 2;
    }
}

@media (max-width: 1200px) {
    .projects-curation-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .navbar {
        width: min(100%, calc(100vw - 34px)) !important;
        max-width: min(100%, calc(100vw - 34px)) !important;
        grid-template-columns: 1fr;
        border-radius: 30px;
    }

    .navbar ul {
        width: 100%;
        justify-content: center !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
    }

    .navbar-actions {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .header {
        padding-top: 0.75rem !important;
    }

    .logo {
        font-size: 0.76rem !important;
        letter-spacing: 1px;
        text-align: center;
        max-width: 100%;
    }

    .navbar {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: min(100%, calc(100vw - 24px)) !important;
        gap: 0.55rem;
        border-radius: 24px;
    }

    .navbar ul {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        padding: 0 !important;
    }

    .main-content {
        padding-top: calc(var(--header-offset, 150px) + 0.35rem) !important;
    }

    .navbar-actions {
        width: 100%;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-linkedin,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .featured-projects-grid-new,
.graphic-projects-grid {
    grid-template-columns: 1fr !important;
}

.projects-curation-panel {
    padding: 1.25rem;
        border-radius: 24px;
    }

    .graphic-project-card,
    .contact-card {
        border-radius: 24px;
    }

    .contact-card-link {
        padding: 1.25rem;
    }
}

.graphic-project-body {
    gap: 1.05rem;
}

.graphic-project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.graphic-project-actions .btn-featured-primary-new {
    flex: 1 1 220px;
    width: auto;
    max-width: 280px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-size: 0.84rem !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.graphic-project-actions .btn-featured-primary-new:only-child {
    flex: 0 1 240px;
    margin-inline: auto;
}

.graphic-btn-primary {
    background: rgba(0, 210, 255, 0.1) !important;
    border-color: rgba(0, 210, 255, 0.62) !important;
    color: #dff8ff !important;
    box-shadow: inset 0 0 0 1px rgba(127, 227, 255, 0.08), 0 10px 22px rgba(0, 210, 255, 0.12);
}

.graphic-btn-primary:hover {
    background: linear-gradient(135deg, #7fe3ff 0%, #00d2ff 55%, #70bfff 100%) !important;
    color: #06121f !important;
}

.graphic-btn-secondary {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(127, 227, 255, 0.26) !important;
    color: #d8eef9 !important;
}

.graphic-btn-secondary:hover {
    background: rgba(127, 227, 255, 0.12) !important;
    color: #ffffff !important;
}

@media (max-width: 991px) {
    .navbar {
        width: min(100%, calc(100vw - 34px)) !important;
    }
}

@media (max-width: 767px) {
    .graphic-project-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .graphic-project-actions .btn-featured-primary-new:only-child {
        flex: 1 1 auto;
        max-width: none;
    }
}

/* ===== Contact Layout Refinement ===== */
.contact-container {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    max-width: min(1520px, calc(100vw - 48px)) !important;
    align-items: stretch;
}

.contact-card {
    min-width: 0;
}

.contact-card-link {
    align-items: center !important;
    text-align: center;
    gap: 0.95rem !important;
    padding: 1.2rem 1rem !important;
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.contact-card i {
    font-size: 1.2rem !important;
}

.contact-card-body {
    width: 100%;
    justify-items: center;
    gap: 0.35rem;
}

.contact-card h3 {
    font-size: 0.92rem !important;
    line-height: 1.2;
}

.contact-value {
    width: 100%;
    margin: 0 !important;
    font-size: 0.83rem !important;
    line-height: 1.45 !important;
    color: #bfc9d8 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-email {
    font-size: 0.76rem !important;
    letter-spacing: -0.01em;
}

.contact-card small {
    font-size: 0.66rem !important;
    letter-spacing: 0.16em;
    line-height: 1.3;
}

@media (max-width: 1399px) {
    .contact-container {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1120px) {
    .contact-container {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    .contact-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    .contact-container {
        grid-template-columns: 1fr !important;
    }

    .contact-card-link {
        padding: 1.15rem !important;
    }
}

/* ===== Skills Display Upgrade ===== */
.skills-header-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr) !important;
    align-items: center !important;
    gap: clamp(1.4rem, 3vw, 2.6rem) !important;
}

.skills-description {
    max-width: 62ch !important;
}

.skills-center-section {
    display: flex;
    justify-content: center;
}

.skills-visual-card {
    width: min(100%, 340px);
    aspect-ratio: 1.02 / 1;
}

.skills-categories {
    gap: clamp(1.35rem, 2vw, 2rem) !important;
}

.skill-category-box {
    padding: clamp(1.4rem, 2.4vw, 2.2rem) !important;
    border-radius: 28px !important;
}

.web-dev-grid,
.electronics-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
}

.tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
}

.skill-item-enhanced {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    gap: 0.9rem 0.85rem !important;
    min-height: 148px;
    padding: 1.1rem 1.05rem 1rem !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at top right, rgba(255, 169, 123, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(17, 28, 45, 0.98), rgba(10, 19, 33, 0.98)) !important;
    border: 1px solid rgba(255, 143, 81, 0.24) !important;
    box-shadow:
        0 16px 34px rgba(2, 8, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

.skill-item-enhanced::before {
    background: linear-gradient(120deg, transparent, rgba(255, 185, 147, 0.18), transparent) !important;
}

.skill-item-enhanced::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.skill-item-enhanced:hover {
    transform: translateY(-6px) !important;
    background:
        radial-gradient(circle at top right, rgba(255, 179, 130, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(24, 36, 56, 0.98), rgba(13, 24, 41, 0.98)) !important;
    border-color: rgba(255, 169, 108, 0.38) !important;
    box-shadow:
        0 22px 44px rgba(255, 107, 53, 0.18),
        0 10px 26px rgba(2, 8, 20, 0.24) !important;
}

.skill-header {
    grid-column: 1 / 2;
    grid-row: 1;
    min-width: 0;
    margin: 0 !important;
    gap: 0.72rem !important;
}

.skill-item-enhanced .skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    font-size: 1.15rem !important;
    color: #ffb287;
    background: rgba(255, 107, 53, 0.14);
    border: 1px solid rgba(255, 107, 53, 0.2);
    filter: none !important;
}

.skill-item-enhanced:hover .skill-icon {
    transform: translateY(-2px) scale(1.03) !important;
    filter: none !important;
}

.skill-item-enhanced .skill-name {
    font-size: 0.95rem !important;
    line-height: 1.3;
}

.proficiency-text {
    grid-column: 2 / 3;
    grid-row: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    margin: 0 !important;
    padding: 0.42rem 0.58rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.22), rgba(255, 165, 94, 0.08)) !important;
    border: 1px solid rgba(255, 158, 95, 0.34);
    color: #ffe6d9 !important;
    font-size: 0.76rem !important;
    font-weight: 800;
    line-height: 1;
    text-align: center !important;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 20px rgba(255, 107, 53, 0.12);
}

.proficiency-bar {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 12px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 143, 81, 0.22) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(255, 107, 53, 0.08) !important;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.06),
        inset 0 -2px 6px rgba(0, 0, 0, 0.22) !important;
}

.proficiency-fill {
    border-radius: 999px !important;
    background: linear-gradient(90deg, #ff7b43 0%, #ff9c52 45%, #ffd27d 100%) !important;
    box-shadow:
        0 0 18px rgba(255, 125, 70, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
    overflow: hidden;
}

.proficiency-fill::after {
    left: -35% !important;
    right: auto !important;
    width: 35% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent) !important;
    transform: skewX(-18deg);
    animation: skill-shimmer 2.8s linear infinite;
}

.electronics-grid .skill-item-enhanced {
    background:
        radial-gradient(circle at top right, rgba(0, 210, 255, 0.15), transparent 32%),
        linear-gradient(180deg, rgba(13, 26, 42, 0.98), rgba(8, 18, 32, 0.98)) !important;
    border-color: rgba(0, 210, 255, 0.24) !important;
}

.electronics-grid .skill-item-enhanced:hover {
    border-color: rgba(127, 227, 255, 0.42) !important;
    box-shadow:
        0 22px 44px rgba(0, 210, 255, 0.16),
        0 10px 26px rgba(2, 8, 20, 0.24) !important;
}

.electronics-grid .skill-item-enhanced .skill-icon {
    color: #7fe3ff;
    background: rgba(0, 210, 255, 0.14);
    border-color: rgba(127, 227, 255, 0.2);
}

.electronics-grid .proficiency-text {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(127, 227, 255, 0.08)) !important;
    border-color: rgba(127, 227, 255, 0.28);
    color: #def8ff !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 20px rgba(0, 210, 255, 0.1);
}

.electronics-grid .proficiency-bar {
    border-color: rgba(0, 210, 255, 0.2) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(0, 210, 255, 0.08) !important;
}

.electronics-grid .proficiency-fill {
    background: linear-gradient(90deg, #00d2ff 0%, #49eaff 50%, #86eeff 100%) !important;
    box-shadow:
        0 0 18px rgba(0, 210, 255, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

@keyframes skill-shimmer {
    from {
        transform: translateX(-120%) skewX(-18deg);
    }

    to {
        transform: translateX(360%) skewX(-18deg);
    }
}

/* ===== Mobile Precision Pass ===== */
@media (max-width: 1100px) {
    .container {
        max-width: min(100%, calc(100vw - 26px));
        padding-inline: clamp(0.9rem, 3vw, 1.25rem);
    }

    .skills-header-layout {
        grid-template-columns: 1fr !important;
        justify-items: stretch;
        text-align: center;
        gap: 1.35rem !important;
    }

    .skills-description {
        margin-inline: auto;
        max-width: 100% !important;
    }

    .skills-center-section {
        order: -1;
    }

    .skills-visual-card {
        max-width: min(380px, 100%);
        margin-inline: auto;
    }
}

@media (max-width: 991px) {
    .hero-container {
        flex-direction: column !important;
        text-align: center;
        gap: 1.85rem !important;
    }

    .hero-content {
        width: 100%;
    }

    .hero-image-wrapper {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .web-dev-grid,
    .electronics-grid,
    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .skill-item-enhanced {
        min-height: 132px;
    }

    .skill-item-enhanced .skill-name {
        font-size: 0.92rem !important;
    }

    .proficiency-text {
        min-width: 54px;
        font-size: 0.72rem !important;
    }

    .contact-container {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    .container {
        max-width: min(100%, calc(100vw - 18px));
        padding-inline: 0.75rem;
    }

    .header .container {
        max-width: min(100%, calc(100vw - 18px)) !important;
    }

    .logo {
        padding: 0.65rem 1rem;
    }

    .navbar {
        width: min(100%, calc(100vw - 18px)) !important;
        max-width: min(100%, calc(100vw - 18px)) !important;
        padding: 0.55rem 0.5rem;
    }

    .section-content {
        padding: 3.25rem 0 !important;
    }

    .web-dev-grid,
    .electronics-grid,
    .tools-grid,
    .featured-projects-grid-new,
    .graphic-projects-grid,
    .contact-container {
        grid-template-columns: 1fr !important;
    }

    .skill-category-box {
        padding: 1.1rem !important;
        border-radius: 22px !important;
    }

    .skill-item-enhanced {
        min-height: 0;
        padding: 0.95rem 0.9rem !important;
        gap: 0.8rem 0.65rem !important;
    }

    .skill-header {
        gap: 0.6rem !important;
    }

    .skill-item-enhanced .skill-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
        font-size: 1rem !important;
    }

    .skill-item-enhanced .skill-name {
        font-size: 0.9rem !important;
    }

    .proficiency-bar {
        height: 10px !important;
    }

    .proficiency-text {
        min-width: 50px;
        padding: 0.36rem 0.5rem;
        font-size: 0.68rem !important;
    }
}

/* ===== Mobile Image Stability ===== */
@media (hover: none), (pointer: coarse) {
    .hero-image,
    .about-image,
    .graphic-project-card,
    .featured-project-card-new,
    .service-card-new,
    .certificate-card {
        transform: none !important;
    }

    .hero-image:hover img,
    .about-image:hover img,
    .graphic-project-card:hover .graphic-project-media img,
    .featured-project-card-new:hover .featured-project-image-new img,
    .service-card-new:hover .service-image-new img,
    .certificate-card:hover .certificate-image img,
    .cert-card:hover .cert-img-box img {
        transform: none !important;
        filter: none !important;
    }

    .graphic-project-card:hover,
    .featured-project-card-new:hover,
    .service-card-new:hover,
    .certificate-card:hover {
        transform: none !important;
        box-shadow: inherit;
    }
}

@media (max-width: 767px) {
    .hero-image {
        width: min(78vw, 320px) !important;
        height: min(78vw, 320px) !important;
        border-width: 4px;
    }

    .hero-image img,
    .about-image img {
        object-position: center top !important;
    }

    .about-content-wrapper {
        grid-template-columns: 1fr !important;
        justify-items: center;
        gap: 1.4rem !important;
    }

    .about-image {
        width: min(100%, 360px) !important;
        max-width: min(100%, 360px) !important;
        aspect-ratio: 1 / 1 !important;
        margin-inline: auto;
    }

    .skills-visual-card {
        width: min(100%, 340px);
        aspect-ratio: 1 / 1;
    }

    .featured-project-image-new {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1;
        padding: 0.9rem !important;
    }

    .featured-project-image-new img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: center center !important;
        padding: 0 !important;
    }

    .graphic-project-media {
        aspect-ratio: 1 / 1 !important;
        padding: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background:
            radial-gradient(circle at top, rgba(0, 210, 255, 0.1), transparent 55%),
            #0a1220;
    }

    .graphic-project-media img {
        width: 100%;
        height: 100%;
        object-fit: contain !important;
        object-position: center center !important;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.98);
        padding: 0.3rem;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
    }

    .graphic-project-overlay {
        padding: 0.85rem 0.9rem 0.95rem;
    }

    .certificate-image {
        height: auto !important;
        aspect-ratio: 4 / 3;
    }

    .certificate-image img,
    .cert-img-box img {
        object-fit: contain !important;
        object-position: center center !important;
        background: rgba(255, 255, 255, 0.96);
        padding: 0.45rem;
    }

    .services-grid-new {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .service-image-new {
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3;
        padding: 0.85rem !important;
    }

    .service-image-new img {
        object-fit: contain !important;
        object-position: center center !important;
    }

    .lightbox-stage {
        padding: 1rem;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: 72vh;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    .hero-image {
        width: min(82vw, 290px) !important;
        height: min(82vw, 290px) !important;
    }

    .featured-project-image-new,
    .graphic-project-media {
        aspect-ratio: 1 / 1 !important;
    }

    .certificate-image,
    .service-image-new {
        aspect-ratio: 1 / 1;
    }

    .graphic-project-media img,
    .featured-project-image-new img,
    .certificate-image img,
    .service-image-new img {
        border-radius: 16px;
    }
}

