@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');


@font-face {
    font-family: 'marlin';
    src: url('/fonts/marlin.woff2') format('woff2'),
         url('/fonts/marlin.woff') format('woff'); 
    font-weight: normal;
    font-style: normal;
    }

@font-face {
    font-family: 'marlin_text';
    src: url('/fonts/marlin_text.woff2') format('woff2'),
         url('/fonts/marlin_text.woff') format('woff'); 
    font-weight: normal;
    font-style: normal;
    }

@font-face {
    font-family: 'marlin_text2';
    src: url('/fonts/marlin_text2.woff2') format('woff2'),
         url('/fonts/marlin_text2.woff') format('woff'); 
    font-weight: normal;
    font-style: normal;
    }

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

*:focus,
*:active {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

body, html {
    height: 100%;
}

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #F1EFEF; 
    --header-bg: #000;
    --footer-bg: #000;
}

body, .pg1, .pg2, .pg3, .pg4, .pg5 {
    background-color: var(--bg-color);
}

footer {
    background-color: var(--footer-bg);
}

.pg1 {
    background-color: #3139FB;
    background-image: url('static/noise-light.png'); 
    border-bottom: 1px solid white;
    font-family: "marlin", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.pg2 {
    font-family: "marlin_text2", sans-serif;
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    border-bottom: 1px solid white;   
}

.pg3 {
    background-color: #3139fb;
    background-image: url('static/noise-light.png');
    font-family: "marlin_text2", sans-serif;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid white; 
}

.pg4 {
    font-family: "marlin_text2", sans-serif;
    background-color: #ffffff;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid white;   
}

.pg5{
    font-family: "marlin_text2", sans-serif;
    background-color: #3139FB;
    background-image: url('static/noise-light.png'); 
    border-bottom: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

/*Page1*/

.title {
    display: block;
    justify-content: center;
    align-items: center;
    font-size: 50px;
    font-weight: 500;
    text-align: center;
    flex-direction: column;
    color: rgb(255, 255, 255);
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .title {
        font-size: 50px;
    }

    .title h2 {
        font-size: 30px;
    }
}


.mobile-break {
    display: none;
}

@media (max-width: 768px) {
    .mobile-break0 {
        display: block;
        height: 16px;
    }

    .mobile-break {
        display: block;  
    }

    .mobile-break::after {
        content: "";
        display: block;
    }
}

h1, h2 {
    margin: 0px;
    text-align: center;
}

h1 {
    font-size: 25px;
}

h2 {
    font-size: 30px;
}

header {
    position: fixed;
    bottom: 24px;         
    left: 50%;
    top: auto;        
    transform: translateX(-50%) translateY(0);
    width: auto;
    max-width: 600px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid black;
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 1001;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    pointer-events: auto;
}

header.header-hidden {
    transform: translateX(-50%) translateY(110%) !important; 
    opacity: 0.3 !important; 
    pointer-events: auto !important;
}

header.header-hidden:hover {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

header.hide-on-scroll {
    opacity: 0.5;
    pointer-events: auto; 
}

header.hide-on-scroll:hover {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(0) !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
    height: 100%;
}

.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.nav-item a i {
    font-size: 1.2rem;
    margin-bottom: 0; 
    transition: transform 0.3s;
}

.nav-item a span {
    font-size: 0.7rem;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: 50%;
    top: -22px;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255,255,255,0.95);
    font-family: "marlin_text2", sans-serif;
    font-weight: bold;
    color: #3139FB;
    padding: 3px 10px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 
        opacity 0.3s,
        transform 0.3s,
        background 0.3s,
        color 0.3s;
    z-index: 10;
}

.nav-item a:hover i {
    transform: translateY(-8px) scale(1.15);
}

.nav-item a:hover span {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-8px); 
}

.nav-item a:hover {
    color: black;
}

.hide-link {
    text-decoration: none;
    color: inherit;
}

.dark-toggle {
    margin-left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    background: transparent;
}

#darkModeToggle {

    font-size: 18px;
    color: #333;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    transform: scale(1.1);
}

