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

/* Base Styles */
html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #0260d1 0%, #01489e 50%, #00356d 100%);

  color: #0f1b2d;
  line-height: 1.7;
}

/* Headings */
h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  color: #00356d
}


header {
  background: linear-gradient(180deg, #013b82, #012b63);
  padding: 0.6rem 0; /* slightly smaller now that logo is controlled */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo img {
  height: 80px;  /* ← the key fix */
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 15pt;
  text-decoration: underline;
  color: #ffffff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background-color: #0f1b2d;
  color: white;
}



section {
  padding: 1rem 1rem;
  max-width: 1000px;
  margin: 2rem auto;
  background-color: #f3f7fc; 
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Base box styles */
.project-box {
  display: block;
  padding: 2rem;
  background-color: #e3ecf7; 
  color: #222;
  text-decoration: none;
  border-radius: 12px;
justify-content: center;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Hover lift effect */
.project-box:hover {
  background-color: #00356d;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  color: white;
}

/* Image-card layout */
.project-card {
  padding: 0;
  overflow: hidden;
}

/* Image wrapper (required for zoom crop) */
.project-card .project-image {
  overflow: hidden;
  text-align: center;
}

/* Image base styling */
.project-card .project-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.4s ease;
}

/* Title styling */
.project-card h3 {
  padding: 1.2rem;
  font-size: 1.2rem;
  margin: 0;
  color: #00356d;
  transition: color 0.3s;
}

/* Zoom + title color change on hover */
.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card:hover h3 {
  color: white;
}





@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.hideAll, .response-container {
    display: none;
}

.form-container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #00356d;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 255, 200, 0.25);
    border: 1px solid rgb(255, 255, 255);
    animation: floatUp 0.6s ease-out;
}

.form-container label {
    color: white;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-container input,
.form-container textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    background: #0f1b2d;
    border: 1px solid #333;
    border-radius: 8px;
    color: #eee;
    font-size: 15px;
    transition: 0.25s ease;
}

.form-container input:focus,
.form-container textarea:focus {
    border-color: rgb(255, 255, 255);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    outline: none;
}

#send-button {
    margin-top: 10px;
    background: linear-gradient(135deg, #ffffff, #fefefe);
    border: none;
    padding: 14px 0;
    color: #111;
    width: 100%;
    font-weight: 700;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s ease;
}

#send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgb(255, 255, 255);
}

#send-button:active {
    transform: translateY(1px);
}

/* Response Container */
.response-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: #0f1b2d;
    border-radius: 14px;
    border-left: 4px solid #ffffff;
    color: #ccc;
    animation: fadeIn 0.5s ease-in;
}

.response-container h4 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}

/* Animations */
@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

ul {
  text-align: center;
  font-size: 20pt;
}

/* About Section */
.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.about-text {
  flex: 2;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #0f1b2d;
}

.about-photo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-photo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e3ecf7;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile layout */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-photo img {
    width: 180px;
    height: 180px;
  }
}

p {
  color: #00356d
}

#skills {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem 2.5rem;
  background: #f4f6fb;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

#skills h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #00356d;
}

#skills ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 0;
}

#skills li {
  background: #e7ecf5;
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: #00356d;
}

#skills li .icon-box {
  width: 100%;
  height: 90px;   /* uniform height for all icons */
  display: flex;
  align-items: center;
  justify-content: center;
}

#skills li img {
  max-height: 70px;
  max-width: 90%;
  object-fit: contain;
  display: block;
}

/* Contact intro text */
.contact-intro {
  max-width: 600px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #00356d;
  opacity: 0.85;
}

/* Contact details block */
.contact-details {
  margin-top: 2.5rem;
  padding: 1.8rem;
  background: #f3f6fb;
  border-radius: 16px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Contact details heading */
.contact-details h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  color: #00356d;
  font-weight: 600;
}

/* Contact details list */
.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #00356d;
  opacity: 0.9;
}

.contact-details strong {
  color: #00356d;
  font-weight: 600;
}
