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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: white;
    color: #000;
    line-height: 1.6;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(240, 240, 240, 0.8);
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #000;
  transition: color 0.3s;
  position: relative;
  width: 32px;
  height: 32px;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
  transition: opacity 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu-btn .menu-icon {
  opacity: 1;
}

.mobile-menu-btn .close-icon {
  opacity: 0;
}

.mobile-menu-btn.active .menu-icon {
  opacity: 0;
}

.mobile-menu-btn.active .close-icon {
  opacity: 1;
}

.mobile-menu-btn.active {
  color: #000;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.3s ease;
  overflow-y: hidden; /* Prevent scrolling */
}

.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; 
  text-align: center;
  padding: 2rem;
}

.mobile-nav-link {
  font-size: 1.6rem; 
  color: #000;
  text-decoration: none;
  font-weight: 500;
  text-transform: capitalize;
  transition: color 0.3s;
}

.mobile-nav-link:hover {
  color: #1877F2;
}

.language-btn {
    position: absolute;
    right: 2rem;
    top: 100px;  
    background: white;
    border: 1px solid #e9e9e9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
}

.language-btn:hover {
    transform: scale(1.1);
}

nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    min-height: 60px; 
    align-items: center; 
}

nav a {
    text-decoration: none;
    color: #000;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: capitalize;
    transition: color 0.3s;
}

nav a:hover {
    color: #1877F2;
}

nav a.active {
    color: #1877F2;
}

/* Main Container */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: auto;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
}

section:not(#home) h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #000;
}

/* Home Section */
#home {
    gap: 1rem;
    margin-top: 200px;
    justify-content: center;
}

#home h1 {
    font-size: 4rem;
    font-weight: 700;
}

.highlight {
    color: #1877F2;
}

#home .subtitle {
    font-size: 1.5rem;
    color: #666;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
}

.location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.separator {
    color: #ddd;
}

.availability {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-weight: 500;
    position: relative;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-out infinite;
}

.pulse-dot::before,
.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10b981;
    top: 0;
    left: 0;
    opacity: 0;
}

.pulse-dot::before {
    animation: ripple 2s ease-out infinite;
}

.pulse-dot::after {
    animation: ripple 2s ease-out 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

#home .description {
    font-size: 1.1rem;
    color: #000;
    max-width: auto;
    line-height: 1.8;
    font-weight: 500;
    
}

.inline-link {
    color: #1877F2;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.inline-link:hover {
    opacity: 0.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: #000;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
    padding-right: 10px;
}

.social-links a:hover {
    color: #1877F2;
}

/* Experience Section */
.experience-item {
    border-left: 2px solid #ddd;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.experience-item.featured {
    border-left-color: #1877F2;
}

.experience-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.experience-item .company {
    color: #1877F2;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-item .company.past {
    color: #666;
}

.experience-item p {
    color: #666;
    line-height: 1.8;
}

/* Skills Section */
.skills-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.skill-card {
    background: white;  
    border: 1px solid #e9e9e9;  
    padding: 1.5rem;
    border-radius: 10px;  
    text-align: center;
    transition: all 0.3s;
}

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

.skill-card .icon {
    margin-bottom: 0.5rem;
    display: flex;  
    justify-content: center;  
    align-items: center;  
    height: 40px;  
}

.skill-card .icon svg {  
    width: 40px;
    height: 40px;
    color: #1877F2;
}

.skill-card .name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category .icon {
    color: #1877F2;
}

.category p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Projects Section */
.project-card {
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card .description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #e3f2fd;
    color: #1877F2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.project-links a:hover {
    color: #1877F2;
}

/* Contact Section */
#contact .description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links a {
    color: #666;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-links a:hover {
    color: #1877F2;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 5rem;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem 2rem; 
        min-height: 50px;
        background-color: white;
    }

    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    nav {
        display: none;
    }

    .language-btn {
        top: 80px;
        right: 1.5rem;
    }

    body.menu-open .language-btn {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open main {
        filter: blur(5px);
        transition: all 0.3s ease;
        pointer-events: none;
    }

    body.menu-open header {
        filter: none;
    }

    #home {
        margin-top: 100px;
        gap: 0.7rem;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    #home .subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .status-line {
        font-size: 0.85rem; 
        gap: 0.5rem; 
        margin-bottom: 0.5rem; 
    }

    .pulse-dot {
        width: 6px; 
        height: 6px;
    }

    #home .description {
        font-size: 1rem;
    }

    section:not(#home) h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 1.5rem;
    }

    main {
        padding: 0 1.5rem;
    }

    footer {
        font-size: 0.75rem;
    }
}