/* 
    Professional Portfolio Styles 
    A modern, grid-based, dark-theme redesign.
*/

:root {
  /* Deep, professional dark theme */
  --bg-main: #0a101f;
  /* Dark navy/slate */
  --bg-secondary: #111827;
  /* Slightly lighter slate */
  --bg-card: #1f2937;
  --bg-nav: rgba(10, 16, 31, 0.85);

  /* Vibrant, tech-focused accents */
  --primary-color: #3b82f6;
  /* Trustworthy blue */
  --primary-hover: #60a5fa;
  --accent-color: #06b6d4;
  /* vibrant cyan */
  --text-highlight: #60a5fa;

  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #d1d5db;

  /* Effects */
  --border-light: rgba(255, 255, 255, 0.08);
  --glow-primary: rgba(59, 130, 246, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.7);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-base: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;

  /* Layout */
  --nav-height: 80px;
  --content-max-width: 1000px;
}

/* ==================================
   Base Styles
   ================================== */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  margin: 0 0 1rem 0;
  color: #fff;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
  /* Good reading measure */
}

/* Utility */
.text-primary {
  color: var(--text-highlight) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* ==================================
   Top Navigation (Glassmorphism)
   ================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: transparent;
  transition: background-color var(--transition-smooth), border-bottom var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.brand-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-smooth);
}

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    height: calc(100vh - var(--nav-height));
    width: 75vw;
    max-width: 300px;
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }
}

/* ==================================
   Main Content Layout
   ================================== */
.main-content {
  padding: 0;
  margin: 0 auto;
}

.content-section {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
  min-height: 50vh;
}

.section-heading {
  display: flex;
  align-items: center;
  margin-bottom: 3rem;
  white-space: nowrap;
}

.section-heading h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  margin: 0;
}

.section-number {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 0.75rem;
  font-weight: 400;
  font-family: var(--font-base);
}

.section-heading::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--border-light);
  margin-left: 1.5rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  display: inline-block;
}

/* ==================================
   Hero Section
   ================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding-top: var(--nav-height);
}

.hero-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.greeting {
  color: var(--primary-color);
  font-family: var(--font-base);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Hero Image styling */
.hero-image-container {
  position: relative;
  max-width: 350px;
  margin: 0 auto;
}

.image-wrapper {
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: grayscale(20%) contrast(1.1);
  transition: all var(--transition-smooth);
  position: relative;
  z-index: 2;
  border: 2px solid var(--border-light);
}

.image-backdrop {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  z-index: 0;
  transition: all var(--transition-smooth);
}

.image-wrapper:hover .profile-img {
  filter: none;
  transform: translate(-5px, -5px);
}

.image-wrapper:hover .image-backdrop {
  transform: translate(5px, 5px);
  background-color: rgba(59, 130, 246, 0.1);
}

/* Hero Social Links */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-socials a {
  color: var(--text-muted);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  display: inline-flex;
}

.hero-socials a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    align-items: center;
  }

  .hero-description {
    margin: 0 auto 2.5rem auto;
  }

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

  .hero-image-container {
    grid-row: 1;
    /* Move image to top on mobile */
    max-width: 280px;
  }
}

/* ==================================
   Skills Section
   ================================== */
.skills-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.skills-showcase i {
  transition: all var(--transition-fast);
}

.skills-showcase i:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: all var(--transition-smooth);
}

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

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-header i {
  font-size: 1.5rem;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
}

.card-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.skill-list li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.2;
}

/* ==================================
   Projects Section
   ================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: all var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-secondary);
}

.project-card .project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-card .folder-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.project-card .external-link {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.project-card .external-link:hover {
  color: var(--primary-hover);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.project-title a {
  color: #fff;
}

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

.project-desc {
  font-size: 1rem;
  flex-grow: 1;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  font-family: var(--font-base);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==================================
   Certificates Section
   ================================== */
.cert-grid {
  display: grid;
  gap: 1rem;
}

/* Top highlighted certs */
.cert-grid.highlight-certs {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cert-card.premium {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.cert-card.premium:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cert-card.premium .cert-icon {
  font-size: 2rem;
  margin-top: 0.2rem;
}

img.cert-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.cert-card.premium h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  color: #fff;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Standard List Certs */
.cert-grid.auto-fit {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cert-card.standard {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--text-main);
}

.cert-card.standard:hover {
  background: var(--bg-card);
}

.cert-name {
  font-weight: 500;
}

/* Compact Infosys Certs */
.cert-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}

.cert-card.minor {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 0.25rem 0;
}

.cert-card.minor i {
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

/* Color overrides for specific icons */
.text-info {
  color: #0ea5e9;
}

.text-warning {
  color: #f59e0b;
}

.text-success {
  color: #10b981;
}

/* ==================================
   Contact Section
   ================================== */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background-color: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.text-center {
  text-align: center;
}

.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.contact-desc {
  margin: 0 auto 2.5rem auto;
  font-size: 1.15rem;
}

.contact-btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.contact-socials a {
  color: var(--text-muted);
  font-size: 1.75rem;
  transition: all var(--transition-fast);
}

.contact-socials a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ==================================
   Footer
   ================================== */
.site-footer {
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  color: var(--text-muted);
  font-family: var(--font-base);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0 auto;
}