/*
Theme Name: Vishit Shah
Theme URI: https://vishitshah.com
Author: Vishit Shah
Author URI: https://vishitshah.com
Description: Custom portfolio theme for Vishit Shah — Automation & WordPress Expert. Built from a Google Stitch design (Premium Developer Identity system).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vishit-shah
*/

/* Base resets not covered by Tailwind's CDN reset */
html {
	scroll-behavior: smooth;
}

body {
	background-color: #0b1326;
	color: #dae2fd;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

/* Design-system component classes (shared across every template) */
.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	vertical-align: middle;
}

.glass-card {
	background: rgba(30, 41, 59, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
	border-color: #d0bcff;
}

.text-gradient,
.gradient-text,
.text-gradient-primary {
	background: linear-gradient(135deg, #d0bcff 0%, #ec6a06 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.section-glow {
	position: relative;
}

.section-glow::before {
	content: '';
	position: absolute;
	top: -20%;
	left: 50%;
	transform: translateX(-50%);
	width: 80%;
	height: 100%;
	background: radial-gradient(circle, rgba(208, 188, 255, 0.05) 0%, transparent 70%);
	z-index: -1;
	pointer-events: none;
}

.hero-glow {
	position: absolute;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(208, 188, 255, 0.15) 0%, transparent 70%);
	border-radius: 100%;
	z-index: -1;
	filter: blur(60px);
	pointer-events: none;
}

.bg-glow-purple {
	background: radial-gradient(circle at center, rgba(109, 59, 215, 0.15) 0%, transparent 70%);
}

.bg-glow-orange {
	background: radial-gradient(circle at center, rgba(236, 106, 6, 0.1) 0%, transparent 70%);
}

.ambient-glow-purple {
	box-shadow: 0 0 50px -10px rgba(208, 188, 255, 0.15);
}

.ambient-glow {
	filter: blur(80px);
	opacity: 0.15;
	background: #d0bcff;
}

.text-glow-primary {
	text-shadow: 0 0 20px rgba(208, 188, 255, 0.3);
}

.accent-glow {
	box-shadow: 0 0 40px -10px rgba(208, 188, 255, 0.2);
}

.gradient-border-top {
	position: relative;
}

.gradient-border-top::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(208, 188, 255, 0.5), transparent);
}

.code-block,
.code-gradient {
	background: #060e20;
	border-left: 4px solid #d0bcff;
}

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

/* Reveal-on-scroll (JS toggles .is-visible) */
.reveal {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #0b1326;
}

::-webkit-scrollbar-thumb {
	background: #2d3449;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #d0bcff;
}

/* Active nav link (matches design's border-b-2 primary state) */
.site-nav a.is-current {
	color: #d0bcff;
	font-weight: 700;
	border-bottom: 2px solid #d0bcff;
	padding-bottom: 4px;
}

/* Mobile nav drawer */
#mobile-nav {
	display: none;
}

#mobile-nav.is-open {
	display: flex;
}

/* Contact Form 7 — styled to match the original design's inputs/button.
   Element+class selectors (input.vs-input, not just .vs-input) so this
   reliably beats the @tailwindcss/forms plugin's [type="text"] etc.
   base styles, which the Tailwind CDN injects client-side and can land
   after this stylesheet in the cascade. */
input.vs-input,
select.vs-select,
textarea.vs-textarea {
	width: 100%;
	background: #0b1326;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	padding: 0.75rem 1rem;
	color: #dae2fd;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	outline: none;
	transition: all 0.2s ease;
}

select.vs-select {
	appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23cbc3d7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.1rem;
	padding-right: 2.75rem;
}

textarea.vs-textarea {
	resize: none;
	min-height: 132px;
}

input.vs-input:focus,
select.vs-select:focus,
textarea.vs-textarea:focus {
	border-color: #d0bcff;
	box-shadow: 0 0 0 2px rgba(208, 188, 255, 0.4);
}

input.vs-input.wpcf7-not-valid,
select.vs-select.wpcf7-not-valid,
textarea.vs-textarea.wpcf7-not-valid {
	border-color: #ffb4ab;
}

.vs-cf7-wrap .wpcf7-not-valid-tip {
	color: #ffb4ab;
	font-size: 13px;
	margin-top: 0.375rem;
	display: block;
}

.vs-cf7-wrap .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-align: center;
	border-width: 1px;
	border-style: solid;
}

.vs-cf7-wrap form.sent .wpcf7-response-output {
	background: rgba(208, 188, 255, 0.1);
	color: #d0bcff;
	border-color: rgba(208, 188, 255, 0.3);
}

.vs-cf7-wrap form.failed .wpcf7-response-output,
.vs-cf7-wrap form.aborted .wpcf7-response-output,
.vs-cf7-wrap form.spam .wpcf7-response-output {
	background: rgba(255, 180, 171, 0.1);
	color: #ffb4ab;
	border-color: rgba(255, 180, 171, 0.3);
}

.vs-cf7-wrap form.invalid .wpcf7-response-output {
	background: rgba(255, 182, 144, 0.1);
	color: #ffb690;
	border-color: rgba(255, 182, 144, 0.3);
}

.vs-submit {
	width: 100%;
	background: #d0bcff;
	color: #3c0091;
	font-weight: 700;
	padding: 1rem;
	border-radius: 0.5rem;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.1s ease;
}

.vs-submit:hover {
	opacity: 0.9;
}

.vs-submit:active {
	transform: scale(0.98);
}

.vs-cf7-wrap .wpcf7-spinner {
	margin-left: 0.5rem;
}

/* WP core alignment helpers used inside the_content() */
.entry-content .alignleft { float: left; margin-right: 1.5rem; }
.entry-content .alignright { float: right; margin-left: 1.5rem; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
