/* Custom Styles for Rajadurai's Portfolio */

/* Page Background with Gradient Overlay */
.page-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/my-bg.jpg') center/cover no-repeat fixed;
  z-index: -2;
}

.page-gradient::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(31, 41, 55, 0.92) 50%, rgba(55, 65, 81, 0.90) 100%);
  z-index: -1;
}

/* Override light-background for consistent styling */
body {
  background: transparent !important;
}

.main {
  background: rgba(17, 24, 39, 0.75);
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

/* Override CSS variables for dark theme on inner pages */
.about-page,
.work-page {
  --background-color: transparent;
  --surface-color: rgba(255, 255, 255, 0.08);
  --default-color: rgba(255, 255, 255, 0.9);
  --heading-color: #ffffff;
}

/* Light text on dark background for inner pages */
.about-page .main,
.work-page .main {
  color: rgba(255, 255, 255, 0.9);
}

.about-page .section-title h2,
.work-page .section-title h2 {
  color: #ffffff;
}

.about-page .section-title h2::after,
.work-page .section-title h2::after,
.about-page .section-title h2:after,
.work-page .section-title h2:after {
  display: none;
}

/* Header styling */
.header {
  background: rgba(17, 24, 39, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header .container-fluid {
  justify-content: center !important;
}

.header .logo {
  position: absolute;
  left: 15px;
}

.header .navmenu {
  margin: 0 auto;
}

.header .header-social-links {
  position: absolute;
  right: 15px;
}

.header .logo,
.header .navmenu a,
.header .header-social-links a {
  color: #ffffff !important;
}

.header .navmenu a:hover,
.header .navmenu a.active {
  color: #f59e0b !important;
}

.header .header-social-links a:hover {
  color: #f59e0b !important;
}

.header .mobile-nav-toggle {
  color: #ffffff !important;
}

/* Footer styling */
.footer {
  background: rgba(17, 24, 39, 0.98) !important;
  backdrop-filter: blur(10px);
  margin-top: 0;
  border-radius: 0;
}

.footer .copyright,
.footer .copyright p,
.footer .credits {
  color: rgba(255, 255, 255, 0.8) !important;
}

.footer .sitename {
  color: #f59e0b !important;
}

/* Section styling - reduced spacing for inner pages */
.section {
  padding: 25px 0;
}

/* First section less padding */
.main .section:first-child {
  padding-top: 30px;
}

/* Section title less margin */
.section-title {
  margin-bottom: 15px;
}

.section-title p {
  margin-bottom: 0;
}

/* Reduce spacing in about/work pages */
.about-page .focus-areas,
.work-page .focus-areas {
  margin-bottom: 0;
}

.about-page .skills-group,
.work-page .skills-group {
  margin-bottom: 15px;
}

.about-page .experience-card,
.work-page .experience-card {
  margin-bottom: 15px;
}

.about-page .project-card,
.work-page .project-card {
  margin: 10px 0;
}

/* Cards and content boxes */
.project-card,
.service-item,
.resume-item,
.portfolio-info,
.portfolio-description {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover,
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Section titles */
.section-title h2 {
  color: #2c5364;
  position: relative;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #111827 0%, #2c5364 100%);
  border-radius: 2px;
}

/* Button styling */
.php-email-form button[type="submit"] {
  background: linear-gradient(135deg, #111827 0%, #203a43 50%, #2c5364 100%);
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(44, 83, 100, 0.3);
}

.php-email-form button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 83, 100, 0.4);
  background: linear-gradient(135deg, #2c5364 0%, #203a43 50%, #111827 100%);
}

/* Form inputs */
.php-email-form input,
.php-email-form textarea {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.php-email-form input:focus,
.php-email-form textarea:focus {
  border-color: #2c5364;
  box-shadow: 0 0 0 3px rgba(44, 83, 100, 0.1);
}

/* Skills section styling */
.skill-section {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #f59e0b;
}

.skill-section h2 {
  color: #ffffff;
  font-size: 1.3rem;
  margin-bottom: 15px;
  border-bottom: none;
  padding-bottom: 0;
}

.skill-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-section ul li {
  background: rgba(245, 158, 11, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  transition: all 0.3s ease;
}

.skill-section ul li:hover {
  background: #f59e0b;
  color: #111827;
  transform: translateY(-2px);
}

/* Social links in footer */
.footer .social-links a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border-radius: 50%;
  margin: 0 5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.footer .social-links a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
  background: #f59e0b;
  color: #111827;
}

/* Credits styling */
.footer .credits {
  color: #666;
  font-size: 14px;
  margin-top: 15px;
}

/* Scroll to top button */
.scroll-top {
  background: linear-gradient(135deg, #111827 0%, #2c5364 100%);
}

.scroll-top:hover {
  background: linear-gradient(135deg, #2c5364 0%, #111827 100%);
}

/* Navigation active state */
.navmenu a.active {
  color: #f59e0b !important;
}

.navmenu a:hover {
  color: #f59e0b !important;
}

/* Header social links */
.header-social-links a:hover {
  color: #f59e0b !important;
}
