/* === MODERN STYLESHEET === */

/* 1. ROOT VARIABLES & GLOBAL STYLES
-------------------------------------------------- */
:root {
    /* --primary-color: #4a90e2; A modern, friendly blue */
    --primary-color: rgb(22, 22, 150); /* A modern, friendly blue */
    --primary-hover: #357abd; /* A darker shade for hover */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-main: #f8f9fa; /* Off-white background */
    --bg-nav: rgba(255, 255, 255, 0.85); /* Semi-transparent for nav */
    --border-color: #e0e0e0;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 12px 36px rgba(0, 0, 0, 0.1);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Quicksand", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
}

section {
    padding: 6rem 5vw;
}

/* 2. NAVIGATION BAR
-------------------------------------------------- */
.navSec {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5vw;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.maxLogo {
    height: 60px;
    /* border-radius: var(--border-radius-sm); */
}

.navSec .menu {
    display: flex;
    gap: 2rem;
}

.navSec .subMenu {
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navSec .subMenu::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navSec .subMenu:hover {
    color: var(--primary-color);
}

.navSec .subMenu:hover::after {
    width: 100%;
}

/* 3. HERO SECTION
-------------------------------------------------- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.mainDiv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    width: 100%;
    padding: 0 5vw;
}

.Text {
    width: 55%;
}

.max-tagline{
    /* display: flex;
    justify-content: left;
    align-items: left; */

    font: bolder;
    font-weight: 500;
}

.sideImage {
    width: 45%;
    text-align: center;
}

.sideImage img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
}

.headingText h2 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.introText {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.profiles {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.linkedin {
  color: #0874b4;
}

.github{
  color: black;
}

.profiles ion-icon, .profiles svg, .profiles img {
    font-size: 2.5rem;
    /* color: var(--text-light); */
    transition: transform 0.3s ease, color 0.3s ease;
}

.profiles ion-icon:hover, .profiles svg:hover, .profiles img:hover {
    transform: scale(1.1);
    /* color: var(--primary-color); */
}
/* .profiles .linkedin:hover { color: #0077b5; }
.profiles .gmail:hover { color: #DB4437; } */


.heroButtons {
    display: flex;
    gap: 1rem;
}

.downloadResumeLink {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.downloadResumeLink:nth-child(1) {
    background-color: var(--primary-color);
    color: white;
}
.downloadResumeLink:nth-child(2) {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.downloadResumeLink:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* 4. CONTENT SECTIONS (Skills, Proficiency, etc.)
-------------------------------------------------- */
.content-section {
    padding: 6rem 5vw;
    background-color: var(--bg-main);
    margin: 2rem 0;
}

.content-section .headingText h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.content-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: var(--text-light);
    line-height: 1.6;
}

/* What I Do Section */
#skills-icons {
    gap: 5rem;
}
#skills-icons .profiles {
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
#skills-icons .profiles > * {
    font-size: 2.5rem;
}
/* 
#skillsImage{
    height: 500%;
    width: 500%;
} */

#mongodb, #expressjs, #tailwind, #postman {
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}
#mongodb:hover, #expressjs:hover, #tailwind:hover, #postman:hover {
    transform: scale(1.1);
}

#html {
  color: #e54c21;
}

#css {
  color: #264de4;
}

#js {
  color: #f0db4f;
}

#react {
  color: #00dafd;
}

#nodejs {
  color: #529f41;
}

