:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #161616;
    --accent-blue: #00eeff;
    --accent-pink: #ff00a0;
    --accent-purple: #b300ff;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --glass-bg: rgba(22, 22, 22, 0.7);
    --glass-border: rgba(0, 238, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Neural Network Background */
.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
    overflow: hidden;
    contain: layout style paint;
}

.node {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse 3s infinite alternate;
    will-change: transform, opacity;
}

.connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    transform-origin: 0 0;
    opacity: 0.2;
    will-change: transform;
}

.pulse {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue);
    animation: travel 4s linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes pulse {
    0% { 
        opacity: 0.3; 
        box-shadow: 0 0 5px var(--accent-blue);
    }
    100% { 
        opacity: 0.8; 
        box-shadow: 0 0 15px var(--accent-blue);
    }
}

@keyframes travel {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--accent-blue);
    border-radius: 10px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.3);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--accent-blue);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--accent-blue);
}

.modal-body {
    padding: 1.5rem;
}

.blog-content, .case-study-content, .skill-story-content, .ai-journey-content {
    font-size: 1rem;
    line-height: 1.7;
}

.blog-content h1, .case-study-content h1, .skill-story-content h1, .ai-journey-content h1 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.blog-content h2, .case-study-content h2, .skill-story-content h2, .ai-journey-content h2 {
    color: var(--accent-blue);
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.blog-content h3, .case-study-content h3, .skill-story-content h3, .ai-journey-content h3 {
    color: var(--text-primary);
    margin: 1.2rem 0 0.8rem;
    font-size: 1.2rem;
}

.blog-content p, .case-study-content p, .skill-story-content p, .ai-journey-content p {
    margin-bottom: 1rem;
}

.blog-content ul, .blog-content ol, .case-study-content ul, .case-study-content ol, .skill-story-content ul, .skill-story-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-content li, .case-study-content li, .skill-story-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote, .case-study-content blockquote, .skill-story-content blockquote {
    border-left: 3px solid var(--accent-blue);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-primary);
}

.blog-content code, .case-study-content code, .skill-story-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
    border: 1px solid var(--glass-border);
}

.blog-content pre, .case-study-content pre, .skill-story-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--glass-border);
}

.blog-content pre code, .case-study-content pre code, .skill-story-content pre code {
    background: none;
    padding: 0;
    border: none;
}

.company-name {
    color: var(--accent-blue);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-blue);
    text-decoration: none;
    white-space: nowrap;
}

.nav-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: none; /* hidden on mobile, toggled by JS */
}

.nav-menu.active {
    display: block;
    position: absolute;
    top: 64px;
    right: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 8px;
    z-index: 1000;
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    display: inline-block;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section with Profile Picture ABOVE TITLE */
.hero {
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 238, 255, 0.7);
}

.hero-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    margin-top: 0.25rem;
    color: var(--accent-pink);
}

.hero-description {
    font-size: 0.95rem;
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.support-highlights {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.support-badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 150px;
}

.support-badge p {
    font-size: 0.85rem;
    margin: 0;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: rgba(0, 238, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 238, 255, 0.5);
}

.btn-primary {
    background-color: rgba(0, 238, 255, 0.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Skills Section - UPDATED AS REQUESTED */
.skills {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--accent-blue);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.skill-orb {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Added fixed height for consistency */
}

.skill-orb::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.skill-orb:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.skill-orb:hover::before {
    opacity: 1;
}

.orb-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
    line-height: 1.2;
}

.orb-title br {
    display: block;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Allow skill list to grow and push button down */
}

.skill-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.skill-actions {
    margin-top: auto; /* This pushes the button to the bottom */
    padding-top: 1rem;
}

/* Interests & Hobbies Section */
.interests {
    padding: 4rem 0;
    background: rgba(10, 10, 10, 0.5);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.interest-bubble {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.interest-bubble::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.interest-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(0, 238, 255, 0.4);
    border-color: var(--accent-blue);
}

.interest-bubble:hover::before {
    opacity: 1;
}

.interest-content {
    z-index: 2;
    position: relative;
}

.interest-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.interest-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Projects Section */
.projects {
    padding: 4rem 0;
}

/* Nyx Showcase Centerpiece */
.nyx-showcase {
    margin-bottom: 3rem;
}

.featured-project {
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(179, 0, 255, 0.3);
}

.featured-project:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 40px rgba(0, 238, 255, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 160px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 238, 255, 0.1), rgba(255, 0, 160, 0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 0.75rem 0;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-blue);
}

.project-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--accent-pink);
}

/* Pansion Project Specific Styling */
.pansion-image {
    background: #f0f0f0;
    border: 2px solid rgba(0, 238, 255, 0.3);
    overflow: hidden;
}

.project-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-photo {
    transform: scale(1.05);
}

.project-gif {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

/* SecureChat Project Specific Styling */
.securechat-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    position: relative;
    overflow: hidden;
}

.securechat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 1rem;
    text-align: center;
    position: relative;
}

.security-shield {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: shieldPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.8));
    z-index: 2;
    position: relative;
}

.chat-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.bubble {
    position: absolute;
    font-size: 1.2rem;
    animation: floatBubble 3s ease-in-out infinite;
    opacity: 0.6;
}

