/* ==============================================
   PROFESSIONAL TYPOGRAPHY SYSTEM
   ============================================== */

/* Typography Variables */
:root {
  /* Primary Brand Colors */
  --primary-teal: #00796b;
  --primary-teal-light: #26a69a;
  --primary-teal-dark: #004d40;
  --accent-teal: #64ffda;

  /* Typography Colors */
  --heading-color: #00796b;
  --subheading-color: #004d40;
  --text-color-light: #424242;
  --text-muted: #757575;

  /* Typography Scale */
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.8rem;
  --font-size-h3: 2.2rem;
  --font-size-h4: 1.8rem;
  --font-size-h5: 1.4rem;
  --font-size-h6: 1.2rem;
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Dark Mode Typography Colors */
  --bg-color: #121212;
  --text-color: #ffffff;
  --card-bg-dark: #1e1e1e;
  --section-bg-dark: #333;
}

/* Base Typography */
body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  color: var(--text-color-light);
  font-weight: var(--font-weight-regular);
}

/* Heading Hierarchy */
h1,
.h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--heading-color);
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.02em;
}

h2,
.h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--heading-color);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--subheading-color);
  margin-bottom: var(--spacing-md);
}

h4,
.h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--subheading-color);
  margin-bottom: var(--spacing-sm);
}

h5,
.h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--subheading-color);
  margin-bottom: var(--spacing-sm);
}

h6,
.h6 {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Body Text */
p,
.body-text {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--text-color-light);
  margin-bottom: var(--spacing-sm);
}

.lead-text {
  font-size: 1.25rem;
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-regular);
  color: var(--text-color-light);
}

.small-text {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

/* Material Icons in Headings */
h1 i.material-icons,
h2 i.material-icons,
h3 i.material-icons,
h4 i.material-icons {
  vertical-align: middle;
  margin-right: var(--spacing-xs);
  color: var(--primary-teal);
}

/* Professional Card Typography */
.card-title {
  font-size: var(--font-size-h5) !important;
  font-weight: var(--font-weight-semibold) !important;
  line-height: var(--line-height-tight) !important;
  color: var(--heading-color) !important;
  margin-bottom: var(--spacing-sm) !important;
}

.card-content p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-relaxed);
  color: var(--text-color-light);
}

/* Section Headings */
.section-heading {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--heading-color);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-teal), var(--primary-teal-light));
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

/* Dark Mode Typography */
body.dark-mode {
  color: var(--text-color);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode .section-heading {
  color: var(--accent-teal) !important;
}

body.dark-mode p,
body.dark-mode .body-text,
body.dark-mode .card-content p {
  color: #e0e0e0 !important;
}

body.dark-mode .small-text,
body.dark-mode .text-muted {
  color: #bbb !important;
}

body.dark-mode .card-title {
  color: var(--accent-teal) !important;
}

body.dark-mode h1 i.material-icons,
body.dark-mode h2 i.material-icons,
body.dark-mode h3 i.material-icons,
body.dark-mode h4 i.material-icons {
  color: var(--accent-teal) !important;
}

/* Responsive Typography */
@media screen and (max-width: 768px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.75rem;
    --font-size-h4: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
  }
}

/* ==============================================
   END TYPOGRAPHY SYSTEM
   ============================================== */

/* Dark Mode Variables */
:root {
  --bg-color: #121212;
  /* Dark background */
  --text-color: #ffffff;
  /* White text */
  --card-bg-dark: #1e1e1e;
  /* Dark card background */
  --section-bg-dark: #333;
  /* Dark section background */
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--bg-color);
  color: var(--text-color);
}


/* Override Materialize's .flow-text in Dark Mode */
body.dark-mode .flow-text {
  color: var(--text-color);
}

body.dark-mode .flow-text strong {
  color: inherit;
  /* Ensure <strong> tags inherit the text color */
}

/* Override Section Background in Dark Mode */
body.dark-mode #skills {
  background-color: var(--section-bg-dark) !important;
  /* Force dark background */
}

