@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
}
:root {
    --bg-color: #ffffff; 
    --text-color: #1a1a1a; 
    --p-color: #555555; 
    --main-color: #000000; 
    --main-light: #333333; 
    --main-fade: rgba(0, 0, 0, 0.08); 
    --accent-color: #555555; 
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.65);
    --border-color: rgba(0,0,0,0.05);
}
body.dark-mode {
        --bg-color: #0a0e17;
    --text-color: #f8fafc;
    --p-color: #94a3b8;
    --card-bg: #111827;
    --header-bg: rgba(10, 14, 23, 0.65);
    --border-color: rgba(255, 255, 255, 0.05);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    --main-color: #ffffff;
    --main-light: #cccccc;
    --main-fade: rgba(255, 255, 255, 0.1);
    --accent-color: #aaaaaa;
}
body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}
html {
    font-size: 62.5%; 
}
/* Modern Engineering Blueprint Tech Grid & Ambient Spotlight (Linear/Vercel Aesthetic) */
.bg-grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-size: 38px 38px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.038) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.038) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 30%, #000 40%, transparent 100%);
}

body.dark-mode .bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
}

/* Autonomous Moving Ambient Aura (Color Matched) */
.bg-ambient-spotlight {
    position: fixed;
    top: -12vh;
    left: 50%;
    transform: translateX(-50%);
    width: 960px;
    max-width: 130vw;
    height: 680px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(85px);
    opacity: 0.6;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.055) 0%,
        rgba(60, 60, 60, 0.02) 45%,
        transparent 72%
    );
    animation: ambient-aurora-breathe 14s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

body.dark-mode .bg-ambient-spotlight {
    opacity: 0.8;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.11) 0%,
        rgba(148, 163, 184, 0.04) 45%,
        transparent 72%
    );
}

@keyframes ambient-aurora-breathe {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translateX(-47%) translateY(35px) scale(1.12);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-53%) translateY(16px) scale(0.96);
        opacity: 0.6;
    }
}
.header, .main-content, .mega-footer {
    position: relative;
    z-index: 1;
}

/* Autonomous Moving Ambient Gradient Orbs */
.bg-shape {
    position: fixed; 
    z-index: -1;
    filter: blur(90px);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

@keyframes float-shape-1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8vw, 10vh) scale(1.15); }
    66% { transform: translate(-5vw, 14vh) scale(0.92); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-shape-2 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10vw, -8vh) scale(1.18); }
    66% { transform: translate(6vw, -12vh) scale(0.88); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-shape-3 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12vw, -10vh) scale(0.9); }
    66% { transform: translate(-8vw, 6vh) scale(1.12); }
    100% { transform: translate(0, 0) scale(1); }
}

.shape-left {
    top: -10%;
    left: -10%;
    width: 42vw;
    height: 42vw;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, rgba(100, 116, 139, 0.02) 60%, transparent 80%);
    opacity: 0.75;
    animation: float-shape-1 22s ease-in-out infinite;
}
.shape-right {
    bottom: -10%;
    right: -5%;
    width: 38vw;
    height: 38vw;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.045) 0%, rgba(71, 85, 105, 0.02) 60%, transparent 80%);
    opacity: 0.7;
    animation: float-shape-2 26s ease-in-out infinite;
}
.shape-center {
    top: 30%;
    left: 40%;
    width: 28vw;
    height: 28vw;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, rgba(148, 163, 184, 0.015) 60%, transparent 80%);
    opacity: 0.65;
    animation: float-shape-3 18s ease-in-out infinite;
}

body.dark-mode .shape-left {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.085) 0%, rgba(148, 163, 184, 0.035) 60%, transparent 80%);
    opacity: 0.85;
}
body.dark-mode .shape-right {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.075) 0%, rgba(100, 116, 139, 0.03) 60%, transparent 80%);
    opacity: 0.8;
}
body.dark-mode .shape-center {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.065) 0%, rgba(148, 163, 184, 0.025) 60%, transparent 80%);
    opacity: 0.75;
}
.header {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.5rem 6%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--header-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color 0.3s ease;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 4rem; 
}
.logo-box {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    user-select: none;
}
.header-logo-img {
    height: 4.5rem; 
    width: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.logo {
    font-size: 2.6rem;
    color: var(--text-color);
    font-weight: 800;
    letter-spacing: -1px;
}
.logo span { color: var(--main-color); }
.tab-nav {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 0 auto;
    gap: 0.5rem;
}
.tab-link {
    background: transparent;
    color: var(--p-color);
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}
.tab-link:hover {
    color: var(--main-color);
    background: var(--main-fade);
}
.tab-link.active {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 5px 15px var(--main-fade);
}

.dropdown-icon {
    font-size: 1.6rem;
    vertical-align: middle;
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

/* Dropdown Styles */
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: var(--card-bg);
    min-width: 260px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1.2rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.1, 0.5, 0.1, 1);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

body.dark-mode .dropdown-menu {
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.dropdown-wrapper:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-wrapper:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 2.5rem;
    color: var(--p-color);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.dropdown-menu a i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--main-color);
    width: 3.2rem;
    height: 3.2rem;
    background: var(--main-fade);
    border-radius: 8px;
    transition: 0.3s;
    flex-shrink: 0;
}

