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

:root {
  --primary: #2c3e50; /* Dark Blue/Grey */
  --secondary: #3498db; /* Bright Blue */
  --accent: #1abc9c; /* Teal/Turquoise */
  --light: #ecf0f1; /* Light Grey */
  --dark: #2c3e50; /* Same as primary for footer */
  --text: #34495e; /* Dark Grey for text */
  --white: #ffffff;
  --transition: all 0.3s ease;
  --long-transition: all 0.6s ease-out;
}

html {
  scroll-behavior: smooth; /* For smooth scrolling on anchor links */
}

body {
  font-family: "Lato", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: #f9fbfd; /* Slightly off-white for main background */
  overflow-x: hidden; /* Prevent horizontal scrollbars from animations */
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  overflow: hidden; /* Contain animations */
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: 2px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.2);
}

.contributions {
  padding-top: 30px;
  margin-top: 30px;
  /* Add these two lines for responsiveness */
  max-width: 100%; /* Ensures the image doesn't exceed its parent's width */
  height: auto; /* Maintains the aspect ratio as the width changes */
  display: block; /* Removes extra space below the image if it's inline */
}
.workwithme {
  margin-bottom: 30px;
}

.btn:hover,
.btn:focus {
  background-color: transparent;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3);
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--primary);
  position: relative;
}

.section-title:after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 20px auto;
}

.section-subtitle {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 60px;
  color: var(--secondary);
  font-weight: 400;
}

/* Header */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  height: 80px; /* Fixed height for smoother transitions */
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none; /* Hidden by default, shown in media query */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001; /* Above mobile nav */
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 25px;
  height: 3px;
  background-color: var(--primary);
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.mobile-nav-toggle.active .hamburger {
  background-color: transparent; /* Middle line disappears */
}

.mobile-nav-toggle.active .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Links */
.mobile-nav-links {
  display: none;
  position: fixed;
  top: 80px; /* Below header */
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  padding: 20px 0;
  border-top: 1px solid var(--light);
}

.mobile-nav-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav-links li {
  margin-bottom: 15px;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 10px 20px;
  display: block;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--accent);
  background-color: #f0f0f0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #4a6491 100%);
  color: var(--white);
  padding-top: 180px; /* Adjusted for fixed header */
  padding-bottom: 120px;
  text-align: center;
  position: relative; /* For Three.js canvas positioning */
  overflow: hidden; /* Ensure canvas doesn't overflow */
  min-height: 100vh; /* Make hero take full viewport height */
  display: flex; /* For centering content */
  align-items: center; /* For centering content */
  justify-content: center; /* For centering content */
}

#hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Behind content */
}

#hero-canvas-container canvas {
  display: block; /* Remove extra space below canvas */
}

.hero-content-container {
  position: relative; /* To ensure it's above the canvas */
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive font size */
  margin-bottom: 25px;
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: clamp(1.2rem, 3vw, 1.8rem); /* Responsive font size */
  margin-bottom: 45px;
  font-weight: 300;
  opacity: 0.9;
}

.hero-highlight {
  color: var(--accent);
  font-weight: 600; /* Was 700, slightly softer */
}

/* About Section */
.about {
  background-color: var(--white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--primary);
}

.about-text p {
  font-size: 1.1rem; /* Slightly adjusted for readability */
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-image-wrapper {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.15);
  height: auto; /* Adjusted for image */
  max-width: 500px; /* Control max size */
}

.about-image-placeholder {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  aspect-ratio: 3 / 2; /* Maintain aspect ratio */
  object-fit: cover;
}

/* Skills Section */
.skills {
  background-color: #f5f9fc; /* Lighter than f9fbfd for subtle contrast */
}

.skills-container {
  display: grid; /* Changed to grid for better responsiveness */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skills-column {
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.skills-column:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 45px rgba(44, 62, 80, 0.12);
}

.skills-column h3 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skills-column h3 i {
  margin-right: 12px;
  color: var(--accent);
  font-size: 1.5rem; /* Slightly larger icon */
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(120px, 1fr)
  ); /* Smaller min for more items */
  gap: 15px; /* Reduced gap */
}

.skill-item {
  background-color: var(--light);
  padding: 12px 15px; /* Adjusted padding */
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem; /* Slightly smaller font for denser grid */
  color: var(--text);
  border: 1px solid transparent;
}

.skill-item:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: scale(1.05);
  border-color: var(--accent);
}

/* Pricing Section */
.pricing {
  background-color: var(--white);
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.pricing-plan {
  background-color: #f5f9fc; /* Lighter background for plans */
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-plan:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.pricing-plan h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.pricing-plan h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.pricing-plan .price {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 30px;
}

.pricing-plan .price span {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  text-align: left;
  flex-grow: 1; /* Allows the list to take available space */
}

.features-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
}

.features-list li i {
  color: var(--accent);
  margin-right: 10px;
  font-size: 1.2rem;
}

.pricing-plan .btn {
  margin-top: auto; /* Pushes button to the bottom */
  width: 80%;
  align-self: center;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--accent) 0%, #16a085 100%);
  color: var(--white);
  text-align: center;
}