/* Override Materialize Component Styles for Dark Mode */
body.dark-mode .card,
body.dark-mode .collection-item,
body.dark-mode .modal,
body.dark-mode .dropdown-content,
body.dark-mode .sidenav,
body.dark-mode footer {
  background-color: var(--card-bg-dark);
  color: var(--text-color);
}

/* Specific sidenav menu item styling for dark mode */
body.dark-mode .sidenav li>a {
  color: var(--text-color) !important;
  background-color: transparent !important;
}

body.dark-mode .sidenav li>a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-color) !important;
}

body.dark-mode .sidenav li>a:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-color) !important;
}

/* Links and Buttons in Dark Mode */
body.dark-mode a,
body.dark-mode .btn,
body.dark-mode .sidenav-trigger {
  color: var(--text-color);
}

body.dark-mode a:hover,
body.dark-mode .btn:hover,
body.dark-mode .sidenav-trigger:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

/* Input Fields in Dark Mode */
body.dark-mode .input-field input,
body.dark-mode .input-field textarea {
  background-color: #444;
  color: var(--text-color);
}

/* Headings and Paragraphs in Dark Mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p {
  color: var(--text-color);
}

/* Card Titles in Dark Mode */
body.dark-mode .card-title {
  color: var(--primary-color);
}

/* Collection Items in Dark Mode */
body.dark-mode .collection-item {
  background-color: var(--card-bg-dark);
  color: var(--text-color);
}

body.dark-mode .collection-item em {
  color: #bbb;
}

/* Dark Mode Collapsible Header and Body */
body.dark-mode .collapsible-header {
  background-color: #1e1e1e;
  /* Dark background for header */
  color: #ffffff;
  /* White text for header */
  border-bottom: 1px solid #444;
  /* Subtle border for separation */
}

body.dark-mode .collapsible-header i.material-icons {
  color: #ffffff;
  /* Ensure icons are visible */
}

body.dark-mode .collapsible-body {
  background-color: #1e1e1e;
  /* Dark background for body */
  color: #ffffff;
  /* White text for body */
  border-bottom: 1px solid #444;
  /* Subtle border for separation */
}

/* Dark Mode Skill Chips */
body.dark-mode .chip {
  background-color: #333;
  /* Dark background for chips */
  color: #ffffff;
  /* White text for chips */
}

body.dark-mode .chip:hover {
  background-color: #444;
  /* Slightly lighter background on hover */
}

/* Style for BN and RC Numbers */
.card-content p strong {
  font-weight: 500;
  /* Slightly bolder text */
}

.card-content p i.material-icons.tiny {
  color: teal;
  /* Purple color for icons */
  vertical-align: middle;
  /* Align icons with text */
  margin-right: 5px;
  /* Spacing between icon and text */
}

/* Card Styling */
.card {
  border-radius: 10px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth hover effect */
}

.card:hover {
  transform: translateY(-5px);
  /* Lift card on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Stronger shadow on hover */
}

.card-title {
  font-family: 'Roboto', sans-serif;
  /* Modern font */
  font-weight: 500;
  /* Bold title */
  margin-bottom: 15px;
  /* Spacing below title */
}

.card-content {
  padding: 20px;
  /* Add padding for better spacing */
}


@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* Fade-in Animation Styles */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for multiple fade-in elements */
.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