.dropdown-menu a:hover {
    background: var(--main-fade);
    color: var(--main-color);
    padding-left: 3rem; /* Slight indent on hover */
}

.dropdown-menu a:hover i {
    background: var(--main-color);
    color: var(--bg-color);
}
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.header-right a i {
    font-size: 2.4rem;
    color: var(--p-color);
    transition: 0.3s;
}
.header-right a i:hover { color: var(--main-color); }
.theme-btn {
    background: transparent;
    color: var(--p-color);
    font-size: 2.4rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-btn:hover {
    color: var(--main-color);
    transform: scale(1.1);
}
.btn-outline {
    font-size: 1.4rem;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 0.8rem 2rem;
    border-radius: 5rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4rem 8% 6rem; 
    position: relative;
    min-height: 100vh;
}
.tab-content {
    display: none; 
    width: 100%;
    animation: fadeIn 0.4s ease-in-out;
}
.tab-content.active {
    display: block; 
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}
.heading {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
}
.heading span { color: var(--main-color); }
.section-header p {
    font-size: 1.6rem;
    color: var(--p-color);
    margin-top: 0.5rem;
}
.home-grid-wrapper {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    align-items: center;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}
.home-text { text-align: left; }
.static-intro {
    font-size: 1.8rem;
    color: var(--p-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.logo-sub {
    font-size: 1.1rem;
    color: var(--accent-color); 
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.home-text h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-color);
}
.text-highlight {
    color: var(--main-color);
}
.home-text p {
    font-size: 1.8rem;
    color: var(--p-color);
    line-height: 1.7;
    margin-bottom: 4rem;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
}
.btn-primary {
    background: var(--main-color);
    color: var(--bg-color);
    padding: 1.4rem 3rem;
    border-radius: 5rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--main-fade);
}
.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--main-light);
}
.play-btn-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
}
.play-btn {
    width: 5rem;
    height: 5rem;
    background: var(--main-fade);
    color: var(--main-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    transition: 0.3s;
}
.play-btn-box:hover .play-btn {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 10px 15px var(--main-fade);
}
.play-btn-box span {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}
.home-hero-comp {
    display: flex;
    justify-content: center;
}
.tech-stack-card {
    background: var(--card-bg);
    border-radius: 2rem;
    padding: 3.5rem;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}
.tech-stack-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-fade);
}
.card-heading {
    font-size: 1.8rem;
    color: var(--p-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2.5rem;
}
.tech-icons {
    display: flex;
    gap: 2rem;
    font-size: 4rem;
    color: var(--main-color);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.tech-icons i { transition: 0.3s; }
.tech-icons i:hover {
    color: var(--accent-color); 
    transform: scale(1.15);
}
.tech-stack-card p {
    font-size: 1.4rem;
    color: var(--p-color);
    line-height: 1.6;
}
.card-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: var(--main-color);
    opacity: 0.1;
    border-radius: 50% 0 0 0;
}

/* Portfolio Layout (Img Left, Text/Skills/Certs Right) */
.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 6rem;
    align-items: flex-start;
}
.about-img-box {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    position: sticky;
    top: 120px;
}
.image-blob-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color), var(--main-light));
    border-radius: 50% 50% 50% 50% / 60% 40% 70% 30%;
    z-index: 1;
    transform: scale(0.95) translate(-5%, 5%);
}
.about-img-box img {
    position: relative;
    z-index: 2;
    width: 85%;
    height: 85%;
    object-fit: contain;
    border-radius: 50%;
    border: 8px solid var(--bg-color);
    box-shadow: var(--shadow);
    transition: border-color 0.3s ease;
}

