/* Reset + Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #f7f9fc;
    color: #333;
    line-height: 1.6;
}

/* Navbar */

/* Logo image scaling */
.logo img {
  width: 300px;      
  height: 80px;       
  object-fit: contain;
  display: block;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1f2937;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    color :#111827
}

.nav-links a {
    text-decoration: none;
    color: #f9fafb;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    background: url('assets/background.jpg') center center / cover no-repeat;
    color: #f9fafb;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 24, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    flex-wrap: wrap;
    
}

.hero-image-wrapper {
    flex: 1 1 320px;
    display: flex;
    justify-content: center;
}

.hero-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    object-position: center left;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}
.hero-text-card {
    flex: 1 1 500px;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero-intro {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: #dbeafe;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-text-card h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
    max-width: 580px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-block;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        gap: 2rem;
        text-align: center;
    }

    .hero-text-card {
        padding: 1.5rem;
    }

    .hero-text-card h1 {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-tags {
        justify-content: center;
    }

    .hero-img {
        width: 250px;
        height: 250px;
    }
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #f7f9fc;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh; /* full screen */
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
  }
  
  .highlighted-tagline {
    margin-bottom: 2rem; /* space between tagline and button */
  }
  
  .highlighted-text {
    background-color: white;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    color: #1f2937;
    display: inline-block;
  }
  
  .hero-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  

/* Section Titles */
.section-title {
    text-align: center;
    padding: 4rem 1rem 2rem;
}

.section-title h2 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #4b5563;
    font-size: 1rem;
}

/* Project Grid */
.projects-section {
    background: #f9fafb;
    padding: 2rem;
}

.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1200px;
    margin: auto;
}

/* Project Card */

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

@media (max-width: 900px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr);
        
    }
}

@media (max-width: 600px) {
    .journey-grid {
        grid-template-columns: 1fr;
      
    }
}

.project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 1rem;
}

.tag {
    background-color: #dbeafe;
    color: #1e3a8a;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    margin-right: 0.5rem;
    border-radius: 999px;
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: #2563eb;
    font-weight: bold;
    font-size: 0.9rem;
}

.card-link:hover {
    text-decoration: underline;
}

/* Timeline Section */
.timeline-section {
    background-color: #f3f4f6;
    padding: 4rem 1rem;
}

.timeline-container {
    max-width: 900px;
    margin: auto;
    position: relative;
    border-left: 4px solid #2563eb;
    padding-left: 2rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-left {
    position: relative;
    margin-right: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    flex-shrink: 0;
}

.timeline-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 0.4rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background-color: #2563eb;
    border-radius: 50%;
}

.timeline-right {
    flex: 1;
}

.timeline-date {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.3rem;
}

.timeline-content h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #374151;
}

/* skills page */ 

.skills-title {
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 10rem;
    color: #1f2937;
  }
  

