* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Terminal Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* End of file - signed: serozr */

.boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-content {
    max-width: 800px;
    width: 90%;
    padding: 2rem;
}

.boot-header {
    margin-bottom: 2rem;
    overflow: hidden;
}

.ascii-art {
    color: #00FF8C;
    font-size: 0.7rem;
    line-height: 1.2;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
    animation: glitch 3s infinite;
}

.boot-terminal {
    margin-bottom: 2rem;
}

.boot-terminal p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    opacity: 0;
    animation: bootLine 0.3s forwards;
}

.boot-terminal p:nth-child(1) { animation-delay: 0.5s; }
.boot-terminal p:nth-child(2) { animation-delay: 1s; }
.boot-terminal p:nth-child(3) { animation-delay: 1.5s; }
.boot-terminal p:nth-child(4) { animation-delay: 2s; }
.boot-terminal p:nth-child(5) { animation-delay: 2.5s; }
.boot-terminal p:nth-child(6) { animation-delay: 3s; }
.boot-terminal p:nth-child(7) { animation-delay: 3.5s; }

.boot-prompt {
    color: #00D9FF;
    font-weight: bold;
    margin-right: 0.5rem;
}

.boot-text {
    color: #aaa;
}

.boot-status {
    float: right;
    font-weight: bold;
}

.boot-ok {
    color: #00FF8C;
}

.boot-ready {
    color: #FFD700;
    animation: pulse 1s infinite;
}

.boot-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.boot-progress {
    margin-bottom: 2rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: bootLine 0.3s forwards 4s;
}

.boot-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00FF8C, #00D9FF);
    width: 0%;
    animation: progress 2s ease-out forwards 4s;
    box-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
}

@keyframes progress {
    to { width: 100%; }
}

.boot-footer {
    text-align: center;
    color: #00FF8C;
    font-size: 0.9rem;
    opacity: 0;
    animation: bootLine 0.3s forwards 4.5s, blink 1s infinite 5s;
}

@keyframes bootLine {
    to { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

@keyframes glitch {
    0%, 90%, 100% { 
        transform: translate(0);
        text-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
    }
    92% { 
        transform: translate(-2px, 2px);
        text-shadow: 0 0 10px rgba(0, 255, 140, 0.8), 2px 0 5px rgba(255, 0, 0, 0.5);
    }
    94% { 
        transform: translate(2px, -2px);
        text-shadow: 0 0 10px rgba(0, 255, 140, 0.8), -2px 0 5px rgba(0, 0, 255, 0.5);
    }
    96% { 
        transform: translate(0);
        text-shadow: 0 0 10px rgba(0, 255, 140, 0.5);
    }
}

body {
    font-family: 'Courier New', monospace;
    background: #121212;
    color: #fff;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#00FF8C 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid #333;
    padding: 1rem 2rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #00FF8C;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00FF8C;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;   
    text-align: center;
}


.hero-content {
    text-align: center;
    max-width: 800px;
}

.tag {
    display: inline-block;
    border: 1px solid #00FF8C;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background: rgba(26, 26, 26, 0.7);
    color: #00FF8C;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00FF8C, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.3rem;
    color: #aaa;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Fixed terminal window text wrapping */
.terminal-window {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 20px;

    padding: 2.5rem;
    margin: 2rem auto;

    width: 100%;
    max-width: 520px;   /* 🔥 important */
    
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.2);

    box-sizing: border-box;
}


.terminal-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #FF3E3E; }
.dot-yellow { background: #FFD700; }
.dot-green { background: #00FF8C; }

/* Fix terminal text wrapping */
.terminal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.terminal-text p {
    margin-bottom: 0.8rem;
}

.terminal-text .output {
    color: #fff;
    overflow-wrap: break-word;
}

.terminal-text .prompt {
    color: #00FF8C;
}

.terminal-text .command {
    color: #FF6B6B;
}

.terminal-text .link {
    color: #00D9FF;
    text-decoration: none;
    transition: color 0.3s;
}

.terminal-text .link:hover {
    color: #00FF8C;
}

/* Fix CTA button alignment */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid;
}

.btn-primary {
    background: transparent;
    border-color: #00FF8C;
    color: #00FF8C;
}

.btn-primary:hover {
    background: #00FF8C;
    color: #121212;
}

.btn-secondary {
    background: transparent;
    border-color: #00D9FF;
    color: #00D9FF;
}

.btn-secondary:hover {
    background: #00D9FF;
    color: #121212;
}

.cta-sign {
    color: #00D9FF;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Fix inline elements */
.inline-sign {
    color: #00D9FF;
    font-size: 1.5rem;
    vertical-align: middle;
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h2::before {
    content: '#';
    color: #00FF8C;
    margin-right: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: #00FF8C;
}

/* About Section */
.about-container {
    margin-top: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    color: #aaa;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.2rem;
    color: #fff !important;
}

.about-text .highlight {
    color: #00FF8C;
    font-weight: bold;
}

.about-text .link {
    color: #00D9FF;
    text-decoration: none;
    transition: color 0.3s;
}

.about-text .link:hover {
    color: #00FF8C;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.3);
    border-color: #00FF8C;
}

.stat-number {
    font-size: 2.5rem;
    color: #00FF8C;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

.about-image {
    position: sticky;
    top: 100px;
}

.code-window {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.2);
}

.code-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(0, 255, 140, 0.3);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-title {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: auto;
}

.code-content {
    padding: 1.5rem;
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fff;
}

.code-keyword {
    color: #FF6B6B;
}

.code-variable {
    color: #FFD700;
}

.code-property {
    color: #00D9FF;
}

.code-string {
    color: #00FF8C;
}

/* Certifications & Awards Section */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 140, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.cert-card:hover::before {
    top: -100%;
    right: -100%;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px rgba(0, 255, 140, 0.4);
    border-color: #00FF8C;
}

.cert-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 255, 140, 0.5));
}

.cert-badge {
    background: linear-gradient(135deg, rgba(0, 255, 140, 0.2), rgba(0, 217, 255, 0.2));
    border: 1px solid rgba(0, 255, 140, 0.4);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.award-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 140, 0, 0.2));
    border-color: rgba(255, 215, 0, 0.4);
}