/* Profile Image Sticker & Floating Background Icons */
.badge-dev {
    position: absolute;
    bottom: 12%;
    right: -10px;
    background: var(--main-color);
    color: var(--bg-color);
    padding: 0.8rem 1.8rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 20px var(--main-fade), 0 0 25px rgba(15, 98, 254, 0.6);
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}
.floating-icon {
    position: absolute;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
    opacity: 0.15;
    pointer-events: none;
}
.floating-icon i {
    display: inline-block;
    animation: spin 15s linear infinite;
}
.icon-1 { top: 15%; left: 8%; font-size: 6rem; color: var(--main-light); animation-delay: 0s; }
.icon-2 { top: 55%; right: 10%; font-size: 5rem; color: var(--accent-color); animation-delay: 2s; }
.icon-3 { bottom: 15%; left: 15%; font-size: 8rem; color: var(--main-color); animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-text h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
.about-text h3 span {
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 500;
    display: block;
    margin-top: 0.5rem;
}
.about-text p {
    font-size: 1.6rem;
    color: var(--p-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Polished Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.skill-card {
    background: var(--card-bg);
    padding: 2rem 1rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.skill-card i {
    font-size: 3.5rem;
    color: var(--main-color);
    margin-bottom: 0;
}
.skill-card h4 {
    font-size: 1.4rem;
    font-weight: 600;
}

/* --- Certifications Section (Nested & Side-by-Side) --- */
.certifications-section {
    margin-top: 4.5rem; 
}
.cert-heading {
    font-size: 2.8rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cert-heading span {
    color: var(--main-color);
}
.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 2rem; 
}
.cert-card {
    background: var(--card-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 100%;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
}
.cert-img-wrapper {
    width: 100%;
    height: 180px; 
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc; 
    display: flex;
    justify-content: center;
    align-items: center;
}
body.dark-mode .cert-img-wrapper {
    background: #0a0e17;
}
.cert-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 1rem; 
    transition: 0.5s ease;
}
.cert-card:hover .cert-img-wrapper img {
    transform: scale(1.05);
}
.cert-info {
    padding: 2rem;
    text-align: left; 
}
.cert-info h4 {
    font-size: 1.6rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cert-info p {
    font-size: 1.3rem;
    color: var(--p-color);
    line-height: 1.5;
}


/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 3rem;
    justify-content: center;
}
.project-card {
    background: var(--card-bg);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 100%;
    transition: 0.3s;
}

.tab-content.active .project-card {
    /* animation: slideUp 0.6s ease-out forwards; */
}

/* Animation handled by .animate-on-scroll */

.img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
    transition: 0.5s;
}
.project-card:hover .img-wrapper img {
    transform: scale(1.05);
}
.project-info {
    padding: 3rem;
}
.project-info h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}
.project-info p {
    font-size: 1.5rem;
    color: var(--p-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.view-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--main-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-link:hover { text-decoration: underline; color: var(--accent-color); }

/* Apps / Coming Soon */
.coming-soon-box {
    background: var(--header-bg);
    backdrop-filter: blur(5px);
    border-radius: 2rem;
    padding: 6rem 3rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px dashed var(--main-light);
    max-width: 600px;
    margin: 4rem auto 0; 
    transition: 0.3s;
}
.coming-soon-box:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    background: var(--card-bg);
}
.coming-soon-box i {
    font-size: 6.5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    animation: bounce 2s infinite ease-in-out;
}
.coming-soon-box h3 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.coming-soon-box p {
    font-size: 1.6rem;
    color: var(--p-color);
    line-height: 1.6;
}

/* Contact */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}
.contact-form {
    display: flex;
    flex-direction: column;
}
.contact-form .input-box {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.contact-form .input-box input {
    width: 100%;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1.6rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px var(--main-fade);
}
.contact-form textarea {
    resize: none;
    margin-bottom: 1.5rem;
}
.contact-form .btn-primary {
    align-self: flex-start;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--main-color);
    color: var(--bg-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.6rem;
    box-shadow: 0 10px 20px var(--main-fade);
    z-index: 999;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.floating-contact:hover {
    transform: scale(1.1) translateY(-5px);
    background: var(--main-light);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer */
.mega-footer {
    background: var(--card-bg);
    color: var(--text-color);
    padding-top: 7rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 5rem;
}
.footer-col h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.brand-col .footer-logo {
    margin-bottom: 2rem;
}
.brand-col .logo {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
}
.brand-col .logo span {
    color: var(--main-color);
}
.brand-col p {
    font-size: 1.5rem;
    color: var(--p-color);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 300px;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--main-fade);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 2rem;
    transition: 0.3s;
}
.footer-socials a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 1.5rem;
}
.footer-col ul li a {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
}
.footer-col ul li a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}
.contact-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-col ul li i {
    font-size: 2rem;
    color: var(--main-color);
    margin-top: 0.2rem;
}
.contact-col ul li span {
    font-size: 1.5rem;
    color: #94a3b8;
    line-height: 1.5;
}
.footer-bottom {
    background: #06090f;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p {
    font-size: 1.4rem;
    color: #64748b;
}
.footer-bottom-links {
    display: flex;
    gap: 2rem;
}
.footer-bottom-links a {
    font-size: 1.4rem;
    color: #64748b;
    transition: 0.3s;
    cursor: pointer;
}
.footer-bottom-links a:hover {
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 2rem;
    padding: 5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--main-fade);
    color: var(--main-color);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
}
.modal-content h2 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.modal-content h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
}
.modal-content p {
    font-size: 1.5rem;
    color: var(--p-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-tech-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.modal-tech-tags span {
    background: var(--main-fade);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}
.brand-col .footer-logo {
    margin-bottom: 2rem;
}
.brand-col .logo {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-color);
}
.brand-col .logo span {
    color: var(--main-color);
}
.brand-col p {
    font-size: 1.5rem;
    color: var(--p-color);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 300px;
}
.footer-socials {
    display: flex;
    gap: 1.5rem;
}
.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: var(--main-fade);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 2rem;
    transition: 0.3s;
}
.footer-socials a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 1.5rem;
}
.footer-col ul li a {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
}
.footer-col ul li a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}
.contact-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.contact-col ul li i {
    font-size: 2rem;
    color: var(--main-color);
    margin-top: 0.2rem;
}
.contact-col ul li span {
    font-size: 1.5rem;
    color: #94a3b8;
    line-height: 1.5;
}
.footer-bottom {
    background: #06090f;
    padding: 2.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p {
    font-size: 1.4rem;
    color: #64748b;
}
.footer-bottom-links {
    display: flex;
    gap: 2rem;
}
.footer-bottom-links a {
    font-size: 1.4rem;
    color: #64748b;
    transition: 0.3s;
    cursor: pointer;
}
.footer-bottom-links a:hover {
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 2rem;
    padding: 5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transform: translateY(20px);
    transition: 0.3s ease;
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--main-fade);
    color: var(--main-color);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;
}
.close-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
}
.modal-content h2 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}
.modal-content h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-top: 3rem;
    margin-bottom: 1rem;
}
.modal-content p {
    font-size: 1.5rem;
    color: var(--p-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-tech-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.modal-tech-tags span {
    background: var(--main-fade);
    color: var(--main-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}
.gallery-item {
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* Zoom Modal Styling */
#zoom-modal {
    z-index: 1050; /* Places zoom modal above the gallery modal */
}
.zoom-modal-content {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}
.zoom-modal-content img {
    max-width: 95vw;
    max-height: 85vh;
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    object-fit: contain;
}
.zoom-modal-content .close-btn {
    top: 1rem;
    right: 1rem;
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Tic-Tac-Toe Styles */
.tic-tac-toe-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 300px;
    margin: 2rem auto;
}
.ttt-cell {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    user-select: none;
}
.ttt-cell:hover {
    background: var(--main-fade);
    border-color: var(--main-color);
}
.ttt-cell:empty::before {
    content: '';
}

/* Memory Match Styles */
.memory-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}
.memory-card {
    aspect-ratio: 1;
    perspective: 1000px;
    cursor: pointer;
}
.memory-card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.memory-card.flipped .memory-card-inner {
    transform: rotateY(180deg);
}
.memory-card-front, .memory-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.memory-card-front {
    background: var(--main-fade);
    border: 2px solid var(--main-color);
    color: var(--main-color);
    transform: rotateY(180deg);
}
.memory-card-back {
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: #fff;
    font-size: 2.5rem;
}
body.dark-mode .memory-card-front {
    background: var(--card-bg);
}

/* Simon Says Styles */
.simon-btn {
    aspect-ratio: 1;
    border-radius: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.simon-btn.active {
    opacity: 1;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.5), 0 0 20px currentColor;
    transform: scale(1.05);
}
.simon-green { background-color: #10b981; color: #10b981; }
.simon-red { background-color: #ef4444; color: #ef4444; }
.simon-yellow { background-color: #f59e0b; color: #f59e0b; }
.simon-blue { background-color: #3b82f6; color: #3b82f6; }

/* RPS Styles */
.rps-btn {
    background: var(--main-fade);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 1rem;
    padding: 2rem;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}
.rps-btn i {
    font-size: 5rem;
    margin-bottom: 1rem;
}
.rps-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .home-grid-wrapper { grid-template-columns: 1fr; text-align: center; gap: 4rem; min-height: auto; }
    .home-text { text-align: center; }
    .static-intro { justify-content: center; }
    .hero-actions { justify-content: center; flex-wrap: wrap; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-img-box { max-width: 300px; margin: 0 auto; position: relative; top: 0; }
    .cert-info { text-align: center; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .footer-container { grid-template-columns: 1fr; gap: 4rem; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    .contact-form .input-box { flex-direction: column; gap: 0; }
    .contact-form .input-box input { width: 100%; margin-bottom: 2rem; }
    .modal-content { padding: 3rem; }
    .cert-grid { grid-template-columns: 1fr; }
    
    .zoom-modal-content .close-btn {
        top: 1rem;
        right: 1rem;
    }
}
/* Typing Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--main-color);
    animation: blink 1s step-end infinite;
    margin-left: 5px;
    vertical-align: text-bottom;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: var(--main-color);
    color: var(--bg-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 998;
}
.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced Category Headings */
.category-heading-container {
    text-align: center;
    margin: 3rem 0 2rem;
}
.category-heading {
    display: inline-block;
    position: relative;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    padding-bottom: 0.8rem;
}
.category-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--main-color);
    border-radius: 2px;
}
.dark-mode .category-heading {
    text-shadow: 2px 4px 15px var(--border-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    margin-left: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: 0.3s;
}
.menu-toggle:hover {
    background: var(--border-color);
}

/* Mobile Page Title - Hidden to preserve clean header branding */
.mobile-page-title {
    display: none;
}

@media (max-width: 992px) {
    .header {
        padding: 1.2rem 5% !important;
        justify-content: space-between !important;
    }
    .header-left {
        gap: 1.5rem !important;
    }
    .logo-box {
        display: flex !important;
        align-items: center;
        gap: 0.8rem;
    }
    .header-logo-img {
        height: 3.6rem;
    }
    .logo {
        font-size: 2.2rem;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .header-right {
        gap: 1.2rem !important;
    }
    .header-right .social-link,
    .header-right .download-btn,
    .header-right .desktop-only {
        display: none !important;
    }
    #theme-toggle {
        position: static !important;
        margin: 0 !important;
    }
    .tab-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 1.5rem 2rem 2.5rem;
        gap: 0.8rem;
        border-radius: 0 0 2rem 2rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.25);
        border: 1px solid var(--border-color);
        border-top: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        max-height: calc(100vh - 75px);
        overflow-y: auto;
    }
    .tab-nav.nav-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .tab-link {
        width: 100%;
        text-align: center;
        padding: 1.2rem 1.6rem;
        font-size: 1.5rem;
        border-radius: 1rem;
    }
    .dropdown-wrapper {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        background: var(--main-fade);
        border: 1px solid var(--border-color);
        border-radius: 1.2rem;
        padding: 0.6rem;
        margin: 0.5rem 0 0.8rem;
        gap: 0.4rem;
    }
    .dropdown-menu::before {
        display: none;
    }
    .dropdown-menu a {
        padding: 0.9rem 1.4rem;
        font-size: 1.3rem;
        font-weight: 500;
        color: var(--text-color);
        justify-content: flex-start;
        border-radius: 0.8rem;
        transition: 0.2s;
    }
    .dropdown-menu a:hover {
        background: var(--card-bg);
    }
    .dropdown-menu a i {
        font-size: 1.6rem;
        width: 2.8rem;
        height: 2.8rem;
    }
    .tab-link.mobile-only {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--main-fade);
        color: var(--main-color);
        font-weight: 600;
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
        border-radius: 50px;
        padding: 1.2rem;
    }
    .tab-link.mobile-only:last-child {
        background: var(--main-color) !important;
        color: var(--bg-color) !important;
    }
}

/* --- Restored Premium Software (Shop) Styles --- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 3rem;
    padding: 2rem 0;
    justify-content: center;
}

.shop-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: 0.4s cubic-bezier(0.1, 0.5, 0.1, 1);
    display: flex;
    flex-direction: column;
}

.shop-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-color: var(--main-color);
}
.dark-mode .shop-item:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.badge-pro {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--main-color), var(--main-light));
    color: var(--bg-color);
    padding: 0.6rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 15px var(--main-fade);
}

.badge-ongoing {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: linear-gradient(135deg, var(--main-color), var(--main-light));
    color: var(--bg-color);
    padding: 0.6rem 1.5rem;
    border-radius: 5rem;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: 0 5px 15px var(--main-fade);
}

.shop-img-box {
    width: 100%;
    height: 200px;
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.dark-mode .shop-img-box {
    background: #111b2b;
}

.shop-img-box img {
    height: 120px;
    max-width: 80%;
    object-fit: contain;
    transition: 0.5s;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}
.shop-item:hover .shop-img-box img {
    transform: scale(1.1) rotate(2deg);
}

.shop-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-title {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.shop-desc {
    font-size: 1.5rem;
    color: var(--p-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.shop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.shop-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--main-color);
    display: flex;
    align-items: flex-end;
}
.shop-price span {
    font-size: 1.3rem;
    color: var(--p-color);
    font-weight: 500;
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.btn-purchase {
    background: var(--main-color);
    color: var(--bg-color);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(15, 98, 254, 0.3);
}

.btn-purchase:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--main-fade);
}

.btn-purchase i {
    font-size: 2rem;
}

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

/* Newsletter Form */
.newsletter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 1.4rem 2.5rem;
    border-radius: 5rem;
    border: 1.5px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1.5rem;
    width: 100%;
    max-width: 400px;
    outline: none;
    transition: 0.3s cubic-bezier(0.1, 0.5, 0.1, 1);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);
}

.newsletter-form input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(15, 98, 254, 0.15);
}

.newsletter-form button {
    padding: 1.4rem 3.5rem;
    border-radius: 5rem;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: #fff;
    border: none;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.1, 0.5, 0.1, 1);
    box-shadow: 0 8px 20px rgba(15, 98, 254, 0.3);
}