.bubble-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    filter: drop-shadow(0 0 8px rgba(0, 238, 255, 0.6));
}

.bubble-2 {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.bubble-3 {
    bottom: 25%;
    left: 30%;
    animation-delay: 2s;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
}

.secure-text {
    font-size: 1rem;
    font-weight: 700;
    color: #22c55e;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
    z-index: 2;
    position: relative;
}

.encryption-indicator {
    font-size: 0.8rem;
    color: #ef4444;
    opacity: 0.9;
    animation: encryptBlink 2s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes shieldPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.8)); 
    }
    50% { 
        transform: scale(1.1); 
        filter: drop-shadow(0 0 25px rgba(34, 197, 94, 1)); 
    }
}

@keyframes floatBubble {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.6; 
    }
    50% { 
        transform: translateY(-10px) scale(1.1); 
        opacity: 0.8; 
    }
}

@keyframes encryptBlink {
    0%, 70% { opacity: 0.9; }
    85% { opacity: 0.3; }
    100% { opacity: 0.9; }
}

/* Research Section */
.research {
    padding: 4rem 0;
}

.research-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.research-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.research-description {
    margin-bottom: 1.5rem;
}

.research-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.research-tag {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.research-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* How I Work Section */
.how-i-work {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.03) 0%, rgba(179, 0, 255, 0.03) 100%);
}

.workflow-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
}

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.workflow-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 238, 255, 0.2);
}

.workflow-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.workflow-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.workflow-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.workflow-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Local AI Infrastructure Section - Compact Version */
.infrastructure {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(0, 238, 255, 0.02) 0%, rgba(179, 0, 255, 0.02) 100%);
}

.infrastructure-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}

.infrastructure-stats-compact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.stat-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number-compact {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-blue);
    font-family: 'Orbitron', sans-serif;
    line-height: 1;
}

.stat-label-compact {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.models-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 2rem 0;
}

.model-row {
    display: grid;
    grid-template-columns: 200px 100px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.model-row:hover {
    border-color: var(--accent-blue);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 238, 255, 0.15);
}

.model-name-compact {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.model-badge-compact {
    display: inline-block;
    background: rgba(0, 238, 255, 0.2);
    color: var(--accent-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--accent-blue);
    text-align: center;
}

.model-badge-compact.flagship {
    background: rgba(179, 0, 255, 0.2);
    color: var(--accent-purple);
    border-color: var(--accent-purple);
}

.model-badge-compact.live {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    border-color: #00ff64;
}

.model-badge-compact.custom {
    background: rgba(255, 0, 160, 0.2);
    color: var(--accent-pink);
    border-color: var(--accent-pink);
}

.model-desc-compact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.9;
}

.infrastructure-footer-compact {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.infrastructure-footer-compact strong {
    color: var(--accent-blue);
}

/* Contact Section with Functional Form */
.contact {
    padding: 4rem 0;
}

.contact-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 1.5rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-blue);
}

.form-input, .form-textarea {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 5px rgba(0, 238, 255, 0.5);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-message {
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #90ee90;
    display: block;
}

.form-message.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff7f7f;
    display: block;
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mobile Responsive Styles for Infrastructure */
@media (max-width: 767px) {
    .infrastructure-stats-compact {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-compact {
        flex: 1 1 40%;
    }
    
    .models-compact {
        grid-template-columns: 1fr;
    }
    
    .model-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .model-name-compact {
        font-size: 0.9rem;
    }
    
    .model-desc-compact {
        font-size: 0.8rem;
    }
    
    .stat-number-compact {
        font-size: 1.75rem;
    }
}

/* Media Queries for Larger Screens */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        display: block !important;
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: all;
        background: none;
        padding: 0;
        border: none;
        margin-left: 3rem;
    }

    .nav-list {
        flex-direction: row;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .interests-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .support-highlights {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .interests-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   CRITICAL MOBILE FIXES
   ======================================== */

body {
    min-width: 320px;
}

/* Mobile typography improvements */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.2rem;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .support-badge {
        min-width: 120px;
        padding: 0.75rem;
    }
    
    .support-badge p {
        font-size: 0.8rem;
    }
}

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }
    
    .skill-orb {
        padding: 1rem;
    }
    
    .orb-title {
        font-size: 1rem;
    }
    
    .skill-item {
        font-size: 0.85rem;
    }
    
    .project-card {
        margin-bottom: 1rem;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.85rem;
    }
    
    .project-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .workflow-card {
        padding: 1rem;
    }
    
    .workflow-title {
        font-size: 1rem;
    }
    
    .workflow-description {
        font-size: 0.85rem;
    }
    
    .model-row {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .model-name {
        font-size: 0.85rem;
    }
    
    .model-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .model-desc {
        font-size: 0.8rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }
}

/* Tablet breakpoint adjustments */
@media (min-width: 481px) and (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure modals are mobile-friendly */
@media (max-width: 767px) {
    .modal-content {
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Fix nav menu position on very small screens */
@media (max-width: 360px) {
    .nav-menu.active {
        right: 0.5rem;
        left: 0.5rem;
        width: calc(100% - 1rem);
    }
}

/* End responsive additions */