.cert-badge-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-title {
    color: #00FF8C;
    font-size: 0.85rem;
    font-weight: bold;
}

.award-badge .cert-title {
    color: #FFD700;
}

.cert-issuer {
    color: #00D9FF;
    font-size: 0.8rem;
}

.award-badge .cert-issuer {
    color: #FFA500;
}

.cert-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.cert-description {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 140, 0.2);
}

.cert-date {
    color: #00D9FF;
    font-size: 0.9rem;
    font-weight: bold;
}

.cert-link {
    color: #00FF8C;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.cert-link:hover {
    color: #00D9FF;
    transform: translateX(5px);
}

.cert-badge-text {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.3);
    will-change: transform;
}

.project-card h3 {
    color: #00FF8C;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Fix project tech tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tag {
    background: rgba(0, 255, 140, 0.1);
    color: #00FF8C;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 140, 0.3);
}

.project-link {
    color: #00D9FF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.project-link:hover {
    color: #00FF8C;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.9);
    border-top: 1px solid #333;
    color: #aaa;
}

footer .signature {
    color: #00FF8C;
    font-weight: bold;
    cursor: pointer;
}

.lazy-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    padding: 2rem;
}

.skill-category h3 {
    color: #00FF8C;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #fff;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00FF8C, #00D9FF);
    border-radius: 4px;
    transition: width 1s ease-out;
    will-change: width;
}

.timeline {
    position: relative;
    margin-top: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #00FF8C, #00D9FF);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    padding-right: 50%;
    padding-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: 50%;
    padding-right: 0;
    text-align: left;
}

.timeline-content {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #00FF8C;
    border-radius: 50%;
    border: 3px solid #121212;
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.5);
}

.timeline-content h3 {
    color: #00FF8C;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-date {
    color: #00D9FF;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #aaa;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.3);
    will-change: transform;
}

.blog-header {
    background: linear-gradient(135deg, rgba(0, 255, 140, 0.2), rgba(0, 217, 255, 0.2));
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 140, 0.3);
}

.blog-date {
    color: #00D9FF;
    font-size: 0.85rem;
}

.blog-body {
    padding: 2rem;
}

.blog-card h3 {
    color: #00FF8C;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.blog-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.blog-tag {
    background: rgba(0, 255, 140, 0.1);
    color: #00FF8C;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 255, 140, 0.3);
}

.contact-container {
    max-width: 800px;
    margin: 3rem auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.3);
    will-change: transform;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-item h3 {
    color: #00FF8C;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #00D9FF;
    text-decoration: none;
    word-break: break-all;
}

.contact-item a:hover {
    color: #00FF8C;
}

