@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=UnifrakturMaguntia&display=swap');

:root {
--parchment: #f4eed6;
--parchment-dark: #e8dfc4;
--parchment-edge: #d4c9a8;
--ink: #1a1611;
--ink-light: #3d3529;
--ink-muted: #6b5e4c;
--ink-faded: #9b8e7a;
--ink-ghost: #c4b9a4;
--rule: #2a231a;
--rule-light: #b0a48e;
--accent: #8b2500;
--accent-light: rgba(139, 37, 0, 0.08);
--blue-ink: #1a3a5c;
--green-ink: #2d4a2d;
--font-headline: 'Playfair Display', 'Georgia', serif;
--font-body: 'Libre Baskerville', 'Georgia', serif;
--font-label: 'Special Elite', 'Courier New', monospace;
--font-masthead: 'UnifrakturMaguntia', 'Georgia', serif;
--radius: 0px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
background: var(--parchment);
color: var(--ink);
font-family: var(--font-body);
font-weight: 400;
font-size: 15px;
line-height: 1.75;
overflow-x: hidden;
-webkit-font-smoothing: auto;
}

::selection { background: var(--accent); color: var(--parchment); }

/* ──────── PAPER TEXTURE ──────── */
body::before {
content: '';
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
opacity: 0.06;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
content: '';
position: fixed;
inset: 0;
z-index: 9998;
pointer-events: none;
background: radial-gradient(ellipse at center, transparent 50%, rgba(139, 120, 80, 0.12) 100%);
}

/* ──────── GEOMETRIC BG — HIDDEN ──────── */
.geo-bg { display: none; }

/* ──────── NAV ──────── */
nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
padding: 0 clamp(24px, 5vw, 80px);
height: 52px;
display: flex;
align-items: center;
justify-content: space-between;
background: var(--ink);
border-bottom: 3px double var(--ink-muted);
}

.nav-logo {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: var(--parchment);
}

.nav-logo .obtuse-mark { display: none; }

.nav-logo span {
font-family: var(--font-label);
font-size: 13px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--parchment);
}

.nav-links {
display: flex;
align-items: center;
gap: 4px;
list-style: none;
}

.nav-links a {
color: var(--ink-ghost);
text-decoration: none;
font-family: var(--font-label);
font-size: 11px;
letter-spacing: 1.5px;
text-transform: uppercase;
padding: 6px 14px;
transition: color 0.2s ease;
}

.nav-links a:hover {
color: var(--parchment);
}

.nav-links a.active {
color: var(--parchment);
text-decoration: underline;
text-underline-offset: 3px;
}

.nav-cta {
background: var(--parchment) !important;
color: var(--ink) !important;
padding: 4px 14px !important;
font-weight: 400 !important;
}
.nav-cta:hover {
background: var(--parchment-dark) !important;
}

/* ──────── HAMBURGER ──────── */
.hamburger {
display: none;
flex-direction: column;
gap: 4px;
cursor: pointer;
background: none;
border: none;
padding: 8px;
}
.hamburger span {
width: 20px;
height: 1.5px;
background: var(--parchment);
transition: 0.3s ease;
}

/* ──────── LAYOUT ──────── */
section {
padding: 80px clamp(24px, 5vw, 80px);
max-width: 1000px;
margin: 0 auto;
}

/* ──────── DECORATIVE RULES ──────── */
.rule-ornament {
text-align: center;
margin: 0 auto;
padding: 16px 0;
color: var(--ink-muted);
font-size: 18px;
letter-spacing: 12px;
}

.section-tag {
font-family: var(--font-label);
font-size: 11px;
color: var(--accent);
letter-spacing: 4px;
text-transform: uppercase;
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 12px;
}
.section-tag::before {
content: '§';
font-family: var(--font-headline);
font-size: 16px;
}

.section-title {
font-family: var(--font-headline);
font-size: clamp(28px, 4.5vw, 44px);
font-weight: 700;
line-height: 1.15;
margin-bottom: 8px;
letter-spacing: -0.5px;
color: var(--ink);
}

/* ──────── HERO / MASTHEAD ──────── */
#hero {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding-top: 52px;
position: relative;
border-bottom: 4px double var(--rule);
}

#hero::before {
content: '';
position: absolute;
top: 72px;
left: clamp(24px, 5vw, 80px);
right: clamp(24px, 5vw, 80px);
height: 1px;
background: var(--rule-light);
}

#hero::after {
content: 'Est. 2024 · Delhi NCR · Software · Infrastructure · Education';
position: absolute;
top: 82px;
font-family: var(--font-label);
font-size: 10px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--ink-faded);
}

