/* Global Styles */
:root {
  /* Updated Pastel Color Palette */
  --primary-color: #ffc0cb; /* Vibrant Pink */
  --primary-dark: #ff99aa; /* Darker Pink */
  --primary-light: #ffdae0; /* Lightest Pink */

  --accent-color-blue: #add8e6; /* Light Sky Blue */
  --accent-color-purple: #e0bbe4; /* Cheerful Lavender */
  --accent-color-yellow: #fffacd; /* Sunny Pastel Yellow */
  --accent-color-green: #98fb98; /* Mint Green */
  --accent-color-orange: #fe8b26; /* Cheerful Peach */

  --dark-color: #333; /* For dark text on light backgrounds */
  --dark-secondary: #2c3e50; /* Dark for footer */

  --light-color: #ffffff; /* Pure White for main backgrounds */
  --light-secondary: #f8f8f8; /* Very subtle off-white for alternative backgrounds */

  --text-dark: #333333; /* Main dark text for readability */
  --text-light: #ffffff; /* Main light text for readability */
  --gray-color: #6c757d; /* Softer gray for descriptions */

  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;

  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Open Sans", sans-serif; /* Keep if used, otherwise consider removing */

  --transition: all 0.3s ease;

  /* Updated Shadows for a softer, playful feel */
  --shadow: 0 5px 15px rgba(255, 192, 203, 0.2); /* Softer pink tint for default shadow */
  --shadow-hover: 0 8px 25px rgba(255, 192, 203, 0.4); /* Stronger pink tint for hover shadow */

  --border-radius: 15px; /* Slightly more rounded corners for playful feel */

  /* Glass Card Variables - Defined here for consistency */
  --glass-bg: rgba(
    255,
    255,
    255,
    0.9
  ); /* Nearly opaque white for readability */
  --glass-border: 1px solid rgba(255, 192, 203, 0.6); /* Semi-transparent pink border */
  --glass-border-hover: 1px solid rgba(173, 216, 230, 0.8); /* Vibrant blue border on hover */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-color);
  transition: var(--transition);
  /* RESPONSIVE: Ensure no horizontal scrollbar by default */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-dark);
  /* RESPONSIVE: Ensure text wraps and doesn't overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-color);
  /* RESPONSIVE: Ensure text wraps and doesn't overflow */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

a:hover {
  color: var(--accent-color-orange); /* Vibrant orange on link hover */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* RESPONSIVE: Adjusted padding for better responsiveness on smaller screens */
  padding: 0 1rem; /* Reduced default padding for tighter fit on mobile */
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem; /* Slightly larger buttons */
  border-radius: 25px; /* More rounded for playful look */
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  box-shadow: var(--shadow); /* Apply default shadow to all buttons */
  /* RESPONSIVE: Ensure buttons adapt to smaller widths */
  max-width: 100%;
  white-space: nowrap; /* Prevent text wrapping within button */
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light); /* White text on pink */
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-linkedin {
  background-color: #0077b5;
  color: white;
}

.btn-linkedin:hover {
  background-color: #005582;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-instagram {
  /* Using a solid accent color for Instagram to fit pastel theme */
  background-color: var(--accent-color-purple);
  color: var(--text-dark); /* Dark text for contrast */
}

.btn-instagram:hover {
  background-color: var(--primary-color); /* Hover to pink */
  color: var(--text-light); /* White text on hover */
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Section Header */
.section-header {
  margin-bottom: 3.5rem; /* More space below section headers */
  text-align: center;
}

.section-title {
  font-size: 2.8rem; /* Larger section titles */
  position: relative;
  display: inline-block;
  color: var(--text-dark); /* Ensure dark text */
  /* RESPONSIVE: Ensure title wraps on smaller screens */
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 0.5rem; /* Add some horizontal padding to prevent overflow */
  max-width: 95%; /* Limit width to prevent overflow */
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; /* Slightly wider underline */
  height: 5px; /* Thicker underline */
  background-color: var(--primary-color); /* Vibrant pink underline */
  border-radius: 3px;
}

.section-subtitle {
  font-size: 1.3rem; /* Slightly larger subtitle */
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
  /* RESPONSIVE: Ensure subtitle wraps on smaller screens */
  word-wrap: break-word;
  overflow-wrap: break-word;
  padding: 0 1rem; /* Add some horizontal padding */
}

/* Glass Card Effect Variables (No longer a class, but variables for direct use) */
/* These are now variables in :root, so the .glass-card class might be less needed */
/* Leaving it here for backward compatibility if you used it directly somewhere */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px); /* Slightly less blur for clarity */
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  border: var(--glass-border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  /* RESPONSIVE: Ensure glass cards are responsive */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border: var(--glass-border-hover); /* Vibrant border on hover */
}