.contact-form {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #00FF8C;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 5px;
    padding: 0.8rem;
    color: #fff;
    font-family: 'Courier New', monospace;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00FF8C;
    box-shadow: 0 0 15px rgba(0, 255, 140, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid #00FF8C;
    color: #00FF8C;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: #00FF8C;
    color: #121212;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00FF8C;
    transition: all 0.3s;
}

.thm-badge {
    margin: 7rem auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;   
    justify-content: center;
}


.thm-badge h3 {
    text-shadow: 0 0 10px rgba(0, 255, 140, 0.4);
}


.thm-badge h3::before {
    content: '>';
    color: #00FF8C;
    margin-right: 0.5rem;
}

.badge-container {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: .5rem auto;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;

    width: 100%;
    max-width: 520px;

    background: rgba(15, 15, 15, 0.9);
    border: 1px solid rgba(0, 255, 140, 0.35);
    border-radius: 14px;

    box-shadow: 0 0 25px rgba(0, 255, 140, 0.25);
}


.badge-container iframe {
    width: 720px;
    height: 160px;

    max-width: 100%;
    border: none;
    border-radius: 10px;
    margin-left: 69px;
    margin-top: 52px;
    background: transparent;
}


@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .boot-content {
        padding: 1rem;
    }
    
    .ascii-art {
        font-size: 0.5rem;
    }
    
    .boot-terminal p {
        font-size: 0.85rem;
    }
    
    .boot-footer {
        font-size: 0.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        border-bottom: 1px solid #333;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        margin: 0.5rem 0;
        padding: 1rem;
        border-bottom: 1px solid rgba(0, 255, 140, 0.1);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        position: static;
        order: -1;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .code-content {
        font-size: 0.8rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-card {
        padding: 1.5rem;
    }
    
    .cert-icon {
        font-size: 2.5rem;
    }
    
    .timeline::before { left: 0; }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 2rem;
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 0;
        margin-left: 0;
    }
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
    }
    .timeline-dot {
        left: 0;
        transform: translateX(-50%);
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-sign {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    /* Mobile fixes for badge */
    .badge-container {
        padding: 1rem;
    }
    
    .badge-container iframe {
        height: 200px;
    }
}
.contact-icon {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
    color: #00FF8C;
}

.contact-icon i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item:hover .contact-icon i {
    transform: scale(1.2);
    color: #00D9FF;
}
/* Certificate Gallery Styles */
.cert-gallery {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 140, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.gallery-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 140, 0.3);
    border-color: #00FF8C;
}

.gallery-header {
    background: linear-gradient(135deg, rgba(0, 255, 140, 0.1), rgba(0, 217, 255, 0.1));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 140, 0.2);
}

.gallery-badge {
    background: #00FF8C;
    color: #121212;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-thm {
    background: #FF6B6B;
    color: white;
}

.gallery-date {
    color: #00D9FF;
    font-size: 0.9rem;
    font-weight: bold;
}

.gallery-body {
    padding: 1.5rem;
}

.gallery-body h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gallery-issuer {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-issuer i {
    color: #00D9FF;
}

.gallery-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-preview, .gallery-verify {
    flex: 1;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-preview {
    background: rgba(0, 255, 140, 0.1);
    color: #00FF8C;
    border: 1px solid rgba(0, 255, 140, 0.3);
}

.gallery-preview:hover {
    background: rgba(0, 255, 140, 0.2);
    color: #fff;
}

.gallery-verify {
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.gallery-verify:hover {
    background: rgba(0, 217, 255, 0.2);
    color: #fff;
}

/* Certificate Modal */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #121212;
    border: 2px solid #00FF8C;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 140, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #00FF8C;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 2rem;
}

/* Certificate Preview Styling */
.certificate-preview {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    border: 3px solid #00FF8C;
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.certificate-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 140, 0.05), transparent);
    transform: rotate(45deg);
}

.certificate-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.certificate-header h3 {
    color: #00FF8C;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.certificate-issuer {
    color: #00D9FF;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.certificate-body {
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.certificate-name {
    font-size: 2rem;
    color: #fff;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(0, 255, 140, 0.1);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 140, 0.3);
}

.certificate-title {
    font-size: 1.5rem;
    color: #00FF8C;
    margin: 1rem 0;
}

.certificate-details {
    color: #aaa;
    margin: 1rem 0;
    line-height: 1.6;
}

.certificate-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 140, 0.3);
    position: relative;
    z-index: 1;
}

.certificate-date, .certificate-id {
    color: #00D9FF;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Mobile styles for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        padding: 1rem;
    }
    
    .certificate-preview {
        padding: 1.5rem;
    }
    
    .certificate-header h3 {
        font-size: 1.4rem;
    }
    
    .certificate-name {
        font-size: 1.5rem;
    }
}
/* Certificate Gallery Styles */
.cert-gallery {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 140, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-card {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(0, 255, 140, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.gallery-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 140, 0.3);
    border-color: #00FF8C;
}

.gallery-header {
    background: linear-gradient(135deg, rgba(0, 255, 140, 0.1), rgba(0, 217, 255, 0.1));
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 140, 0.2);
}

.gallery-badge {
    background: #00FF8C;
    color: #121212;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
}

.badge-thm {
    background: #FF6B6B;
    color: white;
}

