/* 
 * Deepti Mahesh Portfolio Website
 * Modern CSS Styles
 */

/* ===== Base Styles ===== */
:root {
  --primary-color: #4a6fa5;
  --secondary-color: #334e7a;
  --accent-color: #6e93c2;
  --text-color: #333333;
  --light-text: #ffffff;
  --background-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

a:hover, a:focus {
  color: var(--secondary-color);
  text-decoration: none;
}

/* Ensure no text decoration for all links in the projects section */
.projects a,
.projects a:hover,
.projects a:focus,
.projects a:active {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

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

/* ===== Loader ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

/* ===== Layout ===== */
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.sidebar-content {
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: background 0.5s ease;
}

.sidebar-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.profile-info {
  position: relative;
  z-index: 2;
  color: var(--light-text);
}

.profile-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  color: var(--light-text);
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-link:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
  text-decoration: none;
}

.main-content {
  min-height: 100vh;
  background-color: var(--background-color);
  padding-bottom: 2rem;
}

/* ===== Navigation ===== */
.navbar {
  padding: 1rem 0;
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
  z-index: 100;
}

.navbar-nav {
  margin-left: auto;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  position: relative;
  text-decoration: none;
}

.nav-link:hover, 
.nav-link:focus {
  text-decoration: none;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background-color: var(--primary-color);
}

/* ===== Home Section ===== */
.home-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background-color: var(--background-color);
}

.home-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.home-content {
  position: relative;
  z-index: 1;
}

.home-text {
  padding-right: 2rem;
}

.home-text .lead {
  font-size: var(--bs-body-font-size);
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: 2rem;
}

.key-points {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: var(--bs-body-font-size);  
}

.key-point {
  display: flex;
  align-items: center;
}

.key-point i {
  width: 24px;
  text-align: center;
  margin-right: 0.75rem;
}

.key-point span {
  flex: 1;
}

.cta-buttons {
  margin-top: 2rem;
}

.cta-buttons .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.cta-buttons .btn:hover {
  transform: translateY(-2px);
}

.home-image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.home-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: var(--transition);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(74, 111, 165, 0.2), rgba(51, 78, 122, 0.2));
  opacity: 0;
  transition: var(--transition);
}

.home-image-container:hover .image-overlay {
  opacity: 1;
}

.home-image-container:hover .home-image {
  transform: scale(1.05);
}

@media (max-width: 991.98px) {
  .home-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .home-image {
    height: 300px;
  }
}

@media (max-width: 767.98px) {
  .home-section {
    padding: 2rem 0;
  }
  
  .home-card {
    padding: 1.5rem;
  }
  
  .home-text .lead {
    font-size: 1.1rem;
  }
  
  .key-point {
    font-size: 1rem;
  }
  
  .home-image {
    height: 250px;
  }
}

/* ===== Projects Section ===== */
.projects {
  padding: 2rem 0;
}

/* Add padding to project columns */
.projects .col-md-6 {
  padding: 15px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 15px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.project-card a {
  color: var(--text-color);
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
}

.project-info {
  padding: 1.5rem;
  min-height: 200px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-date {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background-color: var(--accent-color);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== About Section ===== */
.about-section {
  padding: 2rem 0;
}

.about-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.section-title {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
}

.about-image {
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: 450px;
  width: 100%;
  object-fit: cover;
}

.about-text {
  margin-top: 1rem;
}

.about-text p {
  margin-bottom: 1.25rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-list span {
  font-weight: 600;
  margin-right: 0.5rem;
  min-width: 80px;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: none;
}

.email-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-decoration: none;
}

.email-link:hover {
  text-decoration: none;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 1.5rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

/* ===== Responsive styles ===== */
@media (max-width: 991.98px) {
  .sidebar {
    height: auto;
    position: relative;
  }
  
  .sidebar-content {
    min-height: 300px;
  }
  
  .profile-info h1 {
    font-size: 2rem;
  }
  
  .project-card img {
    height: 280px;
  }
}

@media (max-width: 767.98px) {
  .projects .col-md-6 {
    padding: 10px;
  }
  
  .project-card img {
    height: 240px;
  }
  
  .project-info {
    padding: 1.25rem;
    min-height: 180px;
  }
  
  .project-info h3 {
    font-size: 1.3rem;
  }
  
  .about-card {
    padding: 1.5rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
} 