/* Define color variables for consistency */
:root {
  --primary-color: #353a52;
  --secondary-color: #0488C1;
  --background-color: #f4f4f9;
  --text-color: #333;
}
* {
  box-sizing: border-box;
}
/* Global Styles */
body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  padding-top: 70px; /* Compensate for fixed navbar */
}


/* Navbar Styles */
.navbar {
  background-color: var(--primary-color);
  padding: 1em;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

.language-select {
  display: flex;
  align-items: center;
}

.flag {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-left: 10px;
}

.navbar a, label {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  text-decoration: underline;
}

/* Container Layout */
.container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 20px;
}
/* Left Pane Styles */
.leftpane {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  margin-right: 20px;
  text-align: center;
}

.leftpane h2 {
  color: var(--primary-color);
}

.circular {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 20px 0;
}


.leftpane hr {
  border: 0;
  height: 1px;
  background: var(--secondary-color);
  margin: 20px 0;
}

.leftpane address {
  font-style: normal;
  line-height: 1.6;
}

/* Right Pane Styles */
.rightpane {
  flex: 2;
  min-width: 300x;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.rightpane a{
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 17px;
  padding: 12px 15px;
  margin-top: 20px;
  font-weight: 400;
  border-radius: 8px;
}


.rightpane p {
  text-align: justify;
}
.rightpane2 {
  flex: 1;
  min-width: 50px;
  float: left;
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  padding-left:8px;
  box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
  text-align: justify;
  margin-bottom: 20px;
}

.skills {
    text-align: center;
    margin: 20px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

.skill-card {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}
.skill-card2 {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.skill-card2 img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
}


#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form label {
  font-weight: bold;
  margin-bottom: 5px;
  color: var(--text-color);
}

#contact-form input, 
#contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}
#contact-form textarea {
  resize: vertical;
}

#contact-form button {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  font-size: 17px;
  padding: 12px 15px;
  margin-top: 20px;
  font-weight: 400;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#contact-form button:hover {
  background-color: #2a2f45;
}


/* Footer Styles */
footer {
  text-align: center;
  padding: 10px;
  background-color: var(--primary-color);
  color: white;
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 100;
}

footer a[href*="github"] {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container, .nvbar {
    width: 100%; 
    margin: 0;
    padding: 15px;
    flex-direction: column;
    align-items: center;
  }
  .language-select {
      display: none;
  }
  .leftpane, .rightpane, .leftpane2, .rightpane2 {
      margin-right: 0;

      width: 100%; 
      margin-bottom: 20px;
  }
  skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }  
}