
/* ==== Y.M. Varma Portfolio: CSS Visual Theme ==== */

/* Color Palette */
:root {
  --bg-light: #F9FAFB;
  --text-dark: #1F2937;
  --primary-blue: #1E3A8A;
  --steel-gray: #64748B;
  --accent-teal: #0EA5E9;
  --accent-orange: #F97316;
  --accent-lime: #84CC16;
  --hover-dark: #1E40AF;
  --bg-dark: #111827;
  --text-light: #E5E7EB;
}

/* Base Layout */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  padding: 0 1rem;
  transition: background-color 0.3s, color 0.3s;
}
/* Smooth fade on load */
body.fade-in {
  animation: fadeIn 1s ease-in;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Font Awesome icons spacing */
h2 i, h1 i, nav i {
  margin-right: 0.5rem;
}

/* Header */
header {
  background-color: var(--primary-blue);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  font-style: italic;
}

/* Navigation */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Section Styling */
section {
  margin: 3rem 0;
}

section h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-teal);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.project-category {
  margin-bottom: 2rem;
}

.project {
  background-color: white;
  border-left: 5px solid var(--accent-teal);
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color 0.3s ease, transform 0.2s ease;
}

.project:hover {
  border-left-color: var(--accent-orange);
  transform: translateY(-5px);
}

.project h4 {
  color: var(--primary-blue);
}

.project a {
  color: var(--accent-teal);
  font-weight: bold;
  text-decoration: none;
}

.project a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.project img {
  margin-top: 1rem;
  border-radius: 4px;
  max-height: 300px;
  object-fit: cover;
  width: 100%;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: var(--accent-teal);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--accent-orange);
}

/* Skills Section */
#skills ul {
  list-style: square;
  padding-left: 1.5rem;
  color: var(--steel-gray);
}

/* Resume & Contact */
#resume a,
#contact a {
  color: var(--primary-blue);
  font-weight: bold;
}

#resume a:hover,
#contact a:hover {
  color: var(--hover-dark);
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--steel-gray);
  color: white;
}

#search {
    text-align: center;
    padding: 2rem 1rem;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInSlideUp 1s ease-out forwards;
    animation-delay: 0.3s;
  }

  @keyframes fadeInSlideUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .search-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: auto;
  }

  #search-box {
    flex: 1 1 60%;
    min-width: 200px;
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  #search-box:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
  }

  .search-form button {
    padding: 0.6rem 1.2rem;
    background-color: #0EA5E9;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .search-form button:hover {
    background-color: #F97316;
  }

  @media screen and (max-width: 600px) {
    .search-form {
      flex-direction: column;
    }

    #search-box {
      width: 100%;
    }
  }
</style>


.video-tile {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-top: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.video-tile iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}

.video-tile h3 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--primary-blue);
}

.video-tile p {
  color: var(--steel-gray);
  font-size: 0.95rem;
}
.map-tile {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  margin-top: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.map-tile iframe {
  width: 100%;
  height: 250px;
  border-radius: 8px;
}

.map-tile h3 {
  margin-top: 0.8rem;
  font-size: 1.1rem;
  color: var(--primary-blue);
}

.map-tile p {
  color: var(--steel-gray);
  font-size: 0.95rem;
}
.github-tile {
  max-width: 600px;
  margin: auto;
  border: 1px solid #eee;
  padding: 1rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: normal;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.project-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.project-card .tools {
  display: block;
  margin: 0.7rem 0;
  font-size: 0.85rem;
  color: var(--steel-gray);
}

.card-links a {
  text-decoration: none;
  background-color: var(--accent-teal);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  margin-right: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.card-links a:hover {
  background-color: var(--accent-orange);
}

/* Light/Dark Mode Toggle */
.toggle-theme {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-teal);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #0f172a;
}

body.dark-mode .project {
  background-color: #1f2937;
  border-left-color: var(--accent-lime);
}

body.dark-mode .project:hover {
  border-left-color: var(--accent-orange);
}

body.dark-mode a {
  color: var(--accent-lime);
}

body.dark-mode .button {
  background-color: var(--accent-lime);
}
