/* Classic Modern Theme - Elegant & Timeless with Techy Accents */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Core Colors - Deep Slate & Muted Gold */
  --primary-color: #0f172a;          /* Deep Navy/Slate */
  --primary-light: #1e293b;
  --accent-color: #b45309;           /* Muted Bronze/Gold */
  --accent-hover: #92400e;
  
  /* Text Colors */
  --text-main: #1e293b;              /* Dark Slate */
  --text-secondary: #475569;         /* Muted Slate */
  --text-light: #94a3b8;             /* Light Slate */
  
  /* Backgrounds */
  --bg-body: #f1f5f9;                /* Slate-100 for better contrast */
  --bg-card: #ffffff;
  --bg-dark: #0f172a;                
  
  /* Glassmorphism & Effects */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --backdrop-blur: 12px;
  
  /* Borders & Shadows */
  --border-subtle: #cbd5e1;          /* Darker border for distinct shape */
  --border-card: 1px solid rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08); /* Darker shadow */
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.12);
  --glow-accent: 0 0 15px rgba(180, 83, 9, 0.2);
  
  /* Spacing */
  --container-width: 1200px;
  --radius-card: 12px;
  --radius-btn: 6px; 
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  /* Techy Grid Background Pattern */
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* Tech Font Utility */
.tech-font {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
}

/* Typography Utility */
h1, h2, h3 {
  font-family: 'Playfair Display', serif; /* Elegant Serif Header */
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container Utility */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar - Glassmorphism */
.navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: var(--border-subtle);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s ease;
}

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

.navbar h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Header */
.header {
  background-color: var(--bg-body);
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(180, 83, 9, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1s ease-out;
}

.header h1 {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.header p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Section Common Styles */
section {
  padding: 5rem 0;
}

section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--primary-color);
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
}

/* Cards */
.card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(180, 83, 9, 0.2);
}

/* About Section */
.about p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.skills-list li {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  color: var(--text-main);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skills-list li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skills-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: white;
}

.skills-list li:hover::before {
  opacity: 1;
}

.skills-list strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: var(--primary-color);
}

/* Education Section */
.edu-list {
  list-style: none;
  display: flex;
  justify-content: center;
}

.edu-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 700px;
  width: 100%;
  position: relative;
}

.edu-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

.edu-item strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 1rem;
}

/* Projects Grid */
.projects {
  background-color: transparent; /* reveal body grid */
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.project {
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 380px; /* Slightly wider for more text */
  display: flex;
  flex-direction: column;
}

.project:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(180, 83, 9, 0.15); /* Gold Glow */
  border-color: rgba(180, 83, 9, 0.3);
}

.project img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-bottom: 1px solid var(--border-subtle);
}

.project:hover img {
  transform: scale(1.03);
}

.project h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.project p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  border-bottom: 1px dashed var(--border-subtle); /* Techy separator */
}

/* Tech Stack Tags within Project (Optional if adding manually to HTML) */
.project .tech-stack {
  padding: 0.5rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent-color);
  background: rgba(180, 83, 9, 0.05);
}

.project a {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--primary-color);
  padding: 1rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.project a:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Search Box - Techy/Modern Upgrade */
.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
  position: relative;
}

#search-box {
  width: 100%;
  max-width: 600px;
  padding: 1.2rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  font-family: 'Inter', sans-serif; /* Clean font for input */
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: all 0.3s ease;
}

#search-box:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(180, 83, 9, 0.1);
  transform: scale(1.01);
}

#search-box::placeholder {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #94a3b8;
}

/* Buttons */
#view-more {
  display: inline-block;
  padding: 1rem 3rem;
  background: transparent;
  color: var(--primary-color);
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-btn);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: 3rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

#view-more:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  background-color: var(--primary-color);
  color: white;
}

.contact h1 {
  color: white;
  margin-bottom: 2rem;
}

.contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact a {
  color: var(--accent-color);
}

.contact a:hover {
  color: white;
}

/* Footer */
.footer {
  background-color: var(--primary-light);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .project {
    width: 100%;
  }
}
