/* GENERAL  */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Zalando+Sans+Expanded:wght@300&display=swap');

* {
  margin: 0;
  padding: 0;
}

/* ACCESSIBILITY - Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-weight: bold;
}

.skip-link:focus {
  top: 6px;
}

/* ACCESSIBILITY - Focus States */
*:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* Remove default focus outline and add custom */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* Enhanced focus for interactive elements */
.btn:focus,
.icon:focus {
  outline: 3px solid #333;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.3);
}

/* Remove focus outline from hamburger menu */
.hamburger-icon:focus {
  outline: none;
  box-shadow: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  * {
    border-color: currentColor;
  }
  
  .btn {
    border-width: 2px;
  }
}

body {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400; /* You can change to 100–900 */
  font-style: normal;
  font-variation-settings: "wdth" 100;
}


html {
    scroll-behavior: smooth;
}

p {
    color: #333; /* Black and white theme */
}

/* TRANSITIONS */

a, .btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: black;
    text-decoration: none;
    text-decoration-color: white;
}
a:hover {
    color: #333; /* Better contrast than grey */
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #333;
}

a:focus {
    color: #333;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: #333;
}

/* Cursor styling for interactive elements */
a, button, .btn, .nav-links a, .menu-links a, .hamburger-menu, .hamburger-icon, .arrow, .back-to-top-btn, .social-icon, .project-btn, .icon, input[type="button"], input[type="submit"], [role="button"], [tabindex="0"] {
    cursor: pointer;
}

/* Non-interactive elements should have default cursor */
.logo, article .icon, .contact-icon, .email-icon, .section__pic-container img, .project-img {
    cursor: default;
}


.logo {
    font-size: 2rem;
    font-weight: 200;
}

/* HAMBURGER-MENU */

#hamburger-nav {
    display: none;
}

/* Ensure desktop nav is visible by default */
#desktop-nav {
    display: flex;
}
.hamburger-menu {
    position: relative;
    display: inline-block;
}
.hamburger-icon {
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    height: 25px;
    width: 30px;
    /* cursor: pointer; - now handled globally */
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out; 
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0%;
    background-color: white;
    width: 200px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: 1px solid #ccc;
    opacity: 0;
    visibility: hidden;
}

.menu-links a {
    display: block;
    padding: 12px 16px;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid #f0f0f0;
}

.menu-links a:hover {
    background-color: #f5f5f5;
    color: #000;
}

.menu-links a:last-child {
    border-bottom: none;
}

.menu-links li {
    list-style: none;
}

.menu-links.open {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
}

.hamburger-icon.open span:first-child { 
    transform:  rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) { 
    opacity: 0;
}

.hamburger-icon.open span:last-child { 
    transform:  rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
    opacity: 1;
}

/* SECTIONS */

section {
    padding: 6vh 10rem 4vh 10rem;
    min-height: 100vh;
    margin: 0 0 2rem 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-container {
    display: flex;
}

/* PROFILE SECTION */

#profile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-direction: row;
}

.section__pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}

.section__text {
    align-self: center;
    text-align: center;
}

.section__text p {
    font-weight: 600;
    font-size: 30px;
}

.section__text__p1 {
    text-align: center;
}

.section__text__p2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
    white-space: nowrap;
}

#socials-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem; /* content theke ekto beshi gap */
    gap: 1.5rem;      /* icons er moddhe neat gap */
}


/* ICONS */

.icon {
    /* cursor: pointer; - now handled globally */
    height: 2rem;
    padding: 0.5rem;
    padding-top: 1rem;

}

/* Social icons in profile section - increase size, remove click effects and add hover */
#social-container .icon {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: all 0.3s ease;
    opacity: 0.8;
    height: 2.5rem;
    padding: 0.5rem;
    padding-top: 1rem;
}

#social-container .icon:hover {
    opacity: 1;
    transform: scale(1.05);
}

#social-container .icon:active {
    transform: none;
    box-shadow: none;
    outline: none;
}

#social-container .icon:focus {
    outline: none;
    box-shadow: none;
}

/* BUTTONS */

/* Container for buttons */
.btn-container {
    display: flex;              
    justify-content: center;     
    gap: 1rem;                 
}

/* General button styles */
.btn {
    font-weight: 600;           
    transition: all 400ms ease;  
    padding: 1rem;              
    width: 12rem;                
    border-radius: 2rem;         
    /* cursor: pointer; - now handled globally */             
}

/* Default dark buttons */
.btn-color-2 {
    background-color: white; 
    color:black;                        
    border: 1px solid rgb(53, 53, 53);  
}

/* Download CV button (white by default) */
.btn-color-1 {
    background-color: rgb(53, 53, 53);    
    color: white;              
    border: 1px solid black;    
}

/* Hover effect for dark buttons */
.btn-color-2:hover {
    background-color: rgb(53, 53, 53);    
    color: white;              
    border: 1px solid black;    
}

/* Focus states for buttons */
.btn-color-2:focus {
    background-color: rgb(53, 53, 53);    
    color: white;              
    border: 2px solid #333;    
}

