/* 
   style.css 
   Professional Portfolio Design System for Iffat Fatima
   Theme: Neutral Grey & Slate Blue with a Sophisticated Rose/Girly Accent
   Fully responsive, supporting Light/Dark mode and blurred convocation background.
*/

:root {
  /* Font Family */
  --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --bg-color: #0f172a; /* Deep slate */
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-nav: rgba(15, 23, 42, 0.9);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  
  --primary-color: #60a5fa;
  --primary-hover: #3b82f6;
  
  --accent-color: #f472b6; /* Soft Rose/Girly Pink */
  --accent-light: rgba(244, 114, 182, 0.2);
  --accent-hover: #f43f5e;

  --border-color: rgba(51, 65, 85, 0.8);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  
  --backdrop-blur: 12px;
}

/* Light Mode Variables (Triggered via data attribute) */
[data-theme="light"] {
  --bg-color: #f1f5f9; /* Soft grey-blue */
  --bg-card: rgba(255, 255, 255, 0.85); /* Semi-transparent for blur effect */
  --bg-nav: rgba(241, 245, 249, 0.9);
  --text-primary: #1e293b; /* Dark slate */
  --text-secondary: #475569; /* Muted grey-blue */
  
  --primary-color: #3b82f6; /* Modern Blue */
  --primary-hover: #2563eb;
  
  --accent-color: #f472b6;
  --accent-light: #fbcfe8;
  --accent-hover: #db2777;

  --border-color: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Convocation Background Image with Blur */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  background-image: url('media/convocation.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(2px) brightness(0.92);
  opacity: 0.6; /* Much more visible background presence */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

[data-theme="dark"] .bg-overlay {
  filter: blur(2px) brightness(0.4);
  opacity: 0.7;
}

/* Navigation Bar */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-nav);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.85;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-item a:hover,
.nav-item.active a {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.08);
}

[data-theme="dark"] .nav-item a:hover,
[data-theme="dark"] .nav-item.active a {
  color: var(--primary-color);
  background-color: rgba(96, 165, 250, 0.15);
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  color: var(--text-primary);
  transition: background-color 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
  transform: scale(1.05);
}

/* Main Container Layout */
main {
  flex: 1;
  padding-top: 5.5rem; /* Space for fixed nav */
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(85vh - 5.5rem);
  padding: 2rem 0;
}

.profile-container {
  position: relative;
  margin-bottom: 2rem;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-card);
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--accent-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--accent-color);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 650px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s, border-color 0.2s;
  border: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Sections - General Card Style */
.section-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(var(--backdrop-blur));
  -webkit-backdrop-filter: blur(var(--backdrop-blur));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

/* Timeline Layout for Experience */
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-subtitle {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.timeline-content {
  color: var(--text-secondary);
}

.timeline-content ul {
  list-style-type: none;
  margin-top: 0.5rem;
}

.timeline-content li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.timeline-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Grid Layout for Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.project-img-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.project-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.project-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.project-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
}

.tag.tag-accent {
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* Skills Layout */
.skills-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skills-category-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-pill {
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.skill-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-light);
}

/* Course Grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.course-item {
  padding: 0.75rem;
  background-color: var(--bg-card);
  border-left: 3px solid var(--accent-color);
  border-radius: 0 6px 6px 0;
  box-shadow: var(--shadow-sm);
}

.course-item strong {
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Blog Layout */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.blog-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.blog-title a {
  text-decoration: none;
  color: var(--text-primary);
  transition: color 0.2s;
}

.blog-title a:hover {
  color: var(--accent-color);
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.blog-excerpt {
  color: var(--text-secondary);
}

/* Contact Form styling */
.contact-section-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(244, 114, 182, 0.15);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-text a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

textarea.form-control {
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  display: block;
}

.form-status.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  display: block;
}

/* Contact Pill styling */
.contact-pill {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.15) !important;
}

/* Footer styling */
footer {
  text-align: center;
  padding: 2.5rem;
  margin-top: 3rem;
  background-color: var(--bg-nav);
  backdrop-filter: blur(var(--backdrop-blur));
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-card {
    padding: 1.5rem;
  }
  
  .timeline-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}
