/* ---------- GLOBAL STYLES ---------- */
body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background-color: #f7f9fc;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ---------- HEADER ---------- */
header {
  background-color: #001f3f;
  color: white;
  text-align: center;
  padding: 2em 1em;
  position: relative;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-top: 10px;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


/* Top Navigation Button Bar */
.top-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 0.8rem;
    padding: 15px 10px;
    background: transparent; /* or transparent */
    position: sticky;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(8px); /* smooth modern look */
    box-sizing: border-box;
    overflow-x: hidden;
}

.nav-btn {
    padding: 10px 18px;
    font-size: 15px;
    background: #0A2A43; /* navy blue for brand identity */
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s ease;
    border: 1px solid #0A2A43;
}

.nav-btn:hover {
    background: #003366;
    color: white;
    border: 1px solid #003366;
    transform: translateY(-3px);
}

.nav-btn:active {
    transform: scale(0.95);
}


/* ---------- SECTIONS ---------- */
section {
  max-width: 900px;
  margin: 2em auto;
  padding: 1.5em;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h2 {
  color: #001f3f;
  border-bottom: 2px solid #001f3f;
  padding-bottom: 0.3em;
}

/* ===== ABOUT SECTION ===== */
#about {
  background-color: #f9fafc;
  padding: 60px 20px;
  text-align: center;
}

#about h2 {
  color: #001f3f;
  font-size: 2em;
  margin-bottom: 25px;
  border-bottom: 3px solid #001f3f;
  display: inline-block;
  padding-bottom: 5px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-img {
  width: 100px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #001f3f;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-text {
  max-width: 600px;
  text-align: left;
  line-height: 1.7;
  color: #333;
  font-size: 1.05em;
}

/* ===== PROFESSIONAL SKILLS SECTION ===== */

.professional-skills {
  padding: 80px 20px;
  background-color: #f8f9fb;
  text-align: center;
  font-family: "Poppins", sans-serif;
}

.professional-skills .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a2342;
  margin-bottom: 10px;
}

.professional-skills .section-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 50px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(10, 35, 66, 0.15);
}

.skill-icon {
  font-size: 2rem;
  color: #0a2342;
  margin-bottom: 15px;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0a2342;
  margin-bottom: 10px;
}

.skill-items {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .professional-skills {
    padding: 60px 15px;
  }

  .skill-card {
    padding: 25px 15px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}


/* ---------- RESUME BUTTON ---------- */
#resume {
  text-align: center;
}

#resume .resume-btn {
  display: inline-block;
  margin-top: 10px;
}

.resume-btn {
  background-color: #001f3f;
  color: #fff;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.resume-btn:hover {
  background-color: #004080;
}

/* ===== PROJECTS SECTION ===== */
#projects {
  background-color: #ffffff;
  padding: 70px 20px;
  text-align: center;
}

#projects h2 {
  color: #001f3f;
  font-size: 2em;
  margin-bottom: 30px;
  border-bottom: 3px solid #001f3f;
  display: inline-block;
  padding-bottom: 5px;
}

/* Grid layout for project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

#view-more-btn {
  margin: 30px auto 0 auto; /* centers the button */
  display: block;            /* makes margin auto work */
}

/* Individual project card */
.project-card {
  background-color: #f5f7fa;
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-thumb {
  width: 100%;       /* full width of card */
  max-height: 120px; /* small/fitted height */
  object-fit: cover; /* crop to fit nicely without distortion */
  border-radius: 10px 10px 0 0; /* optional: rounded top corners */
  margin-bottom: 15px; /* spacing between thumbnail and title */
  display: block;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}

.project-card h3 {
  color: #001f3f;
  margin-bottom: 10px;
  font-size: 1.25em;
}

.project-card p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Button inside each card */
.project-btn {
  display: inline-block;
  background-color: #001f3f;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.project-btn:hover {
  background-color: #004080;
} 

/* Hidden projects initially */
.project-hidden {
  display: none;
}

/* ---------- ANALYTICS CHART ---------- */
/* Center the analytics chart */
#analytics {
    text-align: center;
}

