/* Comprehensive mobile fix to prevent strips */
* {
    box-sizing: border-box;
}

/* Ensure video background doesn't cause issues */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    max-width: 100%;
}

/* Dark overlay to improve text visibility */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: -1;
    max-width: 100%;
}

/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    max-width: 100vw;
}

/* HTML root element */
html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Section Styling */
.section {
    display: none;
    padding: 50px 20px;
    background: rgba(0, 0, 0, 0.8); /* Dark background for better readability */
    border-radius: 10px;
    margin: 20px auto;
    width: 80%;
    max-width: 800px;
    opacity: 0;
    animation: fadeInSection 0.8s forwards;
    box-sizing: border-box;
}

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header Styling */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    box-shadow: 0 0 10px #00ffcc;
    width: 100%;
    box-sizing: border-box;
}

/* Button Styling */
button {
    background: #00ffcc;
    color: #000;
    font-weight: bold;
    border: none;
    padding: 12px 20px;
    margin: 5px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s;
}

button:hover {
    background: #ff0099;
    color: #fff;
    transform: scale(1.1);
}

/* Project Card Styling */
.project-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #00ffcc;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,255,204,0.15);
    margin: 20px auto;
    padding: 20px;
    max-width: 700px;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px #00ffcc44;
}
.badge {
    display: inline-block;
    background: #ff0099;
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 0.8em;
    margin-left: 8px;
    font-weight: bold;
}
.section-icon {
    font-size: 1.3em;
    margin-right: 8px;
    vertical-align: middle;
}

/* Skill Grouping and Icons */
.skills-group {
    margin-bottom: 24px;
    background: rgba(0,0,0,0.7);
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px #00ffcc22;
}
.skills-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.skill-icon {
    font-size: 1.2em;
    margin-right: 8px;
    vertical-align: middle;
}

/* Certification org and verify link */
.cert-org {
    color: #00ffcc;
    font-size: 1.1em;
    margin-left: 8px;
}
.cert-link {
    color: #ff0099;
    font-size: 1.1em;
    margin-left: 10px;
    text-decoration: underline;
    transition: color 0.2s;
}
.cert-link:hover {
    color: #00ffcc;
}
/* Certification Section Styling */
#certifications ul {
    font-size: 1.2em;
    line-height: 1.6;
}
#certifications .ctf-btn {
    font-size: 1.1em;
    font-weight: bold;
}
#certifications .cert-org {
    font-size: 1.05em;
}

/* Skip to Content Link Accessibility */
.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: #00ffcc;
    color: #000;
    padding: 8px 16px;
    z-index: 1000;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: left 0.2s;
}
.skip-link:focus {
    left: 10px;
    outline: 2px solid #ff0099;
}

/* SutraByte Card Styling */
.sutrabyte-card {
    background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(0,255,204,0.1) 100%);
    border: 2px solid #00ffcc;
}

.features, .tech-stack {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
}

.features ul {
    list-style: none;
    padding-left: 20px;
}

.features li {
    margin: 10px 0;
    position: relative;
}

.features li:before {
    content: "→";
    position: absolute;
    left: -20px;
    color: #00ffcc;
}

/* Project Details Styling */
.project-details {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    border-left: 3px solid #00ffcc;
}

.project-details p {
    margin: 8px 0;
}

/* Blog Card Styling */
.blog-card {
    background: rgba(0,0,0,0.8);
    border: 1px solid #00ffcc;
    border-radius: 10px;
    padding: 30px;
    margin: 20px auto;
    max-width: 900px;
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.blog-post {
    background: rgba(0,255,204,0.05);
    border: 1px solid rgba(0,255,204,0.2);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,255,204,0.2);
}

.blog-post h4 {
    color: #00ffcc;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.blog-post p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.5;
}

.blog-cta {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,255,204,0.2);
}

.blog-cta p {
    margin-bottom: 20px;
    color: #fff;
}

/* Connect Section Styling */
.connect-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.connect-btn {
    background: rgba(0,255,204,0.1);
    border: 1px solid #00ffcc;
    color: #00ffcc;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.connect-btn:hover {
    background: #00ffcc;
    color: #000;
    transform: translateY(-2px);
}

