/* ================= Basic Reset & Variables ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-main: #0a0f1c;
    --bg-card: #111827;
    --bg-input: #0f172a;
    --border-color: rgba(51, 65, 85, 0.5);
    --teal-primary: #14b8a6;
    --teal-glow: rgba(20, 184, 166, 0.3);
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
}

/* ================= Security & Core Styles ================= */
html,
body {
    scroll-behavior: auto;
    /* ملغية لأن الـ JS بيعمل الـ smooth scroll السينمائي */
    background-color: var(--bg-main);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    font-weight: 400;
}

/* حماية ضد التحديد للطباعة والنسخ */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input,
textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

img {
    pointer-events: none;
}

.project-image img,
.cert-image-box img {
    pointer-events: auto;
}

/* ================= Animations System ================= */
.animate {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
    transform: translateY(40px);
}

.fade-left {
    transform: translateX(40px);
}

.fade-right {
    transform: translateX(-40px);
}

.zoom-in {
    transform: scale(0.95);
}

.animate.show {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* ================= Professional Loader ================= */
#app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.glow-logo {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--teal-primary);
    animation: pulseLogo 1s infinite alternate;
    margin-bottom: 10px;
    font-family: monospace;
}

.loader-text {
    color: var(--text-white);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.dots {
    animation: blink 1.5s infinite steps(4, end);
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
        text-shadow: 0 0 15px var(--teal-glow);
    }

    100% {
        transform: scale(1.05);
        text-shadow: 0 0 35px var(--teal-primary);
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* ================= Typography & Layout ================= */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 24px;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.sub-section-title {
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 10px;
    font-weight: 600;
}

.section-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-muted);
    max-width: 900px;
}

.mb-30 {
    margin-bottom: 25px;
}

/* ================= Navbar (Block Area Header) ================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1100px;
    z-index: 100;
    transition: 0.4s ease;
}

.navbar.scrolled .nav-container {
    background: #070b14;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
    backdrop-filter: none;
    border-color: rgba(20, 184, 166, 0.4);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 17px;
    position: relative;
    z-index: 101;
    transition: 0.4s;
}

.logo {
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.avatar-wrapper {
    width: 0;
    height: 40px;
    opacity: 0;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.4s;
    margin-right: 0;
    transform: scale(0.5);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.name-status .name {
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.15rem;
    transition: 0.4s;
    letter-spacing: 0.5px;
}

.name-status .status {
    color: var(--teal-primary);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.4s;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--teal-primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--teal-primary);
}

.logo.scrolled .avatar-wrapper {
    width: 40px;
    opacity: 1;
    margin-right: 12px;
    transform: scale(1);
}

.logo.scrolled .name-status .name {
    font-size: 0.95rem;
    font-weight: 600;
}

.logo.scrolled .name-status .status {
    max-height: 20px;
    opacity: 1;
    margin-top: 2px;
}

.desktop-links {
    display: flex;
    gap: 6px;
}

.desktop-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    transition: 0.3s;
    cursor: pointer;
}

.desktop-links a:hover {
    color: var(--text-white);
}

.desktop-links .active-link {
    color: var(--teal-primary);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.2);
}

.mobile-controls {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-section-name {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 600;
}

.hamburger-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 15px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 12px;
    transition: 0.3s;
    cursor: pointer;
}

.mobile-link.active-link {
    background: rgba(20, 184, 166, 0.1);
    color: var(--teal-primary);
}

/* ================= Hero Section & Floating Animation ================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 140px;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
}

.subtitle {
    color: var(--teal-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.title {
    font-size: 3.5rem;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 18px;
    font-weight: 800;
}

.description {
    font-size: 1.05rem;
    margin-bottom: 15px;
    max-width: 580px;
    line-height: 1.7;
}

.quote {
    color: var(--teal-primary);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: rgba(20, 184, 166, 0.15);
    color: var(--teal-primary);
    border: 1px solid rgba(20, 184, 166, 0.4);
    box-shadow: 0 0 15px var(--teal-glow);
}

.btn-primary:hover {
    background: var(--teal-primary);
    color: #0a0f1c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
}

/* Floating Image */
.hero-image {
    position: relative;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid rgba(20, 184, 166, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    animation: floating 4s ease-in-out infinite;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.glow-effect {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--teal-primary), #3b82f6);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.5;
    z-index: 1;
    animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
        filter: blur(20px);
        transform: scale(0.98);
    }

    100% {
        opacity: 0.7;
        filter: blur(30px);
        transform: scale(1.05);
    }
}

/* ================= Cards & Skills ================= */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.highlight-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    color: var(--text-white);
    margin-top: 15px;
    font-weight: 500;
}

.skills-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.skill-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: default;
}

.skill-pill:hover {
    border-color: var(--teal-primary);
    background: #1e293b;
    transform: translateY(-2px);
}

.icon-circle {
    width: 30px;
    height: 30px;
    background: rgba(20, 184, 166, 0.15);
    color: var(--teal-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 8px var(--teal-glow);
}

.tools-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.3s;
    cursor: default;
}