.hero-status {
font-family: var(--font-label);
font-size: 11px;
color: var(--green-ink);
display: inline-flex;
align-items: center;
gap: 8px;
margin-bottom: 32px;
padding: 5px 16px;
background: rgba(45, 74, 45, 0.06);
border: 1px solid rgba(45, 74, 45, 0.2);
width: fit-content;
}

.hero-status .pulse {
width: 6px;
height: 6px;
background: var(--green-ink);
border-radius: 50%;
animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}

.hero-name {
font-family: var(--font-masthead);
font-size: clamp(52px, 10vw, 110px);
font-weight: 400;
line-height: 1;
letter-spacing: 2px;
margin-bottom: 4px;
color: var(--ink);
}

.hero-name .accent { color: var(--accent); }

.hero-tagline {
font-family: var(--font-headline);
font-size: clamp(16px, 2.5vw, 22px);
font-weight: 400;
font-style: italic;
color: var(--ink-muted);
margin-bottom: 36px;
letter-spacing: 1px;
}

.hero-desc {
max-width: 520px;
font-size: 15px;
color: var(--ink-muted);
margin-bottom: 40px;
line-height: 1.9;
}

.hero-desc strong {
color: var(--ink);
font-weight: 700;
}

.hero-actions {
display: flex;
gap: 16px;
flex-wrap: wrap;
justify-content: center;
}

.btn {
font-family: var(--font-label);
font-size: 11px;
letter-spacing: 2px;
text-transform: uppercase;
padding: 12px 28px;
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
transition: all 0.2s ease;
cursor: pointer;
border: none;
}

.btn-primary {
background: var(--ink);
color: var(--parchment);
}
.btn-primary:hover {
background: var(--ink-light);
}

.btn-outline {
background: transparent;
color: var(--ink);
border: 1.5px solid var(--ink);
}
.btn-outline:hover {
background: var(--ink);
color: var(--parchment);
}

.hero-coords {
position: absolute;
bottom: 32px;
right: clamp(24px, 5vw, 80px);
font-family: var(--font-label);
font-size: 10px;
color: var(--ink-faded);
text-align: right;
line-height: 2.2;
}

.hero-coords span { color: var(--accent); }

/* ──────── ABOUT ──────── */
#about {
border-bottom: 4px double var(--rule);
}

.about-grid {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 48px;
margin-top: 36px;
}

.about-text {
font-size: 15px;
color: var(--ink-light);
column-count: 1;
}

.about-text p + p { margin-top: 16px; }

.about-text strong {
color: var(--ink);
font-weight: 700;
}

.about-stats {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
background: var(--rule-light);
border: 1px solid var(--rule-light);
}

.stat-card {
background: var(--parchment);
padding: 24px 20px;
}

.stat-card:hover { background: var(--parchment-dark); }

.stat-value {
font-family: var(--font-headline);
font-size: 32px;
font-weight: 800;
color: var(--ink);
line-height: 1;
}

.stat-value.small { font-size: 24px; }

.stat-label {
font-family: var(--font-label);
font-size: 9px;
color: var(--ink-faded);
text-transform: uppercase;
letter-spacing: 2px;
margin-top: 8px;
}

/* ──────── PROJECTS ──────── */
#projects {
border-bottom: 4px double var(--rule);
}

.projects-intro {
color: var(--ink-muted);
font-style: italic;
margin-bottom: 4px;
}

.projects-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1px;
margin-top: 36px;
background: var(--rule-light);
border: 1px solid var(--rule-light);
}

.project-card {
background: var(--parchment);
padding: 32px 28px;
position: relative;
overflow: hidden;
transition: background 0.25s ease;
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
cursor: pointer;
}

.project-card::before { display: none; }

.project-card.static { cursor: default; }

.project-card:hover {
background: var(--parchment-dark);
transform: none;
box-shadow: none;
}

.project-badge {
font-family: var(--font-label);
font-size: 9px;
text-transform: uppercase;
letter-spacing: 2px;
padding: 3px 8px;
width: fit-content;
margin-bottom: 18px;
border: 1px solid;
}

.badge-live {
color: var(--green-ink);
border-color: var(--green-ink);
background: transparent;
}

.badge-dev {
color: var(--blue-ink);
border-color: var(--blue-ink);
background: transparent;
}

.badge-planned {
color: var(--ink-faded);
border-color: var(--ink-faded);
background: transparent;
}

.project-name {
font-family: var(--font-headline);
font-size: 22px;
font-weight: 700;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: space-between;
}

.project-name .arrow {
font-size: 18px;
color: var(--ink-faded);
transition: all 0.2s ease;
}
.project-card:hover .arrow {
color: var(--accent);
transform: translate(3px, -3px);
}

