/* General Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #232b36 0%, #283046 40%, #1976d2 100%);
    background-size: 200% 200%;
    animation: bgMove 12s ease-in-out infinite;
    position: relative;
    overflow-x: hidden;
    color: white;
    line-height: 1.6;
    /* 3D parallax effect */
    perspective: 1200px;
}

/* Enhanced glassy, glowing overlay for depth and highlight */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 70% 20%, #ffffff33 0%, #ffffff00 60%),
        radial-gradient(ellipse at 20% 80%, #90caf988 0%, #ffffff00 70%),
        linear-gradient(120deg, #ffffff11 0%, #1976d244 100%);
    mix-blend-mode: lighten;
    opacity: 0.85;
    filter: blur(1.5px) saturate(1.2);
}

/* Navigation & Header */
header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.2rem 0.8rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 36px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: #ffcc70;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc70;
}

.header-nav {
    min-height: 36px;
    padding: 0.1em 0.8em 0.1em 0.8em;
}

/* Section Visibility */
.hidden {
    display: none !important;
}

/* Hero Section */
.hero {
    padding: 3rem 5%;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-container {
  display: flex;
  align-items: stretch; /* Ensures left/right fill container height */
  justify-content: space-between;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Always start at top */
  align-items: flex-start;     /* Align children to left */
  flex: 1;
  margin-left: 100px; /* Add space between skills bar and hero content */
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
    animation: fadeInRight 1s ease;
}

.main-image {
    width: 700px;      /* Increase width */
    height: 450px;     /* Increase height */
    max-width: 90vw;   /* Responsive for smaller screens */
    max-height: 90vh;  /* Responsive for smaller screens */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 40px #2196f355;
    display: block;
    margin: auto;
}

.highlight {
    font-size: 3rem;
    color: #ffcc70;
    font-weight: bold;
}

.typing-text {
    color: #ffcc70;
    font-size: 1.2rem;
    height: 30px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #ffcc70;
}

.stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
}

.stat {
    background: rgba(255,255,255,0.1);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.stat span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc70;
}

.btn-group {
    margin-top: 1.5rem;
}

.btn {
    background: #ffcc70;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background: #ffaa00;
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffcc70;
    color: #ffcc70;
}

.btn-outline:hover {
    background: #ffcc70;
    color: black;
}

