:root {
    --bg-1: #071827;
    --bg-2: #0b2a3e;
    --accent: #10b7ff;
    --accent-2: #58d1ff;
    --muted: #9fb0c0;
    --white: #ffffff;
    font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.visually-hidden {
    position: absolute;
    left: -9999px;
}


/* Better focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}
/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 9999;
    padding: 1em;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.skip-to-content:focus {
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(16, 183, 255, 0.4);
}

html,
body {
    height: 100%;
    /* Remove smooth scroll for mobile stability */
    scroll-behavior: auto;
}

body {
    min-height: 100%;
    background: linear-gradient(180deg, #072033 10%, #011826 100%);
    color: var(--muted);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: 80px;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    /* Improve rendering performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* Prevent tap highlight */
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.lead,
.about-text,
.portfolio-description,
.certification-description,
.service-card p,
.focus-card p,
.contact-details p {
    max-width: 72ch;
}

/* Fixed Header - Optimized for mobile */
.site-header {
    padding: 22px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 24, 39, 0.98);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* Prevent layout shifts on mobile */
    transform: translateZ(0);
    will-change: transform;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo-blue {
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 18px;
    margin-left: 40px;
    flex: 1;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 6px 8px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 6px;
}

.nav a.active,
.nav a:hover {
    color: var(--white);
    border-bottom-color: var(--accent);
    background: rgba(16, 183, 255, 0.08);
    box-shadow: 0 6px 16px rgba(16, 183, 255, 0.18);
}

.cta .download {
    background: linear-gradient(90deg, #ff7fb3, #ff5fa3);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 95, 163, 0.14);
    transition: all 0.3s ease;
}

.cta .download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 95, 163, 0.25);
}

/* Mobile Navigation - Stability improvements */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    /* Prevent tap highlight */
    -webkit-tap-highlight-color: transparent;
    /* Prevent animation jank */
    transform: translateZ(0);
    will-change: transform;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: var(--bg-2);
    z-index: 1000;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    padding: 80px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Improve performance */
    transform: translateZ(0);
    will-change: transform;
    /* Prevent scrolling when mobile nav is open */
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    /* Prevent tap highlight */
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--white);
    background: rgba(16, 183, 255, 0.1);
    border-left-color: var(--accent);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile Download Button */
.mobile-download {
    display: none;
    background: linear-gradient(90deg, #ff7fb3, #ff5fa3);
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(255, 95, 163, 0.14);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: 10px;
    width: 100%;
}

.mobile-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 95, 163, 0.25);
}

/* Hero section with rotating animation */
.hero {
    padding: 40px 0 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 20px;
}

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-wrap {
    position: relative;
    width: 420px;
    height: 420px;
    display: block;
}

.blob-svg {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 4;
}

.neon-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    filter: blur(40px) saturate(140%);
    background: radial-gradient(circle at 30% 35%, rgba(24, 179, 255, 0.25) 0%, rgba(6, 112, 164, 0.12) 20%, transparent 45%);
    transform: scale(1.02);
    z-index: 2;
}

/* Rotating ribbon animation - Fixed for mobile */
.ribbon {
    position: absolute;
    inset: 12% 0 6% 0;
    width: 110%;
    height: 110%;
    z-index: 3;
    pointer-events: none;
    animation: rotateRibbon 25s linear infinite;
    /* Performance optimizations for mobile */
    transform: translateZ(0);
    will-change: transform;
}

@keyframes rotateRibbon {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-right {
    padding: 20px 24px;
}

.hi {
    color: var(--muted);
    margin: 0;
    font-weight: 600;
}

.name {
    margin: 6px 0 6px;
    font-size: 56px;
    color: var(--white);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.6px;
}

.role {
    margin: 0 0 18px 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 22px;
}

.typing {
    color: var(--accent-2);
    font-weight: 800;
}

.cursor {
    color: var(--accent);
    margin-left: 5px;
    opacity: 0.95;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

.lead {
    color: #c7d6df;
    max-width: 560px;
    margin-top: 18px;
    line-height: 1.6;
}

.socials {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.social {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(10, 130, 190, 0.12), rgba(10, 130, 190, 0.06));
    color: var(--accent);
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(10, 130, 190, 0.2), rgba(10, 130, 190, 0.12));
    box-shadow: 0 6px 12px rgba(16, 183, 255, 0.2);
}

.buttons {
    display: flex;
    gap: 14px;
    margin-top: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-size: 200% 100%;
    position: relative;
    overflow: hidden;
}

.btn.hire {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #00202b;
    box-shadow: 0 12px 30px rgba(6, 168, 240, 0.16);
}

.btn.hire:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(6, 168, 240, 0.25);
    background-position: 100% 0;
}

.btn.outline {
    background: transparent;
    border: 2px solid rgba(16, 183, 255, 0.18);
    color: var(--white);
    padding: 10px 20px;
    outline-offset: 6px;
}