.social-strip {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 2px solid black;
    align-items: center;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    transition: transform 0.3s, opacity 0.3s;
    opacity: 1;
}

.social-strip.header-hidden {
    transform: translateY(-50%) translateX(-70%) !important;
    opacity: 0.3 !important;
    pointer-events: auto !important;
}

.social-strip.header-hidden:hover {
    transform: translateY(-50%) translateX(0) !important;
    opacity: 1 !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-strip.hide-on-scroll {
    transform: translateY(-50%) translateX(-70%);
    opacity: 0.6;
    pointer-events: auto;
}

.social-strip.hide-on-scroll:hover {
    transform: translateY(-50%) translateX(0) !important;
    opacity: 1 !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-icon {
    width: 30px;
    height: 30px;
    margin: 10px 0;
    border-radius: 5px;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/*Page2*/

.pg2 {
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.section-header {
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #373cf9;
    position: relative;
    font-family: "marlin_text", sans-serif;
    text-align: center;
}

.section-header-project h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    font-family: "marlin_text", sans-serif;
    text-align: center;
}

.section-header-contact h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #3139FB;
    position: relative;
    font-family: "marlin_text", sans-serif;
    text-align: center;
}

.dash {
    width: 50px;
    height: 5px;
    background-color: #000000;
    margin: 0 auto;
    margin-top: 5px;
    border-radius: 5px;
}

.dash-project {
    width: 50px;
    height: 5px;
    background-color: #ffffff;
    margin: 0 auto;
    margin-top: 5px;
    border-radius: 5px;
}

.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.section-description {
    font-family: "marlin_text2", sans-serif;
    text-align: center;
    justify-content: center;
    font-size: 1rem;
    color: #555;
    margin: 0 auto;
    line-height: 1.6;
    padding: 10px 20px;
    font-weight: 400;
}

.project-section-description {
    font-family: "marlin_text2", sans-serif;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    margin: 0 auto;
    line-height: 1.6;
    padding: 10px 20px;
    font-weight: 400;
}

.about-image {

    max-width: 400px;
    margin: 0 auto;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 5px solid #373cf9;
    padding: 5px;
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
} 

.about-text {
    font-family: "marlin_text2", sans-serif;
    flex: 2;
    text-align:justify;
    font-weight: 550;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    padding: 0 20px;
}

.about-text p br {
    margin-bottom: 15px;
}

.social-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; 
    gap: 20px;
}

.contact-resume-buttons {
    display: flex;
    gap: 20px;
    font-weight: 500;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    text-align: center;
    cursor: pointer;
}

.contact-button {
    background-color: #343afc;
    color: #ffffff;
}

.resume-button {
    background-color: #343afc; 
    color: white;
}

.blog-button {
    background-color: #343afc; 
    color: white;
}

.contact-button:hover, .resume-button:hover, .blog-button:hover {
    background-color: #1212f8;
    transition: background-color 0.3s, transform 0.3s;
    transform: translateY(-1.5px);
}

.wrapper {
  display: inline-flex;
  list-style: none;
}

.wrapper .icon {
  position: relative;
  background: #ffffff;
  border-radius: 50%;
  padding: 15px;
  margin: 10px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
  position: absolute;
  top: 0;
  font-weight: 200;
  font-size: 14px;
  background: #ffffff;
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 5px;
  box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
  position: absolute;
  content: "";
  height: 8px;
  width: 8px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
  top: -45px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .twitter:hover,
.wrapper .twitter:hover .tooltip,
.wrapper .twitter:hover .tooltip::before {
  background: #222222;
  color: #ffffff;
}

.wrapper .linkedin:hover,
.wrapper .linkedin:hover .tooltip,
.wrapper .linkedin:hover .tooltip::before {
  background: rgb(10, 102, 194);
  color: #ffffff;
}

.wrapper .github:hover,
.wrapper .github:hover .tooltip,
.wrapper .github:hover .tooltip::before {
  background: #833ab4;
  color: #ffffff;
}

.wrapper .leetcode:hover,
.wrapper .leetcode:hover .tooltip,
.wrapper .leetcode:hover .tooltip::before {
  background: #e09f1d;
  color: #ffffff;
}

.wrapper .peerlist:hover,
.wrapper .peerlist:hover .tooltip,
.wrapper .peerlist:hover .tooltip::before {
  background: #05ac45;
  color: #ffffff;
}

.skills-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: #fffcec;
    border-top: black groove 2px;
    border-bottom: #000 solid 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.skill-card {
    position: relative;
    display: inline-block;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.skill-card::before {
    font-family: 'marlin_text2', sans-serif;
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    white-space: nowrap;
    z-index: 10;
}

.skill-card:hover::before {
    opacity: 1;
    visibility: visible;
}

.skill-card img {
    width: 50px;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease-in-out;
}

.skill-card:hover {
    transform: translateY(-3px);
}

.skill-card:hover img {
    transform: scale(1.1);
}

.skill-card .skill-name {   
    font-family: "marlin_text2", sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
}

/* --- Work Section Styling --- */
.work-section {
    background-image: url('/static/noise-light.png');
    background-color: #3139fb;
    padding: 60px 20px 40px 20px;
}

.section-header-work h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    position: relative;
    font-family: "marlin_text", sans-serif;
    text-align: center;
}


.work-section-description {
    font-family: "marlin_text2", sans-serif;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
    margin: 0 auto;
    line-height: 1.6;
    padding: 10px 20px;
    font-weight: 400;
}

.dark-mode .work-section {
    background-color: #000;
    border-bottom: 1px solid white;
}

.timeline-container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    padding: 30px 0 0 0;
}