.project-desc {
font-size: 13.5px;
color: var(--ink-muted);
line-height: 1.8;
margin-bottom: 20px;
flex-grow: 1;
}

.project-stack {
display: flex;
flex-wrap: wrap;
gap: 6px;
}

.stack-tag {
font-family: var(--font-label);
font-size: 9px;
letter-spacing: 0.5px;
color: var(--ink-faded);
background: transparent;
padding: 3px 8px;
border: 1px solid var(--ink-ghost);
}

/* ──────── STACK ──────── */
#stack {
border-bottom: 4px double var(--rule);
}

.stack-section {
margin-top: 36px;
column-count: 2;
column-gap: 48px;
column-rule: 1px solid var(--rule-light);
}

.stack-category {
margin-bottom: 28px;
break-inside: avoid;
}

.stack-category-label {
font-family: var(--font-headline);
font-size: 14px;
font-weight: 700;
font-style: italic;
color: var(--ink);
text-transform: none;
letter-spacing: 0;
margin-bottom: 12px;
padding-bottom: 6px;
border-bottom: 1px solid var(--rule-light);
}

.stack-items {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.stack-item {
font-family: var(--font-body);
font-size: 13px;
color: var(--ink-muted);
background: transparent;
border: 1px solid var(--rule-light);
padding: 6px 14px;
transition: all 0.2s ease;
}

.stack-item:hover {
border-color: var(--ink);
color: var(--ink);
background: var(--accent-light);
}

/* ──────── COMPANY ──────── */
#company {
border-bottom: 4px double var(--rule);
}

.company-block {
background: var(--parchment-dark);
border: 1px solid var(--rule-light);
padding: 40px;
margin-top: 36px;
display: grid;
grid-template-columns: auto 1fr;
gap: 36px;
align-items: center;
}

.company-logo {
width: 72px;
height: 72px;
}

.company-logo svg rect { stroke: var(--ink); fill: rgba(26,22,17,0.03); }
.company-logo svg path { stroke: var(--ink); }
.company-logo svg circle { stroke: var(--ink-faded); }
.company-logo svg line { stroke: var(--ink-faded); }

.company-info h3 {
font-family: var(--font-headline);
font-size: 22px;
font-weight: 700;
margin-bottom: 6px;
}

.company-info p {
color: var(--ink-muted);
font-size: 14px;
max-width: 480px;
line-height: 1.8;
}

.company-info .cin {
font-family: var(--font-label);
font-size: 10px;
color: var(--ink-faded);
margin-top: 12px;
letter-spacing: 1px;
}

/* ──────── CONTACT ──────── */
.contact-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 48px;
margin-top: 36px;
}

.contact-text {
font-size: 15px;
color: var(--ink-muted);
max-width: 400px;
line-height: 1.8;
font-style: italic;
}

.contact-links {
display: flex;
flex-direction: column;
gap: 1px;
background: var(--rule-light);
border: 1px solid var(--rule-light);
}

.contact-link {
display: flex;
align-items: center;
gap: 16px;
padding: 14px 18px;
background: var(--parchment);
text-decoration: none;
color: var(--ink);
font-family: var(--font-label);
font-size: 13px;
transition: all 0.2s ease;
}

.contact-link:hover {
background: var(--parchment-dark);
color: var(--accent);
transform: none;
}

.contact-link .label {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--ink-faded);
}

/* ──────── FOOTER ──────── */
footer {
border-top: 4px double var(--rule);
padding: 32px clamp(24px, 5vw, 80px);
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1000px;
margin: 0 auto;
}

footer span {
font-family: var(--font-label);
font-size: 10px;
color: var(--ink-faded);
letter-spacing: 1px;
}

/* ──────── SCROLL REVEAL ──────── */
.reveal {
opacity: 0;
transform: translateY(20px);
transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
opacity: 1;
transform: translateY(0);
}

/* ──────── RESPONSIVE ──────── */
@media (max-width: 768px) {
.nav-links { display: none; }
.hamburger { display: flex; }

.nav-links.open {
display: flex;
flex-direction: column;
position: absolute;
top: 52px;
left: 0;
right: 0;
background: var(--ink);
padding: 20px;
border-bottom: 2px solid var(--ink-muted);
}

#hero::after { display: none; }

.about-grid,
.contact-grid {
grid-template-columns: 1fr;
gap: 32px;
}

.projects-grid {
grid-template-columns: 1fr;
}

.stack-section {
column-count: 1;
}

.company-block {
grid-template-columns: 1fr;
text-align: center;
gap: 20px;
}

.company-logo { margin: 0 auto; }
.hero-coords { display: none; }
}