/* ---------- Root Theme ---------- */
:root {
    --bg: #d7e7ff;
    --text: #111;
    --card: #fff;
    
}

body.dark {
    --bg: #0f172a;
    --text: #fff;
    --card: #1e293b;
}

body {
    margin: 0;
    font-family: Segoe UI, sans-serif;
    background: aliceblue;
    /*var(--bg);*/
    color: var(--text);
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

section {
    padding: 30px 40px;
    scroll-margin-top: 80px;

}

#headername a {
    color: #fff;
    text-decoration: none;
    font-size: medium;
}




h2 {
    text-align: center;
    margin-bottom: 40px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* ---------- Navbar ---------- */
header {
    background: #0f172a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    margin-left: auto;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    /* font-size: medium; */
    display: inline-block;
    /* required */
    transition: transform .3s ease, color .3s ease;

}

.nav-links a:hover {
    color: #f8f7f7;
    text-decoration: none;
    transform: scale(1.15);
}

.menu-toggle {
    display: none;
    font-size: 22px;
    cursor: pointer;
    padding: 15px 0;
}

/* Dark toggle */
.theme-toggle {
    cursor: pointer;
    font-size: 18px;
}


/* ---------- Hero ---------- */
#hero {
    /*background: linear-gradient(120deg, #1e3c72, #2a5298);*/
    background-color: #013368;
    color: #fff;
    text-align: center;
    padding: 20px 20px;
   
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
}

/* Buttons - Read Me, Contact Us */

.readme {
    position: relative;
    padding: 11px 35px;
    background: #fff;
    color: #00796b;
    border: 2px solid #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    text-decoration: none;
}

/* .readme:hover{
  color: white;
  background-color: #00796b;
} */

.contactme {
    position: relative;
    padding: 11px 35px;
    background: none;
    color: #fff;
    border: 2px solid #fff;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    display: inline-block;
    margin-top: 1.5em;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    text-decoration: none;
}



.contactme:hover {
    color: #00796b;
    background-color: white;
    
}

ul li {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#projectlistc a {
    color: #1a1a1a;
    text-decoration: none;
    display: inline-block;
    transition: transform .3s ease, color .3s ease;
}

#projectlistc a:hover {
    color: #110f22;
    transform: scale(1.35);

}


/****************** left col sticky ********************************/
/* #colsticky {
    position: sticky;
    left: 0;
    z-index: 1000;
} */

/* ---------- Skills ---------- */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill {
    background: var(--card);
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}



/* Project Tools */
.projtools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;


}

.projtool {
    background: var(--card);
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* MS tools */
.MStools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;

}

.MStool {
    background: var(--card);
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Content development */
.cnttools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;

}

.cnttool {
    background: var(--card);
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

/* Tools */
.otools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;

}

.otool {
    background: var(--card);
    padding: 18px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

h3,
h4,
h5,
h6,
p {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;

}

#viewpaperbtn a {
    color: #00040c;
    text-decoration: none;
}

.icon {
    font-size: 30px;
    /* increase size */
}

/* ---------- Timeline ---------- */
.timeline {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.timeline-item {
    margin-bottom: 25px;
}

/* Education / For left-right heading row */
.edu-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.edu-row h4 {
    margin: 0;
}

.edu-row h5 {
    margin: 0;
    font-weight: normal;
    color: rgb(10, 10, 10);
}

/* ---------- Projects ---------- */
.filter-btns {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btns button {
    margin: 5px;
    padding: 8px 16px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;

}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.project-card h3 {
    padding: 15px;
    color: #0f172a;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif
}



/* .publish-grid {
     display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); 
    gap: 30px;
} */

.publish-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    gap: 30px;
}

.publish-card img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.publish-card h3 {
    padding: 15px;
    color: #0f172a;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
}

.modal-content {
    background: #fff;
    padding: 25px;
    max-width: 500px;
    margin: 10% auto;
    border-radius: 10px;
}

/* ---------- Contact ---------- */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ---------- Footer ---------- */
footer {
    background: #00040c;
    color: #fff;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
    padding: 20px 0;
}



/* ---------- Mobile ---------- */
/* @media(max-width:768px){
  .nav-links{
    display:none;
    flex-direction:column;
    background:#0f172a;
    position:absolute;
    top:60px;
    right:0;
    width:220px;
    padding:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
    border-radius:0 0 0 10px;
  }

  .nav-links li{
    margin:10px 0;
  }

  .nav-links.show{
    display:flex;
  }

  .menu-toggle{
    display:block;
    color:#fff;
    font-size:26px;
    cursor:pointer;
  }
}
 */



/***************  Mobile view ****************/

@media(max-width:768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #0f172a;
        position: absolute;
        top: 60px;
        right: 0;
        padding: 20px;
        
    }

    .nav-links.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}