.newsletter-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px var(--main-fade);
}

.mobile-only { display: none; }
@media (max-width: 992px) {
    .mobile-only { display: block; }
}

/* =========================================
   UI/UX Pro Max Improvements
   ========================================= */

/* 1. Accessibility: Focus Rings */
*:focus-visible {
    outline: 2px solid var(--main-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* 2. Interaction: Minimum Touch Targets */
.social-link, 
.theme-btn, 
.menu-toggle,
.floating-contact,
.back-to-top {
    min-width: 44px;
    min-height: 44px;
}

/* Safely center content without overriding mobile/desktop display rules */
.social-link, .theme-btn, .floating-contact, .back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Animation: Premium Cubic-Bezier Timings */
.btn-primary, .btn-outline, .project-card, .shop-item, .cert-card {
    transition: all 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.btn-primary:active, .btn-outline:active {
    transform: scale(0.97);
}

/* 4. Forms: Visible Labels & progressive feedback */
.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
}
.input-group label {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}
.contact-form .input-box {
    gap: 1.5rem;
}











/* Dark Mode Logo Fix */
body.dark-mode .header-logo-img {
    filter: invert(1);
}





/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}
/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #475569 var(--bg-color);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
}
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 4rem 3rem;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--main-fade);
    border-color: var(--text-color);
}
.service-card i {
    font-size: 5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}
