:root {
   --primary-text: #ffffff;
    --secondary-text: #aaaaaa;
    --tertiary-text: #777777;
    --border-color: #333333;
    --hover-bg: #222222;
    --accent-color: #ffffff;
    --bg-color: #121212;
}


body {
    font-family: 'Metropolis', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--primary-text);
    background-color: var(--bg-color);
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
    font-size: 15px;
    letter-spacing: -0.01em;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M0 10 Q10 0 20 10 T40 10' stroke='rgba(255,255,255,0.03)' fill='none' stroke-width='1'/><path d='M10 0 Q0 10 10 20 T10 40' stroke='rgba(255,255,255,0.03)' fill='none' stroke-width='1'/></svg>");
    background-repeat: repeat;
    background-size: 40px 40px;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.navigation {
    position: fixed;
    top: 400px;
    left: 1;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    z-index: 1000;
    background: rgba(67, 67, 67, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 70px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    margin-right: 1rem;
    
}

.nav-container {
    display: flex;
    gap: 20px;
    flex-direction: column;
    opacity: 0.6;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-text);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary-text);
    background: var(--hover-bg);
}


.header {
    margin-bottom: 100px;
    border-bottom: 2px dotted var(--border-color);
    padding-bottom: 60px;
    animation-delay: 0.1s;
    text-align: center;
}

.header:hover {
    border-bottom-color:  var(--accent-color);
    border-bottom-style: solid;
    transition: border-color 0.6s ease;
}

.name {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--primary-text);
}

.title {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 24px;
    font-weight: 400;
}

.contact {
    font-size: 0.95rem;
    color: var(--secondary-text);
    font-family: 'Metropolis', monospace;
    font-weight: 400;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact a {
    color: var(--primary-text);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.contact a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-text);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact a:hover::after {
    width: 100%;
}


.section {
    margin-bottom: 80px;
    animation-delay: 0.2s;
}

.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: var(--primary-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--primary-text);
    opacity: 0.8;
}


.about {
    line-height: 1.8;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0;
}

/* Experience */

.experience-grid {
    display: grid;
    gap: 50px;
}

.experience {
    padding: 30px 0;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    transform-origin: left center;
    background: rgba(67, 67, 67, 0.1);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    padding: 25px;
    overflow: hidden;
}

.experience:last-child {
    border-bottom: none;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-text), var(--secondary-text));
    transform: scaleX(0);
    transition: transform 0.9s ease;
}

.experience:hover::before {
    transform: scaleX(1);
}

.experience-name {
    flex: 1;
}

.experience-description {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}




.projects-grid {
    display: grid;
    gap: 50px;
}

.project {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    transform-origin: left center;
    background: rgba(67, 67, 67, 0.1);
    border-color: rgba(128, 128, 128, 0.3);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 12px;
    padding: 25px;
    overflow: hidden;
}

.project:last-child {
    border-bottom: none;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-text), var(--secondary-text));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project:hover::before {
    transform: scaleX(1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.project-name {
    flex: 1;
}

.project-name a {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.project-name a:hover {
    color: var(--secondary-text);
}

.experience-date {
    text-align: right;
    display: block;
}

.project-tech {
    background: var(--hover-bg);
    color: var(--secondary-text);
    background: #2c2c3e;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid var(--border-color);
}

.project-description {
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--secondary-text);
    color: #ffffff;
    border-color: #44475a;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background: var(--bg-color);
}

.project-link:hover {
    color: var(--primary-text);
    background: var(--hover-bg);
    transform: translateY(-2px);
}

.demo-link {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.demo-link:hover {
    background: #333333;
    color: #ffffff;
    border-color: #333333;
}

.link-icon {
    font-size: 12px;
}



.project-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
    background: #000000;
    color: #ffffff;
    border: 1px solid #000000;
}

.project-status.current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}


.project-demo {
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project:hover .project-demo {
    opacity: 1;
    transform: translateY(0);
}

/* GitHUb contrubution chat (I named it g-chart) */
.g-chart {
  background-color: transparent;
  padding: 10px;
  border-radius: 8px;
}

.chart-image {
  opacity: 0.6;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.g-chart:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transition: background-color 0.3s ease;
}

.chart-image:hover {
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.skill-category h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-text);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--secondary-text);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.8;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, var(--primary-text), var(--secondary-text));
    border-radius: 3px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.5s;
    opacity: 0.9;
}

.skill-progress.animate {
    width: var(--progress-width);
}

/* Form loading state */
.form-loading .form-group input,
.form-loading .form-group textarea {
    opacity: 0.6;
    pointer-events: none;
}

/* Enhanced focus states for better accessibility */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

.submit-button:focus-visible {
    outline: 2px solid var(--primary-text);
    outline-offset: 2px;
}

body.dark-mode .form-group input:focus-visible,
body.dark-mode .form-group textarea:focus-visible,
body.dark-mode .submit-button:focus-visible {
    outline-color: #ffffff;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }
.section:nth-child(6) { animation-delay: 0.6s; }


@media (max-width: 768px) {
    body {
        padding: 40px 20px;
        font-size: 14px;
    }
    
    .navigation {

        display: none;
        /* position: relative;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        margin: 0 auto 40px auto;
        width: fit-content; */
    }
    
    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .header {
        margin-bottom: 60px;
        padding-bottom: 40px;
    }
    
    .name {
        font-size: 28px;
    }
    
    .title {
        font-size: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section {
        margin-bottom: 60px;
    }
    
}

@media (max-width: 480px) {
    body {
        padding: 30px 15px;
    }
    
    .name {
        font-size: 24px;
    }
    
    .header {
        margin-bottom: 50px;
        padding-bottom: 30px;
    }
    
    .section {
        margin-bottom: 50px;
    }
    
    .nav-container {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}


html {
    scroll-behavior: smooth;
}


.skill-progress[data-progress="90"] { --progress-width: 90%; }
.skill-progress[data-progress="85"] { --progress-width: 85%; }
.skill-progress[data-progress="95"] { --progress-width: 95%; }
.skill-progress[data-progress="80"] { --progress-width: 80%; }
.skill-progress[data-progress="75"] { --progress-width: 75%; }


.project {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


.section {
    will-change: transform, opacity;
}

.project, .misc-item {
    will-change: transform;
}




.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #2a2929;
    color: #bba4a4;
    border: none;
    border-radius: 30%;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 0.65;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #333333;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}


.back-to-top-icon {
    line-height: 1;
}


.footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #ffffff;
    border-top-color: #ffffff;
    text-align: center;
    animation-delay: 0.7s;
}

.footer p {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* Background Logo Nikhil Aji (NA)*/
.background-logo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 22vw, 16rem);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.5);
  opacity: 1;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.02em;
  filter: none;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  text-shadow: 0 0 10px rgba(168, 165, 165, 0.08);
  transition: none
}