/* Keyframe for fade in up animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ensure cards are visible by default in case animation doesn't work */
.card.fade-in {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.card-action {
  border-top: 1px solid #eee;
  /* Subtle border for separation */
  padding: 15px 20px;
  /* Padding for action area */
}

.card-action a.btn-small {
  border-radius: 20px;
  /* Rounded button */
  text-transform: none;
  /* Remove uppercase */
  font-weight: 500;
  /* Bold text */
}

/* Icons */
.material-icons.left {
  margin-right: 10px;
  /* Spacing between icon and text */
}

.material-icons.tiny {
  font-size: 16px;
  /* Slightly larger tiny icons */
  vertical-align: middle;
  /* Align icons with text */
  margin-right: 5px;
  /* Spacing between icon and text */
}

/* Footer Styling */
.page-footer {
  /* Gradient background */
  padding-top: 40px;
  /* Add padding at the top */
  border-top: 4px solid #bb86fc;
  /* Add a border at the top */
}

.page-footer h5 {
  font-weight: 500;
  /* Bold headings */
  margin-bottom: 20px;
  /* Spacing below headings */
}

.page-footer .footer-links li,
.page-footer .footer-social li {
  margin-bottom: 10px;
  /* Spacing between links */
}

.page-footer .footer-links a,
.page-footer .footer-social a {
  display: flex;
  /* Align icons and text */
  align-items: center;
  /* Center align vertically */
  transition: color 0.3s ease, transform 0.3s ease;
  /* Smooth hover effect */
}

.page-footer .footer-links a:hover,
.page-footer .footer-social a:hover {
  color: teal !important;
  /* Change color on hover */
  transform: translateX(5px);
  /* Move text slightly on hover */
}

.page-footer .footer-links i.material-icons,
.page-footer .footer-social i.fab {
  margin-right: 10px;
  /* Spacing between icon and text */
  font-size: 18px;
  /* Slightly larger icons */
}

.page-footer .footer-social i.fab {
  font-size: 20px;
  /* Larger social media icons */
}

.page-footer .card {
  border-radius: 10px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth hover effect */
}

.page-footer .card:hover {
  transform: translateY(-5px);
  /* Lift card on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Stronger shadow on hover */
}

.page-footer .card-content {
  padding: 20px;
  /* Add padding */
}

.page-footer {
  font-weight: 500;
  /* Bold title */
  margin-bottom: 15px;
  /* Spacing below title */
}

.page-footer .collection-item {
  display: flex;
  /* Align icon and text */
  align-items: center;
  /* Center align vertically */
  padding: 15px 20px;
  /* Add padding */
  border-bottom: 1px solid #eee;
  /* Subtle border for separation */
}

.page-footer .collection-item i.material-icons {
  margin-right: 10px;
  /* Spacing between icon and text */
  font-size: 24px;
  /* Larger icons */
}

.page-footer .btn {
  border-radius: 25px;
  /* Rounded button */
  font-weight: 500;
  /* Bold text */
  transition: transform 0.3s ease;
  /* Smooth hover effect */
}

.page-footer .btn:hover {
  transform: scale(1.05);
  /* Slightly enlarge on hover */
}

.page-footer .copyright {
  font-size: 1rem;
  /* Adjusted font size */
  font-weight: 500;
  /* Bold copyright text */
  padding: 10px 0;
  /* Add padding */
  margin-top: 20px;
  /* Spacing above copyright */
}

/* Contact Section Styling */
#contact {

  /* Light gradient background */
  padding: 40px 0;
  /* Add padding */
}

#contact h2 {
  font-weight: 500;
  /* Bold heading */
  margin-bottom: 30px;
  /* Spacing below heading */
}

#contact .card {
  border-radius: 10px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Subtle shadow */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth hover effect */
}

#contact .card:hover {
  transform: translateY(-5px);
  /* Lift card on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Stronger shadow on hover */
}

#contact .input-field {
  margin-bottom: 20px;
  /* Spacing between input fields */
}

#contact .input-field input,
#contact .input-field textarea {
  font-size: 16px;
  /* Larger font size for inputs */
  padding-left: 40px;
  /* Add padding for icons */
}

#contact .input-field .material-icons.prefix {
  color: teal;
  /* Purple color for icons */
  font-size: 24px;
  /* Larger icons */
  margin-top: 10px;
  /* Align icons with input */
}

#contact .btn {
  border-radius: 25px;
  /* Rounded button */
  font-weight: 500;
  /* Bold text */
  transition: transform 0.3s ease;
  /* Smooth hover effect */
}

#contact .btn:hover {
  transform: scale(1.05);
  /* Slightly enlarge on hover */
}

/* Contact Information Card */
#contact .collection-item {
  display: flex;
  /* Align icon and text */
  align-items: center;
  /* Center align vertically */
  padding: 15px 20px;
  /* Add padding */
  border-bottom: 1px solid #eee;
  /* Subtle border for separation */
}

