:root {
    --bg-base: #FAF7FF;
    --primary: #8B5CF6;
    --primary-dark: #7C3AED;
    --secondary: #EC4899;
    --text-main: #1F2937;
    --text-sub: #4B5563;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --nav-bg: rgba(255, 255, 255, 0.4);
    --card-bg: rgba(255, 255, 255, 0.45);
    --radius: 24px;
    --shadow-premium: 0 20px 40px rgba(139, 92, 246, 0.08);
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Logo Styling & Animations --- */
.pulse-anim { animation: pulseLogo 2s infinite ease-in-out; }
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

.floating-anim { animation: floatLogo 4s infinite ease-in-out; }
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.splash-logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.3));
}

.nav-logo {
    width: 44px;
    height: auto;
    margin-right: 12px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.hero-logo-container {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero-main-logo {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
}

.brand-header-flex, .business-header-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.about-section-logo {
    width: 90px;
    height: auto;
    flex-shrink: 0;
}

.business-section-logo {
    width: 60px;
    height: auto;
}

.contact-section-logo {
    width: 70px;
    height: auto;
    margin-bottom: 1.5rem;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.footer-logo {
    width: 40px;
    height: auto;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

@media (max-width: 1024px) {
    .brand-header-flex, .business-header-flex {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .hero-main-logo { width: 120px; }
}

.founder-real-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-top: -0.2rem;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

/* Performance Boost */
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.founder-real-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-sub);
    margin-top: -0.2rem;
    margin-bottom: 0.4rem;
    opacity: 0.8;
}

.business-info-mini p {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
}

.owner-footer {
    font-size: 0.75rem !important;
    opacity: 0.7;
    margin-top: 0.3rem;
}

/* Performance Boost */
.reveal, .skill-card, .project-card, .service-card, .tile {
    will-change: transform, opacity;
}

.dark-mode {
    --bg-base: #0F172A;
    --text-main: #F8FAFC;
    --text-sub: #94A3B8;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(51, 65, 85, 0.5);
    --nav-bg: rgba(15, 23, 42, 0.6);
    --card-bg: rgba(30, 41, 59, 0.4);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease;
}

/* --- Layout Centering --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px;
    width: 100%;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
    text-decoration: none;
    border-bottom-right-radius: 8px;
}

.skip-link:focus { top: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* --- WORLD-CLASS PREMIUM SPLASH SCREEN --- */
.ultra-premium-splash {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), filter 1.2s;
}

/* Background Layers */
.splash-bg-layer { position: absolute; inset: 0; z-index: -1; }
.mesh-grad {
    position: absolute; inset: 0;
    background: radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.04) 0px, transparent 50%);
}
.noise-fx {
    position: absolute; inset: 0; opacity: 0.015; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.p-blob {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0.12; animation: blobFloatPremium 20s infinite alternate ease-in-out;
}
.pb-1 { width: 600px; height: 600px; background: #8B5CF6; top: -10%; left: -10%; }
.pb-2 { width: 500px; height: 500px; background: #EC4899; bottom: -10%; right: -5%; animation-delay: -5s; }
.pb-3 { width: 400px; height: 400px; background: #6366F1; top: 40%; left: 30%; animation-delay: -2s; }

@keyframes blobFloatPremium { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(80px, 40px) scale(1.1); } }

/* Floating Icons (Distributed) */
.f-icon-item {
    position: absolute; top: var(--top); left: var(--left);
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.15); border-radius: 14px;
    color: #8B5CF6; font-weight: 800; font-size: 1.1rem; opacity: 0.3;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
    animation: floatPremium var(--speed) infinite ease-in-out;
    z-index: 1;
}
@keyframes floatPremium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

/* Core Content */
.splash-content-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Reduced gap to fit all screens */
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 1rem 2rem 8vh 2rem; /* Vertical padding to prevent clipping and move content UP */
    min-height: 100vh;
}
.main-branding-block { text-align: center; position: relative; }
.radial-logo-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 300px; height: 300px; background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    z-index: -1; animation: logoPulse 4s infinite alternate;
}
@keyframes logoPulse { from { opacity: 0.4; transform: translate(-50%, -50%) scale(0.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } }

.splash-logo-text { font-size: 4rem; font-weight: 800; letter-spacing: -3px; color: #1F2937; margin-bottom: 0.2rem; }
.s-role-badge { display: block; font-weight: 800; color: #8B5CF6; text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; }
.s-mission-tag { color: #94A3B8; font-size: 0.95rem; margin-top: 8px; display: block; font-weight: 500; }

/* Code Card */
.premium-code-card {
    width: 100%; max-width: 500px; border-radius: 20px; overflow: hidden;
    background: rgba(255, 255, 255, 0.45); backdrop-filter: blur(25px);
    border: 1px solid rgba(139, 92, 246, 0.2); box-shadow: 0 40px 80px rgba(0,0,0,0.04);
}
.card-head-ui { padding: 10px 18px; background: rgba(0,0,0,0.02); display: flex; justify-content: space-between; align-items: center; }
.mac-dots-ui { display: flex; gap: 6px; }
.mac-dots-ui span { width: 8px; height: 8px; border-radius: 50%; background: #e5e7eb; }
.kt-label { font-size: 10px; font-weight: 700; color: #9ca3af; text-transform: uppercase; }
.card-body-ui { padding: 15px 20px; min-height: 200px; }
#code-typing-engine { font-family: 'Fira Code', monospace; font-size: 12.5px; line-height: 1.5; color: #475569; white-space: pre-wrap; }

/* Progress Footer */
.splash-footer-ui {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 0.5rem; /* Pushes bottom elements slightly up */
}
.loading-msg-ui { font-size: 12px; font-weight: 700; color: #8B5CF6; text-transform: uppercase; letter-spacing: 1.5px; transition: opacity 0.3s ease; }
.progress-container-premium { height: 6px; width: 100%; border-radius: 100px; overflow: hidden; background: rgba(0,0,0,0.03); border: 1px solid rgba(139, 92, 246, 0.1); }
.progress-fill-premium { height: 100%; width: 0%; background: linear-gradient(90deg, #8B5CF6, #D946EF); border-radius: 100px; position: relative; transition: width 0.3s ease; }
.fill-shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); animation: barShimmer 2s infinite; }
@keyframes barShimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pct-counter-ui { font-size: 14px; font-weight: 800; color: #8B5CF6; }

@media (max-width: 768px) {
    .splash-logo-text { font-size: 3.2rem; }
    .premium-code-card { max-width: 90vw; }
    .f-icon-item { width: 42px; height: 42px; font-size: 0.9rem; }
}

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease;
}

/* Theme Toggle */
.theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: rotate(15deg);
}

.dark-mode .moon-icon, .sun-icon { display: none; }
.dark-mode .sun-icon { display: block; }
.moon-icon { display: block; }

/* Background Effects */
.bg-glow-top {
    position: fixed;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.bg-glow-bottom {
    position: fixed;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    z-index: -2;
    pointer-events: none;
}

.electric-lines {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.1;
    pointer-events: none;
}

.line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    stroke-dasharray: 10, 10;
    animation: flow 20s linear infinite;
}

.line-2 { stroke: var(--secondary); animation-delay: -5s; }
.line-3 { stroke: var(--primary); animation-duration: 25s; }

@keyframes flow {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-premium);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0.65rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--primary); }

/* --- Original Premium Buttons --- */
.btn-nav, .btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 1.2rem 2.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-nav { padding: 0.7rem 1.5rem; font-size: 0.85rem; }

.btn-primary:hover, .btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
    background: var(--primary-dark);
}

.btn-secondary {
    background: #fff;
    color: var(--text-main);
    padding: 1.2rem 2.4rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--bg-base);
    transform: translateY(-3px);
    border-color: var(--primary);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 5.5fr 4.5fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.2rem;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.dark-mode .availability-badge { background: rgba(16, 185, 129, 0.15); color: #10B981; }

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #10B981;
    border-radius: 50%;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(139, 92, 246, 0.08);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -3px;
    background: linear-gradient(to right, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.3rem;
    color: var(--text-sub);
    margin-bottom: 3.5rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* Hero Visual Illustration */
.abstract-visual {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatingHero 6s ease-in-out infinite;
}

.visual-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    border-radius: 50%;
}

.node {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg-base);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--glass-border);
    z-index: 2;
    font-weight: 800;
}

.node-android { top: 10px; left: 50%; transform: translateX(-50%); color: #3DDC84; }
.node-kotlin { top: 110px; right: 20px; color: var(--primary); }
.node-firebase { bottom: 110px; right: 20px; color: #FFCA28; }
.node-compose { bottom: 10px; left: 50%; transform: translateX(-50%); color: var(--secondary); }
.node-github { bottom: 110px; left: 20px; color: var(--text-main); }
.node-code { top: 110px; left: 20px; color: var(--primary-dark); }
.node-java { top: 50%; left: 10%; transform: translateY(-50%); color: #E76F00; }
.node-xml { top: 50%; right: 10%; transform: translateY(-50%); color: var(--secondary); }

.visual-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.15;
    stroke: var(--primary);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
}

@keyframes floatingHero {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* Sections General */
section { padding: 6.5rem 0; }
.section-header { margin-bottom: 4rem; }
.section-tag {
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1.2rem;
    display: block;
}
h2 { font-size: 3.2rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.2; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.service-card { padding: 3rem 2rem; border-radius: var(--radius); transition: all 0.4s ease; }
.service-card:hover { transform: translateY(-10px); border-color: var(--primary); }

.service-card i {
    width: 72px; height: 72px; display: flex; align-items: center; justify-content: center;
    border-radius: 20px; font-size: 2rem; margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.service-card:hover i { transform: scale(1.1) rotate(5deg); box-shadow: 0 12px 24px rgba(139, 92, 246, 0.15); }
.service-card .icon-purple { background: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.service-card .icon-pink { background: rgba(236, 72, 153, 0.1); color: #EC4899; }
.service-card .icon-blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.service-card .icon-green { background: rgba(16, 185, 129, 0.1); color: #10B981; }

/* Skills */
.skills-subtitle { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; display: flex; align-items: center; gap: 1rem; }
.skills-subtitle::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.skill-card { padding: 2.5rem; text-align: center; border-radius: var(--radius); transition: all 0.4s ease; }
.skill-card:hover { transform: translateY(-8px); border-color: var(--primary); }
.tech-icon { font-weight: 800; font-size: 2rem; color: var(--primary); margin-bottom: 1.5rem; display: block; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-item .count { font-size: 4rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-item .label { display: block; font-weight: 600; color: var(--text-sub); margin-top: 0.5rem; }

/* Projects Grid */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.project-card { border-radius: var(--radius); overflow: hidden; transition: 0.4s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.project-image-placeholder { height: 220px; background: rgba(139, 92, 246, 0.03); display: flex; justify-content: center; align-items: center; border-bottom: 1px solid var(--glass-border); }
.project-image-placeholder i { font-size: 4.5rem; transition: 0.5s; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }
.project-card:hover i { transform: scale(1.2) translateY(-10px); color: var(--primary); }
.project-info { padding: 2.5rem; flex-grow: 1; }
.item-tag { font-size: 0.75rem; background: rgba(139, 92, 246, 0.1); color: var(--primary); padding: 0.4rem 1rem; border-radius: 6px; font-weight: 700; margin-bottom: 1rem; display: inline-block; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.project-tech span { font-size: 0.75rem; font-weight: 700; padding: 0.4rem 1rem; background: rgba(0,0,0,0.05); border-radius: 100px; color: var(--text-sub); }

/* Upcoming */
/* --- Brand Section --- */
.brand-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; margin-top: 2rem; }
.brand-text-card, .tech-stack-card { padding: 3rem; border-radius: var(--radius); }
.vision-mission { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.vm-item h3 { font-size: 1.3rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 10px; }
.vm-item p { font-size: 0.95rem; color: var(--text-sub); }

.tech-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }
.tech-stack-card h3 { margin-bottom: 1.5rem; color: var(--primary); }

/* --- Why Choose Section --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { padding: 3rem 2.5rem; border-radius: var(--radius); text-align: center; transition: var(--transition); }
.feature-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(139, 92, 246, 0.12); }
.feature-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; display: inline-block; }
.feature-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.feature-card p { color: var(--text-sub); font-size: 0.95rem; }

/* --- Our Business --- */
.business-card { text-align: center; padding: 5rem 3rem; }
.business-card p { max-width: 800px; margin: 2rem auto 0; font-size: 1.2rem; color: var(--text-sub); line-height: 1.8; }

/* --- Contact Details --- */
.contact-details { margin-top: 2rem; display: grid; gap: 1.5rem; }
.contact-details p { display: flex; align-items: flex-start; gap: 15px; font-size: 1.05rem; }
.contact-details i { color: var(--primary); margin-top: 4px; flex-shrink: 0; }

@media (max-width: 1024px) {
    .brand-grid, .features-grid, .vision-mission { grid-template-columns: 1fr; }
    .business-card { padding: 3rem 1.5rem; }
    .business-card p { font-size: 1rem; }
    .brand-text-card, .tech-stack-card { padding: 2rem 1.5rem; }
}

/* Footer Improvements */
.footer-links { gap: 1.5rem; }
.footer-links a { font-weight: 600; }

/* --- Existing Styles --- */
.upcoming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.upcoming-card { padding: 3.5rem 3rem; border-radius: var(--radius); }
.coming-soon { color: var(--secondary); font-weight: 800; font-size: 0.85rem; margin-bottom: 1.2rem; text-transform: uppercase; }

/* --- BENTO GRID TEAM SECTION (LINEAR/APPLE STYLE) --- */
.team-bento-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    background: var(--bg-base);
}

/* Background Mesh & Blobs */
.bento-bg-container { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.mesh-blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.08; }
.mesh-1 { width: 600px; height: 600px; background: var(--primary); top: -10%; left: -10%; animation: floatMesh 20s infinite alternate; }
.mesh-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -5%; right: -5%; animation: floatMesh 15s infinite alternate-reverse; }
.mesh-3 { width: 400px; height: 400px; background: var(--primary); top: 40%; left: 50%; opacity: 0.04; }

@keyframes floatMesh {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

.bento-dotted-overlay {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Header */
.team-bento-header { text-align: center; margin-bottom: 5rem; position: relative; z-index: 2; }
.animated-gradient-line {
    width: 80px; height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    background-size: 200% 100%;
    margin: 1.5rem auto;
    border-radius: 10px;
    animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift { 0% { background-position: 100% 0%; } 100% { background-position: -100% 0%; } }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Master Layout */
.bento-master-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.bento-card-wrapper { flex: 1; max-width: 480px; }

/* The Bento Grid Core */
.bento-inner-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 1rem;
    position: relative;
    padding: 1.5rem;
    border-radius: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    overflow: hidden;
}

/* Neon Border Beam Effect - Only on boundaries */
.bento-inner-grid::before {
    content: '';
    position: absolute;
    inset: -50%; /* Large area for rotation */
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 280deg,
        var(--primary) 300deg,
        var(--secondary) 340deg,
        transparent 360deg
    );
    animation: rotateNeon 4s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Mask to keep the beam only on the border */
.bento-inner-grid::after {
    content: '';
    position: absolute;
    inset: 2px; /* This creates the thin 2px border thickness */
    background: var(--bg-base); /* Match background to hide the center of the beam */
    border-radius: 26px;
    z-index: 1;
    opacity: 0.95; /* Keep it slightly opaque to block the beam but look premium */
    backdrop-filter: blur(30px);
}

/* For Dark Mode */
.dark-mode .bento-inner-grid::after {
    background: #1e293b; /* Solid dark color to block inner light */
}

/* Ensure content is on top */
.tile {
    position: relative;
    z-index: 2;
}

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

.tile:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.12);
    transform: translateY(-5px);
}

/* Specific Tile Layouts */
.tile-photo {
    grid-column: 1; grid-row: 1 / span 2;
    display: flex; justify-content: center; align-items: center;
    position: relative; overflow: hidden;
    background: rgba(139, 92, 246, 0.03);
}

.profile-ring-glow {
    position: absolute; inset: -10px;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
    animation: rotateRing 4s linear infinite;
    opacity: 0.3;
}

@keyframes rotateRing { to { transform: rotate(360deg); } }

.profile-img-frame {
    width: 100px; height: 100px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid #fff; position: relative; z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.profile-img-frame img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.tile-photo:hover img { transform: scale(1.15); }

.tile-identity {
    grid-column: 2; grid-row: 1;
    display: flex; flex-direction: column; justify-content: center;
    text-align: left;
}

.role-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 100px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    margin-bottom: 0.8rem; width: fit-content;
}

.badge-icon { width: 14px; height: 14px; color: var(--primary); }
.role-badge span { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--primary); letter-spacing: 1px; }

.tile-identity h3 {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}
.designation { font-size: 0.85rem; font-weight: 600; color: var(--text-sub); }

.tile-bio {
    grid-column: 1 / span 2; grid-row: 3;
    font-size: 0.95rem; line-height: 1.6; color: var(--text-sub);
}

.tile-skills {
    grid-column: 1 / span 2; grid-row: 4;
    text-align: left;
}

.tile-label { font-size: 0.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 1rem; text-transform: uppercase; opacity: 0.7; }

.bento-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
    font-size: 0.75rem; font-weight: 700; padding: 0.5rem 1rem;
    border-radius: 100px; background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.15); color: var(--text-sub);
    transition: 0.3s;
}

.pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); }

.tile-actions {
    grid-column: 2; grid-row: 2;
    display: flex; gap: 1rem; align-items: center; justify-content: center;
}

.bento-contact-btn {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary); transition: 0.3s;
}

.bento-contact-btn:hover {
    background: var(--primary); color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Divider & Decorations */
.bento-glowing-divider {
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(139, 92, 246, 0.4), transparent);
}

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; padding: 5rem; border-radius: 48px; }
.social-links { display: grid; gap: 1.2rem; margin-top: 2.5rem; }
.social-item { text-decoration: none; color: var(--text-main); font-weight: 700; display: flex; align-items: center; gap: 1rem; padding: 1.2rem; background: rgba(255,255,255,0.5); border-radius: 16px; transition: 0.3s; }
.social-item:hover { background: #fff; color: var(--primary); border-color: var(--primary); transform: translateX(5px); }
.contact-form { display: grid; gap: 1.5rem; }
.contact-form input, .contact-form textarea { padding: 1.4rem; border-radius: 18px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.7); font-family: inherit; font-size: 1rem; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 5px rgba(139,92,246,0.1); background: #fff; }

/* Footer */
.footer { padding: 4rem 0; }
.footer-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin-bottom: 3rem;
    opacity: 0.3;
}
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-links a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.footer-links a:hover { color: var(--primary); }
.footer-links a:hover::after { width: 100%; }
.separator { color: var(--glass-border); font-size: 0.8rem; }
.footer-copyright p, .footer-credit p {
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: 500;
}
.heart { color: var(--secondary); display: inline-block; animation: heartbeat 1.5s ease infinite; }
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Back to Top */
.back-to-top { position: fixed; bottom: 2rem; right: 2rem; width: 50px; height: 50px; background: var(--primary); color: #fff; border-radius: 15px; display: flex; align-items: center; justify-content: center; cursor: pointer; border: none; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 100; }
.back-to-top.visible { opacity: 1; visibility: visible; }

.hero-title-mobile { display: none; }

.mobile-menu-btn { display: none; }

.nav-links a i { display: none; }

/* --- Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Tech Stack Chips (Premium Design) --- */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
    align-items: center;
}

.chip-item {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.6rem 1.4rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.12);
    color: var(--primary);
    border-radius: 100px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    cursor: default;
}

.chip-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

.dark-mode .chip-item {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

/* --- Dark Mode Refinements --- */
.dark-mode .service-card i { background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.2); }
.dark-mode .pill { background: rgba(30, 41, 59, 0.6); color: #F8FAFC; border-color: rgba(139, 92, 246, 0.3); }
.dark-mode .social-item { background: rgba(30, 41, 59, 0.6); color: #F8FAFC; border: 1px solid rgba(139, 92, 246, 0.15); }
.dark-mode .social-item:hover { background: var(--primary); color: #fff; }
.dark-mode .contact-form input, .dark-mode .contact-form textarea { background: rgba(15, 23, 42, 0.5); color: #F8FAFC; border-color: rgba(51, 65, 85, 0.8); }
.dark-mode .contact-form input:focus, .dark-mode .contact-form textarea:focus { background: rgba(15, 23, 42, 0.8); border-color: var(--primary); }
.dark-mode .tile { background: rgba(30, 41, 59, 0.4); border-color: rgba(139, 92, 246, 0.15); }
.dark-mode .tile-bio { color: #CBD5E1; }
.dark-mode .designation { color: #94A3B8; }
.dark-mode .bento-contact-btn { background: rgba(30, 41, 59, 0.8); border-color: rgba(139, 92, 246, 0.3); }

.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #F8FAFC;
    border-color: rgba(139, 92, 246, 0.3);
}

.dark-mode .btn-secondary:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
}

/* ============================================================
   MOBILE & TABLET REDESIGN (EXCLUSIVE EXPERIENCE)
   ============================================================ */

@media (max-width: 1024px) {
    .container { padding: 0 16px; width: 95%; }

    /* Navbar Redesign for Mobile Header */
    .navbar { top: 0; padding: 0.5rem 0; background: var(--nav-bg); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-bottom: 1px solid var(--glass-border); position: sticky; }
    .nav-container {
        padding: 0.5rem 1rem;
        border-radius: 0;
        max-width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        position: relative; /* Anchor for floating dropdown */
    }

    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 3.8rem; /* Float below hamburger */
        right: 1rem;
        left: auto;
        width: 240px;
        background: rgba(255, 255, 255, 0.75); /* Premium Glass */
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        padding: 0.75rem;
        border-radius: 24px;
        border: 1px solid rgba(139, 92, 246, 0.25);
        box-shadow: 0 20px 50px rgba(0,0,0,0.12);
        z-index: 1001;
        gap: 0.4rem;
        transform-origin: top right;
        animation: menuFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes menuFadeIn {
        from { opacity: 0; transform: scale(0.8) translateY(-20px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }

    .dark-mode .nav-links.active {
        background: rgba(15, 23, 42, 0.75);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-links.active a {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 600;
        text-align: left;
        width: 100%;
        border-radius: 18px; /* Premium Rounded Chips */
        color: var(--text-main);
        transition: all 0.3s ease;
        background: transparent;
    }

    .nav-links.active a i {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: var(--primary);
        transition: 0.3s ease;
    }

    .nav-links.active a:hover {
        background: var(--primary);
        color: #fff;
        transform: scale(1.03) translateX(4px);
        box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
    }

    .nav-links.active a:hover i {
        color: #fff;
        transform: rotate(5deg);
    }

    .logo { font-size: 1.2rem; font-weight: 900; }

    /* Right Actions: Dark Mode & Hamburger */
    .nav-action { display: flex; align-items: center; gap: 0.6rem; }
    .btn-nav { display: none !important; }

    .theme-toggle-btn, .mobile-menu-btn {
        width: 42px; height: 42px;
        background: rgba(255, 255, 255, 0.6) !important;
        border: 1px solid rgba(139, 92, 246, 0.15) !important;
        border-radius: 12px !important;
        margin: 0 !important;
        display: flex; align-items: center; justify-content: center;
        color: var(--text-main);
        cursor: pointer;
        transition: var(--transition);
    }
    .dark-mode .theme-toggle-btn, .dark-mode .mobile-menu-btn {
        background: rgba(30, 41, 59, 0.4) !important;
        border-color: rgba(139, 92, 246, 0.3) !important;
    }

    /* Hero Fix - Fluid Typography and Spacing */
    .hero {
        padding-top: 6rem; /* Starting below the navbar */
        min-height: auto;
        padding-bottom: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        overflow: hidden;
    }

    .hero::after {
        content: '';
        position: absolute;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
        top: 30%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
        filter: blur(40px);
        pointer-events: none;
    }

    .hero-wrapper {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0;
        width: 100%;
    }
    .hero-content { align-items: center; width: 100%; max-width: 100%; }

    .node { display: none !important; }
    .hero-visual { display: none !important; }

    .hero-title-desktop { display: none !important; }
    .hero-title-mobile {
        display: flex !important;
        flex-wrap: wrap; /* Prevent overflow */
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        font-size: clamp(1.4rem, 8vw, 2.2rem); /* Fluid font size */
        line-height: 1.2;
        margin-bottom: 1.5rem;
        font-weight: 800;
        color: #4338CA;
        background: none;
        -webkit-text-fill-color: initial;
    }
    .intro-icon { color: var(--primary); width: clamp(20px, 5vw, 28px); height: auto; }

    .availability-badge { margin-bottom: 0.8rem; font-size: 0.85rem; padding: 0.5rem 1rem; }
    .hero-badge { margin-bottom: 1.8rem; display: flex; align-items: center; gap: 6px; font-size: 0.85rem; padding: 0.5rem 1.2rem; }
    .badge-icon-sm { width: 16px; height: 16px; color: var(--primary); }

    .hero-sub {
        max-width: 100%;
        width: 100%;
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        margin-bottom: 2rem;
        line-height: 1.6;
        color: var(--text-sub);
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 1.1rem 1.5rem;
        border-radius: 14px;
        font-weight: 700;
        font-size: 1rem;
    }
    .btn-icon { width: 18px; height: 18px; }

    /* Chips Redesign with Proper Wrapping */
    .hero-chips {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
        width: 100%;
        padding: 0 10px;
    }
    .chip-card {
        padding: 0.6rem 1.2rem;
        background: #fff;
        border: 1px solid rgba(139, 92, 246, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        font-weight: 600;
        box-shadow: 0 4px 15px rgba(0,0,0,0.02);
        white-space: nowrap;
    }
    .chip-icon { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
    .m3-icon { font-size: 10px; font-weight: 900; background: var(--primary); color: #fff; padding: 2px 4px; border-radius: 4px; flex-shrink: 0; }
    .dark-mode .chip-card { background: rgba(30, 41, 59, 0.6); border-color: rgba(255, 255, 255, 0.1); }

    /* Global Spacing and Grid Fixes */
    section { padding: 3rem 0; width: 100%; overflow: hidden; }
    .section-header { margin-bottom: 1.5rem; }
    h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }

    .services-grid, .projects-grid, .upcoming-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .service-card { padding: 1.2rem; display: flex; align-items: center; text-align: left; gap: 1rem; }
    .service-card i { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 0; flex-shrink: 0; }
    .project-image-placeholder { height: 140px; }

    /* Team Bento Redesign (Ultra Compact Premium) */
    .bento-master-grid { display: flex; flex-direction: column; gap: 0.8rem; width: 100%; }
    .bento-card-wrapper { max-width: 100%; width: 100%; }

    .bento-inner-grid {
        display: grid;
        grid-template-columns: 90px 1fr !important;
        grid-template-rows: auto auto auto;
        gap: 0.8rem !important;
        padding: 1.5rem;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 28px;
        position: relative;
        overflow: hidden;
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-premium);
    }

    .bento-inner-grid::before {
        content: '';
        position: absolute;
        inset: -150%;
        background: conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 280deg,
            var(--primary) 300deg,
            var(--secondary) 340deg,
            transparent 360deg
        );
        animation: rotateNeon 4s linear infinite;
        z-index: 0;
    }

    .bento-inner-grid::after {
        content: '';
        position: absolute;
        inset: 2px;
        background: var(--bg-base);
        border-radius: 26px;
        z-index: 1;
        opacity: 0.98;
    }
    .dark-mode .bento-inner-grid::after { background: #1e293b; }

    .tile { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; backdrop-filter: none !important; }

    .tile-photo {
        grid-column: 1; grid-row: 1 / span 1;
        height: 90px !important; width: 90px !important;
    }
    .profile-img-frame { width: 70px; height: 70px; border-width: 2px; }

    .tile-identity {
        grid-column: 2; grid-row: 1;
        text-align: left; align-items: flex-start;
        padding-top: 0.1rem;
    }
    .tile-identity h3 {
        font-size: 1.3rem;
        margin-bottom: 0;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .role-badge { margin-bottom: 0.3rem; padding: 0.2rem 0.6rem; }
    .role-badge span { font-size: 0.6rem; }
    .designation { font-size: 0.75rem; }

    .tile-actions {
        grid-column: 2; grid-row: 2;
        display: flex; gap: 0.5rem;
        justify-content: flex-start;
        margin-top: 0.2rem;
    }

    .bento-contact-btn {
        width: 36px; height: 36px;
        border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        background: rgba(139, 92, 246, 0.05);
        border: 1px solid rgba(139, 92, 246, 0.1);
        color: var(--primary);
    }
    .bento-contact-btn[title="Gmail"]::after,
    .bento-contact-btn[title="Call"]::after { content: none; }
    .bento-contact-btn i { width: 18px; height: 18px; }

    .tile-bio {
        grid-column: 1 / span 2; grid-row: 3;
        text-align: left; font-size: 0.85rem;
        line-height: 1.4; padding: 0.4rem 0;
        color: var(--text-sub);
    }

    .tile-skills {
        grid-column: 1 / span 2; grid-row: 4;
        text-align: left; margin-top: 0.3rem;
    }
    .bento-chips { justify-content: flex-start; gap: 0.4rem; }
    .pill { padding: 0.35rem 0.8rem; font-size: 0.7rem; background: rgba(139, 92, 246, 0.03); }

    .stats-grid, .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .skill-card { padding: 1.2rem 0.8rem; }
    .stat-item .count { font-size: 2.1rem; }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
        padding: 2rem 1.5rem;
        gap: 3rem;
        border-radius: 24px;
    }
    .contact-info { text-align: center; }
    .contact-details p { justify-content: center; text-align: center; }
    .social-links { justify-content: center; }
    .footer { padding: 1.5rem 0; }
    .bento-glowing-divider { display: none; }

    html, body { overflow-x: hidden; width: 100%; position: relative; }
}

@media (max-width: 480px) {
    .container { width: 94%; padding: 0 8px; }
    .hero { padding-top: 1rem; }
    .hero h1 { font-size: 2.6rem; }
}
