@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;700;800&display=swap");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: "Be Vietnam Pro", sans-serif; }

:root { --navy: #343d68; --red: #e84949; --purple: #4e45d5; --light: #e7e7e7; --dark: #1f1f1f; --white: #ffffff; }

html { scroll-behavior: smooth; }
#wrapper { width: 100%; min-height: 100vh; overflow-x: hidden; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

header { width: 100%; display: flex; padding: 14px 50px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
header.scrolled { border-bottom-color: rgba(0,0,0,0.08); box-shadow: 0 2px 20px rgba(0,0,0,0.07); }
header .logo { display: flex; align-items: center; }
header .logo img { width: 60px; }
.logoText { margin-left: -0.6rem; font-size: 24px; font-weight: 700; color: var(--navy); }
nav ul { display: flex; gap: 2rem; list-style: none; }
nav ul li a { text-decoration: none; color: var(--dark); font-size: 16px; font-weight: 500; position: relative; padding-bottom: 4px; transition: color 0.3s; }
nav ul li a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width 0.3s; }
nav ul li a:hover { color: var(--red); }
nav ul li a:hover::after, nav ul li a.active::after { width: 100%; }
nav ul li a.active { color: var(--red); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 110; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.heroSection { gap: 4rem; margin: 4rem auto; padding: 0 2rem 8rem; display: flex; justify-content: center; align-items: center; position: relative; max-width: 1200px; width: 100%; }
.fadedText { user-select: none; font-size: 5.5em; color: var(--light); bottom: -12%; left: 0; font-weight: 800; white-space: nowrap; }
.absolute { position: absolute; }
.infoContainer { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.heading { font-size: 32px; color: var(--navy); line-height: 1.1; font-weight: 700; }
.role { color: var(--purple); font-weight: 800; }
.subHeading { font-size: 42px; }
.desc { font-size: 16px; line-height: 1.7; max-width: 520px; color: #444; font-weight: 400; }
.heroBtns { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn { background-color: var(--red); color: white; padding: 0.75rem 2rem; font-size: 16px; font-weight: 600; cursor: pointer; border: 2px solid var(--red); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; position: relative; z-index: 1; overflow: hidden; transition: color 0.4s; }
.btn::before { content: ''; position: absolute; inset: 0; background: white; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.btn:hover::before { transform: scaleX(1); }
.btn:hover { color: var(--dark); }
.btnOutline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btnOutline::before { background: var(--navy); }
.btnOutline:hover { color: white; }

.imgContainer { position: relative; flex-shrink: 0; }
.userImage { width: 300px; height: 360px; padding: 2rem; overflow: hidden; }
.userImage img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.5s; filter: grayscale(0.3); }
.userImage:hover img { filter: grayscale(0); }

.icons { z-index: 9; opacity: 0.35; }
.iconDots { bottom: -1rem; right: 0; animation: floatY 9s ease-in-out infinite; }
.iconZigZag { top: 1.5em; left: -0.5em; animation: floatX 11s ease-in-out infinite; }
.icon-cube { top: -1em; right: 1em; animation: floatRotate 12s linear infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatX { 0%,100% { transform: translateX(0); } 50% { transform: translateX(10px); } }
@keyframes floatRotate { 0% { transform: rotateY(0deg) translateY(0); } 50% { transform: rotateY(180deg) translateY(-10px); } 100% { transform: rotateY(360deg) translateY(0); } }

.projectSection { margin-top: 4rem; background: var(--light); padding-bottom: 4rem; }
.projectTitle { color: var(--red); font-size: 80px; line-height: 1; padding: 50px 0 20px; text-align: center; font-weight: 800; }
.projectFilterContainer { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.5rem 1rem 2rem; }
.filterBtn { background: transparent; border: 2px solid var(--navy); color: var(--navy); padding: 0.45rem 1.3rem; font-size: 14px; font-family: inherit; cursor: pointer; border-radius: 30px; font-weight: 600; transition: all 0.3s; }
.filterBtn:hover, .filterBtn.active { background: var(--navy); color: white; }
.projectContainer { display: flex; flex-direction: column; gap: 80px; }

.projectCard { width: 82%; height: 500px; background-size: cover; background-repeat: no-repeat; position: relative; box-shadow: 0 8px 40px rgba(0,0,0,0.25); margin: 1rem auto; z-index: 2; overflow: hidden; transition: box-shadow 0.4s, transform 0.4s; }
.projectCard:hover { box-shadow: 0 16px 60px rgba(0,0,0,0.35); transform: translateY(-4px); }
.projectCard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(45deg, var(--navy), rgba(52,61,104,0.75), rgba(52,61,104,0.4)); z-index: 1; transition: 0.5s; transform-origin: left; transform: scaleX(0); }
.projectCard:hover::before { transform: scaleX(1); }
.projectCard::after { content: ''; position: absolute; inset: 0; background: rgba(31,31,31,0.55); z-index: 0; }

.projectNumber { position: absolute; font-size: 180px; font-weight: 700; color: rgba(255,255,255,0.1); z-index: 10; opacity: 0; transition: opacity 0.4s; line-height: 1; }
.projectCard:hover .projectNumber { opacity: 1; }
.rightNumber { top: -30px; right: -30px; }
.leftNumber { top: -30px; left: -30px; }

.projectBadge { position: absolute; top: 1.2rem; right: 1.5rem; background: var(--red); color: white; font-size: 11px; font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 20px; z-index: 10; letter-spacing: 1px; text-transform: uppercase; }
.internBadge { background: var(--purple); }

.projectContent { display: flex; flex-direction: column; gap: 0.75rem; color: white; padding: 2em; bottom: 12%; position: absolute; z-index: 5; transition: transform 0.4s; }
.projectCard:hover .projectContent { transform: translateY(-6px); }
.leftProjectContent { left: 5%; }
.rightProjectContent { right: 5%; text-align: right; }
.rightProjectContent .projectMeta, .rightProjectContent .projectSkillsContainer, .rightProjectContent .btnGroup { justify-content: flex-end; }

.projectMeta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.projectCategory, .projectDuration { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.35rem; }
.projectSkillsContainer { display: flex; flex-wrap: wrap; gap: 0.5em; max-width: 65%; }
.techTag { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.35); color: white; font-size: 11px; padding: 0.2rem 0.65rem; border-radius: 20px; font-weight: 500; transition: background 0.3s, border-color 0.3s; }
.techTag:hover { background: var(--red); border-color: var(--red); }
.projectHeading { font-size: 44px; font-weight: 800; line-height: 1.1; }
.projectSubHeading { font-size: 14px; font-style: italic; opacity: 0.85; max-width: 55%; line-height: 1.5; }
.projectStats { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.25rem 0; }
.statItem { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 10px; padding: 0.35rem 0.8rem; min-width: 76px; }
.statValue { font-size: 18px; font-weight: 800; color: var(--red); }
.statLabel { font-size: 9px; color: rgba(255,255,255,0.65); text-align: center; }
.btnGroup { display: flex; gap: 0.75rem; align-items: center; }
.btnProject { border: none; outline: none; font-size: 14px; padding: 0.55rem 1.4rem; }
.icon { cursor: pointer; color: white; font-size: 28px; transition: color 0.3s; }
.icon:hover { color: var(--red); }

#project1 { background-image: linear-gradient(135deg,#1a1a2e,#16213e,#0f3460); }
#project2 { background-image: linear-gradient(135deg,#1f1f3a,#2d2d5e,#1a1a2e); }
#project3 { background-image: linear-gradient(135deg,#2d1b1b,#4a1f1f,#2d0000); }
#project4 { background-image: linear-gradient(135deg,#1a2d1a,#1f4a1f,#0d2d0d); }
#project5 { background-image: linear-gradient(135deg,#2d2a1a,#4a421f,#2d2000); }
#project6 { background-image: linear-gradient(135deg,#1a1f2d,#1f2d4a,#0d1a3a); }

.skillContainer { position: relative; display: flex; padding: 5rem; margin: 6rem auto; gap: 40px; max-width: 1400px; }
.leftSkillContainer { display: flex; flex-direction: column; width: 55%; }
.skillHeading { color: var(--red); font-weight: 800; font-size: 46px; line-height: 1.1; }
.skillHeading span { font-size: 80px; }
.skillSubHeading { margin-top: 1rem; }
.skillSubHeading p { font-size: 15px; line-height: 1.75; color: #444; margin-bottom: 14px; }
.skillSubHeading strong { color: var(--navy); font-weight: 700; }
.skillCategoryRow { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.4rem; }
.skillCategoryCard { display: flex; align-items: center; gap: 0.75rem; background: #f5f5f5; border-left: 4px solid var(--red); padding: 0.5rem 0.9rem; border-radius: 0 6px 6px 0; transition: background 0.3s; }
.skillCategoryCard:hover { background: var(--navy); }
.skillCategoryCard:hover .skillCatLabel, .skillCategoryCard:hover .skillCatTags, .skillCategoryCard:hover .skillCatIcon { color: white !important; }
.skillCatIcon { color: var(--red); font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.skillCatLabel { font-weight: 700; font-size: 13px; color: var(--navy); min-width: 110px; flex-shrink: 0; }
.skillCatTags { font-size: 12px; color: #666; line-height: 1.4; }
.rightSkillContainer { display: flex; gap: 2rem; flex-wrap: wrap; width: 45%; position: relative; justify-content: center; align-content: center; }
.blobStyle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: -1; animation: blobFloat 6s ease-in-out infinite; }
@keyframes blobFloat { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-52%,-48%); } }
.skillsLogo { width: 75px; transition: transform 0.4s; }
.skillsLogo:hover { transform: scale(1.2) rotate(5deg); }
.skillFadedText { font-size: 10em; right: -6%; bottom: -28%; user-select: none; color: var(--light); font-weight: 800; }

.timelineSection { padding: 5rem 2rem; background: var(--white); }
.sectionTitle { text-align: center; font-size: 52px; font-weight: 800; color: var(--red); line-height: 1; }
.sectionTitle.light { color: var(--white); }
.sectionSubtitle { text-align: center; font-size: 18px; color: #888; margin: 0.5rem 0 3rem; font-weight: 400; }
.sectionSubtitle.light { color: rgba(255,255,255,0.65); }
.timelineContainer { max-width: 800px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timelineContainer::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--red), var(--navy)); border-radius: 2px; }
.timelineItem { position: relative; margin-bottom: 2.5rem; padding-left: 2.5rem; }
.timelineDot { position: absolute; left: -22px; top: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; color: white; font-size: 14px; border: 3px solid var(--white); box-shadow: 0 0 0 3px var(--navy); z-index: 2; transition: background 0.3s, transform 0.3s; }
.timelineItem:hover .timelineDot { background: var(--red); box-shadow: 0 0 0 3px var(--red); transform: scale(1.1); }
.timelineCard { background: var(--white); border: 1px solid #ebebeb; border-radius: 10px; padding: 1.4rem 1.6rem; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: box-shadow 0.3s, transform 0.3s; }
.timelineCard:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateX(4px); }
.timelineDate { font-size: 12px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 0.08em; }
.timelineTitle { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0.35rem 0 0.2rem; }
.timelineOrg { font-size: 14px; color: #777; font-style: italic; display: block; margin-bottom: 0.7rem; }
.timelineDesc { font-size: 14px; color: #555; line-height: 1.65; }
.timelineTags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.ttag { background: rgba(52,61,104,0.08); color: var(--navy); font-size: 11px; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 20px; border: 1px solid rgba(52,61,104,0.2); }

.certSection { background: var(--navy); padding: 5rem 2rem 4rem; position: relative; overflow: hidden; }
.certBg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(232,73,73,0.12) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(78,69,213,0.12) 0%, transparent 60%); pointer-events: none; }
.certGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.certCard { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; transition: background 0.3s, transform 0.3s, border-color 0.3s; cursor: default; }
.certCard:hover { background: rgba(255,255,255,0.1); border-color: var(--red); transform: translateY(-4px); }
.certIcon { font-size: 28px; color: var(--red); margin-bottom: 0.25rem; }
.certTitle { font-size: 16px; font-weight: 700; color: white; }
.certIssuer { font-size: 13px; color: rgba(255,255,255,0.55); }
.certBadge { display: inline-block; margin-top: 0.5rem; background: rgba(232,73,73,0.2); color: #ff8080; font-size: 11px; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 20px; border: 1px solid rgba(232,73,73,0.3); letter-spacing: 0.05em; width: fit-content; }

.contactMeSection { width: 100%; background: var(--light); padding-bottom: 4rem; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container h2 { font-size: 4.5em; padding-top: 2.5rem; color: var(--red); font-weight: 800; }
.container h3 { font-size: 2em; color: rgba(52,61,104,0.65); margin-bottom: 0.5rem; font-weight: 400; }
.contactUsForm { display: flex; margin-top: 25px; justify-content: center; }
.contactUsForm form { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 640px; }
.formField { width: 100%; height: 48px; padding: 0 1.5rem; font-size: 16px; border: 1.5px solid #ddd; border-radius: 6px; background: rgba(255,255,255,0.9); font-weight: 400; transition: border-color 0.3s, box-shadow 0.3s; outline: none; }
.formField:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(52,61,104,0.1); }
.formFieldContainer textarea.formField { height: auto; padding-top: 1rem; }
.formBtn .btn { font-size: 1.1rem; margin: 0.5rem 0; }

footer { background: var(--navy); position: relative; padding: 4rem 2rem 1.5rem; }
.footerFadedText { font-size: 4em; position: absolute; left: 0; bottom: 0; color: rgba(83,92,135,0.5); user-select: none; font-weight: 800; }
.footerContainer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; z-index: 1; }
.linkContainer { display: flex; gap: 1.5em; flex-wrap: wrap; }
.linkContainer div a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.3s; }
.linkContainer div a:hover { color: var(--red); }
.iconContainer { display: flex; gap: 0.75rem; }
.iconContainer a { color: rgba(255,255,255,0.75); transition: color 0.3s, transform 0.3s; display: inline-block; }
.iconContainer a:hover { color: var(--red); transform: translateY(-3px); }
.iconContainer .icon { font-size: 22px; }
.footerCopy { text-align: center; color: rgba(255,255,255,0.3); font-size: 12px; margin-top: 2.5rem; position: relative; z-index: 1; }

.backToTop { position: fixed; bottom: 2rem; right: 2rem; width: 46px; height: 46px; background: var(--red); color: white; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(232,73,73,0.4); opacity: 0; transform: translateY(20px); transition: opacity 0.3s, transform 0.3s; z-index: 999; }
.backToTop.show { opacity: 1; transform: translateY(0); }
.backToTop:hover { background: var(--navy); }

@media (max-width: 900px) {
  header { padding: 12px 24px; }
  .hamburger { display: flex; }
  #mainNav { position: fixed; top: 0; right: -100%; width: 70%; max-width: 280px; height: 100vh; background: var(--white); box-shadow: -4px 0 30px rgba(0,0,0,0.15); transition: right 0.35s ease; z-index: 105; display: flex; align-items: center; justify-content: center; }
  #mainNav.open { right: 0; }
  #mainNav ul { flex-direction: column; gap: 2.5rem; text-align: center; }
  #mainNav ul li a { font-size: 20px; }
  .heroSection { flex-direction: column; text-align: center; padding: 2rem 1.5rem 5rem; margin: 2rem auto; gap: 2.5rem; }
  .fadedText { font-size: 3em; }
  .infoContainer { align-items: center; }
  .desc { text-align: center; }
  .heroBtns { justify-content: center; }
  .subHeading { font-size: 30px; }
  .heading { font-size: 24px; }
  .userImage { width: 240px; height: 280px; }
  .projectTitle { font-size: 52px; }
  .projectCard { width: 92%; height: auto; min-height: 380px; }
  .projectHeading { font-size: 32px; }
  .projectSubHeading { max-width: 90%; font-size: 13px; }
  .projectContent { bottom: 6%; padding: 1.25rem; }
  .skillContainer { flex-direction: column; padding: 3rem 1.5rem; margin: 3rem 0; }
  .leftSkillContainer, .rightSkillContainer { width: 100%; }
  .skillHeading { font-size: 36px; }
  .skillHeading span { font-size: 60px; }
  .skillFadedText { display: none; }
  .sectionTitle { font-size: 36px; }
  .container h2 { font-size: 3em; }
  .container h3 { font-size: 1.4em; }
  .certGrid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .footerContainer { flex-direction: column; text-align: center; gap: 1.5rem; }
  .footerFadedText { display: none; }
  .linkContainer { justify-content: center; }
}

@media (max-width: 480px) {
  .heroSection { padding: 1rem 1rem 4rem; }
  .subHeading { font-size: 24px; }
  .projectTitle { font-size: 38px; }
  .projectCard { width: 95%; min-height: 340px; }
  .projectHeading { font-size: 26px; }
  .statItem { min-width: 60px; }
  .statValue { font-size: 14px; }
  .certGrid { grid-template-columns: 1fr; }
  footer { padding: 3rem 1rem 1rem; }
  .timelineContainer { padding-left: 1.5rem; }
  .timelineItem { padding-left: 2rem; }
}