#contact .collection-item i.material-icons {
  margin-right: 10px;
  /* Spacing between icon and text */
  font-size: 24px;
  /* Larger icons */
}

/* Social Media Buttons */
#contact .btn.waves-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Smooth hover effect */
}

#contact .btn.waves-effect:hover {
  transform: translateY(-3px);
  /* Move button slightly on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Add shadow on hover */
}



.hero-section .profile-image {
  width: 200px;
  /* Adjust image size */
  height: 200px;
  /* Adjust image size */
  border: 4px solid #64ffda;
  /* Add border */
  transition: transform 0.3s ease;
  /* Smooth hover effect */
}

.hero-section .profile-image:hover {
  transform: scale(1.05);
  /* Slightly enlarge on hover */
}

.hero-section h2 {
  font-weight: 500;
  /* Bold heading */
  margin-bottom: 20px;
  /* Spacing below heading */
}

.hero-section .flow-text {
  font-size: 1.2rem;
  /* Larger font size */
  margin-bottom: 20px;
  /* Spacing below text */
}

.hero-section .btn {
  border-radius: 25px;
  /* Rounded button */
  font-weight: 500;
  /* Bold text */
  transition: transform 0.3s ease;
  /* Smooth hover effect */
}

.hero-section .btn:hover {
  transform: scale(1.05);
  /* Slightly enlarge on hover */
}

/* Hero Section Text Visibility Improvements */
header h1.name-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7) !important;
  /* Strong text shadow for better readability */
  font-weight: 700 !important;
  /* Bolder font weight */
  font-size: 2.8rem !important;
  /* Larger font size */
  letter-spacing: 1px !important;
  /* Better letter spacing */
}

header h1.name-title .highlight {
  color: #64ffda !important;
  /* Bright cyan color for name highlight */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8) !important;
  /* Even stronger shadow for highlight */
  font-weight: 800 !important;
  /* Extra bold for the name */
}

header .typewriter {
  color: #ffffff !important;
  /* White text instead of cyan */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8) !important;
  /* Text shadow for readability */
  font-weight: 500 !important;
  /* Medium weight */
  font-size: 1.4rem !important;
  /* Larger font size */
  background-color: rgba(0, 0, 0, 0.3) !important;
  /* Semi-transparent dark background */
  padding: 10px 20px !important;
  border-radius: 25px !important;
  /* Rounded background */
  display: inline-block !important;
  margin: 20px 0 !important;
  /* Add margin for spacing */
}

/* Alternative: Add a dark overlay to the header background */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  /* Dark overlay for better text contrast */
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 2;
  /* Ensure content is above the overlay */
}

/* Mobile responsive text */
@media only screen and (max-width: 768px) {
  header h1.name-title {
    font-size: 2.2rem !important;
  }

  header .typewriter {
    font-size: 1.2rem !important;
    padding: 8px 16px !important;
  }
}

nav {
  min-height: 64px !important;
  /* Ensure minimum height for all content */
  line-height: 64px;
  /* Center align vertically */
}

nav .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  /* Match nav height */
  padding: 0 1rem;
  /* Add horizontal padding */
}

nav .nav-wrapper .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

/* Fix navigation items alignment */
nav ul.right {
  margin: 0;
  /* Remove default margin */
  display: flex;
  align-items: center;
  /* Center align items vertically */
  height: 64px;
  /* Match nav height */
}

nav ul.right li {
  display: flex;
  align-items: center;
  /* Center align each nav item */
  height: 64px;
}

nav ul.right a {
  font-weight: 500;
  /* Bold text */
  transition: color 0.3s ease, transform 0.3s ease;
  /* Smooth hover effect */
  display: flex;
  align-items: center;
  /* Center align link content */
  height: 64px;
  /* Full height for better click area */
  padding: 0 15px;
  /* Add horizontal padding */
}

nav ul.right a:hover {
  color: turquoise !important;
  /* Change color on hover */
  transform: translateY(-2px);
  /* Move text slightly on hover */
}

