/* ===================================================
    THEME VARIABLES & GLOBAL STYLES
=================================================== */
:root {
  --primary-color: #00d4ff; /* Accent Color (Neon Cyan) */
  --bg-color: #0d0d0d;
  --text-color: #fff;
  --card-bg: #1a1a1a;
  --transition-speed: 0.15s;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, Helvetica, sans-serif; 
  transition: all var(--transition-speed) ease;
}

body {
  color: var(--text-color);
  background-color: #281c1c ;
  line-height: 2;
  scroll-behavior: smooth; 
}

/* ===================================================
    LAYOUT & SECTIONS
=================================================== */
.section {
  padding: 80px 10%; 
  min-height: 100vh;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}
.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 32px;
  text-align: center; /* Default: Center all titles */
  margin-bottom: 30px;
  color: var(--primary-color);
}

/* ===================================================
    HEADER / NAVIGATION (Logo Left, Nav Right)
=================================================== */
header {
  width: 100%;
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    max-width: 820px; 
    width: 90%; 
    margin: 0 auto; 
    padding: 0;
}

.logo {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 20px;
}
nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}
nav ul li a.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  border-radius: 2px;
}

/* ===================================================
    ABOUT (HERO) SECTION: Profile Left, Content Right (Alignment retained)
=================================================== */
.hero-section {
  display: flex;
  justify-content: center; 
  align-items: center;
  padding-top: 100px;
}

.hero-main-content-wrapper {
    display: flex;
    flex-direction: column; 
    gap: 90px;
    align-items: center;
    width: 100%;
    max-width: 900px; 
    text-align: center;
}

/* Desktop Layout: Profile Left Alignment */
@media (min-width: 900px) {
    .hero-main-content-wrapper {
        flex-direction: row; 
        align-items: flex-start;
        justify-content: flex-start; 
        text-align: justify;
    }
    .profile-area {
        max-width: 30%;
        text-align: center;
        align-self: flex-start; 
    }
    .hero-content-wrapper {
        max-width: 65%;
        margin-left: 50px; 
    }
    
    /* 🎯 FIX: TARGET ONLY THE TITLE INSIDE THE LEFT-ALIGNED HERO CONTENT */
    .hero-content-wrapper .section-title {
        text-align: left; 
    }
    /* The general .section-title remains centered for all other sections */
}

/* Profile Image Styles */
.profile-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.6);
  animation: float 3s ease-in-out infinite; 
}
.role-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 15px;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

/* ** SOCIAL LINKS BOX (Restored Design) ** */
.social-links-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center; /* Mobile Default Center */
}
@media (min-width: 900px) {
    .social-links-box {
        justify-content: flex-start; /* Desktop Left Align */
    }
}
.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #333;
    font-weight: 600;
}
.social-link i {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 1.2rem;
}
.social-link:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.5);
}
.social-link:hover i {
    color: var(--bg-color);
}
/* End Social Links Box */

/* ===================================================
    EXPERIENCE SECTION
=================================================== */
#experience {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}
.experience-card {
    background-color: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    margin: 15px auto;
    border-radius: 8px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}
.experience-card h4 {
    margin-bottom: 5px;
    color: #f4e40b;
}
.experience-card .company {
    font-style: italic;
    margin-bottom: 10px;
    color: #aaa;
}
.experience-card .tenure {
    font-size: 0.9em;
    font-weight: normal;
    color: #888;
}
.experience-card ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    font-size: 0.95rem;
}

/* ===================================================
    SKILLS SECTION (Restored Design)
=================================================== */
#skills {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}
.skills-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 800px; 
  width: 100%;
}
.skills-list li {
  padding: 10px 15px;
  font-size: 16px;
  background-color: var(--card-bg);
  border: 1px solid #333; 
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.skills-list li:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
    transform: translateY(-5px) scale(1.05); 
    border-color: var(--primary-color); 
}


/* ===================================================
    PROJECTS SECTION
=================================================== */
#projects {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}
.projects-container {
    max-width: 900px;
    width: 100%;
}
.project-card {
  background-color: var(--card-bg);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background-color: #222; 
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}
.project-card h4 {
    color: #f4e40b;
    margin-bottom: 8px;
}
.project-card p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.project-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: 5px;
    font-size: 0.95rem;
}
.project-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* ===================================================
    CERTIFICATIONS Section (Restored Design)
=================================================== */
#certs {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}
.cert-container {
  display: flex;
  flex-wrap: wrap; 
  justify-content: left;
  gap: 30px; 
  margin-top: 20px;
  max-width: 900px; 
  width: 100%;
}
.cert-container img {
  width: 180px; 
  height: auto;
  border-radius: 6px;
  /* border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.cert-container img:hover {
    transform: scale(1.15); 
    box-shadow: 0 0 30px var(--primary-color);
}


/* ===================================================
    CONTACT Section
=================================================== */

/* 1. SECTION CONTAINER STYLES: 
   This ensures block-level children (like h2 and the list block) are centered */
#contact.section {
    padding: 80px 10%; 
    text-align: center; /* Ensures the h2 and the entire list block are centered */
}

/* 2. INTRODUCTORY TEXT ALIGNMENT: 
   Makes the paragraph align to the left and match the list's width */
.contact-lead {
    /* Must match the max-width of .contact-list */
    max-width: 500px; 
    /* Centers the paragraph block itself within the section */
    margin: 0 auto 20px auto; 
    /* Aligns the text *inside* the centered block to the left, 
       lining it up with the contact items below */
    text-align: left; 
    
    /* Applying theme styles */
    font-size: 1.1em;
    color: var(--text-color); 
    line-height: 1.5;
}

.contact-list {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    /* Use the primary color for the divider to match the theme */
    border-bottom: 1px solid rgba(0, 212, 255, 0.3); 
}

.contact-item:last-child {
    border-bottom: none; 
}

.icon {
    font-size: 1.2em;
    margin-right: 15px;
    color: var(--primary-color); 
}

.contact-label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 80px; 
}

.contact-link {
    color: var(--primary-color); 
    text-decoration: none; 
}

.contact-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Add this new style to your CSS file */
#visitor-counter {
    color: #f4e40b; /* Yellow color */
    font-weight: bold;
}

/* Also, change the eye icon's color to yellow for consistency */
.visitor-box i {
    color: #f4e40b; /* Yellow color for the eye icon */
    margin-right: 5px;
}