/* CTA Button Styling */
.cta-btn {
    display: inline-block;
    background: #00ffcc;
    color: #000;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #ff0099;
    color: #fff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .connect-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .connect-btn {
        width: 80%;
        margin: 5px 0;
    }
    
    .project-card, .sutrabyte-card, .blog-card {
        margin: 10px;
        padding: 15px;
    }

    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        padding: 20px;
        margin: 10px;
    }
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.resume-btn {
    background: #ff0099;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-left: 20px;
    transition: background 0.3s, transform 0.3s;
}
.resume-btn:hover {
    background: #00ffcc;
    color: #000;
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 4px;
    width: 100%;
    background: #00ffcc;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .header-flex {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .header-flex h1 {
        text-align: center;
        width: 100%;
        font-size: 2em;
        margin-bottom: 10px;
    }
    .resume-btn {
        margin-left: 0;
        width: 90%;
        max-width: 300px;
    }
    nav#main-nav {
        width: 100vw;
        left: 0;
        top: 100%;
        position: absolute;
        background: rgba(0,0,0,0.98);
        box-shadow: 0 4px 20px #00ffcc44;
        z-index: 1000;
        padding: 20px 0;
    }
    nav#main-nav.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
}
@media (max-width: 600px) {
    .header-flex h1 {
        font-size: 1.3em;
    }
    .resume-btn {
        font-size: 0.95em;
        padding: 8px 12px;
        width: 100%;
        margin-left: 0;
    }
    .section {
        padding: 30px 5px;
        width: 98%;
        margin: 10px auto;
        box-sizing: border-box;
    }
    .project-card, .sutrabyte-card, .blog-card {
        padding: 10px;
        margin: 5px;
        max-width: 100%;
        box-sizing: border-box;
    }
    nav#main-nav {
        display: none !important;
    }
    .hamburger {
        display: none !important;
    }
    #left-nav-btn {
        display: flex;
        top: 10px;
        right: 10px;
        left: auto;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 1.7em;
        padding: 0;
        line-height: 44px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    #left-side-nav {
        width: 70vw;
        min-width: 140px;
        padding: 30px 5px 5px 5px;
        left: -100vw;
        visibility: hidden;
        box-sizing: border-box;
    }
    #left-side-nav.open {
        left: 0;
        visibility: visible;
    }
    /* Ensure no horizontal scroll on mobile */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    #content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

.sutrabyte-why {
    margin: 18px 0 18px 0;
    padding-left: 18px;
    color: #fff;
    font-size: 1em;
}
.sutrabyte-why li {
    margin-bottom: 10px;
    line-height: 1.6;
}
.sutrabyte-features-table-wrapper {
    overflow-x: auto;
    margin: 18px 0;
}
.sutrabyte-features-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.7);
    color: #fff;
    margin-bottom: 18px;
}
.sutrabyte-features-table th, .sutrabyte-features-table td {
    border: 1px solid #00ffcc;
    padding: 10px 14px;
    text-align: left;
}
.sutrabyte-features-table th {
    background: #00ffcc;
    color: #000;
    font-weight: bold;
}
.sutrabyte-features-table tr:nth-child(even) td {
    background: rgba(0,255,204,0.05);
}
@media (max-width: 600px) {
    .sutrabyte-features-table th, .sutrabyte-features-table td {
        padding: 8px 6px;
        font-size: 0.95em;
    }
}

#left-nav-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  left: auto;
  transform: none;
  z-index: 2001;
  background: #00ffcc;
  color: #000;
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 1.7em;
  box-shadow: 0 2px 8px #00ffcc44;
  cursor: pointer;
  transition: background 0.3s;
  display: none;
  padding: 0;
  line-height: 44px;
  text-align: center;
  justify-content: center;
  align-items: center;
}
#left-nav-btn:hover {
  background: #ff0099;
  color: #fff;
}
#left-side-nav {
  position: fixed;
  top: 0;
  left: -220px;
  width: 200px;
  height: 100vh;
  background: rgba(0,0,0,0.98);
  box-shadow: 2px 0 12px #00ffcc44;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 40px 10px 10px 10px;
  transition: left 0.3s;
  overflow: hidden;
  visibility: hidden;
}
#left-side-nav.open {
  left: 0;
  visibility: visible;
}
#left-side-nav button {
  background: none;
  color: #00ffcc;
  border: none;
  text-align: left;
  padding: 12px 10px;
  font-size: 1.1em;
  border-radius: 6px;
  margin-bottom: 6px;
  transition: background 0.2s, color 0.2s;
}
#left-side-nav button:hover {
  background: #00ffcc;
  color: #000;
}
@media (max-width: 600px) {
  #left-nav-btn {
    display: flex;
    top: 10px;
    right: 10px;
    left: auto;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.7em;
    padding: 0;
    line-height: 44px;
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  #left-side-nav {
    width: 70vw;
    min-width: 140px;
    padding: 30px 5px 5px 5px;
    left: -100vw;
    visibility: hidden;
  }
  #left-side-nav.open {
    left: 0;
    visibility: visible;
  }
}
