* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
  scroll-behavior: smooth;
}

/* Fix hero spacing for mobile */
@media (max-width: 768px) {
  .sidebar {
    margin-top: 80px;
  }
}


body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f4f6f9;
    color: #333;
}

/* TOP NAVIGATION
.top-nav {
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

.top-nav nav {
    text-align: center;
}

.top-nav a {
    margin: 0 20px;
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500; */
/* } */

/* GLASS NAVBAR */
.top-nav {
    position: fixed;
    top: 15px;
    left: 320px;
    right: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 30px;
    border-radius: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.3);
}

.top-nav nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-nav a {
    margin: 0 18px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

/* Hover effect */
.top-nav a:hover {
    background: #e8f0fe;
    color: #1a73e8;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

#nav-menu {
  display: flex;
  gap: 20px;
}

/* Mobile */
@media (max-width: 768px) {
  #nav-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  #nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}



/* LAYOUT */
.layout {
    display: flex;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background: #ffffff;
    padding: 40px 20px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    border-right: 1px solid #e0e0e0;
}

/* PROFILE IMAGE */
.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* BUTTON */
.resume-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/* MAIN CONTENT */
.content {
    margin-left: 280px;
    padding: 100px 60px 60px 60px;
    width: calc(100% - 280px);
}

section {
    margin-bottom: 80px;
}

h1 {
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Active Nav Link */
.top-nav a.active {
    background: #1a73e8;
    color: white;
}

/* Hide all sections by default */
.tab-section {
    display: none;
}

/* Show only active */
.tab-section.active {
    display: block;
}

/* Active nav */
.nav-link.active {
    background: #1a73e8;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
}

.card ul {
    padding-left: 20px;
    margin: 10px 0;
}

.card ul li {
    margin-bottom: 6px;
    font-size: 14px;
}

.github-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 14px;
    background: #24292e;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.github-btn:hover {
    background: #000;
}
/* PROJECT IMAGE FIX */
/* PROJECT IMAGE FRAME FIX */
.card img {
    width: 100%;
    height: 320px;          /* Same box size */
    object-fit: contain;    /* Full image visible */
    background: #f4f6f9;    /* Light background for empty space */
    border-radius: 10px;
    margin: 15px 0;
    padding: 10px;          /* Space around image */
}

.card h3 {
    margin-bottom: 5px;
}

.duration {
    font-size: 14px;
    color: #1a73e8;
    font-weight: 600;
    margin-bottom: 10px;
}
.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.view-btn:hover {
    background: #0f5bd3;
}
/* CONTACT SECTION */
.contact-wrapper {
    max-width: 600px;
}

.contact-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.input-group input,
.input-group textarea {
    padding: 10px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.15);
}

.send-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.send-btn:hover {
    background: #0f5bd3;
}
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 5px 8px;
    padding: 6px 12px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #1a73e8;
    color: white;
}
/* MOBILE RESPONSIVE */
@media (max-width: 900px) {

    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .content {
        margin-left: 0;
        padding: 40px 20px;
        width: 100%;
    }

    .top-nav {
        left: 0;
        right: 0;
        top: 0;
        border-radius: 0;
    }

    .top-nav nav {
        flex-wrap: wrap;
    }

    .top-nav a {
        margin: 5px 8px;
    }

    .card img {
        height: 180px;
    }
}
.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 5px;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 50%;
    font-size: 18px;
    transition: 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: #1a73e8;
    color: white;
    transform: translateY(-3px);
}
.about-headline {
    font-size: 20px;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 20px;
}

.achievements {
    margin: 15px 0 25px 0;
    padding-left: 20px;
}

.achievements li {
    margin-bottom: 10px;
    font-size: 15px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-box {
    background: #ffffff;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.skill-box:hover {
    transform: translateY(-5px);
}

.skill-box h4 {
    margin-bottom: 10px;
    color: #1a73e8;
    font-size: 16px;
}

.skill-box ul {
    padding-left: 18px;
}

.skill-box li {
    margin-bottom: 6px;
    font-size: 14px;
}
/* FILTER BUTTONS */
.filter-buttons {
    margin: 15px 0 25px 0;
}

.filter-btn {
    padding: 8px 14px;
    margin: 5px;
    border: none;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.filter-btn:hover {
    background: #1a73e8;
    color: white;
}

.filter-btn.active {
    background: #1a73e8;
    color: white;
}
/* Base state (hidden initially for animation) */
.skill-box {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Visible state */
.skill-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden during filter */
.skill-box.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}
/* TIMELINE */
.timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
    border-left: 3px solid #1a73e8;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -11px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: #1a73e8;
    border-radius: 50%;
    border: 3px solid #fff;
}

.timeline-content {
    padding-left: 20px;
}

.timeline-date {
    display: inline-block;
    font-size: 14px;
    color: #1a73e8;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h3 {
    margin-bottom: 5px;
}

.timeline-content p {
    margin-top: 5px;
    font-size: 14px;
}







