/*
Theme Name: Aaryan Goswami Portfolio
Theme URI: https://aaryangoswami.in
Author: Aaryan Goswami
Author URI: https://aaryangoswami.in
Description: A dark, modern one-page portfolio theme for Aaryan Goswami showcasing projects and contact information.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aaryan-portfolio
Tags: one-column, custom-colors, custom-menu, featured-images, full-width-template, one-page
*/

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
  --bg: #0a0e14;
  --bg-card: #111820;
  --text: #e6edf3;
  --text-muted: #7d8590;
  --primary: #34d399;
  --primary-dark: #059669;
  --border: #1e2a3a;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 1.5rem;
}

section + section {
  border-top: 1px solid var(--border);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s, border 0.3s;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  transition: color 0.3s;
}

.navbar-logo:hover {
  color: var(--primary);
}

.navbar-logo span {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10, 14, 20, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.75rem 0;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  border-top: none !important;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.03;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-subtitle {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.hero-description {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: filter 0.3s;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  transition: border-color 0.3s, color 0.3s;
}

.btn-outline:hover {
  border-color: rgba(52, 211, 153, 0.5);
  color: var(--primary);
}

/* ============================================
   About Section
   ============================================ */
.about-content {
  max-width: 640px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-content p strong {
  color: var(--text);
  font-weight: 500;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(17, 24, 32, 0.5));
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.highlight-card svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.highlight-card span {
  font-size: 0.875rem;
  font-family: var(--font-heading);
  color: var(--text);
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.project-card {
  display: block;
  background: linear-gradient(135deg, var(--bg-card), rgba(17, 24, 32, 0.5));
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.project-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.08);
}

.project-screenshot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(30, 42, 58, 0.3);
  overflow: hidden;
}

.project-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.7s;
}

.project-card:hover .project-screenshot img {
  transform: scale(1.05);
}

.project-screenshot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-card) 0%, transparent 100%);
  opacity: 0.6;
}

.project-info {
  padding: 1.5rem 2rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.7);
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.project-card:hover .project-info h3 {
  color: var(--primary);
}

.project-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-url {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.project-card:hover .project-url {
  color: rgba(52, 211, 153, 0.6);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto;
}

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

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--bg-card), rgba(17, 24, 32, 0.5));
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 2rem;
  transition: border-color 0.3s;
  flex: 1;
  min-width: 220px;
}

.contact-card:hover {
  border-color: rgba(52, 211, 153, 0.3);
}

.contact-card svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.contact-card small {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact-card .contact-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
}

.contact-card:hover .contact-value {
  color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}