.introText dl {
    list-style-type: none;
}
.introText dd {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}
.introText dd::before {
    content: '⚡️';
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* Proficiency Section */
.headingText h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#profText {
    width: 55%;
}
#proficiency {
    width: 45%;
}
.progressBar {
    margin-bottom: 1.5rem;
}
.progressBar label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}
.progressBar progress {
    width: 100%;
    height: 12px;
    border-radius: 10px;
    border: none;
    overflow: hidden;
}
progress[value]::-webkit-progress-bar {
    background-color: #e9ecef;
}
progress[value]::-webkit-progress-value {
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* 5. PROJECTS & ACHIEVEMENTS
-------------------------------------------------- */
.bigProjects, .achievement {
    background-color: var(--bg-main);
    /* padding: 6rem 5vw; */
    padding: 6rem;
    padding-bottom: 4rem;
}
.bigProjects .headingText h3, .achievement .headingText h3 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.bigProjects .cardDes, .achivDes {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
    color: var(--text-light);
    line-height: 1.6;
}

/* Project Cards */
.projectImage {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.img {
    width: 320px;
    height: 320px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
}

/* Achievement Cards */
.certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.certCard {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.certCard:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}
.certImage {
    height: 80px;
    margin-bottom: 1.5rem;
}
.certImage img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.certHead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.certDesc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Makes cards equal height */
}
.certFoot {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: auto;
}
.certFoot a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.certFoot a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.moreProjectsContainer {
    text-align: center;
    margin-top: 4rem;
}
.moreProjects {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.moreProjects:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* 6. CONTACT SECTION
-------------------------------------------------- */
/* #about.mainDiv {
    background: white;
    padding: 6rem 5vw;
}
#about .aboutLeft {
    width: 55%;
}
#about .aboutRight {
    width: 40%;
    box-shadow: none;
    padding: 0;
}
.aboutProfileImg {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: var(--shadow-medium);
}
#about .headingText h3 {
    font-size: 2.5rem;
}
#about .achivDes {
    text-align: left;
    margin: 0 0 2rem 0;
    max-width: 100%;
}
#aboutHead h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.aboutText h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.aboutText h6 ion-icon {
    vertical-align: middle;
    margin-right: 0.5rem;
    color: var(--primary-color);
}
#about .aboutProf {
    margin-left: 0;
} */
 /* .blog {
  margin-bottom: 7%;
  margin-right: 2%;
}

.blog .headingText {
  margin-bottom: 0%;
  margin-left: 9%;
}

.blog .allCard {
  margin-left: 3%;
  margin-right: 3%;
}

.blog .cardHead a {
  text-decoration: none;
  color: var(--textColor);
}

#about .achivDes {
  margin-bottom: 0%;
}

#about {
  display: flex;
}

#about .aboutLeft {
  width: 74%;
}

.aboutRight {
  box-shadow: 3px 3px 5px 3px var(--textColor2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 2%;
  padding-right: 2%;
}

.aboutProfileImg {
  width: 400px;
  height: 400px;
  border-radius: 50%;
}

.aboutContain {
  margin-top: 0%;
  margin-left: 7%;
}

.aboutContain .cardHead {
  margin: 0%;
}

#aboutHead h4 {
  font-size: 1.5rem;
  justify-content: left;
}

.aboutText {
  margin: 2%;
}

.aboutText h6 {
  font-size: 1.2rem;
  font-weight: 500;

  justify-content: left;
}

.aboutIcon {
  font-size: 2rem;
  margin-right: 1.4%;
  cursor: pointer;
}

.aboutProf {
  margin-left: 2%;
} */

/* === CONTACT / ABOUT SECTION STYLING === */

/* Main container for the "About" section */
.about {
    display: flex; /* Creates the two-column layout */
    align-items: center; /* Vertically aligns the text and image */
    justify-content: space-between; /* Pushes the columns to the edges */
    gap: 4rem; /* Adds space between the columns */
    /* padding: 6rem 5vw; Adds ample padding around the content */
    background-color: var(--bg-main); /* White background for this section */
    /* background-color: #ffffff; White background for this section */
    /* border-radius: var(--border-radius-md); Softly rounded corners */
    /* box-shadow: var(--shadow-soft); A subtle shadow to lift it off the page */
    margin-top: 4rem;
    margin-left: 5rem; /*Adds space above and below the section */
    margin-bottom: 5rem;
    overflow: hidden; /* Ensures nothing spills out */
}

/* Left column containing all the text */
.aboutLeft {
    width: 60%; /* Takes up more space */
    /* max-width: 700px; */
}

/* Right column for the profile image */
.aboutRight {
    width: 40%; /* Takes up less space */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Styling for the main heading "Reach out to me!" */
.headingTextLeft h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

/* Styling for the subtitle paragraph */
.achivDesLeft p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 2rem;
    text-transform: uppercase; /* Matches the image's style */
    letter-spacing: 0.5px;
}

/* Styling for the long list of skills */
.aboutHead h4 {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 1000;
}

/* Styling for location and availability text */
.aboutText h6 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.aboutText h6 ion-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

/* Container for the social media and profile icons */
.aboutProf {
    display: flex;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

/* Individual icon links */
.aboutProf .profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styling for all icons (ion-icon, svg, img) */
.aboutProf ion-icon,
.aboutProf svg,
.aboutProf img {
    height: 45px; /* Uniform height */
    width: 45px;  /* Uniform width */
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7; /* Slightly faded by default */
}

.aboutProf .profile-link:hover ion-icon,
.aboutProf .profile-link:hover svg,
.aboutProf .profile-link:hover img {
    transform: scale(1.15); /* Pop out on hover */
    opacity: 1; /* Full color on hover */
}

/* Specific colors for icons */
.aboutProf .linkedin {
    color: #0077B5;
}
.aboutProf .github {
    color: #181717;
}

/* Styling for the circular profile image */
.aboutProfileImg {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1 / 1; /* Ensures it's a perfect circle */
    border-radius: 20%;
    object-fit: cover; /* Prevents image distortion */
    /* border: 15px solid #f0f2f5; Creates the thick border effect from the image */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
}

/* 7. FOOTER
-------------------------------------------------- */
/* footer {
    background-color: var(--text-dark);
    color: #a0a0a0;
    text-align: center;
    padding: 2rem 1rem;
}
footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}
footer a:hover {
    color: var(--primary-color);
} */

footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 20px 0;
}

footer a {
  text-decoration: none;
  color: white;
}

footer a:hover {
  color: var(--text-light);
}

/* 8. SCROLLBAR
-------------------------------------------------- */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

/* 9. MOBILE NAVIGATION & RESPONSIVENESS
-------------------------------------------------- */
.nav-toggle, .nav-mobile {
    display: none;
}

@media (max-width: 992px) {
    /* Tablet */
    .mainDiv, #skillsId {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    #skillsId {
        flex-direction: column-reverse;
    }
    .Text, .sideImage, #profText, #proficiency, #about .aboutLeft, #about .aboutRight {
        width: 100%;
        max-width: 600px;
    }
    .mainDiv .profiles, .heroButtons {
        justify-content: center;
    }
    #skillsId .profiles {
        justify-content: center;
    }
    .certs {
        grid-template-columns: repeat(2, 1fr);
    }
    #about.mainDiv {
        flex-direction: column-reverse;
    }
    #about .aboutLeft, #about .achivDes {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* Mobile */
    h1, h2, h3 { font-size: calc(1.5rem + 2vw); }
    .headingText h2 { font-size: 2.5rem; }
    section, .content-section, .bigProjects, .achievement, #about.mainDiv { padding: 4rem 5vw; }

    /* Hamburger Menu */
    .navSec .menu { display: none; }
    .nav-toggle {
        display: block;
        background: transparent;
        border: 0;
        padding: 0.5em;
        cursor: pointer;
        position: relative;
        z-index: 1001; /* Above nav background */
    }
    .hamburger {
        display: block;
        position: relative;
        width: 2em;
        height: 3px;
        background: var(--text-dark);
        border-radius: 3px;
        transition: transform 0.3s ease-in-out;
    }
    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--text-dark);
        border-radius: 3px;
        transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
    }
    .hamburger::before { top: -8px; }
    .hamburger::after { top: 8px; }

    /* Mobile Nav Active State */
    .nav-open .hamburger {
        transform: rotate(135deg);
    }
    .nav-open .hamburger::before, .nav-open .hamburger::after {
        top: 0;
        transform: rotate(90deg);
    }

    .nav-mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .nav-open .nav-mobile {
        transform: translateX(0);
    }
    .nav-mobile .subMenu {
        font-size: 1.5rem;
        color: var(--text-dark);
    }
    .nav-mobile .subMenu:hover {
        color: var(--primary-color);
    }
    .nav-mobile .subMenu::after { display: none; }

    .hero { min-height: auto; }
    .heroButtons {
        flex-direction: column;
        align-items: center;
    }
    .certs {
        grid-template-columns: 1fr;
    }
    .projectImage {
        gap: 2rem;
    }
    .img {
        width: 100%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .about {
        flex-direction: column-reverse; /* Stacks image on top of text */
        text-align: center;
        margin: 2rem 5vw;
        padding: 4rem 5vw;
    }

    .aboutLeft, .aboutRight {
        width: 100%;
        max-width: 600px;
    }

    .achivDesLeft p {
        margin-left: auto;
        margin-right: auto;
    }

    .aboutText h6 {
        justify-content: center;
    }

    .aboutProf {
        justify-content: center; /* Center the social icons */
    }
}