/* --- Root Variables --- */
:root {
  --primary: #2ecc71; /* Engineering Green */
  --primary-glow: rgba(46, 204, 113, 0.3);
  --secondary: #27ae60;
  --dark: #0f172a; /* Deep Navy Slate */
  --light: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f1f5f9;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Header & Navigation --- */
header {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.logo {
  color: white;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

nav a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* --- Hero Section --- */
.hero {
  background:
    linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)),
    url("https://images.unsplash.com/photo-1517077304055-6e89abbf09b0?auto=format&fit=crop&q=80&w=1000");
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(to right, #2ecc71, #a8e063);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #cbd5e1;
}

/* --- Buttons --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: none;
}

.cta-button:hover {
  background: #a8e063;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

/* --- Main Layout --- */
.container {
  max-width: 1200px;
  margin: -60px auto 60px;
  display: flex;
  gap: 30px;
  padding: 0 20px;
}

.content {
  flex: 2;
}
.sidebar {
  flex: 1;
}

.section-title {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Project Cards --- */
.post {
  background: var(--card-bg);
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.post-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(46, 204, 113, 0.1);
  color: var(--secondary);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
}

.post h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- Widgets & Sidebar --- */
.widget {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.widget h3 {
  margin-bottom: 15px;
  font-size: 1rem;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
  color: var(--dark);
  text-transform: uppercase;
}

/* Profile Status Dot */
.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.status-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Tech Stack Tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.skill-tags span {
  background: #f1f5f9;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 2px solid var(--border);
  transition: 0.3s;
}
.skill-tags span:hover {
  border-bottom-color: var(--primary);
  background: white;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.social-links a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Course List */
.course-list {
  list-style: none;
}
.course-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.course-list li i {
  color: var(--primary);
  width: 16px;
}

/* Form Styles */
.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f8fafc;
  font-family: inherit;
  transition: 0.3s;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* --- Footer --- */
footer {
  background: var(--dark);
  color: #64748b;
  text-align: center;
  padding: 50px 20px;
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    margin-top: 20px;
  }
  .sidebar {
    order: 1;
  }
  .content {
    order: 2;
  }
  header {
    padding: 1rem 5%;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }
  nav {
    display: none;
  } /* Hide nav on mobile for simplicity, or use a burger menu later */
}
