/* DEVSFLOW BRAND DESIGN SYSTEM */
:root {
  /* Primary Colors */
  --black: #000000;
  --dark-gray: #1a1a1a;
  --medium-gray: #2a2a2a;
  --light-gray: #404040;
  --text-gray: #a0a0a0;
  --white: #ffffff;
  
  /* Accent Colors */
  --gold: #f4d03f;
  --gold-muted: #e8c547;
  --gold-dark: #d4ac0d;
  --blue-accent: rgba(96, 165, 250, 0.6);
  
  /* Status Colors */
  --success: #27ae60;
  --warning: #f39c12;
  --error: #e74c3c;
  
  /* Semantic Colors */
  --primary-color: var(--gold);
  --primary-color-dark: var(--gold-dark);
  --secondary-color: var(--medium-gray);
  --text-color: var(--white);
  --text-color-light: var(--text-gray);
  --text-color-dark: var(--white);
  --text-color-muted: var(--text-gray);
  --bg-color: var(--black);
  --bg-secondary: var(--dark-gray);
  --border-color: var(--light-gray);
  
  /* Typography */
  --font-family: "Inter", "Montserrat", system-ui, -apple-system, sans-serif;
  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-size: 16px;
  --line-height: 1.5;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 4px 20px rgba(244, 208, 63, 0.2);
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-muted) 100%);
  --gradient-dark: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
  --gradient-bg: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size);
  line-height: var(--line-height);
  color: var(--text-color);
  background: var(--bg-color);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(244, 208, 63, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244, 208, 63, 0.03) 0%, transparent 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: var(--space-md);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-color);
}

h1 { 
  font-size: 3.5rem; 
  font-weight: 800;
  font-family: var(--font-heading);
}
h2 { 
  font-size: 2.5rem; 
  font-weight: 800;
  font-family: var(--font-heading);
}
h3 { 
  font-size: 1.5rem; 
  font-weight: 700;
}
h4 { 
  font-size: 1.25rem; 
  font-weight: 600;
}
h5 { 
  font-size: 1.125rem; 
  font-weight: 600;
}
h6 { 
  font-size: 1rem; 
  font-weight: 600;
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-color-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-muted);
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container.narrow {
  max-width: 800px;
}

.header {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--medium-gray);
  color: var(--primary-color);
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: var(--medium-gray);
  color: var(--primary-color);
}

/* Show mobile menu toggle on smaller screens */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 9999;
  }
  
  .nav-links.active {
    display: flex !important;
  }
  
  .nav-links li {
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    text-align: center;
    padding: var(--space-md);
    width: 100%;
  }
}

/* Hero */
.hero {
  padding: var(--space-3xl) 0;
  text-align: center;
  background: var(--gradient-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(244, 208, 63, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  margin-bottom: var(--space-lg);
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

.hero p {
  margin-bottom: var(--space-xl);
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

/* Profile Image */
.profile-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
  position: relative;
  z-index: 1;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-gold);
  object-fit: cover;
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.profile-content h1 {
  margin-bottom: var(--space-sm);
  color: var(--text-color);
}

.profile-content p {
  color: var(--text-color-light);
  margin-bottom: var(--space-md);
}

.profile-stats {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin: var(--space-xl) 0;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-heading);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-color-light);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  cursor: pointer;
  margin-right: var(--space-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--black);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--black);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-color-dark);
  color: var(--black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--medium-gray);
  color: var(--text-color);
  border-color: var(--light-gray);
}

.btn-secondary:hover {
  background: var(--light-gray);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(244, 208, 63, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card h3 {
  margin-bottom: var(--space-sm);
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

.card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.card h3 a:hover {
  color: var(--gold-muted);
  text-decoration: underline;
}

.card p {
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Blog Grid - 4 columns */
#posts-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.blog-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  width: fit-content;
}

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

.blog-card p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-light);
}

.blog-card small {
  display: block;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.75rem;
}

@media (max-width: 1200px) {
  #posts-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  #posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  #posts-container {
    grid-template-columns: 1fr;
  }
}

/* Sections */
section {
  padding: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-color);
}

/* Experience Section */
.experience-section {
  background: var(--bg-secondary);
  padding: var(--space-3xl) 0;
  position: relative;
}

.experience-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(244, 208, 63, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.experience-item {
  background: var(--medium-gray);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  transition: all 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.experience-icon {
  width: 64px;
  height: 64px;
  background: rgba(244, 208, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--primary-color);
}

.experience-content h3 {
  margin: 0 0 var(--space-sm) 0;
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 700;
}

.experience-content p {
  margin: 0;
  color: var(--text-color-light);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Skills Section */
.skills-section {
  background: var(--bg-color);
  padding: var(--space-3xl) 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.skill-category {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.skill-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.skill-tag {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--medium-gray);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--primary-color);
  color: var(--black);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Apps Grid */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.app-card {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.app-info {
  flex: 1;
}

.app-info h3 {
  margin: 0 0 0.25rem 0;
  color: var(--text);
  font-size: 1.125rem;
}

.app-category {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bg-secondary);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.app-info p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.app-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

.app-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--text-color-light);
  background: var(--bg-secondary);
  margin-top: var(--space-3xl);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-md) 0;
}

.social-link {
  color: var(--text-color-light);
  text-decoration: none;
  font-size: 1.5rem;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--black);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Forms */
input, textarea, select {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: inherit;
  margin-bottom: var(--space-md);
  background: var(--medium-gray);
  color: var(--text-color);
  transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(244, 208, 63, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--text-color-light);
}

/* Lists */
ul, ol {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Mobile First Approach - Base styles for mobile */

/* Small Mobile (320px-480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .profile-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    margin-right: 0;
    margin-bottom: var(--space-sm);
    width: 100%;
    justify-content: center;
  }
}

/* Mobile (481px-768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .profile-stats {
    flex-direction: row;
    gap: var(--space-xl);
    justify-content: center;
  }
}

/* Tablet (769px-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 var(--space-xl);
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .profile-section {
    gap: var(--space-2xl);
  }
  
  .profile-stats {
    gap: var(--space-2xl);
  }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Grid Responsive Breakpoints */
@media (max-width: 480px) {
  .grid,
  #posts-container,
  .apps-grid,
  .experience-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .app-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .experience-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  #posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .apps-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-grid,
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #posts-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  #posts-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Typography Responsive Scaling */
@media (max-width: 480px) {
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }
  h4 { font-size: 1.1rem; }
}

@media (min-width: 481px) and (max-width: 768px) {
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.4rem; }
}

/* Touch-friendly improvements */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .profile-image:hover {
    transform: none;
  }
  
  .btn:active,
  .card:active {
    transform: scale(0.98);
  }
}

/* Page-specific styles */
.blog-post {
  max-width: 700px;
  margin: 0 auto;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

/* Gradient Text Effects */
.gradient-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--primary-color);
}

/* Blog Post Styles */
.blog-category {
  background: var(--primary-color);
  color: var(--black);
}

.blog-content {
  color: var(--text-color-light);
}

.blog-card h3 {
  color: var(--text-color);
}

/* App Card Updates */
.app-card {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

.app-info h3 {
  color: var(--text-color);
}

.app-info p {
  color: var(--text-color-light);
}

.app-category {
  background: var(--medium-gray);
  color: var(--primary-color);
}