.gallery-date {
    color: #00D9FF;
    font-size: 0.9rem;
    font-weight: bold;
}

.gallery-body {
    padding: 1.5rem;
}

.gallery-body h4 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.gallery-issuer {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gallery-issuer i {
    color: #00D9FF;
}

/* Certificate Image Preview */
.cert-image-preview {
    position: relative;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 255, 140, 0.3);
    transition: all 0.3s;
}

.cert-image-preview:hover {
    border-color: #00FF8C;
    transform: scale(1.02);
}

.cert-thumb {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.3);
    display: block;
}

.preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #00FF8C;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.gallery-preview, .gallery-verify {
    flex: 1;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.gallery-preview {
    background: rgba(0, 255, 140, 0.1);
    color: #00FF8C;
    border: 1px solid rgba(0, 255, 140, 0.3);
}

.gallery-preview:hover {
    background: rgba(0, 255, 140, 0.2);
    color: #fff;
}

.gallery-verify {
    background: rgba(0, 217, 255, 0.1);
    color: #00D9FF;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.gallery-verify:hover {
    background: rgba(0, 217, 255, 0.2);
    color: #fff;
}

/* Full Image Modal */
.cert-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.cert-image-modal .modal-content {
    max-width: 90%;
    max-height: 90vh;
    background: transparent;
    border: none;
    box-shadow: none;
}

.cert-image-modal img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid #00FF8C;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 140, 0.5);
}

.cert-image-modal .close-modal {
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
}

/* Certificate Modal */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.cert-modal .modal-content {
    background: #121212;
    border: 2px solid #00FF8C;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 255, 140, 0.3);
}

.cert-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #00FF8C;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    transition: color 0.3s;
}

.cert-modal .close-modal:hover {
    color: #fff;
}

.cert-modal .modal-body {
    padding: 2rem;
}

/* Mobile styles for gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-actions {
        flex-direction: column;
    }
    
    .cert-thumb {
        height: 150px;
    }
}

/* Mobile-specific fixes */
@media (max-width: 480px) {
    /* Fix hero section */
    .hero-content {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Fix terminal window on mobile */
    .terminal-window {
        max-width: 95% !important;
        padding: 1.5rem !important;
        margin: 1rem auto !important;
        border-radius: 10px !important;
    }
    
    .terminal-text {
        font-size: 0.85rem !important;
        line-height: 1.5;
    }
    
    /* Fix badge container */
    .badge-container {
        max-width: 95% !important;
        padding: 0.8rem !important;
        margin: 1rem auto !important;
    }
    
    .badge-container iframe {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100% !important;
        height: 140px !important;
        transform: scale(0.85);
        transform-origin: center;
    }
    
    /* Fix navigation */
    nav {
        padding: 0.8rem 1rem !important;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    /* Fix sections */
    section {
        padding: 3rem 1rem !important;
    }
    
    /* Fix buttons */
    .btn {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    /* Fix timeline */
    .timeline-item {
        padding-left: 1.5rem !important;
        padding-right: 0 !important;
    }
    
    .timeline-content {
        padding: 1.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Fix contact form */
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem !important;
    }
    
    /* Fix project cards */
    .project-card {
        padding: 1.5rem !important;
    }
    
    /* Fix skills section */
    .skill-category {
        padding: 1.5rem !important;
    }
    
    /* Fix about content */
    .about-content {
        gap: 1.5rem !important;
    }
    
    /* Fix ASCII art on boot screen */
    .ascii-art {
        font-size: 0.4rem !important;
        line-height: 1;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .boot-content {
        padding: 0.5rem !important;
    }
    
    .boot-terminal p {
        font-size: 0.75rem !important;
    }
}

/* Extra small devices */
@media (max-width: 320px) {
    h1 {
        font-size: 1.8rem !important;
    }
    
    .terminal-window {
        padding: 1rem !important;
    }
    
    .terminal-text {
        font-size: 0.8rem !important;
    }
    
    .badge-container iframe {
        height: 120px !important;
        transform: scale(0.8);
    }
}

/* Fix horizontal scrolling issues */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Fix images and iframes */
img, iframe, video, embed {
    max-width: 100%;
    height: auto;
}

/* Fix text overflow */
.terminal-text, .code-content, .blog-body, .about-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Improve touch targets for mobile */
.nav-links a, .btn, .cert-link, .project-link, .gallery-preview, .gallery-verify {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Fix flexbox issues on mobile */
.cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
}

.cta-sign {
    margin-left: 0 !important;
    margin-top: 1rem !important;
    text-align: center;
}

/* Fix grid layouts */
@media (max-width: 768px) {
    .about-stats, .certifications-grid, .projects-grid, .skills-grid, .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .about-content {
        display: flex !important;
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }
}