/*Skills section new*/

.filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid #013368;
    background: white;
    color: #013368;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: #013368;
    color: white;
}

/* Animation for filtering */
.skill.hide {
    display: none;
}

.skill.show {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


/**************************************** css for projecthtml *******************************************/
  .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 40px;

        }

        .project-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .project-card:hover {
            transform: translateY(-10px);
            /* Lifts card up */
        }

        .project-image {
            position: relative;
            height: 200px;
            overflow: hidden;
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.5s ease;
        }

        .project-card:hover .project-image img {
            transform: scale(1.1);
            /* Zoom effect on hover */
        }

        /* Glassmorphism Overlay */
        .project-overlay {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            background: rgba(255, 255, 255, 0.15);
            /* Semi-transparent */
            backdrop-filter: blur(8px);
            /* The Glass Blur */
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 20px;
 
            text-align: center;
        }

        /* .overlay-content {
            width: 100%;
            max-width: 100%;
            word-wrap: break-word;
        } */

        .project-card:hover .project-overlay {
            opacity: 1;
        }

        .project-tags span {
            background: #013368; /* #007bff;*/
            color: white;
            font-size: 0.75rem;
            padding: 3px 10px;
            border-radius: 12px;
            margin: 2px;
            display: inline-block;
        }

        .project-info {
            padding: 15px 15px;
        }

        .btn-live,
        .btn-code {
            display: inline-block;
            margin-top: 10px;
            padding: 8px 8px;
            border-radius: 5px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: bold;
        }

        .btn-live {
            background: #013368;;
            color: white;
        }

        .btn-code {
            background: transparent;
            border: 1px solid #333;
            color: #333;
            margin-left: 5px;
        }


        /*  dots menu */
        .project-header {
    display: flex;
    justify-content: space-between; /* Pushes title left and icon right */
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1; /* Centers the icon vertically in the button */
}

/* Hover and Active states for clickability */
.menu-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
}

.menu-button:active {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(0.95); /* Slight shrink effect when clicked */
}



/*  */

.project-overlay.show-overlay {
    
    visibility: visible;
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/**************************** exp timeline  ************************/

/* .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    border-left: 2px solid #e9ecef; 
}

.timeline-item {
    margin-bottom: 40px;
    padding-left: 30px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -9px; 
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: #007bff; 
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #007bff;
}

.timeline-date {
    font-weight: bold;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.timeline-content h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #212529;
}

.company {
    color: #007bff;
    font-size: 1rem;
    margin-bottom: 10px;
}

.achievements {
    padding-left: 1.2rem;
    margin-top: 10px;
    font-size: 0.95rem;
} */

#outreachCarousel {
    max-width: 600px;
    margin: 20px auto;
    border: 1px solid #eee;
}

.carousel-item {
    min-height: 200px; /* Ensures a consistent look */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
    background-size: 50%;
}

/********************************* Teaching html css  ****************************************/

/* ---------- TAB BUTTONS ---------- */
.tab {
  overflow: hidden;
  /* border-bottom: 2px solid #ddd; */
  margin-bottom: 20px;
}

.tab button {
  background-color: #f1f1f1;
  color: #013368;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 10px 18px;
  transition: 0.3s;
  font-weight: 600;
  border-radius: 5px;
}

.tab button:hover {
   color: #013368;
    background-color: white;/* #ddd;*/
    border: 2px solid #013368;
}

.tab button.active {
  background-color: #013368;
  color: #fff;
}

/* ---------- TAB CONTENT ---------- */
.tabcontent {
  display: none;
  animation: fadeEffect 0.4s;
}

@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* ---------- LIST STYLE ---------- */
.tabcontent ul {
  line-height: 1.8;
}