.btn.outline:hover {
    background: rgba(16, 183, 255, 0.08);
    border-color: rgba(16, 183, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(16, 183, 255, 0.18);
}

/* Stats section */
.stats {
    margin-top: 70px;
    padding: 30px 0 70px;
}

.stats-grid {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: space-between;
}

.stat {
    text-align: center;
    flex: 1;
    padding: 18px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(11, 42, 62, 0.5), rgba(11, 42, 62, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.stat-number {
    font-size: 44px;
    color: var(--white);
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding: 6px 14px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(16, 183, 255, 0.18), rgba(88, 209, 255, 0.08));
}

.stat-text {
    color: var(--muted);
    margin-top: 6px;
}

.divider {
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    margin: 0 8px;
}

/* Section common styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
}

/* About section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    color: #c7d6df;
    line-height: 1.7;
    margin-bottom: 25px;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

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

.highlight i {
    color: var(--accent);
    font-size: 20px;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.about-image:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 183, 255, 0.1), rgba(16, 183, 255, 0));
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Skills section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
}

.skill-item {
    background: rgba(11, 42, 62, 0.5);
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16, 183, 255, 0.1);
    border-color: rgba(16, 183, 255, 0.2);
}

.skill-icon {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 15px;
}

.skill-name {
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

/* Portfolio section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(7, 24, 39, 0.95));
    padding: 30px 25px 25px;
    transform: translateY(70px);
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.portfolio-title {
    color: var(--white);
    margin: 0 0 10px;
    font-size: 20px;
}

.portfolio-category {
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 10px;
}

.portfolio-description {
    color: #c7d6df;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.portfolio-links {
    display: flex;
    gap: 15px;
}

.portfolio-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent);
}

.view-details {
    margin-left: auto;
    background: rgba(16, 183, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: rgba(16, 183, 255, 0.3);
}

/* Project Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 24, 39, 0.9);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: radial-gradient(circle at 20% 20%, rgba(16, 183, 255, 0.08), transparent 45%), var(--bg-2);
    margin: 50px auto;
    width: 90%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalFadeIn 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

.modal-header {
    padding: 25px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--white);
    margin: 0;
    font-size: 28px;
}

.close-modal {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--white);
}

.modal-body {
    padding: 20px 30px 30px;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-description {
    color: #c7d6df;
    line-height: 1.7;
    margin-bottom: 25px;
}

.modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tech-tag {
    background: rgba(16, 183, 255, 0.15);
    color: var(--accent-2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.modal-links {
    display: flex;
    gap: 15px;
}

/* Certifications Section */
.certifications {
    background: rgba(11, 42, 62, 0.3);
}

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

.certification-card {
    background: rgba(11, 42, 62, 0.5);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(16, 183, 255, 0.15);
    border-color: rgba(16, 183, 255, 0.2);
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.certification-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.certification-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.certification-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00202b;
    font-size: 20px;
    flex-shrink: 0;
}

.certification-title {
    color: var(--white);
    margin: 0 0 5px;
    font-size: 20px;
    line-height: 1.3;
}

.certification-org {
    color: var(--accent);
    font-weight: 600;
    margin: 0;
    font-size: 16px;
}

.certification-date {
    color: var(--muted);
    font-size: 14px;
    margin: 5px 0 0;
}

.certification-description {
    color: #c7d6df;
    line-height: 1.6;
    margin: 0;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(11, 42, 62, 0.5);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(16, 183, 255, 0.15);
    border-color: rgba(16, 183, 255, 0.2);
    background: linear-gradient(160deg, rgba(16, 183, 255, 0.12), rgba(11, 42, 62, 0.5));
}

.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 14px 32px rgba(16, 183, 255, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #00202b;
    font-size: 32px;
    box-shadow: 0 10px 24px rgba(16, 183, 255, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.service-card p {
    color: #c7d6df;
    line-height: 1.6;
}

/* Contact section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00202b;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--white);
    margin: 0 0 5px;
    font-size: 18px;
}

.contact-details p {
    margin: 0;
    color: #c7d6df;
}

.contact-details a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: rgba(11, 42, 62, 0.5);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #00202b;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(6, 168, 240, 0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 168, 240, 0.3);
}

/* Form status message */
#statusMessage {
    text-align: center;
    margin-top: 15px;
    font-weight: 600;
    min-height: 24px;
}

/* New Areas of Focus Section with Image Gallery */
.focus-section {
    position: relative;
    background: linear-gradient(rgba(7, 24, 39, 0.9), rgba(7, 24, 39, 0.9)),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2072&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.focus-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(16, 183, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.focus-content {
    position: relative;
    z-index: 2;
}

.focus-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.focus-card {
    background: rgba(11, 42, 62, 0.6);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
}

.focus-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(16, 183, 255, 0.2);
    border-color: rgba(16, 183, 255, 0.3);
}

.focus-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.focus-content-inner {
    padding: 25px;
}

.focus-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #00202b;
    font-size: 24px;
    transition: all 0.4s ease;
}

.focus-card:hover .focus-icon {
    transform: scale(1.1) rotate(5deg);
}

.focus-card h3 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
}

.focus-card p {
    color: #c7d6df;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: rgba(7, 24, 39, 0.9);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.footer-links {
    display: flex;
    gap: 25px;
    margin: 15px 0;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
}

/* Responsive styles with stability improvements */
@media (max-width: 980px) {
    body {
        padding-top: 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 10px;
    }

    .blob-wrap {
        width: 340px;
        height: 340px;
        margin: 0 auto;
    }

    .name {
        font-size: 44px;
        text-align: center;
    }

    .hero-right {
        text-align: center;
    }

    .stats-grid {
        flex-direction: column;
        gap: 18px;
        align-items: center;
    }

    .divider {
        display: none;
    }

    .nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .header-inner {
        justify-content: space-between;
    }

    .cta {
        display: none;
    }

    .mobile-download {
        display: block;
    }

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

    .focus-section {
        background-attachment: scroll;
    }

    /* FIXED: Portfolio overlay always visible on mobile */
    .portfolio-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(7, 24, 39, 0.95));
        padding: 20px 15px 15px;
    }

    .portfolio-item:hover .portfolio-overlay {
        transform: translateY(0);
    }

    .portfolio-item:hover .portfolio-image {
        transform: none;
    }

    .portfolio-links {
        flex-wrap: wrap;
    }

    .view-details {
        margin-left: 0;
    }

    /* Keep rotation animation on mobile with optimized performance */
    .ribbon {
        animation-duration: 40s;
    }

    /* Remove backdrop-filter on mobile for better performance */
    .site-header {
        backdrop-filter: none;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-form {
        padding: 30px 20px;
    }

    .blob-wrap {
        width: 280px;
        height: 280px;
    }

    .name {
        font-size: 36px;
    }

    .role {
        font-size: 18px;
    }

    .section-title {
        font-size: 30px;
    }

    .hero {
        padding: 20px 0 40px;
    }

    section {
        padding: 60px 0;
    }

    .focus-gallery {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    /* Keep rotation animation on smaller screens with adjusted speed */
    .ribbon {
        animation-duration: 50s;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certification-card {
        padding: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .blob-wrap {
        width: 240px;
        height: 240px;
    }

    .name {
        font-size: 32px;
    }

    .hero-right {
        padding: 10px;
    }

    .focus-card {
        padding: 20px;
    }

    .modal-header {
        padding: 15px 20px 0;
    }

    .modal-body {
        padding: 15px 20px 20px;
    }

    .modal-links {
        flex-direction: column;
    }

    /* Keep rotation animation on very small screens */
    .ribbon {
        animation-duration: 60s;
    }

    /* Remove all non-essential animations on very small screens */
    .skill-item:hover,
    .service-card:hover,
    .certification-card:hover,
    .focus-card:hover {
        transform: none;
    }
}

/* Scrolled header effect */
.site-header.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(36px) scale(0.98);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
    filter: blur(4px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Performance optimizations */
.site-header,
.mobile-nav,
.mobile-nav-overlay,
.ribbon {
    /* Force hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
}

/* Scroll progress bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1200;
    pointer-events: none;
}

.scroll-progress__bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 2px 10px rgba(16, 183, 255, 0.5);
    transition: width 0.15s ease-out;
}

/* Assistive tools */
.assistive-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #00202b;
    box-shadow: 0 10px 28px rgba(16, 183, 255, 0.35);
    cursor: pointer;
    z-index: 1200;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.assistive-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 183, 255, 0.45);
}

.assistive-panel {
    position: fixed;
    bottom: 90px;
    left: 24px;
    width: 260px;
    background: rgba(11, 42, 62, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    padding: 16px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
}

.assistive-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.assistive-title {
    color: var(--white);
    font-weight: 700;
    margin: 0 0 8px;
}

.assistive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.assistive-btn {
    flex: 1 1 45%;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.assistive-btn:hover {
    background: rgba(16, 183, 255, 0.12);
    border-color: rgba(16, 183, 255, 0.35);
}

.assistive-note {
    color: var(--muted);
    font-size: 12px;
    margin: 10px 0 0;
}

body.high-contrast {
    background: #050505;
    color: #f5f5f5;
}

body.high-contrast .site-header,
body.high-contrast .mobile-nav,
body.high-contrast .footer,
body.high-contrast .contact-form,
body.high-contrast .service-card,
body.high-contrast .certification-card,
body.high-contrast .portfolio-item,
body.high-contrast .skills-grid .skill-item {
    background: #0c0c0c;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

body.high-contrast a,
body.high-contrast .footer-link,
body.high-contrast .nav a {
    color: #f5f5f5;
}

body.high-contrast .assistive-btn {
    background: #111;
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.2);
}

body.large-text {
    font-size: 18px;
}

body.reduce-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