.timeline {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    position: relative;
}

.timeline-item {
    background: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 24px 18px 18px 18px;
    min-width: 220px;
    max-width: 260px;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.timeline-icon {
    width: 54px;
    height: 54px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(49,57,251,0.07);
}


.timeline-icon img {
    font-family: "marlin_text2", sans-serif;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}


.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
    color: #3139FB;
    font-family: "marlin_text", sans-serif;
    text-align: center;
}

.timeline-company {
    font-family: 'marlin_text2', sans-serif;
    font-size: 0.98rem;
    color: #222;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
    text-align: center;
}

.timeline-date {
    font-family: 'marlin_text2', sans-serif;
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.timeline-content p {
    font-family: "marlin_text2", sans-serif;
    font-size: 0.97rem;
    color: #444;
    text-align: center;
    margin: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: #ffffff;
    z-index: 0;
    border-radius: 2px;
}

.timeline-item {
    z-index: 1;
}

.timeline-item:not(:last-child)::after {
    content: "";
    display: none;
}

.dark-mode .timeline-item {
    background: #181818;
    box-shadow: 0 2px 8px rgba(49,57,251,0.07);
    border: 1px solid white;
}

.dark-mode .timeline-content h3 {
    color: #fff;
}

.dark-mode .timeline-company,
.dark-mode .timeline-date,
.dark-mode .timeline-content p {
    color: #ccc;
}

@media (max-width: 900px) {
    .timeline {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }
    .timeline::before {
        width: 4px;
        height: 100%;
        left: 40px;
        top: 0;
        right: auto;
        background: #fff;
    }
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        min-width: unset;
        max-width: unset;
        padding: 18px 12px 18px 12px;
        margin-left: 20px;
        margin-right: 10px;
        background: #f5f5f5;
    }
    .timeline-icon {
        margin: 0 18px 0 0;
        min-width: 54px;
        min-height: 54px;
    }
    
    .timeline-content {
        text-align: left;
        flex: 1;
    }
}

@media (max-width: 600px) {
    .work-section {
        padding: 40px 5px 20px 5px;
    }
    .timeline-container {
        padding: 10px 0 0 0;
    }
    .timeline-item {
        padding: 14px 6px 14px 6px;
        margin-left: 10px;
    }
    .timeline-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    .timeline-icon img {
        width: 24px;
        height: 24px;
    }
    .timeline-content h3 {
        font-size: 1rem;
    }
}
    