.chart-wrapper {
    width: 100%;
    max-width: 600px; /* keeps it clean on desktop */
    margin: 0 auto; /* centers the container */
    padding: 10px;
}

#skillsChart {
    width: 100% !important;   /* force Chart.js to stretch */
    height: auto !important;
}

/*--------------------------------------------*/
/* CONTACT SECTION */ 
.contact-section {
    padding: 70px 20px;
    background: #f2f6fb;
    text-align: center;
}

.contact-section h2 {
    font-size: 2.4rem;
    margin-bottom: 5px;
    color: #003366; /* Theme colour */
}

.contact-tagline {
    font-size: 1.1rem;
    margin-bottom: 35px;
    color: #375a7f;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Cards */
.contact-box {
    background: white;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.9s ease forwards;
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form */
.contact-box form input,
.contact-box form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #b8c5d6;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-box form button {
    width: 100%;
    padding: 12px;
    background: #003366;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.contact-box form button:hover {
    background: #01264d;
}

/* Links */
.contact-box a {
    color: #003366;
    text-decoration: none;
    font-weight: 500;
}

.contact-box a:hover {
    text-decoration: underline;
}

.skill-icon,
.contact-item i,
.social-links a i {
    font-size: 1.9rem;
    color: #004a99; /* brighter navy blue */
    transition: 0.3s ease;
}

.skill-icon:hover,
.social-links a i:hover {
    color: #007bff;
    text-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
    transform: scale(1.15);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 25px rgba(0, 51, 102, 0.18),
        0 0 18px rgba(0, 123, 255, 0.35);
    transition: 0.35s ease;
    border: 1px solid rgba(0, 123, 255, 0.35);
}


/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 22px;
}

.social-links a {
    font-size: 1.9rem;
    color: #375a7f;          /* normal colour */
    transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
}
.social-links a:hover {
    color: #003366;          /* deeper blue on hover */
}

.social-links a:hover {
    transform: scale(1.15);
}


@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.skill-icon,
.contact-item i,
.social-links a i {
    animation: softPulse 3.5s ease-in-out infinite;
}

/*--------------------------------------------*/
/* Global icon colour */
.contact-box i,
.social-links a i,
.contact-box h3 i,
.contact-box p i {
    color: #0056b3 !important; /* navy blue theme */
    transition: 0.3s ease-in-out;
}

/* Glow + lift hover effect */
.contact-box:hover,
.social-links a i:hover,
.contact-box i:hover {
    transform: translateY(-5px);
    text-shadow: 0 0 12px rgba(0, 119, 255, 0.7),
                 0 0 20px rgba(0, 119, 255, 0.5);
}

/* Pulse animation */
@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Apply pulse to all icons */
.contact-box i,
.social-links a i {
    animation: iconPulse 2.5s infinite ease-in-out;
}

/* Contact cards animation */
.contact-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Triggered when visible */
.contact-box.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Contact cards animation */
.contact-box {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Triggered when visible */
.contact-box.fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* RESPONSIVENESS FIX */ 
@media (max-width: 768px) { 
.contact-container { 
grid-template-columns: 1fr;  /* Stack vertically */ 
text-align: center; 
} 
  
.contact-info { 
align-items: center; /* Fix alignment on mobile */ 
} 
} 

/* ---------- FADE-IN EFFECT ---------- */ 
.fade-hidden { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: all 0.6s ease-out;
} 

.visible { 
  opacity: 1; 
  transform: translateY(0);
} 

/* ---------- RESPONSIVENESS ---------- */ 

@media (max-width: 768px) { 
  header { 
    padding: 1.5em 1em; 
  } 
  
  .profile-pic { 
    width: 110px; 
    height: 110px; 
  } 
  
  nav a { 
  display: inline-block; 
  margin: 0.5em;
  } 
  
  section { 
    margin: 1em; 
    padding: 1em; 
  } 
  
  .projects-grid { 
    grid-template-columns: 1fr;
  } }

/* ---------- FOOTER ---------- */ 
.site-footer { 
  width: 100%; 
  text-align: center; 
  padding: 15px 0; 
  background-color: #001f3f; 
  color: white; 
  font-size: 0.9rem; 
  margin-top: 40px;
}