.tool-pill i {
    color: var(--teal-primary);
    font-size: 1.2rem;
}

.tool-pill:hover {
    border-color: var(--teal-primary);
    background: #1e293b;
    transform: translateY(-2px);
}

/* ================= Projects ================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #1e293b;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Desktop Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.overlay-icon {
    width: 45px;
    height: 45px;
    background: #fff;
    color: #0a0f1c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    text-decoration: none;
    transform: translateY(15px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover .overlay-icon {
    transform: translateY(0);
}

.overlay-icon:hover {
    background: var(--teal-primary);
    color: #fff;
    transform: scale(1.1) !important;
}

.project-info {
    padding: 15px 20px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-number {
    font-size: 1rem;
    font-weight: 800;
    color: var(--teal-primary);
    margin-bottom: 2px;
    display: block;
}

.project-info h4 {
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 1.15rem;
}

.project-info p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ================= Experience ================= */
.experience-card {
    padding: 30px;
    border-radius: 16px;
}

.exp-text {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exp-tag {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.9rem;
    transition: 0.3s;
}

.exp-tag:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--teal-primary);
}

/* ================= Certificates (Center Mode Slider) ================= */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0 50px 0;
}

.slider-track {
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 60%;
    padding: 0 15px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0.3;
    transform: scale(0.85);
    cursor: pointer;
}

.slide.active-slide {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}

.cert-image-box {
    width: 100%;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.cert-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    background: transparent;
}

.slide:hover .cert-image-box {
    border-color: var(--teal-primary);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.4);
    transform: translateY(-5px);
}

.slide h4 {
    color: var(--text-white);
    font-size: 1.3rem;
    margin-top: 20px;
    margin-bottom: 5px;
    transition: 0.3s;
}

.slide p {
    color: var(--teal-primary);
    font-size: 0.95rem;
}

.dots-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    background: #334155;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot-indicator.active-dot {
    background: var(--teal-primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--teal-glow);
}

/* ================= Education ================= */
.centered-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    border-radius: 16px;
}

.education-card h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.education-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ================= Contact ================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 24px;
}

.contact-links-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: 0.3s;
    cursor: pointer;
}

.link-card:hover {
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
}

.icon-box {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--teal-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.3rem;
    transition: 0.3s;
}

.link-card:hover .icon-box {
    border-color: var(--teal-primary);
    background: rgba(20, 184, 166, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-info .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-info .value {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form-column {
    padding: 25px;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 0.9rem;
    transition: 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal-primary);
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.1);
}

.form-submit {
    margin-top: 5px;
}

.form-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid rgba(20, 184, 166, 0.4);
}

footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    margin-top: 30px;
    color: var(--text-muted);
}

/* ================= Back to Top Button ================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--teal-primary);
    color: #0a0f1c;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 0 15px var(--teal-glow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.6);
    background: #fff;
}

/* ================= RESPONSIVE DESIGN (100% Mobile & Tablet Perfect) ================= */
@media (max-width: 1024px) {
    .title {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .profile-pic {
        width: 240px;
        height: 240px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .fade-up {
        transform: translateY(20px);
    }

    .fade-left {
        transform: translateX(15px);
    }

    .fade-right {
        transform: translateX(-15px);
    }

    .navbar {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .navbar,
    .navbar.scrolled {
        background: #070b14;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    }

    .nav-container {
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 20px;
        background: transparent;
        backdrop-filter: none;
    }

    .desktop-links {
        display: none;
    }

    .mobile-controls {
        display: flex;
    }

    .logo {
        opacity: 1;
    }

    .avatar-wrapper {
        width: 32px;
        height: 32px;
        opacity: 1;
        margin-right: 10px;
        transform: scale(1);
    }

    .name-status .name {
        font-size: 0.9rem;
    }

    .name-status .status {
        max-height: 20px;
        opacity: 1;
        margin-top: 2px;
        font-size: 0.7rem;
    }

    .hero {
        flex-direction: column-reverse;
        margin-top: 87px;
        text-align: center;
        gap: 30px;
    }

    .description {
        margin: 0 auto 15px auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .title {
        font-size: 2.4rem;
    }

    .profile-pic {
        width: 210px;
        height: 210px;
        margin-top: 10px;
    }

    .section-container {
        padding: 40px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Certificates Slider Mobile */
    .slide {
        flex: 0 0 85%;
        padding: 0 10px;
    }

    .slide h4 {
        font-size: 1.15rem;
    }

    .slide p {
        font-size: 0.85rem;
    }

    .cert-image-box {
        padding: 5px;
        border-radius: 12px;
    }

    .contact-links-column {
        gap: 12px;
    }

    .link-card {
        flex-direction: row !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding: 15px;
    }

    .contact-info {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .project-overlay {
        opacity: 1;
        background: transparent;
        align-items: flex-start;
        justify-content: flex-end;
        padding: 10px;
        backdrop-filter: none;
    }

    .overlay-icon {
        transform: none;
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
        background: #0a0f1c;
        color: var(--teal-primary);
        border: 1px solid var(--border-color);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}