/* Theme Toggle Button Fixes - More Specific Selectors */
nav #theme-toggle.btn-flat {
  margin-left: 20px !important;
  /* More spacing from navigation items */
  transition: transform 0.3s ease, background-color 0.3s ease !important;
  /* Smooth hover effect */
  height: 56px !important;
  /* Match navbar height */
  width: 56px !important;
  /* Make it larger and more visible */
  border-radius: 50% !important;
  /* Make it circular */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  /* Override materialize defaults */
  line-height: 56px !important;
  /* Match navbar line-height */
  padding: 0 !important;
  /* Remove any padding */
  background-color: rgba(255, 255, 255, 0.1) !important;
  /* Subtle background to make it visible */
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  /* Add border for visibility */
}

nav #theme-toggle.btn-flat:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  /* Brighter on hover */
  transform: scale(1.05) !important;
  /* Slightly larger on hover */
}

nav #theme-toggle.btn-flat i.material-icons {
  font-size: 28px !important;
  /* Larger icon size */
  line-height: 1 !important;
  /* Reset line height for icon */
  color: #ffffff !important;
  /* Ensure icon is white */
  margin: 0 !important;
  /* Remove any margin */
}

/* Additional Theme Toggle Button Positioning */
nav .nav-wrapper {
  position: relative !important;
}

nav .nav-wrapper #theme-toggle {
  position: absolute !important;
  right: 20px !important;
  /* Position from right edge */
  top: 50% !important;
  /* Center vertically */
  transform: translateY(-50%) !important;
  /* Perfect vertical centering */
  z-index: 10 !important;
  /* Ensure it's above other elements */
}

/* Ensure navigation links don't overlap with theme toggle */
nav ul.right {
  margin-right: 80px !important;
  /* Make space for theme toggle button */
}

/* Dark mode specific styles for theme toggle */
body.dark-mode nav #theme-toggle.btn-flat {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode nav #theme-toggle.btn-flat:hover {
  background-color: rgba(255, 255, 255, 0.25) !important;
}

/* Mobile positioning adjustments */
@media only screen and (max-width: 992px) {
  nav .nav-wrapper #theme-toggle {
    right: 15px !important;
  }

  nav ul.right {
    margin-right: 0 !important;
    /* Reset margin on mobile since menu is hidden */
  }
}

/* End of mobile styles */

/* Fallback to ensure content is always visible */
.section .card {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.section .card-content {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.section .card-title {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}

/* Ensure text content is visible */
.grey-text.text-darken-1 {
  color: #616161 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Dark mode section improvements */
body.dark-mode .section {
  background-color: var(--bg-color) !important;
}

body.dark-mode .section.teal.lighten-4 {
  background-color: #1a1a1a !important;
}

body.dark-mode .section h2.teal-text.text-darken-3,
body.dark-mode .section h4.teal-text.text-darken-3 {
  color: #64ffda !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

body.dark-mode .section h2 i.material-icons,
body.dark-mode .section h4 i.material-icons {
  color: #64ffda !important;
}

/* Dark mode specific card content improvements */
body.dark-mode .card-content {
  color: #ffffff !important;
}

body.dark-mode .card-content p {
  color: #e0e0e0 !important;
}

body.dark-mode .card-content ul li {
  color: #e0e0e0 !important;
}

body.dark-mode .card-content strong {
  color: #ffffff !important;
  font-weight: 600;
}

body.dark-mode .grey-text.text-darken-1 {
  color: #bbb !important;
}

body.dark-mode .card-content a {
  color: #64ffda !important;
  text-decoration: none;
}

body.dark-mode .card-content a:hover {
  color: #26a69a !important;
  text-decoration: underline;
}

/* Enhanced card titles in dark mode */
body.dark-mode .card-title.teal-text.text-darken-3 {
  color: #64ffda !important;
  font-weight: 600;
}

/* Dark mode contact page improvements */
body.dark-mode #contact {
  background-color: var(--bg-color) !important;
}

body.dark-mode #contact.section.teal.lighten-5 {
  background-color: #1a1a1a !important;
}

body.dark-mode #contact h2 {
  color: #64ffda !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

body.dark-mode #contact .flow-text {
  color: #e0e0e0 !important;
}

body.dark-mode #contact .card-title {
  color: #64ffda !important;
  font-weight: 600;
}

