:root {
  --primary-color: #0093d2;
  --title-color-dark: #1a202c;
  --title-color-light: #b1bfce;
  --accent-color: #59cafa;
  --text-color: #4a5568;
  --light-bg: #f7fafc;
  --dark-bg: #2d3748;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  color: var(--text-color);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fcfcfc;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--title-color-dark);
}

h1.light, h2.light, h3.light, h4.light, h5.light, h6.light {
  color: var(--title-color-light);
}

.main-background-color {
  background: var(--primary-color);
}

.logo-container {
  position: absolute;
  left: 20px;
}

.user_header {
  font-size: medium;
  text-align: center;
}

.margin {
  max-width: 90%;
  margin-left: 5%;
  margin-right: 5%;
}

.top_header {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
  box-shadow: var(--shadow-md);

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.paraline {
  background: var(--primary-color);
  color: var(--white);
  font-weight: bold;
  padding: 10px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.one-line-table {
  margin-left: 5%;
  margin-right: 5%;
  width: 90%;
}

.grid-container {
  display: grid;
  gap: 10px;
}

.link {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.h4-form {
  margin: 0;
}

.clickable {
  cursor: pointer;
}

.hidden-button {
  background: inherit;
  border: none;
  color: inherit;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
}

.maquette-paragraph {
  margin-top: 10px;
  margin-bottom: 10px;
}

.maquette-table {
  margin-top: 10px;
  margin-bottom: 50px;
}

.maquette-cell {
  width: 25%;
}

.maquette-cell-empty {
  width: 25%;
  background: #ef292986;
}

.maquette-cell-dead {
  width: 25%;
  background: #000000cb;
}

.modal-line {
  border-bottom: 1px solid #737373;
}

.maquette-icon {
  width: 4vw;
  min-width: 30px;
  height: 4vw;
  min-height: 30px;
  background: white;
}

/* Modern Portfolio Additions */

.w3-button {
  transition: all 0.3s ease;
  border-radius: 6px;
}

.w3-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.w3-light-grey {
  background-color: var(--light-bg) !important;
}

.w3-dark-grey {
  background-color: var(--dark-bg) !important;
  color: var(--white) !important;
}

/* Hero Section Tweaks */
.w3-jumbo {
  font-weight: 800;
  letter-spacing: -1px;
}

/* Section Spacing */
.w3-padding-64 {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}

.maincontent {
  flex: 1;
}

/* Projects page enhancements */
.projects-header {
  padding: 120px 16px;
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  box-shadow: var(--shadow-md);
}
.projects-header h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  letter-spacing: -1px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 40px 0;
}

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(0,0,0,0.04);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  height: 220px;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

.project-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--title-color-dark);
}

.project-card-desc {
  color: #718096;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tag {
  background: #edf2f7;
  color: var(--title-color-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.project-tag:hover {
  background: var(--primary-color);
  color: white;
}

.project-card-footer {
  padding: 20px 25px;
  background: #f7fafc;
  border-top: 1px solid #edf2f7;
}

.btn-project {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: var(--title-color-dark);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.btn-project:hover {
  background: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0,147,210,0.25);
}

.w3-button {
  cursor: pointer;
}

/* Modal Enhancements */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
}

.custom-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: none;
  width: 90%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.4s;
  position: relative;
}

@keyframes modalFadeIn {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

.modal-header {
  padding: 20px 30px;
  background: var(--title-color-dark);
  color: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  color: white;
}

.modal-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--accent-color);
}

.modal-body {
  padding: 30px;
  color: var(--text-color);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.modal-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: var(--shadow-sm);
}

.modal-gallery img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* Contact Page */
.contact-header {
  padding: 120px 16px;
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  box-shadow: var(--shadow-md);
}
.contact-header h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  letter-spacing: -1px;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--title-color-dark);
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    background-color: #fff;
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,147,210,0.2);
}

/* Dashboard */
.dashboard-container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(0,0,0,0.04);
}

.dashboard-header {
    padding: 20px 30px;
    background: #f7fafc;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h3, .dashboard-header h2 {
    margin: 0;
    color: var(--title-color-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.dashboard-body {
    padding: 30px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.dashboard-table th {
    text-align: left;
    padding: 15px;
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.dashboard-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: var(--text-color);
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

.dashboard-table tr:hover td {
    background-color: #f8fafc;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 5px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.btn-edit {
    background: #fff3cd;
    color: #856404;
}
.btn-edit:hover { background: #ffeeba; }

.btn-delete {
    background: #f8d7da;
    color: #721c24;
}
.btn-delete:hover { background: #f5c6cb; }

.btn-primary {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary:hover {
    background: #007bb5;
    box-shadow: 0 4px 10px rgba(0,147,210,0.25);
}

/* Mentions Page */
.mentions-header {
  padding: 120px 16px;
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  box-shadow: var(--shadow-md);
}
.mentions-header h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  font-weight: 700;
  letter-spacing: -1px;
}

.mentions-content h2 {
    margin-top: 40px;
    color: var(--title-color-dark);
    font-weight: 700;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

/* Home Page */
.home-header {
  padding: 96px 16px;
  background: linear-gradient(to right, #2c3e50, #4ca1af);
}

.home-header h1 {
  text-shadow: 1px 1px 0 #444;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 10px;
}

.tag-item {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 20px;
  width: 260px;
  text-align: left;
  transition: all 0.3s ease;
  color: #fff;
}

.tag-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tag-header {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

.tag-header i {
  color: var(--accent-color);
}

.tag-body {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}

.university-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.university-logo {
  width: 75%;
}

.university-text {
  text-align: left;
}