.service-card h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.service-card p {
    font-size: 1.5rem;
    color: var(--p-color);
    line-height: 1.7;
}

/* --- Security & Engineering Standards Section --- */
.security-section {
    padding: 0 2rem;
}
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--main-fade);
    color: var(--text-color);
    padding: 0.6rem 1.6rem;
    border-radius: 5rem;
    font-size: 1.3rem;
    font-weight: 700;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.security-badge i {
    font-size: 1.6rem;
    color: var(--text-color);
}
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.security-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    padding: 3.5rem 2.8rem;
    text-align: left;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}
.security-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px var(--main-fade);
    border-color: var(--text-color);
}
.security-icon-box {
    width: 5.4rem;
    height: 5.4rem;
    background: var(--main-fade);
    border-radius: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}
.security-card:hover .security-icon-box {
    background: var(--main-color);
}
.security-card:hover .security-icon-box i {
    color: var(--bg-color);
}
.security-icon-box i {
    font-size: 2.6rem;
    color: var(--text-color);
    transition: 0.3s ease;
}
.security-card h3 {
    font-size: 1.9rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}
.security-card p {
    font-size: 1.45rem;
    color: var(--p-color);
    line-height: 1.7;
    flex: 1;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 2rem;
}
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.faq-item:hover {
    border-color: var(--text-color);
}
.faq-item summary {
    padding: 2.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 2.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-content {
    padding: 0 2.5rem 2.5rem 2.5rem;
    font-size: 1.6rem;
    color: var(--p-color);
    line-height: 1.7;
    border-top: 1px solid var(--border-color);
    margin-top: -1rem;
    padding-top: 2rem;
}

/* Force Footer to be Dark Mode always */
.mega-footer {
    background: #0a0e17 !important;
    color: #ffffff !important;
    border-top: 1px solid #1e293b !important;
}
.mega-footer .logo,
.mega-footer h3,
.mega-footer .contact-col ul li span {
    color: #ffffff !important;
}
.mega-footer p, 
.mega-footer .brand-col p,
.footer-col ul li a {
    color: #9ca3af !important;
}
.footer-col ul li a:hover {
    color: var(--accent-color) !important;
}
.footer-socials a {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}
.footer-socials a:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}
.footer-bottom {
    background: #05070a !important;
    border-top: 1px solid #1e293b !important;
}