/* Dark mode glass card (if you have dark mode implemented) */
.dark-mode .glass-card {
  background: rgba(26, 26, 46, 0.7); /* Darker glass background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Lighter border in dark mode */
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  /* Apply Glass Card effect directly to the header */
  background: var(--glass-bg); /* Nearly opaque white for clarity */
  backdrop-filter: blur(8px); /* Blur behind the header */
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--glass-border); /* Subtle pink border at the bottom */
  box-shadow: var(--shadow); /* Soft pink shadow */
  padding: 1rem 0; /* Default padding */
  transition: var(--transition);
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.header.scrolled {
  padding: 0.7rem 0; /* Slightly reduced padding when scrolled */
  border-bottom: var(
    --glass-border-hover
  ); /* Border changes to blue when scrolled */
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* RESPONSIVE: Ensure container padding is consistent */
  padding: 0 1rem;
}

.logo {
  font-size: 2rem; /* Slightly larger logo */
  font-weight: 700;
  color: var(--primary-color); /* Vibrant pink for the logo */
  /* RESPONSIVE: Adjusted margin for smaller screens */
  margin-right: 1rem; /* Reduced margin for tighter fit */
  /* RESPONSIVE: Ensure logo text wraps if necessary */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav ul {
  display: flex;
  gap: 2.5rem; /* More space between nav items */
  align-items: center; /* Vertically align nav items */
  /* RESPONSIVE: Ensure nav items don't overflow */
  flex-wrap: nowrap; /* Prevent wrapping on desktop, handled by mobile menu */
}

.nav ul li a {
  color: var(--text-dark); /* Dark text for nav links */
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0; /* Add padding for clickable area */
  /* RESPONSIVE: Ensure text wraps if needed */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -8px; /* Move underline slightly lower */
  left: 0;
  width: 0;
  height: 3px; /* Thicker underline */
  background-color: var(--accent-color-blue); /* Vibrant blue underline */
  transition: var(--transition);
  border-radius: 2px;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
  width: 100%;
  background-color: var(--primary-color); /* Pink underline on hover/active */
}

.nav ul li a.active {
  color: var(--primary-color); /* Active link in vibrant pink */
}

/* --- HIRE ME BUTTON STYLES --- */
.hire-me-btn {
  background-color: var(--primary-color); /* Vibrant Pink */
  color: var(--text-light); /* White text */
  /* Increased padding to make it a more prominent rounded rectangle/pill */
  padding: 0.9rem 2rem; /* Adjusted for a balanced, spacious look */
  border-radius: 50px; /* Use a larger value for a perfect pill shape */
  font-weight: 600;
  font-size: 1rem; /* Good base font size */
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
  box-shadow: var(--shadow); /* Apply default shadow */
  white-space: nowrap; /* Keep text on one line */
  overflow: hidden; /* Hide overflow if text is too long (though nowrap helps) */
  text-overflow: ellipsis; /* Add ellipsis if text is cut off */
  display: inline-block; /* Essential for padding and width to work */
  text-align: center; /* Center text inside the button */
  margin-left: 1.5rem; /* Add some space from the navigation items */
  min-width: 120px; /* Ensure a minimum width for consistent shape */
}

.hire-me-btn:hover {
  background-color: var(--primary-dark); /* Darker pink on hover */
  transform: translateY(-3px); /* Subtle lift effect */
  box-shadow: var(--shadow-hover); /* Enhanced shadow on hover */
}

/* Responsive adjustments for the hire-me-btn */
@media (max-width: 992px) {
  .hire-me-btn {
    padding: 0.7rem 1.6rem; /* Slightly smaller padding */
    font-size: 0.9rem; /* Slightly smaller text */
    margin-left: 1rem; /* Reduce margin */
    min-width: 100px; /* Maintain minimum width */
  }
}

@media (max-width: 768px) {
  .hire-me-btn {
    display: none; /* IMPORTANT: Hide the button when the mobile menu is active */
  }
}

.mobile-menu-btn {
  display: none; /* Hidden by default on desktop */
  font-size: 2rem; /* Larger icon */
  cursor: pointer;
  color: var(--primary-color); /* Mobile button in vibrant pink */
  background-color: transparent; /* Ensure no background */
  border: none; /* Remove default button border */
  padding: 0.5rem; /* Add padding for easier tap */
}

/* Footer */
.footer {
  background-color: var(--dark-secondary); /* Retained: Dark background */
  color: var(--text-light); /* Retained: Light text */
  padding: 4rem 0 2rem;
  box-sizing: border-box; /* RESPONSIVE: Include padding in total width */
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
  /* RESPONSIVE: Ensure footer content adapts */
  padding: 0 1rem; /* Add padding for smaller screens */
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-brand p {
  color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Retained: Semi-transparent white for body text */
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.footer-nav ul {
  display: flex;
  /* RESPONSIVE: Allow wrapping for better responsiveness */
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-nav ul li a {
  color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Retained: Semi-transparent white for links */
  transition: var(--transition);
  white-space: nowrap; /* Prevent wrapping within nav items */
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-nav ul li a:hover {
  color: var(--primary-light); /* Retained: Primary light on hover */
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  /* FIX: Ensure footer social icons are centered on all screen sizes */
  justify-content: center;
}

.footer-social a {
  color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Retained: Semi-transparent white for icons */
  font-size: 1.5rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary-light); /* Retained: Primary light on hover */
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Retained: Subtle white border */
  color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Retained: Semi-transparent white for copyright */
  font-size: 0.9rem;
  padding-left: 1rem; /* RESPONSIVE: Ensure padding on sides */
  padding-right: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav ul {
    gap: 1.2rem; /* Reduce gap on slightly smaller screens */
  }

  .logo {
    font-size: 1.6rem;
  }

  /* REVISED: hire-me-btn on smaller desktop/tablet */
  .hire-me-btn {
    padding: 0.8rem 1.8rem; /* Use the standard .btn padding */
    font-size: 0.95rem; /* Slightly smaller text */
  }

  .section-title {
    font-size: 2.2rem;
  }

  /* RESPONSIVE: Ensure container padding is adjusted for tablets */
  .container {
    padding: 0 1.5rem;
  }

  /* Adjust grid for footer on smaller desktops/large tablets */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block; /* Show mobile menu button */
  }

  .nav {
    position: fixed;
    top: 80px; /* Adjust based on header height */
    left: -100%; /* Hide off-screen by default */
    width: 100%;
    height: calc(100vh - 80px); /* Full height minus header */
    background-color: var(--light-color); /* White background for mobile menu */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease-in-out; /* Smooth slide transition */
    z-index: 999;
    box-shadow: var(--shadow-hover); /* Add shadow to mobile menu */
    /* RESPONSIVE: Ensure mobile nav content is scrollable if needed */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.active {
    left: 0; /* Slide in when active */
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem; /* Space out links in mobile menu */
    padding: 2rem 0; /* RESPONSIVE: Add padding for mobile menu links */
  }

  .nav ul li a {
    font-size: 1.3rem; /* Larger font for mobile links */
    color: var(--text-dark); /* Dark text for mobile links */
    white-space: normal; /* RESPONSIVE: Allow text to wrap in mobile menu */
    text-align: center;
    padding: 0.5rem 1rem; /* RESPONSIVE: Add horizontal padding for mobile links */
  }

  .nav ul li a:hover::after,
  .nav ul li a.active::after {
    background-color: var(
      --accent-color-blue
    ); /* Mobile underline in blue for distinction */
  }

  /* REVISED: Hide Hire Me button on mobile screens */
  .hire-me-btn {
    display: none;
  }

  /* Footer content already set to 1fr grid and centered in 992px media query, which applies here */
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
    /* RESPONSIVE: Further adjust padding for very small screens */
    padding: 0 0.2rem;
  }

  .btn {
    padding: 0.8rem 1.5rem; /* Adjust padding for very small buttons */
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* RESPONSIVE: Adjust container padding for phones */
  .container {
    padding: 0 0.8rem;
  }

  .footer-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* RESPONSIVE: Specific adjustments for very small mobile devices (e.g., iPhone SE portrait) */
@media (max-width: 375px) {
  .container {
    padding: 0 0.5rem; /* Minimal padding for tiny screens */
  }

  .section-title {
    font-size: 1.8rem;
    padding: 0 0.2rem;
  }

  .section-subtitle {
    font-size: 1.1rem;
    padding: 0 0.5rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .mobile-menu-btn {
    font-size: 1.8rem;
  }

  .nav ul li a {
    font-size: 1.1rem;
  }
}
