/* 
  Laxman Mailari - Portfolio Styles 
  Theme: Midnight Tech
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700&display=swap');

:root {
  /* Dark Theme Palette */
  --bg: #0f172a;
  /* Slate 900 */
  --bg-secondary: #1e293b;
  /* Slate 800 */
  --card: #1e293b;
  /* Slate 800 */
  --card-hover: #334155;
  /* Slate 700 */

  --text-main: #f1f5f9;
  /* Slate 100 */
  --text-muted: #94a3b8;
  /* Slate 400 */

  --accent-primary: #38bdf8;
  /* Sky 400 */
  --accent-secondary: #818cf8;
  /* Indigo 400 */
  --accent-glow: rgba(56, 189, 248, 0.15);

  --border: #334155;
  /* Slate 700 */

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* UTILITIES */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER & NAV */
.lm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
}

.lm-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lm-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lm-logo-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.lm-logo-text {
  display: flex;
  flex-direction: column;
}

.lm-logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.lm-logo-slogan {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lm-nav {
  display: flex;
  gap: 8px;
}

.lm-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.lm-nav a:hover,
.lm-nav a.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.lm-nav a.active {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
}

/* HERO SECTION */
.hero-main {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-text-block h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 0 0 24px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text-block p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 99px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image-block {
  position: relative;
}

.hero-image-block::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
  z-index: -1;
  opacity: 0.6;
}

.hero-image-block img {
  width: 100%;
  max-width: 400px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
  /* Immersion effect */
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.about-portrait img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3/4;
  border-radius: 24px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
  /* Immersion effect */
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.about-portrait img:hover {
  transform: scale(1.02);
}

/* SECTIONS GENERAL */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0 0 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* PROJECTS GRID */
.projects-strip {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 24px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--text-main);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.projects-link-row {
  text-align: center;
  margin-top: 40px;
}

.link-more {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-more:hover {
  text-decoration: underline;
}

/* MOTIVATION / TESTIMONIALS */
.testimonials-band {
  padding: 40px 0 40px;
  text-align: center;
}

.quote-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
}

.quote-box h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--accent-secondary);
}

.quote-box p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-main);
}

/* CONTACT SECTION */
.contact-band {
  padding: 40px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
  position: relative;
}

.contact-grid::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 16px;
}

.contact-focus {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.contact-focus li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.contact-focus li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  transform: translateX(5px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--accent-primary);
}

/* FOOTER */
.page-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* PROJECTS PAGE SPECIFIC */
.projects-outline {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.projects-outline a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.projects-outline a:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
}

.project-case {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.case-media img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

/* Placeholder media box for cases without images */
.media-box {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(129, 140, 248, 0.12));
  border: 1px solid var(--border);
}

.case-stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.case-stats li span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 16px;
}

.case-pill-row {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.case-pill {
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 500;
}

.case-points {
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.case-points li {
  margin-bottom: 12px;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 99px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.attachment:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* GALLERY PAGE */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-primary);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.gallery-card-body {
  padding: 16px 20px;
}

.gallery-card-body strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.gallery-card-body p {
  color: var(--text-muted);
  margin: 0;
}

/* ANIMATIONS */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-main {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 0;
  }

  .hero-buttons {
    justify-content: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .project-case {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .hero-text-block h1 {
    font-size: 2.5rem;
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) {
  .hero-main {
    gap: 32px;
    min-height: auto;
  }

  .lm-header .container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .lm-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Mobile refinements */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .lm-logo-mark {
    width: 34px;
    height: 34px;
  }

  .lm-logo-slogan {
    display: none;
  }

  .lm-nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .projects-outline {
    justify-content: center;
  }

  /* Override inline grid styles on About page */
  .about-hero {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Tighter paddings for cards */
  .project-case,
  .contact-grid {
    padding: 20px;
  }

  .case-content h2 {
    font-size: 1.6rem;
  }
}