/* Main body and layout styles */
body {
  background-image: url('images/bgImage.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;
  background-color: #1a1a1a;
  overflow-x: hidden;
}

h1 {
  color: white;
  margin: 0;
  font-size: 2.5em;
  font-weight: bold;
  width: auto;
  font-family: 'Georgia', serif;
}

h2 {
  color: #87CEEB;
  font-size: 1.8em;
  text-align: center;
  margin: 20px 0;
  width: 100%;
  font-family: 'Verdana', sans-serif;
}

h3 {
  color: white;
  font-size: 1.4em;
  text-align: center;
  margin: 15px 0;
  width: 100%;
}

img {
  max-width: 300px;
  border-radius: 10px;
  height: auto;
  display: block;
  margin: 0 auto;
}

p {
  color: white;
  font-size: 20px;
  text-align: center;
  line-height: 1.6;
  width: 100%;
}

nav {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  text-align: center;
  width: 100%;
}

header {
  background-image: url('images/header.png');
  background-size: cover;
  background-repeat: no-repeat;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header div:first-child {
  display: flex;
  align-items: center;
}

header div:first-child svg {
  margin-left: 10px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Normal (unselected) state */
.nav-links a {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 16px;
  border: 1px solid transparent;
}

/* Hover state */
.nav-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Selected state */
.nav-links a.selected {
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(255, 255, 255, 0.2);
  font-weight: bold;
}

footer {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  margin-top: 30px;
  width: 100%;
}

hr {
  width: 60%;
  height: 5px;
  background-color: white;
  border: none;
  margin: 30px auto;
}

/* Flexbox container and section layouts */
.main-container {
  display: flex;
  padding: 20px;
}

.profile-section {
  flex: 1;
  text-align: center;
}

.about-section {
  flex: 1;
}

.desk-image-container {
  flex: 1;
  text-align: center;
  margin-top: 30px;
}

.bottom-content {
  text-align: center;
  margin-bottom: 30px;
  color: white;
}

.bottom-content p {
  font-size: 25px;
  margin-left: 30px;
}

.back-link {
  color: white;
  font-size: 15px;
}

.social-icon {
  width: 30px;
  height: 30px;
  margin-right: 20px;
}

footer p {
  font-size: 15px;
  margin-left: 30px;
}

footer a {
  color: white;
  font-size: 15px;
  margin-left: 30px;
}

main {
  padding: 20px;
  margin: 10px;
}

aside {
  padding: 15px;
  margin: 10px;
}

#wrapper {
  background-color: transparent;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden;
} 

#social {
  color: white;
  background-color: transparent;
  margin-top: 15px;
}

#column1 {
  background-color: #FFC;
  width: 60%;
}

#column2 {
  background-color: #FCF;
  width: 30%;
}

.important {
  color: white;
}

.highlight {
  background-color: rgb(71, 85, 105); 
}

/* Resume responsive column layout */
.resume-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.column {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.column h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  color: white;
  font-size: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
}

.education-section,
.experience-section {
  color: white;
  line-height: 1.6;
}

/* Profile header with image and address */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Recommendation list styling */
.recommendation-list {
  list-style-type: none;
  padding-left: 0;
  text-align: center;
}

.recommendation-list li {
  background-image: url('images/gilsalu.png');
  background-size: 30px 30px;
  background-repeat: no-repeat;
  background-position: center left;
  padding-left: 40px;
  margin: 10px auto;
  color: white;
  font-size: 18px;
  line-height: 1.6;
  display: inline-block;
  text-align: left;
}

/* References list styling */
.references-list {
  list-style-type: lower-alpha;
  color: white;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  padding-left: 0;
}

.references-list li {
  margin: 10px 0;
  display: block;
}

.references-list a {
  color: #87CEEB;
  text-decoration: none;
}

.references-list a:hover {
  color: #ADD8E6;
  text-decoration: underline;
}

/* Certifications description list styling */
.certifications-list {
  color: white;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  padding-left: 0;
}

.certifications-list dt {
  font-weight: bold;
  color: #87CEEB;
  margin-top: 15px;
  margin-bottom: 5px;
  font-size: 20px;
}

.certifications-list dd {
  margin-left: 0;
  margin-bottom: 10px;
  color: white;
  font-style: italic;
}

/* Enhanced Transcript Layout */
.transcript-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.transcript-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.transcript-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}


.card-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.card-header h3 {
  margin: 0 0 10px 0;
  font-size: 1.3em;
  color: white;
  text-align: center;
}

.institution {
  color: #87CEEB;
  font-size: 0.9em;
  font-style: italic;
}