/* Project Section Styling */

.project-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 30px; 
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
}
  
.image-section {
    flex: 1;
    display: flex;
    justify-content: center;
}
  
.snapshot-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid white;
    padding: 10px;
}
  
.text-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
  
.project-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}
  
.project-description {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 20px;
}
  
.case-study-btn {
    background-color: #ffffff;
    color: #3139FB;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    transition: background-color 0.2s, transform 0.2s;
}
  
.case-study-btn:hover {
    background-color: #e4e4ec;
    transform: translateY(-0.5px);
}

.project-status {
    border-radius: 5px;
    background-color: white;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-status.live {
    color: #4CAF50;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-status.live .status-icon {
    color: #4CAF50;
    font-size: 0.5rem;
    animation: blink-dot 1.2s infinite;
}

@keyframes blink-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.project-status.in-progress {
    color: #FFC107;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.project-status.in-progress .status-icon {
    color: #FFC107;
    font-size: 0.5rem;
}

.tech-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tech-badge {
    background-color: rgb(255, 255, 255);
    color: #3139FB;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.86rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark-mode .tech-badge {
    background-color: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Certifications Section Styles */

#certs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    text-align: center;
}

.certs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.certs-card {
    background-color: #3139FB;
    background-image: url('static/noise-light.png');
    border: 1px solid #333;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
    width: 300px;
}

.cert-image {
    background-color: #ffffff;
    border-radius: 100%;
    display: block;
    margin: 0 auto;
    width: 80px;
    height: 80px;
}

h4 {
    font-weight: 300;
    margin-top: auto;
    font-size: small;
    color: #ffffff;
}

.cert-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.cert-description {
    font-size: 1em;
    color: #ffffff;
    margin-top: 20px;
    flex-grow: 1;
}

.cert-link {
    display: inline-block;
    padding: 10px 15px;
    font-size: 1em;
    font-weight: bold;
    color: #3139FB;
    background-color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s transform 0.3s;
    border: solid white 0.5px;
    align-self: center;
    margin-top: auto;
}

.cert-link:hover {
    background-color: #e4e4ec;
    transform: translateY(-0.5px);
}

/*Contact Form*/
.contact-form-container {
    max-width: 550px;
    width: 100%;
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
  
label {
    color: #000000;
    margin-top: 10px;
    font-weight: bold;
    display: block;
}
  
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
  
button {
    width: 100%;
    padding: 12px;
    background-color: #3139FB;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
}
  
button:hover {
    background-color: #1212f8;
    transition: background-color 0.3s, transform 0.3s;
    transform: translateY(-1.5px);
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  font-size: 0.9em;
  color: #7e7c7c;
}

.formspree-logo {
  display: flex;
  flex-direction: column;
  margin-left: 7px;
}

.line {
  background-color: #ff3b3f;
  height: 5px;
  margin: 1px 0;
  border-radius: 2px;
}

.line.long {
  width: 20px;
}

.line.short {
  width: 12px;
}

/*Footer*/

footer {
    width: 100%;
    background-color: #000;
    padding: 24px 10px;
    position: relative;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.copyright-text {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: smaller;
    color: white;
    margin-top: 10px;
    text-align: center;
}

.social-links a img {
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    width: 30px;
    height: 50px;
}

.social-links img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
    transform: translateY(-2px);
    transition: 0.3s ease;
}

#dynamicText {
    display: inline-block;
    border-right: 2px solid rgb(255, 255, 255);
    padding-right: 5px;
    font-size: 1.2em;
    font-weight: bold;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% { border-color: transparent; }
    50% { border-color: rgb(255, 255, 255); }
    100% { border-color: transparent; }
}

/*DARK MODE*/

.dark-mode .pg1, 
.dark-mode .pg2, 
.dark-mode .pg3, 
.dark-mode .pg4, 
.dark-mode .pg5 {
    background-color: #000000;
    background-image: url('static/noise-light.png');
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.dark-mode .pg1 .stars-container {
    display: block;
}

.stars-container {
    display: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out;
    transition: transform 0.3s ease-out;
}

.star:nth-child(odd) {
    animation-delay: 1s;
}

.star:nth-child(3n) {
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0; 
        transform: scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

.star.small {
    width: 1px;
    height: 1px;
}

.star.medium {
    width: 2px;
    height: 2px;
}

.star.large {
    width: 3px;
    height: 3px;
}

.dark-mode header {
    background-color: #1f1f1f; 
    color: #fff; 
    border: 2px solid white;
}

.dark-mode .nav-item a {
    color: #fff;
}

.dark-mode .nav-item a span {
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
}

.dark-mode .nav-item a:hover span {
    background: #ffffff;
    color: #000000;
}

.dark-mode #darkModeToggle {
    color: #fff;
    background-color: transparent;
}

.dark-mode .footer-content {
    background-color: #000000; 
}

.dark-mode .social-strip {
    background-color: #1f1f1f;
    border: 2px solid white;
    border-left: 1px solid black;
}

.dark-mode .section-description{
    color: white;
}

.dark-mode .about-img {
    border: 5px solid #ffffff;
}

.dark-mode .about-section {
    color: rgb(255, 255, 255);
}

.dark-mode .about-text p {
    color: white;
}

.dark-mode .contact-button, .dark-mode .resume-button, .dark-mode .blog-button {
    background-color: #000000;
    color: #ffffff;
    border: white solid 1px;
}

.dark-mode .contact-button:hover, .dark-mode .resume-button:hover, .dark-mode .blog-button:hover {
    background-color: #ffffff;
    color: black;
    transition: background-color 0.3s, transform 0.3s;
    transform: translateY(-1.5px);
}

.dark-mode .wrapper .icon {
  background: #000000;
  color: #ffffff;
}

.dark-mode .wrapper .twitter:hover {
    background-color: white;
    color: #333;
}

.dark-mode .wrapper .linkedin:hover {
    background-color: rgb(10,102,194);
    color: #ffffff;
}

.dark-mode .wrapper .github:hover {
    background-color: #833ab4;
    color: #ffffff;
}

.dark-mode .wrapper .leetcode:hover {
    background-color: #e09f1d;
    color: #ffffff;
}

.dark-mode .wrapper .peerlist:hover {
    background-color: #05ac45;
    color: #ffffff;
}

.dark-mode .skills-section {
    color: white;
    background-color:#1f1f1f ;
    border-bottom: 1px solid white;
}

.dark-mode .case-study-btn {
    background-color: #ffffff;
    color: #000000;
}

.dark-mode .case-study-btn:hover {
    background-color: rgb(206, 203, 203);
    color: #000000;
}

.dark-mode .certs-card {
    background-image: url('static/certs-icons/cards_dark.jpg');
    background-position: center;
}

.dark-mode .cert-description, .dark-mode .cert-title, .dark-mode h4, .dark-mode h2 {
    color: white;
}

.dark-mode .cert-link {
    background-color: #ffffff;
    color: #000000;
}

.dark-mode .cert-link:hover {
    background-color: rgb(206, 203, 203);
    transform: translateY(-0.5px);
    transition: background-color 0.3s transform 0.3s;
    color: #000000;
}

.dark-mode .contact-form-container {
    background-color: black;
    color: white;
}

.dark-mode label {
    color: white;
}

.dark-mode input, .dark-mode textarea {
    background-color: #333; 
    color: #fff; 
    border: 1px solid #555; 
}

.dark-mode button {
    color: rgb(255, 255, 255);
    background-color: #000000; 
    border: solid 1px white;
}

.dark-mode button:hover {
    color: rgb(0, 0, 0);
    background-color: #ffffff; 
    transition: background-color 0.3s, transform 0.3s;
    transform: translate(-1.5px);
}

.dark-mode .dash{
    background-color: white;
}

.dark-mode {
    --bg-color: #121212; 
    --header-bg: #1f1f1f; 
    --footer-bg: #1f1f1f;
}

@media (max-width: 768px) {
    .social-strip {
        display: none !important;
    }

    .dark-toggle {
        margin-left: 15px;
        margin-right: auto;
        margin-top: 6px;
        margin-bottom: 7px;
        background: transparent;
    }

    .title {
        justify-content: center;
        margin: auto;
    }

    header {
        position: fixed;
        margin-top: 24px;
        bottom: auto;
        left: 50%;
        background-color: rgba(255, 255, 255, 0.95);
        border: black 2px solid;
        opacity: 1 !important;
        pointer-events: auto !important;
        transition: transform 0.3s ease;
    }

    header.header-hidden {
        transform: translateX(-50%) translateY(-110%) !important; 
        opacity: 1 !important;
        pointer-events: none !important;
    }

    header.header-hidden:hover {
        transform: translateX(-50%) translateY(-110%) !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

    .dark-mode header {
        background-color: transparent !important;
        border: white 2px solid;
    }
    
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        gap: 20px;
    }

    .nav-item a {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 5px;
    }

    .nav-item a i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .nav-item a span {
        display: none;
    }

    .nav-item a:hover i,
    .nav-item a:active i,
    .nav-item a:focus i {
        transform: none !important;
    }
    .nav-item a:hover span,
    .nav-item a:active span,
    .nav-item a:focus span {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: none !important;
    }


    .wrapper .tooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .wrapper .icon:hover .tooltip {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .wrapper .icon:active,
    .wrapper .icon:focus {
        background: #ffffff !important;
        color: inherit !important;
        transform: none !important;
    }

    .wrapper .icon:active,
    .wrapper .icon:focus,
    .wrapper .icon:hover {
        background: #ffffff !important;
        color: inherit !important;
        transform: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        -moz-user-select: none !important;
        -ms-user-select: none !important;
        user-select: none !important;
    }

    .wrapper .twitter:active,
    .wrapper .twitter:focus,
    .wrapper .twitter:hover,
    .wrapper .linkedin:active,
    .wrapper .linkedin:focus,
    .wrapper .linkedin:hover,
    .wrapper .github:active,
    .wrapper .github:focus,
    .wrapper .github:hover,
    .wrapper .leetcode:active,
    .wrapper .leetcode:focus,
    .wrapper .leetcode:hover,
    .wrapper .peerlist:active,
    .wrapper .peerlist:focus,
    .wrapper .peerlist:hover {
        background: #ffffff !important;
        color: #333 !important;
        -webkit-tap-highlight-color: transparent !important;
    }


    .dark-mode .wrapper .icon:active,
    .dark-mode .wrapper .icon:focus,
    .dark-mode .wrapper .icon:hover {
        background: #000000 !important;
        color: #ffffff !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .dark-mode .wrapper .twitter:active,
    .dark-mode .wrapper .twitter:focus,
    .dark-mode .wrapper .twitter:hover,
    .dark-mode .wrapper .linkedin:active,
    .dark-mode .wrapper .linkedin:focus,
    .dark-mode .wrapper .linkedin:hover,
    .dark-mode .wrapper .github:active,
    .dark-mode .wrapper .github:focus,
    .dark-mode .wrapper .github:hover,
    .dark-mode .wrapper .leetcode:active,
    .dark-mode .wrapper .leetcode:focus,
    .dark-mode .wrapper .leetcode:hover,
    .dark-mode .wrapper .peerlist:active,
    .dark-mode .wrapper .peerlist:focus,
    .dark-mode .wrapper .peerlist:hover {
        background: #000000 !important;
        color: #ffffff !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    
    footer {
        padding: 20px 10px;
    }

    .section-description{
        font-family: "marlin_text2", sans-serif;
        text-align: center;
        color: #555;
        margin: 0 auto;
        line-height: 1.6;
        font-weight: 400;
        padding: 10px 15px; 
        font-size: 0.9rem;  
    }

    .project-section-description {
        font-family: "marlin_text2", sans-serif;
        text-align: center;
        font-size: 1rem;
        color: #ffffff;
        margin: 0 auto;
        line-height: 1.6;
        padding: 10px 15px;
        font-weight: 400;
    }

    .about-text {
        text-align: center;
    }
    
    .skills-section h2 {
        font-size: 2rem;
    }

    .skills-section .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(10px, 1fr));
        margin: 10px;
    }

    .skill-card img {
        width: 40px;
        margin-bottom: 1rem;
    }

    .skill-card .skill-name {
        font-size: 12px;
        margin-top: 8px;
    }

    .project-showcase {
        padding: 20px;
        background: none;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }

    .project-title {
        margin-top: auto;
        font-size: 1.5rem;
    }

    .project-description {
        color: #ffffff;
    }

    .image-section {
      padding: 20px;
    }
  
    .text-section {
      text-align: center;
    }

    .project-status {
        font-size: 0.8rem;
    }
    .project-status .status-icon {
        font-size: 0.6rem;
    }

    .about-section {
        flex-direction: column;
        align-items: center;
    }
    .about-image {
        margin-bottom: 20px;
    }
    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-resume-buttons {
        align-items: center;
    }

    .button {
        font-size: 16px; 
        padding: 12px 15px; 
    }

    .contact-form-container {
        margin: 24px 0 24px 0;
        width: 95%;
        min-width: unset;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-animation .geometric-shape {
        display: block;
    }
    
    .hero-animation .particle {
        width: 3px;
        height: 3px;
        animation-duration: 5s;
    }

    .geometric-shape {
        width: 14px;
        height: 14px;
        opacity: 0.6;
        animation: float 8s infinite ease-in-out;
    }
    .shape-circle {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }
    .shape-square {
        width: 11px;
        height: 11px;
        border-width: 1.5px;
    }
    .shape-triangle {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 12px solid rgba(255, 255, 255, 0.4);
    }
    .shape-hexagon {
        width: 14px;
        height: 8px;
        margin: 4px 0;
    }
    .shape-hexagon:before,
    .shape-hexagon:after {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
    }
    .shape-hexagon:before {
        border-bottom: 4px solid rgba(255, 255, 255, 0.3);
    }
    .shape-hexagon:after {
        border-top: 4px solid rgba(255, 255, 255, 0.3);
    }
    .particle {
        width: 3px;
        height: 3px;
        animation-duration: 5s;
    }
}

.dark-mode label {
    color: white;
}

.dark-mode .certs-card {
    background-image: url('static/certs-icons/cards_dark.jpg');
    background-position: center;
}

.dark-mode .cert-description {
    color: white;
}

.dark-mode .cert-title {
    color: white;
}

.dark-mode .project-card {
    background-color: #1f1f1f;
}

.dark-mode .project-description {
    color: white;
}

.dark-mode .project-title {
    color: white;
}

.dark-mode title {
    color: white;
}

.dark-mode h4 {
    color: white;
}

.dark-mode h2 {
    color: white;
}


/* Light Mode Hero Animation */
.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.dark-mode .hero-animation {
    display: none;
}

.geometric-shape {
    position: absolute;
    opacity: 0.7;
    animation: float 8s infinite ease-in-out;
}

.geometric-shape:nth-child(odd) {
    animation-delay: -2s;
}

.geometric-shape:nth-child(3n) {
    animation-delay: -4s;
}

.geometric-shape:nth-child(4n) {
    animation-delay: -6s;
}

.shape-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.shape-square {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 16px solid rgba(255, 255, 255, 0.4);
}

.shape-hexagon {
    width: 20px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    margin: 6px 0;
}

.shape-hexagon:before,
.shape-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.shape-hexagon:before {
    bottom: 100%;
    border-bottom: 6px solid rgba(255, 255, 255, 0.3);
}

.shape-hexagon:after {
    top: 100%;
    border-top: 6px solid rgba(255, 255, 255, 0.3);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particle-float 6s infinite linear;
}

.particle:nth-child(2n) {
    animation-delay: -1s;
    animation-duration: 8s;
}

.particle:nth-child(3n) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.particle:nth-child(5n) {
    animation-delay: -5s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
        opacity: 0.5;
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(50px);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .hero-animation .geometric-shape {
        display: block;
    }
    
    .hero-animation .particle {
        width: 3px;
        height: 3px;
        animation-duration: 5s;
    }

    .geometric-shape {
        width: 14px;
        height: 14px;
        opacity: 0.6;
        animation: float 8s infinite ease-in-out;
    }
    .shape-circle {
        width: 14px;
        height: 14px;
        border-width: 1.5px;
    }
    .shape-square {
        width: 11px;
        height: 11px;
        border-width: 1.5px;
    }
    .shape-triangle {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-bottom: 12px solid rgba(255, 255, 255, 0.4);
    }
    .shape-hexagon {
        width: 14px;
        height: 8px;
        margin: 4px 0;
    }
    .shape-hexagon:before,
    .shape-hexagon:after {
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
    }
    .shape-hexagon:before {
        border-bottom: 4px solid rgba(255, 255, 255, 0.3);
    }
    .shape-hexagon:after {
        border-top: 4px solid rgba(255, 255, 255, 0.3);
    }
    .particle {
        width: 3px;
        height: 3px;
        animation-duration: 5s;
    }
}

.project-nav {
    display: flex;
    margin-top: 20px;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.project-nav-btn {
    background: #fff;
    color: #3139FB;
    border: 2px solid #3139FB;
    border-radius: 5px;
    padding: 6px 0;
    font-size: 0.95rem;
    min-width: 120px;
    width: 160px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    outline: none;
}

.project-nav-btn.active,
.project-nav-btn:hover {
    background: #3139FB;
    color: #fff;
    border: 2px solid #ffffff;
}

.dark-mode .project-nav-btn {
    background: #1f1f1f;
    color: #fff;
    border: 2px solid #fff;
}

.dark-mode .project-nav-btn.active,
.dark-mode .project-nav-btn:hover {
    background: #fff;
    color: #000000;
    border: 2px solid #fff;
}

.project-group {
    display: block;
}

@media (max-width: 768px) {
    .project-nav {
        flex-direction: column;
        align-items: center;
    }

    .project-nav-btn {
        width: 100%;
        max-width: 200px;
    }
}


.contribution-section {
    margin-top: 3rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-subheader {
    margin-bottom: 30px;
    text-align: center;
}

.section-subheader h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #373cf9;
    font-family: "marlin_text", sans-serif;
    margin-bottom: 5px;
}

.section-subdescription {
    font-family: "marlin_text2", sans-serif;
    font-size: 0.95rem;
    color: #555;
    margin: 0 auto;
}

.contribution-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.chart-container {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    overflow: hidden;
}

.chart-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.github-chart img {
    width: 100%;
    height: auto;
    border: none;
    background: transparent;
    min-height: 110px;
}

.dark-mode .section-subheader h3 {
    color: #ffffff;
}

.dark-mode .section-subdescription {
    color: #dddddd;
}

.dark-mode .chart-container {
    background-color: rgba(31, 31, 31, 0.7);
}

.dark-mode .chart-container h4 {
    color: #ffffff;
}

@media (max-width: 768px) {

    .contribution-section{
        display: none;
    }
    
    .contribution-charts {
        flex-direction: column;
    }
    
    .chart-container {
        width: 100%;
        padding: 10px 0;
        margin: 0;
        box-shadow: none;
        background-color: transparent;
    }
    
    .chart-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0;
        height: 100px;
    }
    
    .github-chart {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }
    
    .github-chart img {
        width: 100%; 
        height: 100px; 
        min-height: unset; 
        object-fit: contain;
        margin-top: 0; 
    }
}