body.dark-mode #contact .input-field label {
  color: #bbb !important;
}

body.dark-mode #contact .input-field label.active {
  color: #64ffda !important;
}

body.dark-mode #contact .input-field input:focus,
body.dark-mode #contact .input-field textarea:focus {
  border-bottom: 1px solid #64ffda !important;
  box-shadow: 0 1px 0 0 #64ffda !important;
}

body.dark-mode #contact .input-field .material-icons.prefix {
  color: #64ffda !important;
}

body.dark-mode #contact .collection-item {
  background-color: var(--card-bg-dark) !important;
  color: #e0e0e0 !important;
  border-bottom: 1px solid #444 !important;
}

body.dark-mode #contact .collection-item strong {
  color: #ffffff !important;
}

body.dark-mode #contact .collection-item i.material-icons {
  color: #64ffda !important;
}

body.dark-mode #contact .purple-text.text-darken-3 {
  color: #64ffda !important;
}

/* Additional Text Contrast Improvements */
.highlight {
  background: linear-gradient(45deg, #64ffda, #26a69a) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  /* Gradient text effect for the name */
  text-shadow: none !important;
  /* Remove shadow for gradient text */
  position: relative !important;
}

/* Fallback for browsers that don't support background-clip */
.highlight::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #64ffda;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: -1;
}

/* Ensure proper contrast in all lighting conditions */
@media (prefers-contrast: high) {
  header h1.name-title {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9) !important;
  }

  header .typewriter {
    background-color: rgba(0, 0, 0, 0.6) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9) !important;
  }
}

/* Dark mode specific improvements */
body.dark-mode header h1.name-title {
  color: #ffffff !important;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode header .typewriter {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3) !important;
}

/* Material CSS Typography Overrides */
.teal-text.text-darken-3,
.teal-text.text-darken-1,
.purple-text.text-darken-3,
.blue-grey-text.text-darken-4 {
  color: var(--heading-color) !important;
  font-weight: var(--font-weight-semibold) !important;
}

.grey-text.text-darken-1 {
  color: var(--text-muted) !important;
  font-weight: var(--font-weight-regular) !important;
}

/* Flow text improvements */
.flow-text {
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-relaxed) !important;
  color: var(--text-color-light) !important;
  font-weight: var(--font-weight-regular) !important;
}

/* Collection items typography */
.collection-item {
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-normal) !important;
  color: var(--text-color-light) !important;
}

.collection-item strong {
  font-weight: var(--font-weight-semibold) !important;
  color: var(--subheading-color) !important;
}

/* Button typography */
.btn {
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

/* Navigation typography */
nav a {
  font-size: var(--font-size-body) !important;
  font-weight: var(--font-weight-medium) !important;
}

/* Footer typography */
footer h5 {
  font-size: var(--font-size-h6) !important;
  font-weight: var(--font-weight-semibold) !important;
  color: #ffffff !important;
}

footer p {
  font-size: var(--font-size-small) !important;
  line-height: var(--line-height-normal) !important;
}

/* Dark Mode Material CSS Overrides */
body.dark-mode .teal-text.text-darken-3,
body.dark-mode .teal-text.text-darken-1,
body.dark-mode .purple-text.text-darken-3,
body.dark-mode .blue-grey-text.text-darken-4 {
  color: var(--accent-teal) !important;
}

body.dark-mode .grey-text.text-darken-1 {
  color: #bbb !important;
}

body.dark-mode .flow-text {
  color: #e0e0e0 !important;
}

body.dark-mode .collection-item {
  color: #e0e0e0 !important;
}

body.dark-mode .collection-item strong {
  color: #ffffff !important;
}

/* ==============================================
   END TYPOGRAPHY SYSTEM
   ============================================== */