.skills-section {
    width: 100%;
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    box-sizing: border-box;
  }

  .skills-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
  }
  
  .skill-box {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    width: 280px;
    transition: transform 0.2s;
    text-align: center;
  }


  
  /* Staggered positioning */
  .skill-box:nth-child(1) {
    margin-top: 40px;
  }
  
  .skill-box:nth-child(2) {
    margin-top: 0;
  }
  
  .skill-box:nth-child(3) {
    margin-top: 60px;
  }
  

  .skill-box:hover {
    transform: translateY(-5px);
  }

  .skill-box h3 {
    margin-bottom: 1rem;
    color: #112a61;
  }

  .skill-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #374151;
  }

  .skill-box ul li {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .skill-box ul li img.logo {
    height: 60px; /*  skill logos */
    margin-right: 8px;
  }

  
/* Porjects page */

.project-detail {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: auto;
}

.project-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-tags {
    color: #4b5563;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-media img,
.project-media video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-description h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.project-description p,
.project-description ul {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.project-description ul li {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Porjects media */

/* Media Gallery Grid */
.project-media-gallery {
    padding: 2rem 1rem;
    max-width: 1100px;
    margin: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.media-item img,
.media-item video {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* last section */
.section-break {
    height: 100vh;
    display: flex;
    background: url('assets/lastbround.jpg') center center / cover no-repeat;
    color: #f9fafb;
    padding: 7rem 2rem;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.section-break-content {
    max-width: 800px;
}

.section-break h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.section-break p {
    font-size: 1.1rem;
    color: #d1d5db;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.section-break-btn {
    display: inline-block;
    background-color: #2563eb;
    color: #f9fafb;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.section-break-btn:hover {
    background-color: #1d4ed8;
}

.highlighted-text {
    background-color: white;
    color: #1f2937;
    padding: 0.5em 1em;
    border-radius: 8px;
    display: inline-block;
    max-width: 90%;
    text-align: center;
  }
  
  .highlighted-line {
    text-align: center;
    margin-bottom: 2rem; /* pushes buttons downward */
  }

  .highlighted-text {
    background-color: white;
    color: #1f2937;
    padding: 0.5em 1em;
    border-radius: 8px;
    display: inline-block;
  }
  
  

/* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f3f4f6;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
    color: #4b5563;
  }
  
  /* Page Header */
.page-header {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f3f4f6;
  }
  
  .page-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
  }
  
  .page-header p {
    font-size: 1.1rem;
    color: #4b5563;
  }
  
  /* Research  Section */
  .research-entry {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    overflow: hidden;
  }
  
  /* Floated first image */
 
.media-wrapper {
  float: left;
  width: 500px;
  max-width: 100%;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.media-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.text-content h2 {
  margin-top: 0;
}

.what-i-learned {
  clear: both;
  margin-top: 1.5rem;
}
  
  .text-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
  }

  
  .text-content p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  
  .research-tags {
    margin-bottom: 1rem;
  }
  
  .research-tags .tag {
    background-color: #dbeafe;
    color: #1e3a8a;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    display: inline-block;
  }
  
  .research-link {
    font-weight: bold;
    font-size: 0.95rem;
    color: #2563eb;
    text-decoration: none;
  }
  
  .research-link:hover {
    text-decoration: underline;
  }
  
  /* Gallery underneath */
  .media-gallery {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
  }
  
  .media-gallery img,
  .media-gallery video {
    width: calc(50% - 0.5rem);
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
  }
  
  
  /* Mobile */
  @media (max-width: 768px) {
    .media-wrapper {
      float: none;
      width: 100%;
      margin-right: 0;
      max-height: 250px;
    }
  }
  

  /* Book Section */ 

  .books-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
  }
  
  .section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #1f2937;
  }
  
  .book-entry {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
  }
  
  .book-cover {
    width: 180px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
  }
  
  .book-thoughts {
    flex: 1;
    min-width: 250px;
  }
  
  .book-thoughts h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .book-thoughts p {
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
  }
  
/* contact me page */ 

.contact-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f3f4f6;
  }
  
  .contact-title {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 3rem;
    text-align: center;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    text-align: center;
  }
  
  .contact-item h3 {
    color: #2563eb;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .contact-item p {
    font-size: 1rem;
    color: #143262;
  }

  /* More PAge */ 

  .academia-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    background-color: #fdfdfd;
    max-width: 1000px;
    margin: auto;
  }
  
  .academia-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #1f2937;
  }
  
  .academia-category {
    margin-bottom: 3rem;
  }
  
  .academia-category h2 {
    font-size: 1.8rem;
    color: #143262;
    margin-bottom: 1rem;
  }
  
  .academia-category ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .academia-category a {
    text-decoration: underline;
    color: #143262;
  }
  
  .feature-entry {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .feature-img {
    width: 500px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }
  
  .feature-text {
    flex: 1;
    min-width: 250px;
  }
  
  .feature-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
  }
  
  .feature-text p {
    font-size: 1rem;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 0.5rem;
  }
  
  .feature-text a {
    color: #143262;
    text-decoration: underline;
    font-weight: 500;
  }
  

  /* LT Spice Section  */
  
  .LTSpice-entry {
    width: 500px;
    height: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 0.5rem;
  }
  
  .LTSpice-Explnations {
    flex: 1;
    min-width: 250px;
  }
  

  
  