.contact .section-title {
  color: var(--white);
}
.contact .section-title:after {
  background-color: var(--white);
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.3rem; /* Slightly reduced */
  margin-bottom: 40px;
}

.contact-btn {
  background-color: var(--white);
  color: var(--accent);
  font-size: 1.2rem;
  padding: 18px 45px;
}

.contact-btn:hover,
.contact-btn:focus {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0; /* Increased padding */
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px; /* Increased margin */
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly darker */
  color: var(--white);
  border-radius: 50%;
  font-size: 1.4rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover,
.social-links a:focus {
  background-color: var(--accent);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 15px rgba(26, 188, 156, 0.3);
  border-color: var(--accent);
}

footer p {
  font-size: 0.95rem;
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--long-transition),
    transform 0.8s var(--long-transition);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Specific delays for staggered effect if desired */
.skills-column.scroll-reveal:nth-child(2) {
  transition-delay: 0.2s;
}
.about-image-wrapper.scroll-reveal {
  transition-delay: 0.1s;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
    gap: 40px;
  }
  .about-image-wrapper {
    max-width: 100%; /* Allow full width on smaller screens */
  }

  .skills-container {
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  }

  .hero p {
    font-size: clamp(1.1rem, 2.8vw, 1.5rem);
  }
  section {
    padding: 80px 0;
  }

  .pricing-plans {
    grid-template-columns: 1fr; /* Stack pricing plans vertically */
  }
  .pricing-plan {
    max-width: 400px; /* Limit width of stacked plans */
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide desktop nav links */
  }
  .mobile-nav-toggle {
    display: block; /* Show hamburger icon */
  }

  .hero {
    padding-top: 120px; /* Adjust for smaller header/no fixed header issues */
    padding-bottom: 80px;
    min-height: auto; /* Allow hero to shrink if needed */
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .hero p {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }

  .section-title {
    font-size: 2.3rem;
  }
  .section-title:after {
    width: 60px;
    margin: 15px auto;
  }

  .section-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  .skill-item {
    font-size: 0.9rem;
    padding: 10px;
  }
  .skills-column {
    padding: 30px;
  }

  .contact-content p {
    font-size: 1.1rem;
  }
  .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  .contact-btn {
    padding: 15px 40px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1.1rem;
  }
  .skills-column h3 {
    font-size: 1.5rem;
  }
  .skills-column h3 i {
    font-size: 1.3rem;
  }
  .social-links a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  footer {
    padding: 40px 0;
  }
}

/* Corrected CSS for the Google Calendar button to match .btn.contact-btn */
.qxCTlb {
  /* This is Google's generated button class */
  /* --- Core button styles to match .btn and .contact-btn --- */
  background-color: var(--white) !important; /* From .contact-btn (White BG) */
  color: var(--accent) !important; /* From .contact-btn (Teal text) */
  border: 2px solid var(--accent) !important; /* From .btn (Teal border) */
  border-radius: 30px !important; /* From .btn */
  padding: 18px 45px !important; /* From .contact-btn */
  font-weight: 600 !important; /* From .btn */
  font-size: 1.2rem !important; /* From .contact-btn */
  text-transform: uppercase !important; /* From .btn */
  letter-spacing: 1px !important; /* From .btn */
  text-decoration: none !important; /* Ensure no underline */
  box-shadow: 0 4px 15px rgba(26, 188, 156, 0.2) !important; /* From .btn (Teal shadow) */
  transition: var(--transition) !important; /* From .btn */

  /* --- Layout & positioning overrides for consistency --- */
  display: inline-block !important;
  vertical-align: middle !important;
  /* margin-left: 20px; /* Adjust as needed for spacing if they are side-by-side */
  height: auto !important;
  line-height: normal !important; /* Or 1.6 to match body, but 'normal' is standard for buttons */
  width: auto !important; /* Let content naturally size the button. Different text lengths will result in different widths. */
  min-width: unset !important;
  cursor: pointer !important;
  white-space: nowrap !important; /* Prevent text from wrapping */
  text-align: center; /* Good for visual consistency */
}

/* Hover and focus state for the Google Calendar button to match .contact-btn:hover */
.qxCTlb:hover,
.qxCTlb:focus {
  background-color: transparent !important; /* From .contact-btn:hover */
  color: var(
    --white
  ) !important; /* From .contact-btn:hover (Text becomes white) */
  border-color: var(
    --white
  ) !important; /* From .contact-btn:hover (Border becomes white) */
  transform: translateY(-3px) !important; /* From .btn:hover */
  box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3) !important; /* From .btn:hover */
}

/* Add this CSS to your stylesheet (e.g., style.css) */
.button-group .contact-btn {
  display: block; /* Makes each button take up its own line */
  width: 100%; /* Makes the buttons span the full width of their container */
  margin-bottom: 10px; /* Adds some space between the buttons */
  text-align: center; /* Centers the text within the button */
}

/* Optional: Adjust max-width for better control on larger screens */
.button-group {
  max-width: 300px; /* Adjust as needed */
  margin: 0 auto; /* Center the button group */
}