/* --- High-End Tech Stack Marquee / Ticker --- */
.tech-marquee-wrapper {
    margin: 6rem 0 3.5rem;
    padding: 2.2rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.tech-marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    width: max-content;
    animation: scroll-marquee 32s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 2.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

body.dark-mode .marquee-item {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.marquee-item:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--card-bg);
    border-color: var(--main-color);
    box-shadow: 0 10px 25px var(--main-fade), 0 0 15px rgba(255, 255, 255, 0.08);
}

.marquee-item i {
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.marquee-item:hover i {
    transform: scale(1.15) rotate(4deg);
}

.marquee-item span {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.marquee-item:hover span {
    color: var(--main-color);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Responsive Fixes for New Features */
@media (max-width: 768px) {
    .tech-marquee-wrapper {
        margin: 4rem 0 2rem;
        padding: 1.6rem 0;
        mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    }
    .marquee-track {
        gap: 1.4rem !important;
        animation-duration: 25s !important;
    }
    .marquee-item {
        padding: 0.8rem 1.5rem !important;
        gap: 0.8rem !important;
    }
    .marquee-item i {
        font-size: 1.9rem !important;
    }
    .marquee-item span {
        font-size: 1.25rem !important;
    }
    .github-stats-section .github-card img {
        height: auto !important;
        max-width: 100% !important;
    }
    .video-intro {
        margin: 1rem 0 !important;
    }
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================================
   SENIOR DESIGNER PRODUCTION-GRADE UPGRADES & ANIMATIONS
   ========================================================================= */

/* 1. SCROLL REVEAL ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.show,
.animate-on-scroll.visible,
.tab-content.active .animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Add stagger delays for items inside grids */
.skills-grid .skill-card:nth-child(1) { transition-delay: 0.1s; }
.skills-grid .skill-card:nth-child(2) { transition-delay: 0.15s; }
.skills-grid .skill-card:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .skill-card:nth-child(4) { transition-delay: 0.25s; }
.skills-grid .skill-card:nth-child(5) { transition-delay: 0.3s; }
.skills-grid .skill-card:nth-child(6) { transition-delay: 0.35s; }
.skills-grid .skill-card:nth-child(7) { transition-delay: 0.4s; }
.skills-grid .skill-card:nth-child(8) { transition-delay: 0.45s; }
.skills-grid .skill-card:nth-child(9) { transition-delay: 0.5s; }
.skills-grid .skill-card:nth-child(10) { transition-delay: 0.55s; }

.projects-container .project-card:nth-child(1) { transition-delay: 0.1s; }
.projects-container .project-card:nth-child(2) { transition-delay: 0.2s; }
.projects-container .project-card:nth-child(3) { transition-delay: 0.3s; }
.projects-container .project-card:nth-child(4) { transition-delay: 0.4s; }

.shop-grid .shop-item:nth-child(1) { transition-delay: 0.1s; }
.shop-grid .shop-item:nth-child(2) { transition-delay: 0.2s; }
.shop-grid .shop-item:nth-child(3) { transition-delay: 0.3s; }

.cert-grid .cert-card:nth-child(1) { transition-delay: 0.1s; }
.cert-grid .cert-card:nth-child(2) { transition-delay: 0.2s; }
.cert-grid .cert-card:nth-child(3) { transition-delay: 0.3s; }
.cert-grid .cert-card:nth-child(4) { transition-delay: 0.4s; }

/* 2. CARD HOVER ENHANCEMENTS */
.project-card, .service-card, .cert-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.project-card:hover, .cert-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}
body.dark-mode .project-card:hover, body.dark-mode .cert-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 15px rgba(255,255,255,0.05) !important;
}

.service-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px var(--main-fade) !important;
    border-color: var(--main-color) !important;
}

/* 3. HERO & TYPOGRAPHY UPGRADES */
.text-highlight {
    background: linear-gradient(120deg, var(--main-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
body.dark-mode .text-highlight {
    background: linear-gradient(120deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading span {
    background: linear-gradient(120deg, var(--main-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
body.dark-mode .heading span {
    background: linear-gradient(120deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 4. BUTTON POLISH */
.btn-primary, .btn-outline {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.btn-primary:hover::after {
    left: 100%;
}
body.dark-mode .btn-primary {
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
body.dark-mode .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* 5. FLOATING BACKGROUND SHAPES */
@keyframes floatShapes {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}
.shape-left { animation: floatShapes 12s ease-in-out infinite; }
.shape-right { animation: floatShapes 15s ease-in-out infinite reverse; }
.shape-center { animation: floatShapes 18s ease-in-out infinite 2s; }

/* 6. COMPREHENSIVE PRODUCTION-GRADE MOBILE RESPONSIVENESS */
@media (min-width: 993px) and (max-width: 1200px) {
    .header-right .desktop-only a {
        padding: 0.5rem 1rem !important;
        font-size: 1.2rem !important;
    }
    .tab-nav {
        padding: 0.5rem !important;
    }
    .tab-nav .tab-link {
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 58%;
    }
    .main-content {
        padding: 2.5rem 4% 4rem !important;
    }
    .heading {
        font-size: clamp(2.6rem, 7vw, 3.2rem) !important;
    }
    .section-header {
        margin-bottom: 2.5rem !important;
    }
    .section-header p {
        font-size: 1.4rem !important;
    }
    
    /* Home Hero */
    .home-grid-wrapper {
        padding-top: 1.5rem;
        gap: 3.5rem;
        min-height: auto;
    }
    .home-text h1 {
        font-size: clamp(3rem, 7.5vw, 4.2rem) !important;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }
    .home-text p {
        font-size: 1.5rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
        max-width: 320px;
        margin: 0 auto;
    }
    .hero-actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 1.3rem 2rem;
    }
    .play-btn-box {
        justify-content: center;
    }
    .tech-stack-card {
        padding: 2.5rem 2rem;
        max-width: 100%;
    }
    .tech-icons {
        font-size: 3rem;
        gap: 1.5rem;
        justify-content: center;
    }
    
    /* Services & FAQs */
    .services-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
        gap: 2rem;
    }
    .service-card {
        padding: 2.5rem 2rem;
    }
    .faq-container {
        padding: 0 !important;
    }
    .faq-item summary {
        padding: 1.8rem 1.6rem !important;
        font-size: 1.5rem !important;
    }
    .faq-content {
        padding: 0 1.6rem 1.8rem !important;
        font-size: 1.4rem !important;
    }
    
    /* About the Developer */
    .about-grid {
        gap: 3.5rem !important;
    }
    .about-img-box {
        max-width: 240px !important;
    }
    .skills-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem !important;
    }
    .skill-card {
        padding: 1.5rem 1rem !important;
    }
    .skill-card i {
        font-size: 2.8rem !important;
    }
    .skill-card h4 {
        font-size: 1.2rem !important;
    }
    .cert-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    .github-card {
        padding: 1.5rem 1rem !important;
    }
    
    /* Projects & Software */
    .projects-container, .shop-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .project-card, .shop-item {
        max-width: 100% !important;
    }
    .project-info, .shop-content {
        padding: 2rem 1.8rem !important;
    }
    
    /* Contact */
    .contact-container {
        padding: 2.5rem 1.8rem !important;
        border-radius: 1.5rem !important;
    }
    .contact-form .input-box {
        flex-direction: column !important;
        gap: 0 !important;
    }
    .contact-form .btn-primary {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* CTA Banner & Footer */
    .cta-banner {
        margin: 2.5rem 0 !important;
        padding: 3rem 1.8rem !important;
        border-radius: 1.5rem !important;
    }
    .cta-banner h2 {
        font-size: 2.2rem !important;
    }
    .cta-banner p {
        font-size: 1.4rem !important;
    }
    .mega-footer {
        padding: 4rem 2rem 2rem !important;
    }
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 3.5rem !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 1.2rem !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }
    .main-content {
        padding: 2rem 3% 3.5rem !important;
    }
    .skills-grid {
        gap: 1rem !important;
    }
    .skill-card {
        padding: 1.2rem 0.6rem !important;
    }
    .contact-container {
        padding: 2rem 1.2rem !important;
    }
    .tech-icons {
        font-size: 2.5rem;
        gap: 1.2rem;
    }
}

.desktop-flex { display: flex; gap: 10px; }

/* ============================================================
   NEW UPGRADES: STATUS BADGE, TYPEWRITER, FILTER BAR,
   SPOTLIGHT GLOW & TOAST NOTIFICATION
   ============================================================ */

/* 1. Hero Live Status Badge */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.7rem 1.6rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
    transition: all 0.3s ease;
}
.hero-status-pill:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.2);
}
.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}


/* 3. Interactive Category Filter Bar */
.project-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin: 3.5rem auto 4.5rem;
    flex-wrap: wrap;
    max-width: 900px;
    padding: 0.6rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--p-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.filter-btn i {
    font-size: 1.6rem;
}
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.7rem;
    background: var(--border-color);
    border-radius: 50px;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}
.filter-btn:hover {
    color: var(--text-color);
    background: var(--main-fade);
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--main-color) !important;
    color: var(--bg-color) !important;
    box-shadow: 0 6px 18px var(--main-fade);
}
.filter-btn.active .filter-count {
    background: var(--bg-color) !important;
    color: var(--text-color) !important;
}

/* Smooth Category Visibility Transitions */
.project-category-group {
    transition: all 0.4s ease;
    transform-origin: top center;
}
.project-category-group.hidden-category {
    display: none !important;
}

/* 4. Pure CSS Ambient Highlight on Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
}
.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(500px circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
    border-radius: inherit;
}
body:not(.dark-mode) .spotlight-card::before {
    background: radial-gradient(450px circle at 50% 0%, rgba(0, 0, 0, 0.045), transparent 70%);
}
.spotlight-card:hover::before {
    opacity: 1;
}

/* 5. Polished Toast Notification */
.toast-container {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    pointer-events: none;
}
.toast-card {
    pointer-events: auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.6rem;
    padding: 1.8rem 2.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    min-width: 340px;
    max-width: 420px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-card.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-icon {
    font-size: 2.8rem;
    flex-shrink: 0;
}
.toast-success .toast-icon {
    color: #22c55e;
}
.toast-error .toast-icon {
    color: #ef4444;
}
.toast-body {
    flex: 1;
}
.toast-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.4rem;
}
.toast-desc {
    font-size: 1.3rem;
    color: var(--p-color);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}
.toast-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--main-color);
    text-decoration: underline;
    cursor: pointer;
    transition: opacity 0.2s;
}
.toast-action-btn:hover {
    opacity: 0.8;
}
.toast-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--p-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.toast-close:hover {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .security-card {
        padding: 2.8rem 2.2rem;
    }
    .project-filter-bar {
        border-radius: 2rem;
        padding: 0.8rem;
        gap: 0.6rem;
    }
    .filter-btn {
        padding: 0.8rem 1.4rem;
        font-size: 1.2rem;
        flex: 1 1 auto;
        justify-content: center;
    }
    .toast-container {
        top: 20px;
        right: 15px;
        left: 15px;
    }
    .toast-card {
        min-width: auto;
        max-width: 100%;
    }
}