.btn-color-1:focus {
    background-color: white; 
    color: black;                      
    border: 2px solid #333;  
}

/* Hover effect for Download CV button */
.btn-color-1:hover {
    background-color: white; 
    color: black;                      
    border: 1px solid rgb(53, 53, 53);  
}

/* ABOUT SECTION */

#about {
    position: relative;
}

.about-containers {
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.about-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 0;
}

/* Achievements Section */
.achievements-container {
    margin: -12rem 0 0 0;
    text-align: center;
}

.achievements-title {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.achievement-item {
    background: linear-gradient(135deg, #333 0%, #666 100%);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.achievement-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
}

.achievement-text {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Text container spacing */
.text-container {
    margin-top: 2rem;
}

.about-pic {
    border-radius: 4rem;
    height: 360px;
    width: auto;
}

/* Arrow styling - Desktop only */
.arrow {
    position: absolute;
    right: 3rem;
    bottom: 3rem;
    width: 40px;
    height: 40px;
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.arrow:hover,
.arrow:focus {
    transform: translateY(-3px) scale(1.1);
    opacity: 1;
    outline: 2px solid #333;
    outline-offset: 2px;
}

.arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(80%);
    transition: all 0.3s ease;
}

.arrow:hover img,
.arrow:focus img {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.arrow:active {
    transform: translateY(-1px) scale(0.95);
}

/* Specific arrow positioning for each section */
#about .arrow {
    right: 3rem;
    bottom: 3rem;
}

#experience .arrow {
    right: 3rem;
    bottom: 3rem;
}

#projects .arrow {
    right: 3rem;
    bottom: 5.6rem;
}

/* Back to top button - hide on mobile devices */
.back-to-top-btn {
    display: block;
}

.details-container {
    padding: 0.9rem;
    flex: 1;
    background: white;
    border-radius: 1.35rem;
    border: 0.1rem solid rgb(163, 163, 163);
    text-align: center;
    transform: scale(0.9);
}

.section-container {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex: 1;
}

.section__pic-container {
    height: 400px;
    width: 400px;
    margin: auto 0;
}

/* EXPERIENCE SECTION */

#experience, #about, #projects {
    position: relative;
}

/* Ensure all sections with arrows have relative positioning */
#profile {
    position: relative;
}

.experience-sub-title {
    color: #333; /* Black and white theme */
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.article-container {
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 2.5rem;
    justify-content: space-around;
}

article {
    display: flex;
    width: 10rem;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

article:hover {
    background-color: #f5f5f5;
}

article .icon {
    /* cursor: default; - now handled globally */
    flex-shrink: 0;
}

article div {
    flex: 1;
    min-width: 0;
}

article h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

article p {
    margin: 0.25rem 0 0 0;
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

/* PROJECTS SECTION */

#projects {
    position: relative;
}

/* Projects section specific layout - single row */
#projects .about-containers {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    grid-template-columns: none;
    grid-template-rows: none;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
}

.project-btn {
    color: black;
    border-color: rgb(163, 163, 163);
}

/* Project Description Styles */
.project-description {
    margin: 0.5rem 0;
    text-align: left;
}

.project-description p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-size: 0.9rem;
}


.project-achievements {
    margin-top: 0.5rem;
}

.project-achievements h4 {
    color: #333;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.project-achievements ul {
    list-style-type: disc;
    margin-left: 1rem;
    color: #333;
    font-size: 0.8rem;
}

.project-achievements li {
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

/* CONTACT */
#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 0;
}

.contact-info-upper-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 2rem;
    border: rgb(53, 53, 53) 0.1rem solid;
    border-color: rgb(163, 163, 163);
    background: rgb(250, 250, 250);
    margin: 2rem auto;
    padding: 1rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0.5rem;
    min-width: 200px;
    flex-shrink: 0;
}

.contact-info-container {
    font-size: larger;
}

.email-icon {
    height: 2.5rem;

}

/* Remove click/active effects from all contact links */
.contact-info-container a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-info-container a:active {
    transform: none;
    box-shadow: none;
    outline: none;
}

.contact-info-container a:focus {
    outline: none;
    box-shadow: none;
}

.contact-info-container a:hover {
    text-decoration: none;
    opacity: 0.7;
    transform: scale(1.05);
}

/* Remove all hover effects from email text and allow text selection */
.contact-info-container:has(.email-icon) p a {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.contact-info-container:has(.email-icon) p a:hover {
    opacity: 1;
    transform: none;
    color: inherit;
}

/* Simple hover effect for contact icons */
.contact-info-container .icon:hover {
    opacity: 0.7;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Simple hover effect for contact text (excluding email) */
.contact-info-container:not(:has(.email-icon)) p a:hover {
    color: #666;
    transition: color 0.3s ease;
}

/* FOOTER SECTION */

footer {
    height: 26vh;
    margin: 0 1rem;
}

footer p {
    text-align: center;
}

/* Footer navigation with pipe separators for desktop */
footer .nav-links li + li::before {
    content: " | ";
    margin-right: 0.8rem;
    color: #666;
}