.card-content {
  padding: 20px;
}

/* Course List Styling */
.course-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.course-item:last-child {
  border-bottom: none;
}

.course-name {
  color: white;
  font-size: 16px;
  flex: 1;
}

.grade {
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
}

.grade.excellent {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.grade.pending {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

/* Recommendation Item Styling */
.recommendation-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 10px;
}

.recommendation-avatar {
  font-size: 2em;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  overflow: hidden;
}

.professor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.recommendation-details {
  flex: 1;
}

.recommendation-details strong {
  display: block;
  color: white;
  font-size: 18px;
  margin-bottom: 5px;
}

.recommendation-details span {
  color: #87CEEB;
  font-size: 14px;
}

/* Reference Item Styling */
.reference-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
}


.reference-details {
  flex: 1;
}

.reference-details strong {
  display: block;
  color: white;
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-info, .contact-link {
  color: #87CEEB;
  font-size: 14px;
  text-decoration: none;
}

.contact-link:hover {
  color: #ADD8E6;
  text-decoration: underline;
}

/* Certification Item Styling */
.certification-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
}


.cert-details {
  flex: 1;
}

.cert-details strong {
  display: block;
  color: white;
  font-size: 16px;
  margin-bottom: 5px;
}

.cert-status {
  color: #87CEEB;
  font-size: 12px;
  font-style: italic;
}

/* Footer Styling */
.transcript-footer {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.footer-text {
  margin: 0;
  font-size: 16px;
  color: white;
}

/* Services grid for portfolio */
.services {
  max-width: 1200px;
  margin: 30px auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.service-icon {
  width: 240px;
  height: 240px;
  margin: 0 auto 12px auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Box class for newsletter sections */
.box {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  text-align: center;
}

/* Blockquote styling */
blockquote {
  border-left: 4px solid #87CEEB;
  padding: 15px 20px;
  margin: 30px 0;
  background-color: rgba(135, 206, 235, 0.1);
  font-style: italic;
  color: #E0E0E0;
  border-radius: 5px;
}

blockquote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.8;
}

/* Justified text class */
.justified-text {
  text-align: justify;
  line-height: 1.8;
  margin: 20px 0;
}

/* First letter styling */
.justified-text:first-letter {
  font-size: 3em;
  font-weight: bold;
  color: #87CEEB;
  float: left;
  line-height: 1;
  margin: 5px 10px 0 0;
  font-family: 'Georgia', serif;
}

/* Infobar with inverse background */
.infobar {
  background-color: #87CEEB;
  color: #1a1a1a;
  padding: 20px 30px;
  margin: 30px 0;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.infobar p {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
}

/* Responsive Design */
@media (max-width: 768px) {
  .transcript-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .transcript-content {
    padding: 15px;
  }
  
  .card-header, .card-content {
    padding: 15px;
  }
  
  .course-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .grade {
    align-self: flex-end;
  }
  
  /* Resume responsive adjustments */
  .resume-content {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .column {
    padding: 15px;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .profile-pic {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .resume-content {
    gap: 10px;
  }
  
  .column {
    padding: 10px;
  }
  
  .column h2 {
    font-size: 1.3em;
  }
  
  .column h3 {
    font-size: 1.2em;
  }
}

/* Table styling to match site design */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

/* Table header styling */
th {
  text-align: center;
  background: linear-gradient(135deg, #87CEEB, #5F9EA0);
  color: #1a1a1a;
  padding: 20px;
  font-size: 1.8em;
  font-weight: bold;
  font-family: 'Georgia', serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

/* Table data cell styling */
td {
  padding: 15px;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 16px;
}

/* Remove border from last row */
tr:last-child td {
  border-bottom: none;
}

/* Form input styling */
input[type="text"], 
input[type="email"], 
select, 
textarea {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

input[type="text"]:focus, 
input[type="email"]:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: #87CEEB;
  box-shadow: 0 0 5px rgba(135, 206, 235, 0.5);
}

/* Button styling */
input[type="submit"], 
input[type="reset"] {
  padding: 10px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(135, 206, 235, 0.2);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="submit"]:hover, 
input[type="reset"]:hover {
  background-color: rgba(135, 206, 235, 0.4);
  border-color: #87CEEB;
  transform: translateY(-1px);
}

/* Radio button and checkbox styling */
input[type="radio"], 
input[type="checkbox"] {
  margin-right: 8px;
  margin-left: 15px;
}

label {
  color: white;
  font-size: 16px;
  margin-right: 20px;
}

/* Required field asterisk */
.required {
  color: red;
  font-weight: bold;
}