:root {
    --bg: #05060d;
    --bg-alt: #0d1024;
    --card: rgba(16, 18, 41, 0.8);
    --card-solid: #141738;
    --text: #f6f7fb;
    --muted: #a6b0ff;
    --accent: #7c5dff;
    --accent-2: #33ffd8;
    --accent-3: #ff6ad5;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

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

body {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111633 0%, #05060d 55%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

a {
    color: inherit;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.site-header {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 9, 22, 0.7);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 1rem;
    z-index: 10;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

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

.primary-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.primary-nav a {
    color: var(--muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
}

.primary-nav a.active::after,
.primary-nav a:hover::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-2);
    bottom: -6px;
    left: 0;
}

.primary-nav .cta-link {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--accent-2);
    border-radius: 999px;
    color: var(--accent-2);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: 4rem 0;
}

.hero-media {
    min-height: 380px;
    border-radius: var(--radius);
    background-image: linear-gradient(125deg, rgba(50, 72, 255, 0.6), rgba(0, 0, 0, 0.8)), url('../images/family-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateZ(0);
}

.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.2), transparent 45%);
    mix-blend-mode: screen;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
}

.hero-content .subtitle {
    color: var(--muted);
    margin: 1.2rem 0 2rem;
}

.btn {
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
}

.btn.ghost {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn.neon {
    background: var(--accent-2);
    color: #051821;
    box-shadow: 0 0 20px rgba(51, 255, 216, 0.4);
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 3rem 0;
}

.pillars article,
.project-grid article,
.blog-list article,
.contact-grid article,
.newsletter,
.admin-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.pillars article h3 {
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.4rem;
    letter-spacing: 0.08em;
}

.timeline {
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: 2rem;
    align-items: start;
    margin: 4rem 0;
}

.timeline ul {
    list-style: none;
    border-left: 2px dashed rgba(255, 255, 255, 0.15);
    padding-left: 1.5rem;
}

.timeline li {
    margin-bottom: 1.5rem;
    position: relative;
}

.timeline li::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-2);
    position: absolute;
    left: -1.89rem;
    top: 0.4rem;
}

.timeline .year {
    font-family: "Source Code Pro", monospace;
    color: var(--accent);
    font-size: 0.85rem;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    margin: 4rem 0;
    background: linear-gradient(115deg, rgba(124, 93, 255, 0.4), rgba(6, 20, 41, 0.9));
    border-radius: var(--radius);
    border: 1px solid var(--accent);
}

.site-footer {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.page-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    align-items: center;
}

.profiles article {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    position: relative;
}

.profile-photo::after {
    content: attr(data-gradient);
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0.1;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
}

.badge {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Source Code Pro", monospace;
    background: rgba(51, 255, 216, 0.15);
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.post-meta {
    font-family: "Source Code Pro", monospace;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-link {
    color: var(--accent-2);
    font-weight: 600;
}

.newsletter {
    text-align: center;
}

.newsletter-form {
    margin: 1.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.newsletter-form input {
    flex: 1 1 240px;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.form-response {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-2);
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--muted);
}

/* Admin */
.admin-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.admin-panel {
    max-width: 960px;
    width: 100%;
}

.auth-panel {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.auth-panel input {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text);
}

.log-table-wrapper {
    overflow-x: auto;
}

.log-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.log-table-wrapper th,
.log-table-wrapper td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    text-align: left;
}

.log-actions {
    display: flex;
    gap: 0.75rem;
}

.logs[data-locked] {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0 0.8rem;
    }

    .site-header {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-toggle {
        display: block;
        align-self: flex-end;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        display: none;
    }

    .primary-nav ul.open {
        display: flex;
    }

    .profiles article {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-photo {
        margin: 0 auto;
    }

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

    .cta-panel {
        flex-direction: column;
        text-align: center;
    }
}

/* Blog page specific styles */
.blog-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0 3rem;
}

.blog-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}

.blog-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.2), rgba(51, 255, 216, 0.1));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(124, 93, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.featured-post {
    margin: 3rem 0 4rem;
    position: relative;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(255, 106, 213, 0.3);
}

.featured-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.15), rgba(6, 20, 41, 0.8));
    border: 1px solid rgba(124, 93, 255, 0.3);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.featured-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 0.8rem 0 1rem;
    line-height: 1.2;
}

.featured-excerpt {
    color: var(--muted);
    margin: 1rem 0 2rem;
    line-height: 1.7;
}

.featured-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(51, 255, 216, 0.2), rgba(124, 93, 255, 0.2));
    border: 2px dashed rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.visual-placeholder::before {
    content: '⚡';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

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

.blog-grid {
    margin: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 93, 255, 0.5);
    box-shadow: 0 16px 40px rgba(124, 93, 255, 0.25);
}

.blog-card[data-author="rajesh"]:hover {
    border-color: rgba(51, 150, 255, 0.5);
}

.blog-card[data-author="hari"]:hover {
    border-color: rgba(51, 255, 216, 0.5);
}

.blog-card[data-author="bobby"]:hover {
    border-color: rgba(255, 106, 213, 0.5);
}

.blog-card[data-author="sandeep"]:hover {
    border-color: rgba(255, 200, 87, 0.5);
}

.blog-card[data-author="naresh"]:hover {
    border-color: rgba(255, 111, 97, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.author-badge {
    font-family: "Source Code Pro", monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(124, 93, 255, 0.2);
    border: 1px solid rgba(124, 93, 255, 0.4);
}

.read-time {
    font-size: 0.8rem;
    color: var(--muted);
}

.blog-card h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.blog-card p {
    color: var(--muted);
    line-height: 1.6;
    flex-grow: 1;
}

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

.category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    font-weight: 600;
}

.read-more {
    color: var(--accent-2);
    font-weight: 600;
    transition: transform 0.2s ease;
}

.read-more:hover {
    transform: translateX(4px);
}

.newsletter-cta {
    background: linear-gradient(135deg, rgba(124, 93, 255, 0.25), rgba(51, 255, 216, 0.15));
    border: 2px solid rgba(51, 255, 216, 0.4);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    margin: 4rem 0;
    backdrop-filter: blur(16px);
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-cta h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.newsletter-form-modern {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group input {
    flex: 1 1 280px;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(51, 255, 216, 0.1);
}

@media (max-width: 768px) {
    .blog-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-content {
        grid-template-columns: 1fr;
    }

    .visual-placeholder {
        height: 200px;
    }

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

    .form-group {
        flex-direction: column;
    }

    .form-group input,
    .form-group button {
        width: 100%;
    }
}
