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

body.light-mode {
  background-color: #0f172a;
  color: #ffffff;
}
header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background-color: rgb(0, 77, 128);
    color: white;
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h2, h3 {
  color: #ff4d6d; 
}
header nav{
    margin-top: 10px;
}
header h1{
    font-size: 2rem;
    margin-bottom: 10px;
}

.tagline {
    color: #aaaaaa;
    font-size: 1rem;
    margin-bottom: 16px;
}
nav a{
    color:  #cbd5e1;;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
    display: inline;
    padding: 6px 12px;
    border-radius: 4px;
   transition: color 0.3s ease;
}
nav a:hover {
    background-color: rgba(255, 77, 109, 0.2);
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.3);
    color: #ffffff;
}

section {
    padding: 40px 20px;
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    color: #1d1d1f;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #e94560;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);

}
h2 {
    margin-bottom: 15px;
    color: #e94560;
    font-size: 1.5rem;
}
p {
    color: #374151;;
    line-height: 1.7;
}
footer{
    text-align: center;
    padding: 20px;
    background-color: #16213e;
    color: #e94560;
    margin-top: 20px;
    border-top: 3px solid #e94560;
}

@media (max-width:600px) {
    header h1 {
        font-size: 1.5rem;
    }
    nav a {
        display: block;
        margin: 6px 0;
    }
    
    section {
        padding: 20px 15px;
        margin: 12px auto;
    }
    h2 {
        font-size: 1.2rem;

    }
    footer {
        font-size: 0.9rem;
    };
}

.hidden {
    display: none;
}

.project-card {
  background-color: #f8fbff;
  border: 1px solid rgba(0, 119, 237, 0.15);
  box-shadow: 0 3px 10px rgba(0, 119, 237, 0.08);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  border-color: #e94560;
  box-shadow: 0 6px 12px rgba(255, 77, 109, 0.4);
}

.toggle-btn {
  background-color: #0077ed;
  color: #fff;
  padding: 2px 35px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  transition: background-color 0.7s ease;
}


.error {
    color: red;
    font-size: 0.88rem;
    margin-top: 4px;
    display: block;
}

#success-message {
    color: lightgreen;
    margin-top: 10px;
}
button {
  background-color: #ff4d6d; 
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
   background-color: #005bb5;
}

#contact input,
#contact textarea {
  background-color: #f3f4f6;
  color: #1d1d1f;
  border: 1px solid #d1d5db;
  padding: 10px;
  border-radius: 6px;
  transition: all 0.25s ease;
}

#contact input:focus,
#contact textarea:focus {
  outline: none;
  border-color: #0077ed;
  box-shadow: 0 0 0 2px rgba(0, 119, 237, 0.15);
}

html {
    scroll-behavior: smooth;
}

.light-mode {
  background-color: #f5f5f7;
  color: #1d1d1f;
}
.light-mode section {
  background-color: #ffffff;
  color: #1d1d1f;
  border-left: 4px solid #0077ed;
}

.header-center {
    grid-column: 2;
    text-align: center;
}
.light-mode .card {
  background-color: #ffffff;
  color: #1a1a2e;
}

#darkModeToggle {
   grid-column: 3;
   justify-self: end;

   background-color: #ff4d6d;
   color: wheat;
   border: none;
   padding: 8px 16px;
   border-radius: 20px;
   cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 241, 242, 0.15);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 4px;
  font-size: 0.9rem;
}

.skill-badge i {
  font-size: 1.3rem;  
}

body, section {
  transition: all 0.3s ease;
}

#contact button {
  background-color: #ff4d6d;
  color: white;
  border-radius: 6px;
  padding: 10px;
  font-weight: 600;
}

#contact button:hover {
  background-color: #e11d48;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.social-links a {
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: 0.25s ease;
}


.social-links a:first-child {
  background-color: #1f2937;
  color: white;
}

.social-links a:last-child {
  background-color: #0077b5;
  color: white;
}

.social-links a:hover {
  transform: translateY(-7px);
}