.email-top {
    position: absolute;
    top: 18px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.email-top a {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Add at the end or near your nav styles */
.global-top-buttons {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1002;
    display: flex;
    gap: 0.5em;
    background: rgba(34,40,49,0.95);
    border-radius: 0 0 0 1.2em;
    box-shadow: 0 2px 12px #1976d244;
    padding: 0.2em 0.7em 0.2em 0.7em;
    align-items: center;
    height: 44px; /* Match your header height */
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background 0.2s;
    cursor: pointer;
    margin: 0 2px;
}

.nav-btn:hover {
    background: #1976d2;
    box-shadow: 0 2px 8px #1976d288;
}

.nav-btn:hover, .download-link:hover, .blog-card-mini:hover {
    background: #1976d2;
    color: #fff;
    box-shadow: 0 2px 12px #00eaff;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

@media (max-width: 700px) {
    .global-top-buttons {
        flex-wrap: wrap;
        padding: 0.3rem 0.5rem;
        border-radius: 0 0 0 1rem;
    }
    .nav-btn {
        padding: 0.2rem;
    }
}

/* About Section - Advanced Card */
.about-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background: linear-gradient(135deg, #212b36 0%, #263238 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr; /* 3 columns */
  grid-template-rows: 1fr;           /* Only 1 row */
  gap: 2rem;
  width: 90vw;
  max-width: 1200px;
  padding: 2rem;
}

.about-card {
  background: linear-gradient(135deg, #263238 0%, #37474f 100%);
  border-radius: 32px;
  box-shadow: 0 12px 48px #1976d2aa, 0 2px 8px #fff2 inset;
  padding: 2rem;
  color: #e0e0e0;
  border: 1px solid #1976d2;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  align-items: center;      /* Center all content horizontally */
  justify-content: center;
  text-align: center;       /* Center text inside the card */
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;      /* Center header items */
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.about-avatar {
    font-size: 4rem;
    display: block;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 16px #1976d2aa);
}

.about-title {
    font-size: 1.2rem;
    color: #90caf9;
    margin-top: 0.5rem;
    font-weight: bold;
    text-shadow: 0 2px 8px #1976d2;
    text-align: center;
}

.about-body p {
    margin: 1.2rem 0;
    font-size: 1.08rem;
    line-height: 1.6;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 2px 12px #1976d222;
    border-left: 4px solid #90caf9;
}

.about-emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.about-body hr {
    border: none;
    border-top: 1px solid #37474f;
    margin: 1.5rem 0;
}

/* Projects Section */
.projects {
    padding: 3rem 5%;
    text-align: center;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px #1976d2aa, 0 2px 8px #fff2 inset;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    width: 320px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid #1976d2;
    color: #e0e0e0;
}

.project-card::before {
    content: "";
    position: absolute;
    top: -40px; left: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, #1976d2 40%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 16px 48px #1976d2cc, 0 2px 8px #fff2 inset;
}

.project-card h3 {
    font-size: 1.3rem;
    color: #90caf9;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px #1976d2;
}

.project-card p {
    color: #b0bec5;
    font-size: 1rem;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

.project-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 4px 12px #1976d2aa);
}

.note-box {
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    border-radius: 18px;
    box-shadow: 0 4px 16px #1976d2aa;
    padding: 1.2rem 1.5rem;
    margin: 2rem auto 0 auto;
    max-width: 600px;
    text-align: center;
    font-size: 1.08rem;
    color: #90caf9;
    border: 1px solid #1976d2;
}

/* Project Detail Modal */
.project-detail {
    background: linear-gradient(135deg, #212b36 0%, #263238 100%);
    color: #e0e0e0;
    border-radius: 18px;
    box-shadow: 0 4px 16px #1976d2aa;
    padding: 1.5rem 2rem;
    margin: 1rem auto 2rem auto;
    max-width: 700px;
    text-align: left;
    border: 1px solid #1976d2;
    transition: all 0.3s;
}

.project-detail.hidden {
    display: none;
}

.project-detail h4 {
    color: #90caf9;
    margin-bottom: 1rem;
}

.project-detail ul, .project-detail ol {
    margin-left: 1.2rem;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30,40,50,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal.hidden {
    display: none;
}
.modal-content {
    background: linear-gradient(135deg, #212b36 0%, #263238 100%);
    color: #e0e0e0;
    border-radius: 24px;
    box-shadow: 0 8px 32px #1976d2aa;
    padding: 2rem 2.5rem;
    max-width: 700px;
    width: 90vw;
    position: relative;
}
.close-btn {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2rem;
    color: #90caf9;
    cursor: pointer;
    font-weight: bold;
}

/* LinkedIn Styles */
.linkedin-link {
    display: inline-block;
    margin-top: 0.5rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    transition: transform 0.2s;
}
.linkedin-link:hover {
    transform: scale(1.12);
}
.linkedin-icon {
    vertical-align: middle;
    box-shadow: 0 2px 8px #0A66C299;
    border-radius: 8px;
}

.gmail-icon {
    vertical-align: middle;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px #ea433599;
    border-radius: 8px;
}
.email-top a:hover .gmail-icon {
    transform: scale(1.12);
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
    }
    .stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .project-list {
        flex-direction: column;
        align-items: center;
    }
    .project-card {
        width: 90%;
        min-width: 220px;
    }
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1201;
}
.hamburger span {
  display: block;
  height: 4px;
  width: 28px;
  margin: 4px auto;
  background: #ffcc70;
  border-radius: 2px;
}

/* Drawer styles */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 240px;
  background: #222831;
  box-shadow: 2px 0 16px #0008;
  transform: translateX(-100%);
  transition: transform 0.3s;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: 1.5em 1em 1em 1.5em;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.close-drawer {
  background: none;
  border: none;
  color: #ffcc70;
  font-size: 2em;
  align-self: flex-end;
  margin-bottom: 1em;
  cursor: pointer;
}
.drawer-link {
  color: #ffcc70;
  text-decoration: none;
  font-size: 1.1em;
  margin: 0.7em 0;
  transition: color 0.2s;
  display: block;
}
.drawer-link:hover {
  color: #90caf9;
}

.hero-skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 1rem auto;
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, #212b36 0%, #263238 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px #1976d2aa, 0 2px 8px #fff2 inset;
    max-width: 900px;
    width: 95vw;
}

.skill-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    box-shadow: 0 2px 8px #1976d2aa;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px #1976d2aa);
    border-radius: 8px;
}

.skill-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 24px #1976d2cc;
    z-index: 2;
}

/* Project Images Section */
.project-images-section {
    padding: 3rem 5%;
    text-align: center;
    background: linear-gradient(135deg, #212b36 0%, #263238 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px #1976d2aa;
    margin: 3rem auto 2rem auto;
    max-width: 1400px;
}

.project-images-section h2 {
    color: #ffcc70;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-shadow: 0 2px 8px #1976d2;
}

.project-images-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 2rem;
    justify-items: center;
    align-items: start;
    margin: 0 auto;
    max-width: 1400px;
}

.project-images-gallery img {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16/9;
    height: auto;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 16px #1976d2aa;
    border: 2px solid #1976d2;
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    margin-bottom: 1rem;
}

.project-images-gallery img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 32px #1976d2cc;
    z-index: 2;
}

/* Responsive for smaller screens */
@media (max-width: 1200px) {
    .project-images-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .project-images-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .project-images-gallery {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.image-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    transition: opacity 0.3s;
}

.image-modal.hidden {
    display: none;
}

.image-modal img {
    max-width: 90vw;
    max-height: 90vh;
    width: 1920px;
    height: 1080px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 8px 32px #1976d2cc;
    background: #fff;
}

.image-modal .close-btn {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 3rem;
    color: #ffcc70;
    cursor: pointer;
    font-weight: bold;
}

/* Blog Section Styles */
.blog-section {
    padding: 3rem 5%;
    background: linear-gradient(135deg, #232b36 0%, #263248 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px #1976d2aa;
    margin: 3rem auto 2rem auto;
    max-width: 1200px;
    text-align: center;
}

.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 2rem;
}
.blog-card-mini {
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px #1976d2aa, 0 2px 8px #fff2 inset;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    width: 420px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border: 1px solid #1976d2;
    color: #e0e0e0;
    cursor: pointer;
    text-align: center;
}
.blog-card-mini:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 16px 48px #1976d2cc, 0 2px 8px #fff2 inset;
    background: linear-gradient(135deg, #1976d2 0%, #263238 100%);
}
.blog-card-mini h3 {
    font-size: 1.3rem;
    color: #ffcc70;
    font-weight: bold;
    margin-bottom: 0;
    text-shadow: 0 2px 8px #1976d2;
}

/* Blog Modal Wide */
.blog-modal-content-wide {
    max-width: 1800px;
    width: 95vw;
    background: linear-gradient(135deg, #232b36 60%, #1976d2 100%);
    border-radius: 32px;
    box-shadow: 0 8px 32px #1976d2cc, 0 2px 8px #ffcc7088;
    color: #fff;
    padding: 2.5rem 2rem 2rem 2rem;
    font-size: 1.15rem;
    text-align: left;
    overflow-y: auto;
}
@media (max-width: 1600px) {
    .blog-modal-content-wide {
        max-width: 98vw;
    }
}

/* 3D floating effect for main containers */
section, .about-card, .project-card, .blog-card-mini, .modal-content, .blog-modal-content-wide {
    background: linear-gradient(120deg, #232b36cc 60%, #1976d2cc 100%);
    box-shadow:
        0 8px 32px 0 #00eaff44,
        0 2px 8px #ffcc7088,
        0 1.5px 0 #fff3 inset,
        0 0.5px 24px #90caf955;
    border-radius: 24px;
    backdrop-filter: blur(12px) saturate(1.3);
    border: 1.5px solid #00eaff55;
    position: relative;
    z-index: 2;
}

/* Glossy highlight on cards */
section::before, .about-card::before, .project-card::before, .blog-card-mini::before, .modal-content::before, .blog-modal-content-wide::before {
    content: "";
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #fff8 10%, #fff2 60%, #fff0 100%);
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}

/* 3D button effect for nav */
.global-top-buttons .nav-btn {
    background: linear-gradient(120deg, #232b36 60%, #1976d2 100%);
    box-shadow: 0 2px 12px #00eaff66, 0 1px 0 #fff3 inset, 0 0.5px 8px #ffcc7088;
    border: 1.5px solid #00eaff88;
    border-radius: 50%;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s, border 0.2s;
    position: relative;
}
.global-top-buttons .nav-btn:hover {
    background: linear-gradient(120deg, #00eaff 60%, #232b36 100%);
    box-shadow: 0 4px 24px #00eaffcc, 0 2px 8px #ffcc7088, 0 0.5px 16px #90caf988;
    border: 1.5px solid #ffcc70cc;
    transform: translateY(-3px) scale(1.10);
}

/* Animate background movement */
@keyframes bgMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Optional: Make sure all main containers are above the background overlay */
section, .about-card, .project-card, .blog-card-mini, .modal-content, .blog-modal-content-wide {
    position: relative;
    z-index: 1;
}

/* Animated floating particles for advanced effect */
.particle-bg {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 1;
}
.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.22;
    background: linear-gradient(135deg, #90caf9 0%, #ffcc70 100%);
    box-shadow: 0 0 32px 8px #1976d2aa;
    animation: floatParticle 12s infinite linear;
}
.particle.p1 { width: 32px; height: 32px; left: 10vw; top: 20vh; animation-delay: 0s;}
.particle.p2 { width: 18px; height: 18px; left: 80vw; top: 30vh; animation-delay: 2s;}
.particle.p3 { width: 24px; height: 24px; left: 50vw; top: 80vh; animation-delay: 4s;}
.particle.p4 { width: 14px; height: 14px; left: 60vw; top: 10vh; animation-delay: 6s;}
.particle.p5 { width: 20px; height: 20px; left: 30vw; top: 60vh; animation-delay: 8s;}
@keyframes floatParticle {
    0% { transform: translateY(0) scale(1);}
    50% { transform: translateY(-40px) scale(1.2);}
    100% { transform: translateY(0) scale(1);}
}

/* Add at the end of your CSS file */
.futuristic-grid {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: 0.18;
    background: repeating-linear-gradient(90deg, #00eaff22 0 1px, transparent 1px 80px),
                repeating-linear-gradient(0deg, #00eaff22 0 1px, transparent 1px 80px);
    mix-blend-mode: lighten;
}
.futuristic-glow {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 3;
    background: radial-gradient(ellipse at 60% 80%, #00eaff33 0%, #1976d200 70%);
    opacity: 0.25;
    mix-blend-mode: lighten;
}

/* Animated SVG background for hero */
.hero-animated-bg {
    position: absolute;
    left: 50%;
    top: 220px;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
    width: 420px;
    height: 420px;
    opacity: 0.7;
}
@media (max-width: 700px) {
    .hero-animated-bg { width: 260px; height: 260px; top: 120px; }
}

/* Glow/Pulse effect for hero image */
.main-image.glow-pulse {
    box-shadow: 0 0 40px 10px #00eaff88, 0 0 80px 20px #1976d244;
    animation: pulseGlow 2.5s infinite alternate;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 20px 5px #00eaff55, 0 0 40px 10px #1976d244; }
    100% { box-shadow: 0 0 60px 20px #00eaffcc, 0 0 120px 40px #1976d288; }
}



/* Download Section */
.download-section {
    background: linear-gradient(120deg, #232b36cc 60%, #1976d2cc 100%);
    box-shadow: 0 8px 32px 0 #1976d2cc, 0 2px 8px #ffcc7088;
    border-radius: 24px;
    margin: 2em auto;
    max-width: 600px;
    padding: 2em 2em 1em 2em;
    z-index: 2;
    position: relative;
}
.download-section h2 {
    text-align: center;
    margin-bottom: 1.5em;
    color: #00eaff;
    letter-spacing: 1px;
}
.download-list {
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #283046cc;
    padding: 1em 1.5em;
    border-radius: 12px;
    box-shadow: 0 2px 8px #1976d244;
}
.download-link {
    background: linear-gradient(90deg, #1976d2 60%, #00eaff 100%);
    color: #fff;
    padding: 0.4em 1.2em;
    border-radius: 2em;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px #00eaff44;
    transition: background 0.2s, box-shadow 0.2s;
    border: none;
}
.download-link:hover {
    background: linear-gradient(90deg, #00eaff 60%, #1976d2 100%);
    color: #ffcc70;
}

/* Floating Stats Marquee */
.floating-stats-marquee {
    width: 100%;
    overflow: hidden;
    background: transparent;
    margin-top: 2em;
    position: relative;
    z-index: 2;
    height: 2.5em;
}
.marquee-inner {
    display: flex;
    gap: 3em;
    white-space: nowrap;
    animation: marqueeMove 18s linear infinite;
    font-size: 1.3em;
    font-weight: 600;
    color: #00eaff;
    text-shadow: 0 2px 8px #1976d2;
    align-items: center;
    height: 2.5em;
}
.marquee-inner span {
    display: inline-block;
    padding: 0 1.5em;
    letter-spacing: 1px;
}
@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 3D Stats */
.stats-3d {
    display: flex;
    gap: 2.5em;
    justify-content: flex-start;
    margin: 2.5em 0 2em 0;
}
.stat-3d {
    background: linear-gradient(135deg, #232b36cc 60%, #1976d2cc 100%);
    box-shadow:
        0 4px 24px #00eaff55,
        0 1.5px 0 #fff3 inset,
        0 0.5px 24px #90caf955;
    border-radius: 18px;
    padding: 1.5em 2.5em;
    min-width: 160px;
    text-align: center;
    position: relative;
    z-index: 2;
    border: 1.5px solid #00eaff55;
    transition: box-shadow 0.3s, transform 0.2s;
    backdrop-filter: blur(8px) saturate(1.2);
}
.stat-3d:hover {
    box-shadow: 0 8px 32px #00eaffcc, 0 2px 8px #ffcc7088;
    transform: translateY(-4px) scale(1.04);
}
.stat-3d::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 28px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #fff8 10%, #fff2 60%, #fff0 100%);
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}
.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #ffcc70;
    text-shadow: 0 0 12px #00eaff, 0 2px 8px #1976d2;
    margin-bottom: 0.2em;
    letter-spacing: 2px;
    transition: color 0.2s;
}
.stat-label {
    display: block;
    font-size: 1.1em;
    color: #fff;
    opacity: 0.85;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 1px;
}

/* Header Tagline */
.header-tagline {
    display: block;
    color: #90caf9;
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 0.8em;
    letter-spacing: 1px;
}

.header-right-tagline {
    color: #ffcc70;
    font-size: 1.1em;
    font-weight: normal;
    white-space: nowrap;
    text-align: center;
    margin-top: 2.0em;
    margin-bottom: 0.2em;
    letter-spacing: 1px;
}

/* Animated Slogan Style */
.typing-header {
    color: #90caf9;
    font-size: 1.1em;
    margin-left: 0.5em;
    font-weight: 500;
    letter-spacing: 1px;
    display: block;
    margin-top: 0.2em;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.1em;
    padding: 0.3em 1em 0.3em 1.2em; /* Reduce padding */
    background: transparent;
    min-height: 5px;               /* Lower min height */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1em;
}
.author-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffcc70;
    white-space: nowrap;
}

/* Footer Section */
.site-footer {
  background: #232b36;
  color: #ffcc70;
  padding: 1.5em 0 1em 0;
  text-align: center;
  border-top: 2px solid #1976d2;
  margin-top: 2em;
}


.skills-bar {
  position: absolute;
  top: 40px;           /* Adjust as needed for spacing from top */
  left: 0;
  height: auto;
  width: 80px;
  background: #101726ee;
  border-radius: 14px;
  border: 2px solid #232b36;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 16px #000a;
}

.skills-title {
  color: #fff;
  font-weight: bold;
  margin-bottom: 12px;
  font-size: 1.1em;
  letter-spacing: 1px;
  text-align: center;
}

.skills-icon {
  width: 48px;
  height: 48px;
  margin: 10px 0;
  border-radius: 10px;
  background: #232b36;
  box-shadow: 0 2px 8px #1976d233;
  object-fit: contain;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.skills-icon:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px #1976d299;
}

@media (max-width: 700px) {
  .skills-bar {
    left: 2px;
    top: 2px;
    padding: 6px 2px;
    width: 48px;
  }
  .skills-icon {
    width: 32px;
    height: 32px;
    margin: 4px 0;
  }
  .skills-title {
    font-size: 0.95em;
  }
}

/* Floating IIoT/Industry 4.0 SVG symbol styles */
.floating-symbol {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  animation: floatY 8s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px #00eaff88);
}
.symbol-robot   { top: 8%;  left: 12%;  animation-delay: 0s; }
.symbol-factory { top: 18%; right: 10%; animation-delay: 2s; }
.symbol-cloud   { bottom: 12%; left: 18%; animation-delay: 1.5s; }
.symbol-chip    { bottom: 16%; right: 16%; animation-delay: 3s; }
.symbol-network { top: 40%; left: 45%; animation-delay: 4s; }

@keyframes floatY {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-24px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}

/* Live Demo Section */
.live-demo-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  margin-top: 1.5em;
}

.live-demo-card {
  background: #101726;
  border-radius: 14px;
  box-shadow: 0 2px 16px #000a;
  padding: 1.2em 1em;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  transition: box-shadow 0.2s;
}

.live-demo-card:hover {
  box-shadow: 0 4px 24px #1976d299;
}

.live-demo-card button {
  margin-top: auto;
  align-self: flex-end;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5em 1.2em;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.live-demo-card button:hover {
  background: #1565c0;
}

/* Responsive: stack on small screens */
@media (max-width: 900px) {
  .live-demo-list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .live-demo-list {
    grid-template-columns: 1fr;
  }
}

/* Compact card style for demo detail sections */
.iiot-demo-section {
    max-width: 540px;
    margin: 2em auto;
    background: linear-gradient(135deg, #263238 0%, #37474f 100%);
    border-radius: 24px;
    box-shadow: 0 8px 32px #1976d2aa, 0 2px 8px #fff2 inset;
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    color: #e0e0e0;
    border: 1.5px solid #00eaff55;
    position: relative;
    z-index: 2;
    display: block;
}

.iiot-demo-section h2 {
    color: #ffcc70;
    margin-bottom: 1.2em;
    font-size: 1.5em;
    text-align: center;
}

.iiot-demo-widget {
    width: 100%;
}

.iiot-demo-row {
    display: flex;
    gap: 1em;
    justify-content: center;
    margin-bottom: 1em;
    flex-wrap: wrap;
}

.iiot-demo-card {
    background: #232b36;
    border-radius: 12px;
    padding: 0.7em 1em;
    min-width: 110px;
    text-align: center;
    color: #fff;
    border: 1px solid #1976d2;
    margin-bottom: 0.5em;
}

.iiot-demo-label {
    font-size: 0.95em;
    color: #90caf9;
    margin-bottom: 0.2em;
}

.iiot-demo-value {
    font-size: 1.1em;
    font-weight: bold;
    color: #00eaff;
}

.iiot-demo-note {
    margin-top: 1.2em;
    color: #ffcc70;
    font-size: 0.95em;
    text-align: center;
}

/* Case Studies Section Styles */
.case-studies-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}
.case-study-card {
    background: #232b36;
    border-radius: 16px;
    box-shadow: 0 2px 12px #0002;
    padding: 1.2em 1.2em 1.5em 1.2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1.5px solid #1976d2;
    color: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}
.case-study-card:hover {
    box-shadow: 0 6px 24px #00eaff44;
    transform: translateY(-4px) scale(1.03);
    border-color: #00eaff;
}
.case-study-card h3 {
    margin: 0 0 0.5em 0;
    color: #ffcc70;
    font-size: 1.2em;
}
.case-study-card ul {
    margin: 0 0 0 1em;
    padding: 0;
    font-size: 1em;
}
.case-study-card li {
    margin-bottom: 0.2em;
}

/* Certificate Section */
.certificate-section {
    padding: 2em 0;
    text-align: center;
}
.certificate-gallery img {
    max-width: 480px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 2px 16px #1976d2;
}
